人员查询组件处理查询人的数据

This commit is contained in:
zer0Black
2022-06-18 16:05:36 +08:00
parent 6d3b3a51c4
commit e201e915ef
@@ -164,7 +164,11 @@
},
getUserAndDepart() {
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
})
},