From 8835c9e1dec836d6d8159e78b9df12ad6402ad98 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 14 十一月 2024 10:03:24 +0800 Subject: [PATCH] 修复bug 整合代码 --- Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 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..3f07b29 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, @@ -228,7 +230,7 @@ if(newval) { this.sourceDataMapParams=this.sourceDataMap(); this.getParams(); - this.handleRefresh(); + // this.handleRefresh(); } }, deep: true, @@ -325,6 +327,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 = []; @@ -398,6 +401,7 @@ this.onLoad(this.page,parms); }, searchReset() { + console.log('searchReset') this.query = {}; this.onLoad(this.page); }, @@ -410,6 +414,7 @@ } }, handleRefresh(type) { + console.log('handleRefresh') this.onLoad(this.page); }, rowExcel() { -- Gitblit v1.9.3