From 506b5b59e3899d8dd40a61cc8b9a575bbde3caaa Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 06 五月 2024 18:24:33 +0800 Subject: [PATCH] 添加action --- Source/ProjectWeb/src/views/base/UIContentArea.vue | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/Source/ProjectWeb/src/views/base/UIContentArea.vue b/Source/ProjectWeb/src/views/base/UIContentArea.vue index d6c7056..c9f0c92 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> @@ -84,12 +90,19 @@ description="璇ュ尯鍩熸病鏈夐厤缃樉绀虹殑鍐呭"> </el-alert> <el-alert - v-else-if="Object.keys(newSourceData).length> 0" + v-else-if="Object.keys(newSourceData).length== 0" class="alert" :closable="false" title="" - type="error" - show-icon + type="info" + description="娌℃湁鍙樉绀虹殑鍐呭锛岃閫夋嫨鏉ユ簮鏁版嵁銆�"> + </el-alert> + <el-alert + v-else-if="newAreasData.length== 0" + class="alert" + :closable="false" + title="" + type="info" description="涓嶆弧瓒虫樉绀鸿〃杈惧紡鏉′欢锛屾病鏈夊彲鏄剧ず鐨勫唴瀹广��"> </el-alert> </div> @@ -114,6 +127,11 @@ inDialog: { type: Boolean, default: false + }, + canEdit:{ + //鍐呭鏄惁鍙紪杈� + type:Boolean, + default:false }, areasName:{ type:String, @@ -224,6 +242,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