From 46c673f0bf4a22ae108e90cfcf1bdeb4f0b6a45c Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 07 五月 2024 17:48:19 +0800 Subject: [PATCH] 添加action,数据联动 --- Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue index 3d80d3a..0e77ec6 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue @@ -3,6 +3,7 @@ <dynamic-button v-if="componentVO.buttons && componentVO.buttons.length>0" :componentVO="componentVO" :key="areasName+'buttons-'+componentVO.oid" :butttonList="componentVO.buttons" :dataStore="checkDatas" + @afterMethod="handleRefresh" :sourceData="sourceData" type="tree" style="margin-bottom: 5px;"></dynamic-button> <el-input placeholder="杈撳叆鍏抽敭瀛楄繘琛岃繃婊�" @@ -104,7 +105,9 @@ dataStore:newval }); } - } + }, + deep: true, + immediate: true }, data:{ handler(newval) { @@ -112,11 +115,13 @@ this.$emit("setData", { area: this.areasName, type:this.componentVO.uiComponentType, - btmType:this.componentVO.treeDefineVO.btmType, + currentDefineVO:this.componentVO.treeDefineVO, data:newval }); } - } + }, + deep: true, + immediate: true }, sourceData:{ handler(newval) { @@ -124,7 +129,9 @@ this.sourceDataMapParams=this.sourceDataMap(); this.getParams(); this.handleRefresh(); - } + }, + deep: true, + immediate: true } }, data() { -- Gitblit v1.9.3