修改自动拨打bug

This commit is contained in:
liuxi 2025-02-28 10:22:37 +08:00
parent 5b767fe61e
commit 23053a70cc
3 changed files with 46 additions and 35 deletions

View File

@ -183,12 +183,15 @@ export default {
this.mrObj.nextFollowDate = this.visiblemediatRecordObj.nextFollowDate this.mrObj.nextFollowDate = this.visiblemediatRecordObj.nextFollowDate
this.mrObj.linkedPerson = this.visiblemediatRecordObj.linkedPerson this.mrObj.linkedPerson = this.visiblemediatRecordObj.linkedPerson
// console.log(this.visiblemediatRecordObj,'this.visiblemediatRecordObj') // console.log(this.visiblemediatRecordObj,'this.visiblemediatRecordObj')
this.visiblemediatRecordObj.files.forEach(item =>{ if(this.visiblemediatRecordObj.files != undefined)
this.fileList.push({ {
url: item, this.visiblemediatRecordObj.files.forEach(item =>{
fileName: '文件', this.fileList.push({
url: item,
fileName: '文件',
})
}) })
}) }
} }
if(this.mrObj.id == ''){ if(this.mrObj.id == ''){
// //

View File

@ -489,10 +489,27 @@ export default {
}, },
methods: { methods: {
handleBeforeUnload(event) { handleBeforeUnload(event) {
// this.handleBack()
if(this.calling){ },
window.tccc.Call.hungUp({sessionId: this.sessionId}) // 退
} async handleBack() {
try {
if(this.timerInterval) { //
clearInterval(this.timerInterval); //
}
if (this.videoCallInterval) {
clearInterval(this.videoCallInterval)
}
this.isPause = true
if(this.calling){
let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
this.$router.push('/mediation-management')
} else {
this.$router.push('/mediation-management')
}
} catch (err) {}
// this.$route.query.sourcePage == 'mediationManagement'
// this.$router.push('/mediation-management')
}, },
getSetTimeWritCaseList(){ getSetTimeWritCaseList(){
this.updateUnm ++; this.updateUnm ++;
@ -600,26 +617,7 @@ export default {
// } // }
// }) // })
}, },
// 退
async handleBack() {
try {
if(this.timerInterval) { //
clearInterval(this.timerInterval); //
}
if (this.videoCallInterval) {
clearInterval(this.videoCallInterval)
}
if(this.calling){
let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
console.log('挂断电话', res)
this.$router.push('/mediation-management')
} else {
this.$router.push('/mediation-management')
}
} catch (err) {}
// this.$route.query.sourcePage == 'mediationManagement'
// this.$router.push('/mediation-management')
},
// //
getmediate_record() { getmediate_record() {
this.mediaterecordpm.caseId = this.caseId this.mediaterecordpm.caseId = this.caseId
@ -728,13 +726,22 @@ export default {
} }
console.log('queueList==================',this.queueList) console.log('queueList==================',this.queueList)
if (this.queue) { if (this.queue) {
for (let i=0; i < this.queueList.length; i++) {
if(this.queueList.find(item=>{return item.status.code == 1})!=undefined)
{
for (let i=0; i < this.queueList.length; i++) {
if (this.queueList[i].status.code === 1) { if (this.queueList[i].status.code === 1) {
this.index = i this.index = i
this.startOutboundCall({phone:this.queueList[i].phone,contactId:this.queueList[i].contactId,queueName:this.queueList[i].queueName}) this.startOutboundCall({phone:this.queueList[i].phone,contactId:this.queueList[i].contactId,queueName:this.queueList[i].queueName})
return return
}
} }
} }
else
{
this.$message.warning('该队列已呼叫完成!')
}
} else { } else {
let phone = this.baseInfo.debtorEntityList.find(item => (item.role == 'DEBTOR' && item.type == '本人')).phone let phone = this.baseInfo.debtorEntityList.find(item => (item.role == 'DEBTOR' && item.type == '本人')).phone
@ -794,6 +801,7 @@ export default {
} }
try { try {
let res = await window.tccc.Call.hungUp({sessionId: this.sessionId}) let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
console.log('挂断会话-hungUp')
this.calling = false this.calling = false
this.resetTimer() this.resetTimer()
this.nextCall() this.nextCall()

View File

@ -60,7 +60,7 @@
setTimeout(() => { setTimeout(() => {
hideLoading() hideLoading()
}, 200); }, 200);
console.log('请求返回结果:', response) // console.log('请求返回结果:', response)
// 处理Blob格式的数据 // 处理Blob格式的数据
const res = response.data const res = response.data
@ -77,7 +77,7 @@
reject(dealResponseError(result)) reject(dealResponseError(result))
} else { } else {
resolve(response) resolve(response)
console.log('请求返回结果11111', response) // console.log('请求返回结果11111', response)
} }
} }
}) })