From 71cc6e74bf96e55944b0c7062b861eff3cc68508 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 15 十一月 2024 15:51:54 +0800 Subject: [PATCH] 修改action --- Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue index 6dca0c5..9314cbc 100644 --- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue +++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue @@ -143,6 +143,8 @@ //琛ㄦ牸鏁版嵁 tableList: [], option: { + border:true, + stripe:true, index: true, addBtn: false, editBtn: false, @@ -200,7 +202,6 @@ }, isShow: { handler(newval) { - debugger; if (newval && this.$el.clientHeight > 50) { this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5; } @@ -228,7 +229,7 @@ if(newval) { this.sourceDataMapParams=this.sourceDataMap(); this.getParams(); - this.handleRefresh(); + // this.handleRefresh(); } }, deep: true, @@ -325,6 +326,7 @@ }, onLoad(page, params = {}) { if (Object.keys(this.sourceData).length>0 && this.isShow) { + this.tableList = []; this.loading = true; getList(page.currentPage, page.pageSize, Object.assign({},this.params,this.query,params)).then(res => { let data = []; @@ -351,7 +353,7 @@ this.$refs.dataTable.rowView(row,index) }, rowClickChange(row){ - this.$refs.dataTable.toggleRowSelection(row); + this.$refs.dataTable.toggleRowSelection(row,true); }, selectChange(row) { this.selectList = row; @@ -398,6 +400,7 @@ this.onLoad(this.page,parms); }, searchReset() { + console.log('searchReset') this.query = {}; this.onLoad(this.page); }, @@ -410,6 +413,7 @@ } }, handleRefresh(type) { + console.log('handleRefresh') this.onLoad(this.page); }, rowExcel() { -- Gitblit v1.9.3