From a9bbbe822377536e6f3374b05e2b64b12b2f188c Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 27 五月 2024 10:25:43 +0800
Subject: [PATCH] action文档

---
 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