找到原因了

This commit is contained in:
shijingjing
2023-03-02 10:43:43 +08:00
parent 81c6619b04
commit 5c34331f26
2 changed files with 2 additions and 14 deletions

View File

@@ -535,12 +535,7 @@ export default {
type: ["user"],
selectedUserIds: this.form.examines?.map(e => e.id)
}).then((res)=>{
if (res.err_msg == "selectEnterpriseContact:ok") {
if(typeof res.result == 'string') {
res.result = JSON.parse(res.result)
}
this.form.examines = res.userList
}
this.form.examines = res.userList
}).catch((err) => {
this.$u.toast(err)
})

View File

@@ -98,14 +98,7 @@ export default {
type: ["department"],
selectedDepartmentIds: this.deptListArr?.map(e => e.id) // 已选部门ID列表
}).then((res)=>{
console.log(res,'企微通讯录');
if(res.err_msg == "selectEnterpriseContact:ok") {
if(typeof res.result == 'string') {
res.result = JSON.parse(res.result)
}
this.deptListArr = res.departmentList
console.log(this.deptListArr, '111');
}
this.deptListArr = res.departmentList
}).catch((err) => {
this.$u.toast(err)
})