人员定位数据结构变更

20240528Test
liujun 2024-04-25 09:17:41 +08:00
parent dccc44e644
commit 6a869fcad9
1 changed files with 15 additions and 13 deletions

View File

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