修改推送不掉接口得问题

This commit is contained in:
qq787203167
2022-03-31 17:31:54 +08:00
parent 3d3b11c8e2
commit b64b8aff1f
@@ -84,7 +84,7 @@
this.selectedKey = selectedKeys this.selectedKey = selectedKeys
}, },
onExpand(selectedKeys, val) { onExpand(selectedKeys, val) {
if (this.searchModel != '') { if (this.searchModel == '' || !this.searchModel) {
if (val.expanded) { if (val.expanded) {
if (this.departId == val.node.value) { if (this.departId == val.node.value) {
} else { } else {
@@ -122,7 +122,9 @@
}) })
}, },
onSearch(e) { onSearch(e) {
console.log(e) this.gData = []
this.departId = ''
this.visibleTree = false
if (e) { if (e) {
this.getUserAndDepart() this.getUserAndDepart()
} else { } else {
@@ -132,6 +134,7 @@
getUserAndDepart() { getUserAndDepart() {
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => { getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
this.gData = res || [] this.gData = res || []
this.visibleTree = true
}) })
}, },
queryDepartUserTreeList() { queryDepartUserTreeList() {