From b3cca6ecec7e30893099d55d94b3bc5b320d30b6 Mon Sep 17 00:00:00 2001 From: zer0Black Date: Sat, 18 Jun 2022 16:05:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=9F=A5=E8=AF=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=A4=84=E7=90=86=E6=9F=A5=E8=AF=A2=E4=BA=BA=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/PersonnelSelection/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }) },