This commit is contained in:
wanglei
2021-12-03 15:21:18 +08:00
parent fe31129da2
commit 17b02e6903
2 changed files with 11 additions and 2 deletions

View File

@@ -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 || [])
})
},

View File

@@ -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){