From 8e6600ade61339d211b6309b974e6498199d28c1 Mon Sep 17 00:00:00 2001 From: liuxi <357439530@qq.com> Date: Fri, 21 Feb 2025 14:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A8=E6=89=93=E7=94=B5=E8=AF=9Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/LayoutContentNew.vue | 10 +++++----- .../mediation-page/components/MediationRoom.vue | 17 ++++++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/pages/mediation-page/components/LayoutContentNew.vue b/src/pages/mediation-page/components/LayoutContentNew.vue index 603ed14..6b1b5c9 100644 --- a/src/pages/mediation-page/components/LayoutContentNew.vue +++ b/src/pages/mediation-page/components/LayoutContentNew.vue @@ -584,11 +584,11 @@ export default { this.visiblemediatRecord = true; this.visiblemediatRecordObj = obj; }, - startOutboundCall(phone, contactId) { - let params = { - phone: phone || null, - contactId: contactId || null - } + startOutboundCall(params, contactId) { + // let params = { + // phone: phone || null, + // contactId: contactId || null + // } this.$emit('startOutboundCall', params) } } diff --git a/src/pages/mediation-page/components/MediationRoom.vue b/src/pages/mediation-page/components/MediationRoom.vue index 1d83d55..ce36497 100644 --- a/src/pages/mediation-page/components/MediationRoom.vue +++ b/src/pages/mediation-page/components/MediationRoom.vue @@ -669,28 +669,31 @@ export default { if (this.queue) { for (let i=0; i < this.queueList.length; i++) { if (this.queueList[i].status.code === 1) { - console.log('定位到可拨打的案件',i) + console.log('定位到可拨打的案件',i,this.queueList[i]) this.index = i this.startOutboundCall() return } } } else { - this.startOutboundCall() + + let phone = this.baseInfo.debtorEntityList.find(item => (item.role == 'DEBTOR' && item.type == '本人')).phone + let contactId = this.baseInfo.debtorEntityList.find(item => (item.role == 'DEBTOR' && item.type == '本人')).id + this.startOutboundCall({phone:phone,contactId:contactId}) } }, // 电话呼出 - async startOutboundCall(phone, contactId) { + async startOutboundCall(params) { // this.phoneNumber = this.queue ? this.queueList[this.index].phone : this.baseInfo.phone if (this.calling) return - this.phoneNumber = phone - if (contactId) this.contactId=contactId + this.phoneNumber = params.phone + this.contactId= params.contactId - console.log('进入呼叫电话:', this.phoneNumber) + // console.log('进入呼叫电话:', this.phoneNumber) try { let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber}) this.sessionId = res.data.sessionId - console.log('呼叫成功', res.data) + // console.log('呼叫成功', res.data) this.calling = true if (res.status === 'success') { this.callingSuccess()