|
@@ -67,6 +67,14 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
async enterExam(course) {
|
|
|
+ const ipLimit = (await this.$http.get(
|
|
|
+ "/api/ecs_exam_work/exam/ipLimit/" + course.examId
|
|
|
+ )).data;
|
|
|
+ if (ipLimit.limited) {
|
|
|
+ this.$Message.error("IP受限,请到中心指定地点进行考试!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// TODO: 待确认. 前端控制展示“是否进入考试”。后端控制不在有效期内不准访问。
|
|
|
if (course.faceEnable) {
|
|
|
// open face check modal, then
|