This commit is contained in:
yanran200730
2022-01-19 16:57:06 +08:00
parent e5a693fd37
commit 51a3160947
2 changed files with 2 additions and 7 deletions

View File

@@ -108,8 +108,6 @@ export default {
methods: {
...mapActions(['selectPrivilegedContact']),
handleSelectUser() {
console.log(this.form.ticket)
console.log(this.form.persons)
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
this.clickedUserSelect = true
this.selectPrivilegedContact({
@@ -117,16 +115,11 @@ export default {
selectedTickets: this.form.ticket ? [this.form.ticket] : [],
selectedOpenUserIds: this.form.persons ? 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.selectedUserCount
this.clickedUserSelect = false
}).catch(e => {
console.log('错误信息')
console.log(e)
this.clickedUserSelect = false
})