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

View File

@@ -363,6 +363,8 @@ const store = new Vuex.Store({
mode: "multi", mode: "multi",
...params ...params
}, res => { }, res => {
console.log(111)
console.log(res)
if (res.err_msg == "selectPrivilegedContact:ok") { if (res.err_msg == "selectPrivilegedContact:ok") {
if (typeof res.result == 'string') { if (typeof res.result == 'string') {
res.result = JSON.parse(res.result) res.result = JSON.parse(res.result)