人员查询组件处理查询人的数据
This commit is contained in:
@@ -164,7 +164,11 @@
|
|||||||
},
|
},
|
||||||
getUserAndDepart() {
|
getUserAndDepart() {
|
||||||
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
|
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
|
||||||
this.gData = res || []
|
if (res){
|
||||||
|
this.gData = res.filter(ele => ele.flag === 'DEPART');
|
||||||
|
} else {
|
||||||
|
this.gData = []
|
||||||
|
}
|
||||||
this.visibleTree = true
|
this.visibleTree = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user