diff --git a/src/pages/mediation-page/components/MediationRoom.vue b/src/pages/mediation-page/components/MediationRoom.vue index 8ad164f..479136e 100644 --- a/src/pages/mediation-page/components/MediationRoom.vue +++ b/src/pages/mediation-page/components/MediationRoom.vue @@ -377,7 +377,8 @@ export default { }, // 视频提醒 videoReminderVisible: false, - videoReminderData: {} + videoReminderData: {}, + videoCallInterval: null, }; }, computed: { @@ -453,6 +454,11 @@ export default { } else { await this.callingCaseList() //案件列表 } + this.videoCallInterval = setInterval(() => { + console.log('进入videoCall---------setInterval') + this.videoCall() + }, 30000); + const that = this window.tccc.on('sessionEnded', (options) => { console.log('监听挂断事件', options) @@ -460,13 +466,14 @@ export default { that.resetTimer() that.nextCall() }) - - }, beforeDestroy() { if(this.timerInterval) { //如果定时器还在运行 或者直接关闭,不用判断 clearInterval(this.timerInterval); //关闭 } + if (this.videoCallInterval) { + clearInterval(this.videoCallInterval) + } }, methods: { debtorEntityCardNo(datalist, len) { @@ -484,6 +491,15 @@ export default { return {cardNo: datacardno.substring(0, len), phone: dataphone.substring(0, len)}; }, + // 视频快开提醒 + videoCall() { + api.videoCall({}).then(res => { + console.log('视频提前提醒:',res) + if (!res.code) { + this.videoReminderData = res ? JSON.parse(res) : {} + } + }) + }, // 获取详情 async getCaseInfoById() { // this.$loading(true) diff --git a/src/services/caseManagement.js b/src/services/caseManagement.js index 6e71609..0dfca9d 100644 --- a/src/services/caseManagement.js +++ b/src/services/caseManagement.js @@ -337,7 +337,10 @@ const caseManagementApi = { - + // 视频快开提醒 + videoCall: data => { + return service.service.get(`${apiAdmin}api/trace/video/videoCall`, data) + }, //========================end::案件管理====================================== }