From 4994a4f75e977e9bf9c1cef23d7c443b33112bc5 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期日, 07 四月 2024 16:55:31 +0800
Subject: [PATCH] pom文件修改

---
 Source/ProjectWeb/src/components/dynamic-components/index.vue |   86 +++++++++++++++++++++++++++++++++++++++----
 1 files changed, 78 insertions(+), 8 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/index.vue b/Source/ProjectWeb/src/components/dynamic-components/index.vue
index eeb1065..f13ad1d 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/index.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/index.vue
@@ -1,10 +1,62 @@
 <template>
-  <div>
-    <dynamic-table v-if="componentVO.uiComponentType=='table'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-table>
-    <dynamic-form v-else-if="componentVO.uiComponentType=='form'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-form>
-    <dynamic-tree v-else-if="componentVO.uiComponentType=='tree'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-tree>
-    <dynamic-custom v-else-if="componentVO.uiComponentType=='custom'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-custom>
-  </div>
+  <dynamic-table v-if="componentVO.uiComponentType=='table'"
+                 :key="areasName+'table-'+componentVO.oid"
+                 :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>
+  <dynamic-tree v-else-if="componentVO.uiComponentType=='tree'"
+                :key="areasName+'tree-'+componentVO.oid"
+                :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=='customer'"  :inDialog="inDialog"
+                  :key="areasName+'custom-'+componentVO.oid"
+                  :componentVO="componentVO"
+                  :sourceData="sourceData"
+                  :dataStore="dataStore"
+                  :areasName="areasName"
+                  :paramVOS="paramVOS"
+                  @setDataStore="setDataStore"
+                  :isShow="isShow">
+
+  </dynamic-custom>
 </template>
 
 <script>
@@ -12,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,
@@ -23,6 +76,10 @@
     inDialog: {
       type: Boolean,
       default: false
+    },
+    areasName:{
+      type:String,
+      default:''
     },
     sourceData:{
       //鑿滃崟婧愭暟鎹垨鑰呭脊绐楁椂鎸夐挳鎵�灞炲尯鍩熺殑涓婁竴鍖哄煙閫変腑鏁版嵁
@@ -37,8 +94,21 @@
     paramVOS:{
       type:Object,
       default: {}
-    }
+    },
+    isShow: {
+      //鎵�鍦ㄥ尯鍩熸槸鍚﹀凡鏄剧ず锛岄拡瀵箃ab鍜宑ollapse
+      type: Boolean,
+      default: true
+    },
   },
+  created() {
+  },
+  methods:{
+    setDataStore(value) {
+      this.$emit("setDataStore", value);
+      this.dataStore = value.dataStore;
+    }
+  }
 }
 </script>
 

--
Gitblit v1.9.3