This commit is contained in:
yanran200730
2022-01-19 16:16:38 +08:00
parent 90f4ae81d3
commit e54ad6fa63

View File

@@ -23,7 +23,7 @@
<span>请选择</span> <span>请选择</span>
</template> </template>
<template v-else> <template v-else>
已选择<em v-text="form.persons.length"/> 已选择<em>{{ selectedUserCount }}</em>
</template> </template>
<div class="right-arrow"/> <div class="right-arrow"/>
</div> </div>
@@ -82,6 +82,7 @@ export default {
releaseTime: null, releaseTime: null,
files: [], files: [],
}, },
selectedUserCount: 0,
flag: null, flag: null,
options: { options: {
year: true, year: true,
@@ -115,9 +116,13 @@ export default {
selectedTickets: this.form.ticket, selectedTickets: this.form.ticket,
selectedOpenUserIds: this.form.persons?.map(e => e.id) selectedOpenUserIds: this.form.persons?.map(e => e.id)
}).then(res => { }).then(res => {
console.log('ticket-----')
console.log(res.selectedTicket) console.log(res.selectedTicket)
console.log('返回结果')
console.log(res)
this.form.persons = res.userList?.map(e => ({id: e.openUserId})) || [] this.form.persons = res.userList?.map(e => ({id: e.openUserId})) || []
this.form.ticket = res?.selectedTicket this.form.ticket = res?.selectedTicket
this.selectedUserCount = res.SelectResult.selectedUserCount
this.clickedUserSelect = false this.clickedUserSelect = false
}).catch(() => { }).catch(() => {
this.clickedUserSelect = false this.clickedUserSelect = false