From 9917e97580a9c43b88aba553776a54f33a11c9d2 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 28 十月 2024 18:12:03 +0800
Subject: [PATCH] 修改bug

---
 Source/plt-web/plt-web-ui/src/views/system/department/index.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/system/department/index.vue b/Source/plt-web/plt-web-ui/src/views/system/department/index.vue
index 82e6fcc..bcc41bd 100644
--- a/Source/plt-web/plt-web-ui/src/views/system/department/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/system/department/index.vue
@@ -95,6 +95,7 @@
         ...basicOption,
         rowKey: 'oid',
         rowParentKey: 'parentId',
+        expandRowKeys:[],
         selection: false,
         addBtn: false,
         editBtn: false,
@@ -156,6 +157,7 @@
     getTableList() {
       refTree({queryAllLevel: true, 'extandParamsMap[showAllDepartmentNode]': true}).then(res => {
         this.tableData = this.departDtaFormAtter(res.data.treeData);
+        this.option.expandRowKeys=[res.data.treeData[0].oid];
       })
     },
 
@@ -164,6 +166,7 @@
       return items.map(item => {
         // 杞崲褰撳墠鑺傜偣鐨勫睘鎬�
         const formList = {
+          expanded:item.expanded,
           oid: item.oid,
           id: item.attributes.id,
           name: item.attributes.name,
@@ -207,7 +210,6 @@
           done();
         }
       }).catch(err => {
-        console.log(err);
         loading();
       })
 
@@ -235,7 +237,6 @@
           done();
         }
       }).catch(err => {
-        console.log(err);
         loading();
       })
     },

--
Gitblit v1.9.3