From c205347416444e9f0736704a676d201dc7309cff Mon Sep 17 00:00:00 2001 From: tangchengming <445785772@qq.com> Date: Wed, 22 Jan 2025 15:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=91=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mediation-page/components/LayoutContentNew.vue | 11 +++++++++-- src/pages/mediation-page/components/MediationRoom.vue | 8 +++++--- src/pages/mediation-page/components/contactPerson.vue | 6 ++++-- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/pages/mediation-page/components/LayoutContentNew.vue b/src/pages/mediation-page/components/LayoutContentNew.vue index 987d4e1..a244515 100644 --- a/src/pages/mediation-page/components/LayoutContentNew.vue +++ b/src/pages/mediation-page/components/LayoutContentNew.vue @@ -84,7 +84,7 @@
-
+
呼叫被申请人
@@ -132,7 +132,7 @@
- +
@@ -480,6 +480,13 @@ export default { openRecordDialog(obj) { this.visiblemediatRecord = true; this.visiblemediatRecordObj = obj; + }, + startOutboundCall(phone, 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 4832362..b41bd96 100644 --- a/src/pages/mediation-page/components/MediationRoom.vue +++ b/src/pages/mediation-page/components/MediationRoom.vue @@ -113,7 +113,7 @@
- +
@@ -641,9 +641,11 @@ export default { } }, // 电话呼出 - async startOutboundCall() { + async startOutboundCall(phone, contactId) { // this.phoneNumber = this.queue ? this.queueList[this.index].phone : this.baseInfo.phone + if (this.calling) return this.phoneNumber = '13982024318' + if (contactId) this.contactId=contactId console.log('进入呼叫电话:', this.phoneNumber) try { @@ -676,7 +678,7 @@ export default { // 呼叫失败 async callingFail () { try { - let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId}) + let res = await api.callingFail({caseId: this.caseId,contactId: this.contactId}) } catch (err) { } }, // 挂断会话 diff --git a/src/pages/mediation-page/components/contactPerson.vue b/src/pages/mediation-page/components/contactPerson.vue index 605968a..be8f1e0 100644 --- a/src/pages/mediation-page/components/contactPerson.vue +++ b/src/pages/mediation-page/components/contactPerson.vue @@ -31,7 +31,7 @@
- 电话 + 电话 {}); }, - makeCall(item) {}, + makeCall(item) { + this.$emit('startOutboundCall', {phone: item.phone, contactId: item.id}) + }, sendMessages(item) {} } }