呼叫成功加队列名称
This commit is contained in:
parent
a56dc745ca
commit
51eac04a62
@ -749,13 +749,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) {
|
||||
@ -767,9 +767,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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user