diff --git a/src/pages/mediation-page/components/MediationRoom.vue b/src/pages/mediation-page/components/MediationRoom.vue
index aee7b7f..2e27f4f 100644
--- a/src/pages/mediation-page/components/MediationRoom.vue
+++ b/src/pages/mediation-page/components/MediationRoom.vue
@@ -49,8 +49,8 @@
-
暂停拨打
-
已暂停自动拨打
+
暂停拨打
+
已暂停自动拨打
开始拨打
{{formattedTime || '00:00'}}
@@ -372,7 +372,8 @@ export default {
startTime: 0,
elapsedTime: 0,
timerInterval: null,
- isRunning: false,
+ isRunning: false, // 自动通话计时器是否在运行
+
contactId: '',
// 未接来电
missedCallVisible: false,
@@ -801,12 +802,12 @@ export default {
},
// 自动拨打下一个会话
nextCall() {
- console.log('自动拨打下一个会话')
- console.log('this.queue:',this.queue, 'this.isPause:', this.isPause)
+ console.log('进入自动拨打下一个会话,','queue=',this.queue, ' isPause=', this.isPause)
if (!this.queue) return
if (this.isPause) {
this.isPause = false
this.calling = false
+ console.log('已暂停拨打下一个会话')
return
}
const that = this
@@ -815,9 +816,8 @@ export default {
if (that.index <= that.queueList.length - 1) {
that.caseId = String(that.queueList[that.index].caseId) || ''
that.getCaseInfoById()
- console.log(that.queueList[that.index],'that.queueList[that.index]')
+ console.log('将会自动拨打下一个会话====',that.queueList[that.index])
that.startOutboundCall({phone:that.queueList[that.index].phone,contactId:that.queueList[that.index].contactId})
-
}
}, 5000)
},
@@ -871,16 +871,16 @@ export default {
}
},
pauseTimer() {
- if (this.isRunning) {
+ if (!this.isPause) {
this.isPause=true
- clearInterval(this.timerInterval);
- this.isRunning = false;
+ console.log('暂停自动拨打,isPause=',this.isPause)
}
},
resetTimer() {
clearInterval(this.timerInterval);
this.elapsedTime = 0;
this.isRunning = false;
+ console.log('清楚计时器,isPause=',this.isPause)
},
// 未接来电