设置创建人处理查询人的数据

This commit is contained in:
zer0Black
2022-06-18 16:18:13 +08:00
parent 873a776f10
commit 4682901bb6
4 changed files with 46 additions and 1 deletions
+5 -1
View File
@@ -136,7 +136,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
})
},