修改bug

This commit is contained in:
liuxi 2025-02-21 15:16:27 +08:00
parent 8e6600ade6
commit c6fda38b2d
2 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@
</div> </div>
<div class="case-debt-info-call flex-row justify-content-between align-items-center"> <div class="case-debt-info-call flex-row justify-content-between align-items-center">
<div class="flex-row align-items-center cursor-pointer" @click="startOutboundCall"> <div class="flex-row align-items-center cursor-pointer" @click="startOutboundCall({phone:baseInfo.debtorEntityList.find(item => item.role == 'DEBTOR' && item.type == '本人').phone,contactId:baseInfo.debtorEntityList.find(item => item.role == 'DEBTOR' && item.type == '本人').id})">
<div class="f32 color-1960F4 mr-8"><i class="el-icon-phone"></i></div> <div class="f32 color-1960F4 mr-8"><i class="el-icon-phone"></i></div>
<div>呼叫被申请人</div> <div>呼叫被申请人</div>
</div> </div>
@ -582,7 +582,9 @@ export default {
}, },
openRecordDialog(obj) { openRecordDialog(obj) {
this.visiblemediatRecord = true; this.visiblemediatRecord = true;
this.visiblemediatRecordObj = obj; let jsonobj = obj
jsonobj.linkedPerson = JSON.parse(obj.linkedPerson)
this.visiblemediatRecordObj = jsonobj;
}, },
startOutboundCall(params, contactId) { startOutboundCall(params, contactId) {
// let params = { // let params = {

View File

@ -669,9 +669,8 @@ export default {
if (this.queue) { if (this.queue) {
for (let i=0; i < this.queueList.length; i++) { for (let i=0; i < this.queueList.length; i++) {
if (this.queueList[i].status.code === 1) { if (this.queueList[i].status.code === 1) {
console.log('定位到可拨打的案件',i,this.queueList[i])
this.index = i this.index = i
this.startOutboundCall() this.startOutboundCall({phone:this.queueList[i].phone,contactId:this.queueList[i].contactId})
return return
} }
} }
@ -688,7 +687,6 @@ export default {
if (this.calling) return if (this.calling) return
this.phoneNumber = params.phone this.phoneNumber = params.phone
this.contactId= params.contactId this.contactId= params.contactId
// console.log('', this.phoneNumber) // console.log('', this.phoneNumber)
try { try {
let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber}) let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber})