修改推送不掉接口得问题

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