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/views/base/UIContentArea.vue | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Source/ProjectWeb/src/views/base/UIContentArea.vue b/Source/ProjectWeb/src/views/base/UIContentArea.vue index 3978afc..a52160e 100644 --- a/Source/ProjectWeb/src/views/base/UIContentArea.vue +++ b/Source/ProjectWeb/src/views/base/UIContentArea.vue @@ -25,12 +25,14 @@ :uiBtmType="uiBtmType" :uiContext="uiContext" :inDialog="inDialog" + :canEdit="canEdit" :componentVO="areaItem.componentVOs[0]" :sourceData="newSourceData" :sourceBtmType="sourceBtmType" :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setData="setData" @setDataStore="setDataStore" :isShow="activeName==(areasName+'-Tab-'+index)?true:false"></compoent-index> </div> @@ -47,12 +49,14 @@ :uiBtmType="uiBtmType" :uiContext="uiContext" :inDialog="inDialog" + :canEdit="canEdit" :componentVO="componentVO" :sourceData="newSourceData" :sourceBtmType="sourceBtmType" :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setData="setData" @setDataStore="setDataStore" :isShow="collapseActiveNames.indexOf(areasName+'-collapse-'+componentIndex)!=-1?true:false"></compoent-index> </div> @@ -63,12 +67,14 @@ :uiBtmType="uiBtmType" :uiContext="uiContext" :inDialog="inDialog" + :canEdit="canEdit" :componentVO="newAreasData[0].componentVOs[0]" :sourceData="newSourceData" :sourceBtmType="sourceBtmType" :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setData="setData" @setDataStore="setDataStore" :isShow="true"></compoent-index> </div> @@ -121,6 +127,11 @@ inDialog: { type: Boolean, default: false + }, + canEdit:{ + //鍐呭鏄惁鍙紪杈� + type:Boolean, + default:false }, areasName:{ type:String, @@ -194,8 +205,6 @@ } }) this.newAreasData = newAreasData; - }else { - this.newAreasData=this.areasData; } }, checkDisplayExpression(displayExpressionStr) { @@ -231,6 +240,9 @@ handleChange(val) { //console.log(val); }, + setData(value) { + this.$emit("setData", value); + }, setDataStore(value) { this.$emit("setDataStore", value); this.dataStore = value.dataStore; -- Gitblit v1.9.3