人员定位数据结构变更

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) { getPeopleList(e) {
return new Promise(resolve => { return new Promise(resolve => {
this.material.departmentName = e.name this.material.departmentName = e.name
requestFN( if (e && e.id && e.id !== '') {
'/user/listAll', requestFN(
{ '/user/listAll',
DEPARTMENT_ID: e.id {
} DEPARTMENT_ID: e.id
).then((data) => { }
this.dic.userList = data.userList ).then((data) => {
this.material.userInfo = '' this.dic.userList = data.userList
resolve(true) this.material.userInfo = ''
}).catch((e) => { resolve(true)
console.log(e) }).catch((e) => {
resolve(true) console.log(e)
}) resolve(true)
})
}
}) })
}, },
chooseUser(e) { chooseUser(e) {