优化体验

This commit is contained in:
yanran200730
2022-01-19 19:31:51 +08:00
parent 887765fe9b
commit 95e05f40d4
2 changed files with 7 additions and 14 deletions

View File

@@ -164,24 +164,21 @@ export default {
methods: {
...mapActions(['selectPrivilegedContact']),
handleSelectUser() {
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
this.clickedUserSelect = true
this.$loading()
this.selectPrivilegedContact({
fromDepartmentId: 0,
selectedTickets: this.form.ticket ? [this.form.ticket] : [],
selectedOpenUserIds: this.form.attendees?.map(e => e.id)
}).then(res => {
uni.hideLoading()
this.form.attendees = res.userList?.map(e => ({id: e.openUserId})) || []
this.form.ticket = res.selectedTicket || ""
this.form.selectCount = res.selectedUserCount
this.clickedUserSelect = false
}).catch(() => {
uni.hideLoading()
this.clickedUserSelect = false
})
setTimeout(() => {
this.clickedUserSelect = false
}, 2000)
},
fileList(e) {
this.form.files = e