From d0a981a703a938487e789d851cb9bd42797a0ce7 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Dec 2021 09:17:01 +0800 Subject: [PATCH] BUG 25276 --- .../AppMeetingNotice/components/addMeeting.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/apps/AppMeetingNotice/components/addMeeting.vue b/src/apps/AppMeetingNotice/components/addMeeting.vue index 6b5f40cd..ef83e1e1 100644 --- a/src/apps/AppMeetingNotice/components/addMeeting.vue +++ b/src/apps/AppMeetingNotice/components/addMeeting.vue @@ -95,8 +95,8 @@ import {mapActions} from "vuex"; export default { name: "addMeeting", components: {AiBack, AiUploader}, - props:{ - params:{ + props: { + params: { type: [Number, String] } }, @@ -126,9 +126,10 @@ export default { files: [], }, userSelect: false, + clickedUserSelect: false } }, - created(){ + created() { document.title = "新增会议"; if (this.params) { this.form.id = this.params; @@ -159,12 +160,15 @@ 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.attendees?.map(e=>e.id) + fromDepartmentId: 0, + type: ["user"], + selectedUserIds: this.form.attendees?.map(e => e.id) }).then(res => { this.change(res?.userList || []) + this.clickedUserSelect = false }) }, fileList(e) {