From 100079be55493c439bfef2d4792bfa0d9f429bd1 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 29 十月 2024 15:14:43 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/plt-web/plt-web-ui/src/views/system/department/index.vue | 9 +++++++-- 1 files changed, 7 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 a87fcba..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,12 +95,15 @@ ...basicOption, rowKey: 'oid', rowParentKey: 'parentId', + expandRowKeys:[], selection: false, addBtn: false, editBtn: false, delBtn: false, gridBtn: false, + menuWidth:280, highlightCurrentRow: true, + calcHeight: -60, column: column }, tableLoading: false, @@ -114,7 +117,9 @@ selection: false, refreshBtn: false, addBtn: false, + header :false, menu: false, + calcHeight:80, column: [ { label: '閮ㄩ棬', @@ -152,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]; }) }, @@ -160,6 +166,7 @@ return items.map(item => { // 杞崲褰撳墠鑺傜偣鐨勫睘鎬� const formList = { + expanded:item.expanded, oid: item.oid, id: item.attributes.id, name: item.attributes.name, @@ -203,7 +210,6 @@ done(); } }).catch(err => { - console.log(err); loading(); }) @@ -231,7 +237,6 @@ done(); } }).catch(err => { - console.log(err); loading(); }) }, -- Gitblit v1.9.3