From 33855a1961d581727cfbf59230085e6b95cc549c Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 29 四月 2024 15:56:37 +0800
Subject: [PATCH] action

---
 Source/ProjectWeb/src/components/dynamic-components/index.vue |   25 ++++++++++---------------
 1 files changed, 10 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..5f62cb1 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/index.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/index.vue
@@ -1,9 +1,10 @@
 <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"
                  :componentVO="componentVO"
                  :sourceData="sourceData"
                  :sourceBtmType="sourceBtmType"
@@ -14,25 +15,12 @@
                  :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"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
                 :sourceBtmType="sourceBtmType"
@@ -48,6 +36,7 @@
                 :uiContext="uiContext"
                 :key="areasName+'tree-'+componentVO.oid"
                 :inDialog="inDialog"
+                :canEdit="canEdit"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
                 :sourceBtmType="sourceBtmType"
@@ -61,6 +50,7 @@
                   :uiBtmType="uiBtmType"
                   :uiContext="uiContext"
                   :inDialog="inDialog"
+                  :canEdit="canEdit"
                   :key="areasName+'custom-'+componentVO.oid"
                   :componentVO="componentVO"
                   :sourceData="sourceData"
@@ -100,6 +90,11 @@
       type: Boolean,
       default: false
     },
+    canEdit:{
+      //鍐呭鏄惁鍙紪杈�
+      type:Boolean,
+      default:false
+    },
     areasName:{
       type:String,
       default:''

--
Gitblit v1.9.3