新增视频提示轮询

This commit is contained in:
张运江 2025-02-18 17:27:37 +08:00
parent 7eb3f719b4
commit 1fe683f6b0
2 changed files with 23 additions and 4 deletions

View File

@ -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)

View File

@ -337,7 +337,10 @@ const caseManagementApi = {
// 视频快开提醒
videoCall: data => {
return service.service.get(`${apiAdmin}api/trace/video/videoCall`, data)
},
//========================end::案件管理======================================
}