From 7b9edd238b007402a6027bb32cf612640cb54186 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 14 五月 2024 11:45:34 +0800
Subject: [PATCH] 删除log
---
Source/ProjectWeb/src/views/base/UIContentArea.vue | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 47 insertions(+), 2 deletions(-)
diff --git a/Source/ProjectWeb/src/views/base/UIContentArea.vue b/Source/ProjectWeb/src/views/base/UIContentArea.vue
index 3978afc..4979665 100644
--- a/Source/ProjectWeb/src/views/base/UIContentArea.vue
+++ b/Source/ProjectWeb/src/views/base/UIContentArea.vue
@@ -9,30 +9,48 @@
</template>
<div class="componentVO">
<compoent-index :key="areasName+'componentVO-'+componentVO.oid"
+ :uiBtmType="uiBtmType"
+ :uiContext="uiContext"
:inDialog="inDialog"
+ :canEdit="canEdit"
+ :actionType="actionType"
: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>
</el-collapse-item>
</el-collapse>
- <div v-else class="componentVO">
+ <div v-else-if="areaItem.componentVOs.length==1" class="componentVO">
<compoent-index :key="areasName+'componentVO-'+areaItem.componentVOs[0].oid"
:uiBtmType="uiBtmType"
:uiContext="uiContext"
:inDialog="inDialog"
+ :canEdit="canEdit"
+ :actionType="actionType"
: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>
+ <div v-else>
+ <el-alert
+ class="alert"
+ :closable="false"
+ title=""
+ type="info"
+ description="娌℃湁鍙樉绀虹殑鍐呭锛岃鑱旂郴绠$悊浜哄憳妫�鏌ラ厤缃��">
+ </el-alert>
</div>
</el-tab-pane>
</el-tabs>
@@ -47,30 +65,45 @@
:uiBtmType="uiBtmType"
:uiContext="uiContext"
:inDialog="inDialog"
+ :canEdit="canEdit"
+ :actionType="actionType"
: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>
</el-collapse-item>
</el-collapse>
- <div v-else class="componentVO">
+ <div v-else-if="newAreasData[0].componentVOs.length===1" class="componentVO">
<compoent-index :key="areasName+'componentVO-'+newAreasData[0].componentVOs[0].oid"
:uiBtmType="uiBtmType"
:uiContext="uiContext"
:inDialog="inDialog"
+ :canEdit="canEdit"
+ :actionType="actionType"
:componentVO="newAreasData[0].componentVOs[0]"
:sourceData="newSourceData"
:sourceBtmType="sourceBtmType"
:dataStore="dataStore"
:areasName="areasName"
:paramVOS="paramVOS"
+ @setData="setData"
@setDataStore="setDataStore"
:isShow="true"></compoent-index>
+ </div>
+ <div v-else>
+ <el-alert
+ class="alert"
+ :closable="false"
+ title=""
+ type="info"
+ description="娌℃湁鍙樉绀虹殑鍐呭锛岃鑱旂郴绠$悊浜哄憳妫�鏌ラ厤缃��">
+ </el-alert>
</div>
</div>
<div v-else>
@@ -121,6 +154,15 @@
inDialog: {
type: Boolean,
default: false
+ },
+ canEdit:{
+ //鍐呭鏄惁鍙紪杈�
+ type:Boolean,
+ default:false
+ },
+ actionType:{
+ //鎸夐挳鎿嶄綔绫诲瀷
+ default:""
},
areasName:{
type:String,
@@ -231,6 +273,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