From 8f3571198ebaf0c1af4490438c3d95856f15bb67 Mon Sep 17 00:00:00 2001 From: tdg930622 <51816549+tdg930622@users.noreply.github.com> Date: Fri, 17 Jan 2025 14:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BC=E5=85=A5=E3=80=81=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E3=80=81=E5=85=B3=E8=81=94=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VoiceCallDialog.vue | 23 ++++++++++++++--------- src/pages/login/index.vue | 2 +- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/components/VoiceCallDialog.vue b/src/components/VoiceCallDialog.vue index 73abe1f..7de527d 100644 --- a/src/components/VoiceCallDialog.vue +++ b/src/components/VoiceCallDialog.vue @@ -13,7 +13,7 @@
-
{{ acceptDialog.phone }}
+
{{ incomingCallPhone }}
@@ -66,7 +66,9 @@
-
{{item.contact}}
+
+ {{indexS === 0 ?'':','}}{{itemS.name}} +
关联并进入案件
@@ -97,9 +99,9 @@
-
{{ acceptDialog.phone }}
-
-
+
{{ incomingCallPhone }}
+
+
{{ zoomActive ? '缩小' : '放大' }} @@ -125,6 +127,7 @@ export default { return { zoomActive: true,// 布局状态 + incomingCallPhone: '', answerSts: false,// 接听状态 queryParam: { phone: '', @@ -142,6 +145,7 @@ export default { initLoad() { let phoneNumber = this.acceptDialog.phone; phoneNumber = phoneNumber.slice(4); + this.incomingCallPhone = phoneNumber; this.queryParam.phone = phoneNumber; this.getCaseList(); }, @@ -159,7 +163,7 @@ export default { // 呼入接听 async handleAccept() { try { - console.log({ sessionId: this.acceptDialog.sessionId }, '---主动接听') + // console.log({ sessionId: this.acceptDialog.sessionId }, '---主动接听') await window.tccc.Call.accept({ sessionId: this.acceptDialog.sessionId }) this.answerSts = true; } catch (error) { @@ -169,7 +173,7 @@ export default { // 挂断 async handleHungUp() { try { - console.log({ sessionId: this.acceptDialog.sessionId }, '---主动挂断') + // console.log({ sessionId: this.acceptDialog.sessionId }, '---主动挂断') await window.tccc.Call.hungUp({ sessionId: this.acceptDialog.sessionId }) this.$emit('update:acceptDialog', null) } catch (error) { @@ -191,8 +195,9 @@ export default { // 关联案件-详情 async handleRelevance(item) { try { - voiceCall.caseMatch({caseId: item.caseId, sessionId: this.acceptDialog.sessionId}).then(res => { - this.$router.push(`/mediation-page?sourcePage=sourcePage&caseId=${item.caseId}`); + voiceCall.caseMatch({caseId: item.id, callingSessionId: this.acceptDialog.sessionId}).then(res => { + // console.log(res,'---关联案件') + this.$router.push(`/mediation-page?sourcePage=sourcePage&caseId=${item.id}`); }) } catch (error) { console.error(`${error}`) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index cf76e6d..1150ad9 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -98,7 +98,7 @@ export default { codeBtnDisabled: false, ruleForm: { telephone: '', - account: '18381082759', + account: '17608289327', password: 'trydo@123456', smsCode: '', },