From a9bbbe822377536e6f3374b05e2b64b12b2f188c Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 27 五月 2024 10:25:43 +0800
Subject: [PATCH] action文档

---
 Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue |   91 ++++++++-------------------------------------
 1 files changed, 16 insertions(+), 75 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue
index 72354eb..2e4dc1f 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue
@@ -13,13 +13,13 @@
       </template>
       <!--top鍖哄煙鎸夐挳-->
       <template slot="menuLeft" slot-scope="scope">
-        <dynamic-button :butttonList="componentVO.buttons" :selectList="TreeSelectList" LocationType="top"
+        <dynamic-button :componentVO="componentVO" :butttonList="componentVO.buttons" :dataStore="TreeSelectList" :sourceData="sourceData" LocationType="top"
                         type="TreeTable"></dynamic-button>
       </template>
 
       <!--menu鍖哄煙鎸夐挳-->
       <template slot="menu" slot-scope="scope">
-        <dynamic-button :butttonList="componentVO.buttons" :scope="scope" :selectList="TreeSelectList" LocationType="menu" default="default"
+        <dynamic-button :componentVO="componentVO" :butttonList="componentVO.buttons" :scope="scope" :dataStore="TreeSelectList" :sourceData="sourceData" LocationType="menu" default="default"
                         type="TreeTable"></dynamic-button>
       </template>
     </avue-crud>
@@ -30,6 +30,14 @@
 export default {
   name: "dynamic-TreeTable",
   props: {
+    //ui涓婁笅鏂囩殑涓氬姟绫诲瀷锛堟垨閾炬帴绫诲瀷锛�
+    uiBtmType: {
+      type: String
+    },
+    //ui涓婁笅鏂�
+    uiContext:{
+      type: String
+    },
     componentVO: {
       type: Object,
       default: {}
@@ -107,80 +115,10 @@
             prop: 'comment'
           }
         ],
-        rowKey: 'id',
-        rowParentKey: 'parentId',
-
+        rowKey: this.componentVO.treeTableDefineVO.treeCurrentField || 'oid',
+        rowParentKey: this.componentVO.treeTableDefineVO.treeParentField || 'parentOid',
       },
-      TreeData: [
-        {
-          id: 10,
-          event: '浜嬩欢1',
-          timeLine: 50,
-          comment: '鏃�'
-        },
-        {
-          id: 1,
-          event: '浜嬩欢1',
-          timeLine: 100,
-          comment: '鏃�',
-          children: [
-            {
-              parentId: 1,
-              id: 2,
-              event: '浜嬩欢2',
-              timeLine: 10,
-              comment: '鏃�'
-            },
-            {
-              parentId: 1,
-              id: 3,
-              event: '浜嬩欢3',
-              timeLine: 90,
-              comment: '鏃�',
-              children: [
-                {
-                  parentId: 3,
-                  id: 4,
-                  event: '浜嬩欢4',
-                  timeLine: 5,
-                  comment: '鏃�'
-                },
-                {
-                  parentId: 3,
-                  id: 5,
-                  event: '浜嬩欢5',
-                  timeLine: 10,
-                  comment: '鏃�'
-                }
-              ]
-            }
-          ]
-        },
-        {
-          id: 10,
-          event: '浜嬩欢3',
-          timeLine: 50,
-          comment: '鏃�'
-        },
-        {
-          id: 10,
-          event: '浜嬩欢4',
-          timeLine: 50,
-          comment: '鏃�'
-        },
-        {
-          id: 10,
-          event: '浜嬩欢5',
-          timeLine: 50,
-          comment: '鏃�'
-        },
-        {
-          id: 10,
-          event: '浜嬩欢6',
-          timeLine: 50,
-          comment: '鏃�'
-        },
-      ],
+      TreeData: [],
       TreeSelectList: [],
       // 琛ㄥ崟鏁版嵁
       formList: [
@@ -400,6 +338,9 @@
         dataStore:row
       });
     },
+    handleRefresh(){
+      this.$refs.treeTable.refreshTable();
+    }
   }
 }
 </script>

--
Gitblit v1.9.3