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

This commit is contained in:
zer0Black
2022-06-18 16:18:13 +08:00
parent 4682901bb6
commit b3cca6ecec
@@ -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
})
},