From 2ee312d3c399ddc62a06189367fa3879fca7daef Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 10 五月 2024 15:35:24 +0800
Subject: [PATCH] UI展示

---
 Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue |   70 +++++++++++++++++++++++++++++++---
 1 files changed, 63 insertions(+), 7 deletions(-)

diff --git a/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue b/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
index 3c680d3..cfc0423 100644
--- a/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
+++ b/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
@@ -9,9 +9,12 @@
                      :dataStore="checkedData.northAreaInDialog.data"
                      :paramVOS="paramVOS"
                      :inDialog="inDialog"
+                     :canEdit="canEdit"
+                     :actionType="actionType"
                      :sourceData="sourceData"
                      :sourceBtmType="btmType"
-                     areas-name="northArea"
+                     areas-name="northAreaInDialog"
+                     @setData="setData"
                      @setDataStore="setDataStore">
       </UIContentArea>
     </el-header>
@@ -27,10 +30,13 @@
                        :dataStore="checkedData.westAreaInDialog.data"
                        :paramVOS="paramVOS"
                        :inDialog="inDialog"
+                       :canEdit="canEdit"
+                       :actionType="actionType"
                        :sourceData="sourceData"
                        :sourceBtmType="btmType"
-                       areas-name="westArea"
+                       areas-name="westAreaInDialog"
                        cradStyle=""
+                       @setData="setData"
                        @setDataStore="setDataStore">
         </UIContentArea>
       </el-aside>
@@ -43,10 +49,13 @@
                          :dataStore="checkedData.centerAreaInDialog.data"
                          :paramVOS="paramVOS"
                          :inDialog="inDialog"
-                         :sourceData="checkedData.westAreaInDialog.data[checkedData.westAreaInDialog.data.length-1]"
-                         :sourceBtmType="checkedData.westAreaInDialog.DefineVOBtmType"
-                         areas-name="centerArea"
+                         :canEdit="canEdit"
+                         :actionType="actionType"
+                         :sourceData="(uiDefineVO.westAreas && uiDefineVO.westAreas.length>0)?checkedData.westAreaInDialog.data[checkedData.westAreaInDialog.data.length-1]:sourceData"
+                         :sourceBtmType="(uiDefineVO.westAreas && uiDefineVO.westAreas.length>0)?checkedData.westAreaInDialog.DefineVOBtmType:btmType"
+                         areas-name="centerAreaInDialog"
                          cradStyle=""
+                         @setData="setData"
                          @setDataStore="setDataStore">
           </UIContentArea>
         </el-main>
@@ -59,10 +68,13 @@
                          :dataStore="checkedData.southAreaInDialog.data"
                          :paramVOS="paramVOS"
                          :inDialog="inDialog"
+                         :canEdit="canEdit"
+                         :actionType="actionType"
                          :sourceData="checkedData.centerAreaInDialog.data[checkedData.centerAreaInDialog.data.length-1]"
                          :sourceBtmType="checkedData.centerAreaInDialog.DefineVOBtmType"
-                         areas-name="southArea"
+                         areas-name="southAreaInDialog"
                          cradStyle=""
+                         @setData="setData"
                          @setDataStore="setDataStore">
           </UIContentArea>
         </el-footer>
@@ -90,6 +102,15 @@
       type: Boolean,
       default: false
     },
+    canEdit:{
+      //鍐呭鏄惁鍙紪杈�
+      type:Boolean,
+      default:false
+    },
+    actionType:{
+      //鎸夐挳鎿嶄綔绫诲瀷
+      default:"add"
+    },
     sourceData:{
       //鎵�灞炲尯鍩熺殑涓婁竴鍖哄煙閫変腑鏁版嵁
       type:Object,
@@ -107,8 +128,8 @@
   },
   data() {
     return {
+      //鍚勫尯鍩熺殑閫変腑鏁版嵁
       checkedData:{
-        //鍚勫尯鍩熼�変腑鏁版嵁
         northAreaInDialog:{
           DefineVOBtmType:'',
           data:[{}]
@@ -124,6 +145,29 @@
         southAreaInDialog:{
           DefineVOBtmType:'',
           data:[{}]
+        }
+      },
+      //鍚勫尯鍩熸暟鎹�
+      data:{
+        northAreaInDialog:{
+          type:'',
+          DefineVO:null,
+          data:null
+        },
+        westAreaInDialog:{
+          type:'',
+          DefineVO:null,
+          data:null
+        },
+        centerAreaInDialog:{
+          type:'',
+          DefineVO:null,
+          data:null
+        },
+        southAreaInDialog:{
+          type:'',
+          DefineVO:null,
+          data:null
         }
       },
       uiDefineVO: {},
@@ -164,6 +208,18 @@
       } else {
         this.centerHeight = '100%';
       }
+      if(this.uiDefineVO.westAreas && this.uiDefineVO.westAreas.length>0){
+        this.checkedData.westAreaInDialog.data=this.dataStore;
+      }else if(this.uiDefineVO.centerAreas && this.uiDefineVO.centerAreas.length>0){
+        this.checkedData.centerAreaInDialog.data=this.dataStore;
+      }else {
+        this.checkedData.southAreaInDialog.data=this.dataStore;
+      }
+    },
+    setData(value) {
+      this.data[value.area].DefineVO = value.currentDefineVO;
+      this.data[value.area].data = value.data;
+      this.data[value.area].type = value.type;
     },
     setDataStore(value) {
       this.checkedData[value.area].DefineVOBtmType = value.btmType;

--
Gitblit v1.9.3