From b64b8aff1f97cb235000c563480cf00baa5ef04a Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 31 Mar 2022 17:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E9=80=81=E4=B8=8D?= =?UTF-8?q?=E6=8E=89=E6=8E=A5=E5=8F=A3=E5=BE=97=E9=97=AE=E9=A2=98?= 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, 5 insertions(+), 2 deletions(-) diff --git a/jero-web/src/components/libraryPush/index.vue b/jero-web/src/components/libraryPush/index.vue index bd9651981..bb327695c 100644 --- a/jero-web/src/components/libraryPush/index.vue +++ b/jero-web/src/components/libraryPush/index.vue @@ -84,7 +84,7 @@ this.selectedKey = selectedKeys }, onExpand(selectedKeys, val) { - if (this.searchModel != '') { + if (this.searchModel == '' || !this.searchModel) { if (val.expanded) { if (this.departId == val.node.value) { } else { @@ -122,7 +122,9 @@ }) }, onSearch(e) { - console.log(e) + this.gData = [] + this.departId = '' + this.visibleTree = false if (e) { this.getUserAndDepart() } else { @@ -132,6 +134,7 @@ getUserAndDepart() { getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => { this.gData = res || [] + this.visibleTree = true }) }, queryDepartUserTreeList() {