|
@@ -181,6 +181,10 @@
|
|
@on-close="resumeEnterExam"
|
|
@on-close="resumeEnterExam"
|
|
/>
|
|
/>
|
|
</Modal>
|
|
</Modal>
|
|
|
|
+ <CommittmentDialog
|
|
|
|
+ ref="committmentDialogRef"
|
|
|
|
+ :content="committmentHtmlContent"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -196,6 +200,7 @@ import {
|
|
const { mapState, mapMutations } = createNamespacedHelpers("examHomeModule");
|
|
const { mapState, mapMutations } = createNamespacedHelpers("examHomeModule");
|
|
import CheckComputer from "./CheckComputer";
|
|
import CheckComputer from "./CheckComputer";
|
|
import { tryLimit } from "@/utils/tryLimit";
|
|
import { tryLimit } from "@/utils/tryLimit";
|
|
|
|
+import CommittmentDialog from "./CommittmentDialog.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "EcsOnlineList",
|
|
name: "EcsOnlineList",
|
|
@@ -203,6 +208,7 @@ export default {
|
|
"ecs-online-exam-result-list": OnlineExamResultList,
|
|
"ecs-online-exam-result-list": OnlineExamResultList,
|
|
OnlineExamFaceCheckModal,
|
|
OnlineExamFaceCheckModal,
|
|
CheckComputer,
|
|
CheckComputer,
|
|
|
|
+ CommittmentDialog,
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
courses: {
|
|
courses: {
|
|
@@ -234,6 +240,7 @@ export default {
|
|
enterButtonClicked: false,
|
|
enterButtonClicked: false,
|
|
overFlowStyle: false,
|
|
overFlowStyle: false,
|
|
selectExamState: "EXAMING",
|
|
selectExamState: "EXAMING",
|
|
|
|
+ committmentHtmlContent: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -413,20 +420,9 @@ export default {
|
|
}
|
|
}
|
|
if (course.showUndertaking) {
|
|
if (course.showUndertaking) {
|
|
this.logger({ page: "在线考试列表页面", detail: "考生承诺书" });
|
|
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);
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
|
|
+ const res = await new Promise((resolve, reject) => {
|
|
|
|
+ this.committmentHtmlContent = course.undertaking;
|
|
|
|
+ this.$refs.committmentDialogRef.showDialog(resolve, reject);
|
|
});
|
|
});
|
|
if (!res) {
|
|
if (!res) {
|
|
return;
|
|
return;
|