|
@@ -144,23 +144,20 @@
|
|
|
icon="icon icon-text"
|
|
|
@click="toSendTextMsg"
|
|
|
title="发送文字提醒"
|
|
|
- v-if="detailInfo.statusCode === 'ANSWERING'"
|
|
|
+ v-if="actionValid"
|
|
|
></el-button>
|
|
|
<el-button
|
|
|
class="el-icon-btn"
|
|
|
type="primary"
|
|
|
icon="icon icon-audio"
|
|
|
@click="toSendAudioMsg"
|
|
|
- v-if="detailInfo.statusCode === 'ANSWERING'"
|
|
|
+ v-if="actionValid"
|
|
|
></el-button>
|
|
|
<el-popover
|
|
|
class="warning-body-head-call"
|
|
|
placement="bottom-start"
|
|
|
v-model="popoverVisible"
|
|
|
- v-if="
|
|
|
- detailInfo.monitorVideoSource &&
|
|
|
- detailInfo.statusCode === 'ANSWERING'
|
|
|
- "
|
|
|
+ v-if="detailInfo.monitorVideoSource && actionValid"
|
|
|
>
|
|
|
<el-button type="success" @click="answer(0)" :loading="holding"
|
|
|
>语音通话</el-button
|
|
@@ -395,6 +392,12 @@ export default {
|
|
|
!this.detailInfo.breachStatus && this.detailInfo.breachStatus !== null
|
|
|
);
|
|
|
},
|
|
|
+ actionValid() {
|
|
|
+ return (
|
|
|
+ this.detailInfo.statusCode &&
|
|
|
+ ["FIRST_PREPARE", "ANSWERING"].includes(this.detailInfo.statusCode)
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
$route: {
|
|
@@ -414,7 +417,8 @@ export default {
|
|
|
this.holding = false;
|
|
|
|
|
|
// 学生正在考试,开启定时更新
|
|
|
- if (this.detailInfo.statusCode === "ANSWERING") {
|
|
|
+ // 自动更新新增正在候考阶段
|
|
|
+ if (["FIRST_PREPARE", "ANSWERING"].includes(this.detailInfo.statusCode)) {
|
|
|
this.loopRunning = true;
|
|
|
this.clearLoopSetTs();
|
|
|
this.loopSetTs.push(
|