优化体验
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -110,8 +110,9 @@ export default {
|
||||
methods: {
|
||||
...mapActions(['selectPrivilegedContact', 'wxInvoke']),
|
||||
handleSelectUser() {
|
||||
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
|
||||
this.clickedUserSelect = true
|
||||
// if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
|
||||
// this.clickedUserSelect = true
|
||||
this.$loading()
|
||||
this.selectPrivilegedContact({
|
||||
fromDepartmentId: 0,
|
||||
selectedTickets: this.form.ticket ? [this.form.ticket] : [],
|
||||
@@ -123,13 +124,8 @@ export default {
|
||||
this.form.ticket = res.selectedTicket
|
||||
this.form.selectCount = res.selectedUserCount
|
||||
}).catch(e => {
|
||||
console.log(e)
|
||||
this.clickedUserSelect = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
this.clickedUserSelect = false
|
||||
}, 2000)
|
||||
},
|
||||
confirm(e) {
|
||||
if (e.timestamp < (Date.now() / 1000) || 0) {
|
||||
|
||||
Reference in New Issue
Block a user