From 59765cab961847dfd101e69ae6d8d1d501a5284c Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期二, 04 六月 2024 11:10:28 +0800
Subject: [PATCH] 1、ice配置文件上传
---
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,31 +9,49 @@
</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>
<div v-else-if="newAreasData.length===1" style="height:100%;overflow: auto">
@@ -47,31 +65,46 @@
: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>
<el-alert
@@ -122,6 +155,15 @@
type: Boolean,
default: false
},
+ canEdit:{
+ //鍐呭鏄惁鍙紪杈�
+ type:Boolean,
+ default:false
+ },
+ actionType:{
+ //鎸夐挳鎿嶄綔绫诲瀷
+ default:""
+ },
areasName:{
type:String,
default:''
@@ -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.10.0