修改推送不掉接口得问题
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user