人员选择器需求调整

This commit is contained in:
艾贤凌
2022-01-18 18:24:30 +08:00
parent db905fa4e3
commit 0b4d61853e
2 changed files with 2 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ export default {
fromDepartmentId: 0,
selectedOpenUserIds: this.form.attendees?.map(e => e.id)
}).then(res => {
this.change(res?.userList || [])
this.form.attendees = res.userList?.map(e => ({id: e.openUserId})) || []
this.form.ticket = res?.selectedTicket || ""
this.clickedUserSelect = false
}).catch(() => {
@@ -177,9 +177,6 @@ export default {
fileList(e) {
this.form.files = e
},
change(e) {
this.form.attendees = e
},
beforeNoticeChange(e) {
this.form.noticeBefore = e.detail.value
},

View File

@@ -113,7 +113,7 @@ export default {
fromDepartmentId: 0,
selectedOpenUserIds: this.form.persons?.map(e => e.id)
}).then(res => {
this.form.persons = res?.userList || []
this.form.persons = res.userList?.map(e => ({id: e.openUserId})) || []
this.form.ticket = res?.selectedTicket
this.clickedUserSelect = false
}).catch(() => {