diff --git a/src/apps/AppMeetingNotice/components/addMeeting.vue b/src/apps/AppMeetingNotice/components/addMeeting.vue index c149682e..b67ee4ff 100644 --- a/src/apps/AppMeetingNotice/components/addMeeting.vue +++ b/src/apps/AppMeetingNotice/components/addMeeting.vue @@ -158,7 +158,11 @@ export default { methods: { ...mapActions(['selectEnterpriseContact']), handleSelectUser() { - this.selectEnterpriseContact({fromDepartmentId:0,type:["department", "user"]}).then(res => { + this.selectEnterpriseContact({ + fromDepartmentId:0, + type:["department", "user"], + selectedUserIds: this.form.attendees?.map(e=>e.id) + }).then(res => { this.change(res?.userList || []) }) }, diff --git a/src/apps/AppNotification/components/add.vue b/src/apps/AppNotification/components/add.vue index 6e1a0a48..8bf5d38d 100644 --- a/src/apps/AppNotification/components/add.vue +++ b/src/apps/AppNotification/components/add.vue @@ -121,8 +121,13 @@ methods: { ...mapActions(['selectEnterpriseContact']), handleSelectUser() { - this.selectEnterpriseContact({fromDepartmentId:0,type:["department", "user"]}).then(res => { + this.selectEnterpriseContact({ + fromDepartmentId:0, + type:["department", "user"], + selectedUserIds: this.form.persons?.map(e=>e.id) + }).then(res => { this.form.persons = res?.userList || [] + console.log(this.form.persons); }) }, confirm(e){