From 6a869fcad9a722ce72ed60e58d3c91a7dbfb8ccc Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 25 Apr 2024 09:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=AE=9A=E4=BD=8D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=93=E6=9E=84=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oneCompany/reflection/components/info.vue | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/views/oneCompany/reflection/components/info.vue b/src/views/oneCompany/reflection/components/info.vue index 219d312..0560385 100644 --- a/src/views/oneCompany/reflection/components/info.vue +++ b/src/views/oneCompany/reflection/components/info.vue @@ -273,19 +273,21 @@ export default { getPeopleList(e) { return new Promise(resolve => { this.material.departmentName = e.name - requestFN( - '/user/listAll', - { - DEPARTMENT_ID: e.id - } - ).then((data) => { - this.dic.userList = data.userList - this.material.userInfo = '' - resolve(true) - }).catch((e) => { - console.log(e) - resolve(true) - }) + if (e && e.id && e.id !== '') { + requestFN( + '/user/listAll', + { + DEPARTMENT_ID: e.id + } + ).then((data) => { + this.dic.userList = data.userList + this.material.userInfo = '' + resolve(true) + }).catch((e) => { + console.log(e) + resolve(true) + }) + } }) }, chooseUser(e) {