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/components/dynamic-components/index.vue |   40 +++++++++++++++++++++++++---------------
 1 files changed, 25 insertions(+), 15 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/index.vue b/Source/ProjectWeb/src/components/dynamic-components/index.vue
index 28e8724..54e1ff2 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/index.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/index.vue
@@ -1,44 +1,36 @@
 <template>
-  <dynamic-table v-if="componentVO.uiComponentType=='table'"
+  <dynamic-table v-if="componentVO.uiComponentType=='table' || componentVO.uiComponentType=='TreeTable'"
                  :uiBtmType="uiBtmType"
                  :uiContext="uiContext"
                  :key="areasName+'table-'+componentVO.oid"
                  :inDialog="inDialog"
+                 :canEdit="canEdit"
+                 :actionType="actionType"
                  :componentVO="componentVO"
                  :sourceData="sourceData"
                  :sourceBtmType="sourceBtmType"
                  :dataStore="dataStore"
                  :areasName="areasName"
                  :paramVOS="paramVOS"
+                 @setData="setData"
                  @setDataStore="setDataStore"
                  :isShow="isShow">
 
   </dynamic-table>
-  <dynamicTreeTable v-else-if="componentVO.uiComponentType=='TreeTable'"
-                    :uiBtmType="uiBtmType"
-                    :uiContext="uiContext"
-                 :key="areasName+'table-'+componentVO.oid"
-                 :inDialog="inDialog"
-                 :componentVO="componentVO"
-                 :sourceData="sourceData"
-                    :sourceBtmType="sourceBtmType"
-                    :dataStore="dataStore"
-                 :areasName="areasName"
-                 :paramVOS="paramVOS"
-                    @setDataStore="setDataStore"
-                 :isShow="isShow">
-  </dynamicTreeTable>
   <dynamic-form v-else-if="componentVO.uiComponentType=='form'"
                 :uiBtmType="uiBtmType"
                 :uiContext="uiContext"
                 :key="areasName+'form-'+componentVO.oid"
                 :inDialog="inDialog"
+                :canEdit="canEdit"
+                :actionType="actionType"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
                 :sourceBtmType="sourceBtmType"
                 :dataStore="dataStore"
                 :areasName="areasName"
                 :paramVOS="paramVOS"
+                @setData="setData"
                 @setDataStore="setDataStore"
                 :isShow="isShow">
 
@@ -48,12 +40,15 @@
                 :uiContext="uiContext"
                 :key="areasName+'tree-'+componentVO.oid"
                 :inDialog="inDialog"
+                :canEdit="canEdit"
+                :actionType="actionType"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
                 :sourceBtmType="sourceBtmType"
                 :dataStore="dataStore"
                 :areasName="areasName"
                 :paramVOS="paramVOS"
+                @setData="setData"
                 @setDataStore="setDataStore"
                 :isShow="isShow">
   </dynamic-tree>
@@ -61,6 +56,8 @@
                   :uiBtmType="uiBtmType"
                   :uiContext="uiContext"
                   :inDialog="inDialog"
+                  :canEdit="canEdit"
+                  :actionType="actionType"
                   :key="areasName+'custom-'+componentVO.oid"
                   :componentVO="componentVO"
                   :sourceData="sourceData"
@@ -68,6 +65,7 @@
                   :dataStore="dataStore"
                   :areasName="areasName"
                   :paramVOS="paramVOS"
+                  @setData="setData"
                   @setDataStore="setDataStore"
                   :isShow="isShow">
 
@@ -99,6 +97,15 @@
     inDialog: {
       type: Boolean,
       default: false
+    },
+    canEdit:{
+      //鍐呭鏄惁鍙紪杈�
+      type:Boolean,
+      default:false
+    },
+    actionType:{
+      //鎸夐挳鎿嶄綔绫诲瀷
+      default:""
     },
     areasName:{
       type:String,
@@ -134,6 +141,9 @@
     setDataStore(value) {
       this.$emit("setDataStore", value);
       this.dataStore = value.dataStore;
+    },
+    setData(value) {
+      this.$emit("setData", value);
     }
   }
 }

--
Gitblit v1.9.3