选人增加防抖
This commit is contained in:
@@ -94,6 +94,7 @@ export default {
|
|||||||
second: true,
|
second: true,
|
||||||
timestamp: true,
|
timestamp: true,
|
||||||
},
|
},
|
||||||
|
clickedUserSelect: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -108,12 +109,17 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['selectEnterpriseContact']),
|
...mapActions(['selectEnterpriseContact']),
|
||||||
handleSelectUser() {
|
handleSelectUser() {
|
||||||
|
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
|
||||||
|
this.clickedUserSelect = true
|
||||||
this.selectEnterpriseContact({
|
this.selectEnterpriseContact({
|
||||||
fromDepartmentId: 0,
|
fromDepartmentId: 0,
|
||||||
type: ["user"],
|
type: ["user"],
|
||||||
selectedUserIds: this.form.persons?.map(e => e.id)
|
selectedUserIds: this.form.persons?.map(e => e.id)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.form.persons = res?.userList || []
|
this.form.persons = res?.userList || []
|
||||||
|
this.clickedUserSelect = false
|
||||||
|
}).catch(() => {
|
||||||
|
this.clickedUserSelect = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user