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