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() {