新增视频提示轮询
This commit is contained in:
parent
7eb3f719b4
commit
1fe683f6b0
@ -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)
|
||||
|
||||
@ -337,7 +337,10 @@ const caseManagementApi = {
|
||||
|
||||
|
||||
|
||||
|
||||
// 视频快开提醒
|
||||
videoCall: data => {
|
||||
return service.service.get(`${apiAdmin}api/trace/video/videoCall`, data)
|
||||
},
|
||||
|
||||
//========================end::案件管理======================================
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user