From 51636e9cd814bddba7a9b4ff21b5bc94e95fb6cb Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 14 五月 2024 09:21:36 +0800
Subject: [PATCH] 配置文档

---
 Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue b/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
index 2b4043b..cfc0423 100644
--- a/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
+++ b/Source/ProjectWeb/src/views/base/UIContentViewerInDialog.vue
@@ -10,6 +10,7 @@
                      :paramVOS="paramVOS"
                      :inDialog="inDialog"
                      :canEdit="canEdit"
+                     :actionType="actionType"
                      :sourceData="sourceData"
                      :sourceBtmType="btmType"
                      areas-name="northAreaInDialog"
@@ -30,6 +31,7 @@
                        :paramVOS="paramVOS"
                        :inDialog="inDialog"
                        :canEdit="canEdit"
+                       :actionType="actionType"
                        :sourceData="sourceData"
                        :sourceBtmType="btmType"
                        areas-name="westAreaInDialog"
@@ -48,8 +50,9 @@
                          :paramVOS="paramVOS"
                          :inDialog="inDialog"
                          :canEdit="canEdit"
-                         :sourceData="checkedData.westAreaInDialog.data[checkedData.westAreaInDialog.data.length-1]"
-                         :sourceBtmType="checkedData.westAreaInDialog.DefineVOBtmType"
+                         :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"
@@ -66,6 +69,7 @@
                          :paramVOS="paramVOS"
                          :inDialog="inDialog"
                          :canEdit="canEdit"
+                         :actionType="actionType"
                          :sourceData="checkedData.centerAreaInDialog.data[checkedData.centerAreaInDialog.data.length-1]"
                          :sourceBtmType="checkedData.centerAreaInDialog.DefineVOBtmType"
                          areas-name="southAreaInDialog"
@@ -102,6 +106,10 @@
       //鍐呭鏄惁鍙紪杈�
       type:Boolean,
       default:false
+    },
+    actionType:{
+      //鎸夐挳鎿嶄綔绫诲瀷
+      default:"add"
     },
     sourceData:{
       //鎵�灞炲尯鍩熺殑涓婁竴鍖哄煙閫変腑鏁版嵁
@@ -200,6 +208,13 @@
       } 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;

--
Gitblit v1.9.3