Compare commits

...

2 Commits

Author SHA1 Message Date
liujun 11d828c2ca Merge remote-tracking branch 'origin/pet' into pet 2024-04-25 09:18:04 +08:00
liujun 6a869fcad9 人员定位数据结构变更 2024-04-25 09:17:41 +08:00
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) {