|
@@ -68,6 +68,7 @@ export default {
|
|
process.env.NODE_ENV === "production" &&
|
|
process.env.NODE_ENV === "production" &&
|
|
/^\d+$/.test(this.$route.query.faceVerifyMinute)
|
|
/^\d+$/.test(this.$route.query.faceVerifyMinute)
|
|
) {
|
|
) {
|
|
|
|
+ // TODO: 根据remaintime,计算是否还继续做活检。后台也可以计算。
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
this.$Message.info("30秒后开始活体检测");
|
|
this.$Message.info("30秒后开始活体检测");
|
|
@@ -335,6 +336,11 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.submitLock = true;
|
|
this.submitLock = true;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (this.$route.name !== "OnlineExamingHome") {
|
|
|
|
+ // 非考试页,不在交卷
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
try {
|
|
try {
|
|
const examId = this.$route.params.examId;
|
|
const examId = this.$route.params.examId;
|
|
const examRecordDataId = this.$route.params.examRecordDataId;
|
|
const examRecordDataId = this.$route.params.examRecordDataId;
|
|
@@ -342,11 +348,6 @@ export default {
|
|
"/api/ecs_oe_student/examControl/endExam"
|
|
"/api/ecs_oe_student/examControl/endExam"
|
|
);
|
|
);
|
|
if (res.status === 200) {
|
|
if (res.status === 200) {
|
|
- this.updateExamResult({
|
|
|
|
- examRecordDataId: res.data.examRecordDataId,
|
|
|
|
- isWarn: res.data.isWarn,
|
|
|
|
- objectiveScore: res.data.objectiveScore
|
|
|
|
- });
|
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: `/online-exam/exam/${examId}/examRecordData/${examRecordDataId}/end`
|
|
path: `/online-exam/exam/${examId}/examRecordData/${examRecordDataId}/end`
|
|
});
|
|
});
|