From 99a1971b1db9913f6dc3e1ee8a7710dad3d77e6d Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Wed, 23 Mar 2022 22:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E9=80=81=E6=8E=A5?= =?UTF-8?q?=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 | 39 ++++++++++++------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/jero-web/src/components/libraryPush/index.vue b/jero-web/src/components/libraryPush/index.vue index 1155ee025..05fd201f7 100644 --- a/jero-web/src/components/libraryPush/index.vue +++ b/jero-web/src/components/libraryPush/index.vue @@ -10,18 +10,19 @@ :visible="visible" style="height: 100%;overflow: auto;padding-bottom: 53px;"> - -
- - -
+ +
+ + +
{{$t('cancel')}} @@ -52,7 +53,8 @@ confirmLoading: false, selectedKey: [], tableKey: [], - userIds: [] + userIds: [], + departId: '' } }, mounted() { @@ -67,6 +69,15 @@ onSelect(selectedKeys) { this.selectedKey = selectedKeys }, + onExpand(selectedKeys, val) { + if (val.expanded) { + if (this.departId == val.node.value) { + } else { + this.departId = val.node.value + this.queryDepartUserTreeList() + } + } + }, handleCancel() { this.visible = false }, @@ -96,7 +107,7 @@ }, queryDepartUserTreeList() { this.confirmLoading = true - getAction('sys/user/queryDepartUserTreeList', {}).then((res) => { + getAction('sys/user/queryDepartUserTreeList', { departId: this.departId }).then((res) => { this.confirmLoading = false if (res.success) { this.gData = res.result