|
@@ -401,6 +401,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
this.getNow();
|
|
this.getNow();
|
|
|
|
+ this.spinShow = false;
|
|
if (this.disableTheCourse(course)) {
|
|
if (this.disableTheCourse(course)) {
|
|
this.logger({ page: "在线考试列表页面", detail: "未到考试开放时间!" });
|
|
this.logger({ page: "在线考试列表页面", detail: "未到考试开放时间!" });
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
@@ -408,9 +409,29 @@ export default {
|
|
duration: 15,
|
|
duration: 15,
|
|
closable: true,
|
|
closable: true,
|
|
});
|
|
});
|
|
- this.spinShow = false;
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (course.showUndertaking) {
|
|
|
|
+ this.logger({ page: "在线考试列表页面", detail: "考生承诺书" });
|
|
|
|
+ const res = await new Promise((resolve) => {
|
|
|
|
+ this.$Modal.confirm({
|
|
|
|
+ title: "考生承诺书",
|
|
|
|
+ content: course.undertaking,
|
|
|
|
+ onOk: () => {
|
|
|
|
+ this.logger({ action: "考生承诺书", detail: "承诺同意" });
|
|
|
|
+ resolve(true);
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ onCancel: () => {
|
|
|
|
+ this.logger({ action: "考生承诺书", detail: "拒绝承诺" });
|
|
|
|
+ resolve(false);
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ if (!res) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
this.spinShow = true;
|
|
this.spinShow = true;
|
|
this.processingMessage = "正在检测IP合法性...";
|
|
this.processingMessage = "正在检测IP合法性...";
|