添加loading效果
This commit is contained in:
@@ -529,18 +529,22 @@ export default {
|
||||
},
|
||||
|
||||
getDeptUser() {
|
||||
uni.showLoading({title: '加载中'})
|
||||
this.selectEnterpriseContact({
|
||||
fromDepartmentId: 0,
|
||||
mode: "multi",
|
||||
type: ["user"],
|
||||
selectedUserIds: this.form.examines?.map(e => e.id)
|
||||
}).then((res)=>{
|
||||
this.form.examines = res.userList.map(e=> {
|
||||
return {
|
||||
...e,
|
||||
examineUserId: e.id
|
||||
}
|
||||
})
|
||||
if(res?.userList) {
|
||||
this.form.examines = res.userList.map(e=> {
|
||||
return {
|
||||
...e,
|
||||
examineUserId: e.id
|
||||
}
|
||||
})
|
||||
uni.hideLoading()
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.$u.toast(err)
|
||||
})
|
||||
|
||||
@@ -92,13 +92,17 @@ export default {
|
||||
},
|
||||
|
||||
getDeptUser() {
|
||||
uni.showLoading({title: '加载中'})
|
||||
this.selectEnterpriseContact({
|
||||
fromDepartmentId: 0, // 从最上层开始
|
||||
mode: "multi", // 多选
|
||||
type: ["department"],
|
||||
selectedDepartmentIds: this.deptListArr?.map(e => e.id) // 已选部门ID列表
|
||||
}).then((res)=>{
|
||||
this.deptListArr = res.departmentList
|
||||
if(res?.departmentList) {
|
||||
this.deptListArr = res.departmentList
|
||||
}
|
||||
uni.hideLoading()
|
||||
}).catch((err) => {
|
||||
this.$u.toast(err)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user