From d5f65a731126e37bd3d1498b54db7d6093fec5b2 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 25 一月 2024 11:00:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
index 4f35749..59a9275 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -49,7 +49,7 @@
                      :defaultExpandAll="false"
                      :option="Treeoption"
                      class="classifyTree"
-                     style="height: 690px"
+                     style="height: 610px"
                      @node-click="nodeClick"
           >
             <template slot-scope="{ node, data }" class="el-tree-node__label">
@@ -123,6 +123,7 @@
         </el-dialog>
         <!-- 鍒嗙被鎺堟潈瀵硅瘽妗�-->
         <classify-auth-dialog
+          :TreeNode="TreeEditObj"
           :classifyData="classifyData"
           :visible.sync="classifyAuthVisible"
         ></classify-auth-dialog>
@@ -512,6 +513,7 @@
       Treedata: [],
       CloneTreedata: [],
       Treeoption: {
+        height:'auto',
         addBtn: false,
         editBtn: false,
         delBtn: false,
@@ -708,7 +710,7 @@
     },
     treeStyle() {
       return {
-        height: this.btnAuthList.length > 0 ? '620px' : '785px',
+        height: this.allButtons ? '610px' : '690px',
       };
     },
     crudTreeOption() {
@@ -778,7 +780,7 @@
         this.$message.warning('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹紒')
         return;
       }
-      this.classifyData = this.nodeClickList;
+      // this.classifyData = this.nodeClickList;
       this.classifyAuthVisible = true;
     },
     // 鏁版嵁鎺堟潈瀵硅瘽妗嗘墦寮�
@@ -787,7 +789,7 @@
         this.$message.warning('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹紒')
         return;
       }
-      this.classifyData = this.nodeClickList;
+      // this.classifyData = this.nodeClickList;
       this.dataAuthVisible = true;
     },
     flowingDependHandler() {
@@ -1151,8 +1153,10 @@
     },
     //鏍戠偣鍑讳簨浠�
     async nodeClick(data) {
-        const response = this.findTheTopLevelNode(data,this.Treedata)
-        console.log('response',response.label)
+      const response = this.findTheTopLevelNode(data,this.Treedata)
+      this.classifyData = response;
+      // console.log(response)
+      // console.log('response',response.attributes.id)
       this.allButtons = true;
       getAuthButtonList({classifyId: data.oid, code: "classifyTree", authType: "classify_auth"}).then(res => {
         this.btnAuthList = res.data.data;

--
Gitblit v1.9.3