呼叫成功加队列名称

This commit is contained in:
liuxi 2025-02-27 17:23:54 +08:00
parent a56dc745ca
commit 51eac04a62

View File

@ -749,13 +749,13 @@ export default {
this.contactId= params.contactId this.contactId= params.contactId
console.log('进入呼叫电话:', params) console.log('进入呼叫电话:', params)
try { try {
let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber, uuid: this.caseId,queueName:params.queueName}) let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber, uuid: this.caseId})
this.sessionId = res.data.sessionId this.sessionId = res.data.sessionId
console.log('呼叫成功', res.data) console.log('呼叫成功', res.data)
this.calling = true this.calling = true
if (res.status === 'success') { if (res.status === 'success') {
this.callingSuccess() this.callingSuccess(params.queueName)
this.startTimer() this.startTimer()
} }
} catch (err) { } catch (err) {
@ -767,9 +767,9 @@ export default {
} finally {} } finally {}
}, },
// //
async callingSuccess () { async callingSuccess (queueName) {
try { try {
let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId,callingSessionId:this.sessionId}) let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId,callingSessionId:this.sessionId,queueName:queueName})
console.log('呼叫成功请求接口==callingSuccess', res) console.log('呼叫成功请求接口==callingSuccess', res)
// this.getmediate_record() // this.getmediate_record()
this.$refs.layoutContent.getmediate_record(); this.$refs.layoutContent.getmediate_record();