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) {