|
@@ -204,7 +204,7 @@ export default {
|
|
const user = { ...data, ...student };
|
|
const user = { ...data, ...student };
|
|
this.updateUser(user);
|
|
this.updateUser(user);
|
|
window.localStorage.setItem("user-for-reload", JSON.stringify(user));
|
|
window.localStorage.setItem("user-for-reload", JSON.stringify(user));
|
|
- this.$router.push("/online-exam");
|
|
|
|
|
|
+ await this.checkExamInProgress();
|
|
} catch (error) {
|
|
} catch (error) {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
content: "获取学生信息失败,请重试!",
|
|
content: "获取学生信息失败,请重试!",
|
|
@@ -215,6 +215,36 @@ export default {
|
|
this.errorInfo = data.desc;
|
|
this.errorInfo = data.desc;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ 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;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
closeApp() {
|
|
closeApp() {
|
|
window.close();
|
|
window.close();
|
|
}
|
|
}
|