diff --git a/jero-web/src/components/PersonnelSelection/index.vue b/jero-web/src/components/PersonnelSelection/index.vue index 58d7a1e0e..51c2f5a7a 100644 --- a/jero-web/src/components/PersonnelSelection/index.vue +++ b/jero-web/src/components/PersonnelSelection/index.vue @@ -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 }) },