This commit is contained in:
张运江 2025-02-27 18:03:37 +08:00
commit 841d82aade

View File

@ -750,13 +750,13 @@ export default {
this.contactId= params.contactId
console.log('进入呼叫电话:', params)
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
console.log('呼叫成功', res.data)
this.calling = true
if (res.status === 'success') {
this.callingSuccess()
this.callingSuccess(params.queueName)
this.startTimer()
}
} catch (err) {
@ -768,9 +768,9 @@ export default {
} finally {}
},
//
async callingSuccess () {
async callingSuccess (queueName) {
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)
// this.getmediate_record()
this.$refs.layoutContent.getmediate_record();