|
@@ -65,7 +65,38 @@ export default {
|
|
moment(course.endTime)
|
|
moment(course.endTime)
|
|
);
|
|
);
|
|
},
|
|
},
|
|
|
|
+ async checkExamInProgress() {
|
|
|
|
+ try {
|
|
|
|
+ // 断点续考
|
|
|
|
+ const examingRes = (await this.$http.get(
|
|
|
|
+ "/api/ecs_oe_student/examControl/checkExamInProgress"
|
|
|
|
+ )).data;
|
|
|
|
+ if (examingRes) {
|
|
|
|
+ this.$Spin.show({
|
|
|
|
+ render: () => {
|
|
|
|
+ return <div style="font-size: 24px">正在进入断点续考...</div>;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.$router.push(
|
|
|
|
+ `/online-exam/exam/${examingRes.examId}/examRecordData/${
|
|
|
|
+ examingRes.examRecordDataId
|
|
|
|
+ }/order/1` +
|
|
|
|
+ (examingRes.faceVerifyMinute
|
|
|
|
+ ? `?faceVerifyMinute=${examingRes.faceVerifyMinute}`
|
|
|
|
+ : "")
|
|
|
|
+ );
|
|
|
|
+ setTimeout(() => this.$Spin.hide(), 1000);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.$router.push("/online-exam");
|
|
|
|
+ } catch (error) {
|
|
|
|
+ this.$Message.error("获取断点续考信息异常,退出登录");
|
|
|
|
+ this.logout();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async enterPractice(course) {
|
|
async enterPractice(course) {
|
|
|
|
+ await this.checkExamInProgress();
|
|
this.$router.push(
|
|
this.$router.push(
|
|
`/online-exam/exam/${course.examId}/overview?examStudentId=${
|
|
`/online-exam/exam/${course.examId}/overview?examStudentId=${
|
|
course.examStudentId
|
|
course.examStudentId
|