From 8be3182372eb774dce8f9c97a0b51c03bda165c7 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 08 四月 2024 15:33:11 +0800
Subject: [PATCH] UI展示

---
 Source/ProjectWeb/src/components/dynamic-components/index.vue |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/index.vue b/Source/ProjectWeb/src/components/dynamic-components/index.vue
index 313370c..f13ad1d 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/index.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/index.vue
@@ -4,18 +4,34 @@
                  :inDialog="inDialog"
                  :componentVO="componentVO"
                  :sourceData="sourceData"
+                 :dataStore="dataStore"
                  :areasName="areasName"
                  :paramVOS="paramVOS"
+                 @setDataStore="setDataStore"
                  :isShow="isShow">
 
   </dynamic-table>
+  <dynamicTreeTable v-else-if="componentVO.uiComponentType=='TreeTable'"
+                 :key="areasName+'table-'+componentVO.oid"
+                 :inDialog="inDialog"
+                 :componentVO="componentVO"
+                 :sourceData="sourceData"
+                    :dataStore="dataStore"
+                 :areasName="areasName"
+                 :paramVOS="paramVOS"
+                    @setDataStore="setDataStore"
+                 :isShow="isShow">
+
+  </dynamicTreeTable>
   <dynamic-form v-else-if="componentVO.uiComponentType=='form'"
                 :key="areasName+'form-'+componentVO.oid"
                 :inDialog="inDialog"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
+                :dataStore="dataStore"
                 :areasName="areasName"
                 :paramVOS="paramVOS"
+                @setDataStore="setDataStore"
                 :isShow="isShow">
 
   </dynamic-form>
@@ -24,17 +40,20 @@
                 :inDialog="inDialog"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
+                :dataStore="dataStore"
                 :areasName="areasName"
                 :paramVOS="paramVOS"
+                @setDataStore="setDataStore"
                 :isShow="isShow">
-
   </dynamic-tree>
-  <dynamic-custom v-else-if="componentVO.uiComponentType=='custom'"  :inDialog="inDialog"
+  <dynamic-custom v-else-if="componentVO.uiComponentType=='customer'"  :inDialog="inDialog"
                   :key="areasName+'custom-'+componentVO.oid"
                   :componentVO="componentVO"
                   :sourceData="sourceData"
+                  :dataStore="dataStore"
                   :areasName="areasName"
                   :paramVOS="paramVOS"
+                  @setDataStore="setDataStore"
                   :isShow="isShow">
 
   </dynamic-custom>
@@ -45,9 +64,10 @@
 import dynamicForm from "@/components/dynamic-components/dynamic-form"
 import dynamicTree from "@/components/dynamic-components/dynamic-tree"
 import dynamicCustom from "@/components/dynamic-components/dynamic-custom"
+import dynamicTreeTable from "@/components/dynamic-components/dynamic-TreeTable"
 export default {
   name: "dynamicIndex",
-  components:{dynamicCustom, dynamicTree, dynamicForm, dynamicTable},
+  components:{dynamicCustom, dynamicTree, dynamicForm, dynamicTable,dynamicTreeTable  },
   props:{
     componentVO:{
       type:Object,
@@ -66,6 +86,11 @@
       type:Object,
       default: {}
     },
+    dataStore:{
+      //寮圭獥鏃舵寜閽墍灞炲尯鍩熼�変腑鏁版嵁
+      type:Array,
+      default: []
+    },
     paramVOS:{
       type:Object,
       default: {}
@@ -76,6 +101,14 @@
       default: true
     },
   },
+  created() {
+  },
+  methods:{
+    setDataStore(value) {
+      this.$emit("setDataStore", value);
+      this.dataStore = value.dataStore;
+    }
+  }
 }
 </script>
 

--
Gitblit v1.9.3