BUG 25276

This commit is contained in:
aixianling
2021-12-08 09:17:01 +08:00
parent 040831a04b
commit d0a981a703

View File

@@ -126,6 +126,7 @@ export default {
files: [], files: [],
}, },
userSelect: false, userSelect: false,
clickedUserSelect: false
} }
}, },
created() { created() {
@@ -159,12 +160,15 @@ 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.attendees?.map(e => e.id) selectedUserIds: this.form.attendees?.map(e => e.id)
}).then(res => { }).then(res => {
this.change(res?.userList || []) this.change(res?.userList || [])
this.clickedUserSelect = false
}) })
}, },
fileList(e) { fileList(e) {