From ef0ce02ceda84a9fe574c8b3205ace16e5904a01 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 24 Mar 2022 11:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E9=80=81=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/libraryPush/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jero-web/src/components/libraryPush/index.vue b/jero-web/src/components/libraryPush/index.vue index 325eb4dd1..37bcd3bdd 100644 --- a/jero-web/src/components/libraryPush/index.vue +++ b/jero-web/src/components/libraryPush/index.vue @@ -20,6 +20,7 @@ @select="onSelect" @check="checkChange" @expand="onExpand" + :defaultExpandedKeys="defaultExpandedKeys" > @@ -54,7 +55,8 @@ selectedKey: [], tableKey: [], userIds: [], - departId: '' + departId: '', + defaultExpandedKeys:[], } }, mounted() { @@ -111,6 +113,8 @@ let gData = JSON.parse(JSON.stringify(this.gData)) if (gData && gData.length > 0) { gData = JSON.stringify(gData) + }else { + gData = '' } postAction('sys/user/queryDepartUserTreeList', { departId: this.departId, @@ -119,6 +123,7 @@ this.confirmLoading = false if (res.success) { this.gData = res.result + this.defaultExpandedKeys = [this.departId] } else { this.gData = [] }