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/UIContentViewerInDialog.vue |   42 +++++++++++++++++++++++++++++++++++++-----
 1 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue b/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
index c54bf61..0bd27af 100644
--- a/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
+++ b/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
@@ -12,7 +12,8 @@
                      :canEdit="canEdit"
                      :sourceData="sourceData"
                      :sourceBtmType="btmType"
-                     areas-name="northArea"
+                     areas-name="northAreaInDialog"
+                     @setData="setData"
                      @setDataStore="setDataStore">
       </UIContentArea>
     </el-header>
@@ -31,8 +32,9 @@
                        :canEdit="canEdit"
                        :sourceData="sourceData"
                        :sourceBtmType="btmType"
-                       areas-name="westArea"
+                       areas-name="westAreaInDialog"
                        cradStyle=""
+                       @setData="setData"
                        @setDataStore="setDataStore">
         </UIContentArea>
       </el-aside>
@@ -48,8 +50,9 @@
                          :canEdit="canEdit"
                          :sourceData="checkedData.westAreaInDialog.data[checkedData.westAreaInDialog.data.length-1]"
                          :sourceBtmType="checkedData.westAreaInDialog.DefineVOBtmType"
-                         areas-name="centerArea"
+                         areas-name="centerAreaInDialog"
                          cradStyle=""
+                         @setData="setData"
                          @setDataStore="setDataStore">
           </UIContentArea>
         </el-main>
@@ -65,8 +68,9 @@
                          :canEdit="canEdit"
                          :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>
@@ -116,8 +120,8 @@
   },
   data() {
     return {
+      //鍚勫尯鍩熺殑閫変腑鏁版嵁
       checkedData:{
-        //鍚勫尯鍩熼�変腑鏁版嵁
         northAreaInDialog:{
           DefineVOBtmType:'',
           data:[{}]
@@ -133,6 +137,29 @@
         southAreaInDialog:{
           DefineVOBtmType:'',
           data:[{}]
+        }
+      },
+      //鍚勫尯鍩熸暟鎹�
+      data:{
+        northAreaInDialog:{
+          type:'',
+          btmType:'',
+          data:null
+        },
+        westAreaInDialog:{
+          type:'',
+          btmType:'',
+          data:null
+        },
+        centerAreaInDialog:{
+          type:'',
+          btmType:'',
+          data:null
+        },
+        southAreaInDialog:{
+          type:'',
+          btmType:'',
+          data:null
         }
       },
       uiDefineVO: {},
@@ -174,6 +201,11 @@
         this.centerHeight = '100%';
       }
     },
+    setData(value) {
+      this.data[value.area].btmType = value.btmType;
+      this.data[value.area].data = value.data;
+      this.data[value.area].type = value.type;
+    },
     setDataStore(value) {
       this.checkedData[value.area].DefineVOBtmType = value.btmType;
       this.checkedData[value.area].data = value.dataStore;

--
Gitblit v1.9.3