From 6cbf81bf91ddb09b87c1756c4c7d4aa42bb22f4b Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 15 四月 2024 10:33:46 +0800 Subject: [PATCH] 调整接口 --- Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue index 0a6ecb1..f0892f0 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue @@ -7,16 +7,17 @@ :page.sync="pageType" :table-loading="loading" @row-click="rowClickChange" + @search-change='searchChange' @selection-change="selectChange"> <!--top鍖哄煙鎸夐挳--> <template slot="menuLeft" slot-scope="scope"> - <dynamic-button :butttonList="componentVO.buttons" :selectList="selectList" LocationType="top" + <dynamic-button :componentVO="componentVO" :butttonList="componentVO.buttons" :dataStore="selectList" LocationType="top" :sourceData="sourceData" type="table"></dynamic-button> </template> <!--menu鍖哄煙鎸夐挳--> <template slot="menu" slot-scope="scope"> - <dynamic-button :butttonList="componentVO.buttons" :scope="scope" :selectList="selectList" LocationType="menu" + <dynamic-button :componentVO="componentVO" :butttonList="componentVO.buttons" :scope="scope" :dataStore="selectList" :sourceData="sourceData" LocationType="menu" type="table"></dynamic-button> </template> </avue-crud> @@ -24,8 +25,9 @@ </template> <script> -import {treeMenu} from '@/api/treeMyMenu' import {validatenull} from '@/util/validate' +import {getList} from '@/api/base/ui' + export default { name: "dynamic-table", props: { @@ -514,7 +516,7 @@ }); }, pageType() { - return this.areasName.indexOf('westArea') == 0 ? this.simplePage : this.page; + return this.areasName === 'westArea' ? this.simplePage : this.page; } }, watch: { @@ -538,13 +540,6 @@ this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5; } } - }, - sourceData:{ - handler(newval) { - //婧愭暟鎹湁鍙樺寲鏃跺彉鏇村綋鍓嶅尯鍩熸暟鎹� - console.log(this.areasName); - console.log(newval); - } } }, created() { @@ -564,8 +559,15 @@ this.selectList = row; this.$emit("setDataStore", { area: this.areasName, + type:this.componentVO.uiComponentType, dataStore:row }); + }, + searchChange(form,done){ + done(); + }, + handleRefresh(){ + this.$refs.dataTable.refreshTable(); } } } -- Gitblit v1.9.3