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 = [] }