From 707e10bc42e1b9dbb0e5509f8827564cccdc2c63 Mon Sep 17 00:00:00 2001 From: liuxi <357439530@qq.com> Date: Sat, 22 Feb 2025 09:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/image/phone-hang-up.png | Bin 0 -> 1064 bytes .../components/MediationRoom.vue | 21 +++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/assets/image/phone-hang-up.png diff --git a/src/assets/image/phone-hang-up.png b/src/assets/image/phone-hang-up.png new file mode 100644 index 0000000000000000000000000000000000000000..226370fcd658080a2210a2daa4bca496d271e26d GIT binary patch literal 1064 zcmV+@1lRkCP)J| zvM7-SxSB_3LZWEG9M7FvQt;lnXQm&-q`!oZcFxS4|J-}-J?9KSmo8npTqgoL$mGnz zXS!h$gvjk|uH1nA2(l@-9i;2 zqI2x(bkf^kerL0ogE#_e7nC3AkvaA65WuDR_zYqYCL*fy!C{Dcv%mO=PxrQpWr%_9 zx(Ko$z)wL0=M|wbpjH6TI3JuSAWIj1jGxlKmwPOscZsTjzqSl>41>nfSttPz^`S9L0Eio_K7;?5ePO9 zJHm(TM0!365zsmB1HJ|3KGBF-fB^P7FN9!^f@!JTD;2ZNnU3;^x}A5Y!fX2jW~Od?Dxo>722moD(h*$h-N2h4R|yH5zvu8Kwh?uV5M zrLbkNAW*FDlvX!vc9*WlSm!T^pm?Nnwf6{3CDiI7Yr}4YZgQ71ecDB6Dxq>6QfQt^ z0xH+(yuw-!h~D0eaY;oO;;cUH#45mDFI0VmjNx!XrP}RDCwQdH*a|AP zTFI$J75=9`dozvQ3+1?fE2tmpd5uT4btZ0Yt!Sz44hoD9D#cR!&!EP+YC| z_+$Bhi8|gVfc(G8F?SDq4tTBql0(DBV&Ss zG6_x4gD|767it4-f<%<>k3K%6sW1)@Be已暂停自动拨打
开始拨打
{{formattedTime || '00:00'}}
-
+
@@ -442,6 +442,7 @@ export default { } }, async created() { + window.addEventListener('beforeunload', this.handleBeforeUnload); // if(this.$route.query.caseId != null && this.$route.query.caseId != undefined) { // this.caseId = this.$route.query.caseId || null // this.queue = this.$route.query.queue || null @@ -477,8 +478,17 @@ export default { if (this.videoCallInterval) { clearInterval(this.videoCallInterval) } + window.removeEventListener('beforeunload', this.handleBeforeUnload); + }, methods: { + handleBeforeUnload(event) { + // 刷新及离开挂断电话 + if(this.sessionId !='') + { + window.tccc.Call.hungUp({sessionId: this.sessionId}) + } + }, getSetTimeWritCaseList(){ this.updateUnm ++; }, @@ -728,6 +738,8 @@ export default { }, // 挂断会话 async hungUp(type) { + + console.log(this.calling,'挂断会话挂断会话挂断会话挂断会话挂断会话') if (!this.$clickThrottle()) { return } @@ -742,6 +754,7 @@ export default { }, // 自动拨打下一个会话 nextCall() { + console.log('自动拨打下一个会话') if (!this.queue) return if (this.isPause) { this.isPause = false @@ -843,6 +856,12 @@ export default { background: url('~@/assets/image/ai-logo.png') no-repeat; background-size: 100%,100%; } +.el-icon-phone-up{ + width: 29px; + height: 29px; + background: url('~@/assets/image/phone-hang-up.png') no-repeat; + background-size: 100%,100%; +} .bg-F2F3F5{ background-color: #F2F3F5;