diff --git a/src/sass/AppNotification/add.vue b/src/sass/AppNotification/add.vue index fb05da9e..4ee76287 100644 --- a/src/sass/AppNotification/add.vue +++ b/src/sass/AppNotification/add.vue @@ -94,6 +94,7 @@ export default { second: true, timestamp: true, }, + clickedUserSelect: false } }, @@ -108,12 +109,17 @@ export default { methods: { ...mapActions(['selectEnterpriseContact']), handleSelectUser() { + if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器") + this.clickedUserSelect = true this.selectEnterpriseContact({ fromDepartmentId: 0, type: ["user"], selectedUserIds: this.form.persons?.map(e => e.id) }).then(res => { this.form.persons = res?.userList || [] + this.clickedUserSelect = false + }).catch(() => { + this.clickedUserSelect = false }) }, confirm(e) {