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) {} } }