添加loading效果

This commit is contained in:
shijingjing
2023-03-02 13:48:03 +08:00
parent 1476dd08f1
commit c424f8256a
2 changed files with 15 additions and 7 deletions

View File

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