|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
|
|
|
|
- <div class="container" v-if="exam && startInfo && paperStruct">
|
|
|
|
|
|
+ <div class="container" v-if="beforeExamRemark && startInfo && paperStruct">
|
|
<div class="instructions">
|
|
<div class="instructions">
|
|
<h1 class="">考试说明</h1>
|
|
<h1 class="">考试说明</h1>
|
|
<div class="" style="text-align: left; padding-bottom: 20px">
|
|
<div class="" style="text-align: left; padding-bottom: 20px">
|
|
- <p v-html="exam.beforeExamRemark"></p>
|
|
|
|
|
|
+ <p v-html="beforeExamRemark"></p>
|
|
<!-- <p>{{"测试".repeat(500)}}</p> -->
|
|
<!-- <p>{{"测试".repeat(500)}}</p> -->
|
|
</div>
|
|
</div>
|
|
<!-- data-ui-sref="exam.start({examRecordId: startInfo.id,stuExamInfoId:stateParams.stuExamInfoId,examMins:startInfo.paperMins,examId:examInfo.id,faceVerifyMinute:startInfo.faceVerifyMinute})" -->
|
|
<!-- data-ui-sref="exam.start({examRecordId: startInfo.id,stuExamInfoId:stateParams.stuExamInfoId,examMins:startInfo.paperMins,examId:examInfo.id,faceVerifyMinute:startInfo.faceVerifyMinute})" -->
|
|
@@ -19,10 +19,10 @@
|
|
<h4 class="">试卷概览(总分:{{paperTotalScore}})</h4>
|
|
<h4 class="">试卷概览(总分:{{paperTotalScore}})</h4>
|
|
<br>
|
|
<br>
|
|
<ul class="list-group">
|
|
<ul class="list-group">
|
|
- <li class="list-group-item" v-for="questionsGroup in paperStruct" :key="questionsGroup.index">
|
|
|
|
- {{questionsGroup.index}}、{{questionsGroup.title}}
|
|
|
|
|
|
+ <li class="list-group-item" v-for="(questionsGroup, index) in paperStruct.defaultPaper.questionGroupList" :key="questionsGroup.gruopName">
|
|
|
|
+ {{index+1}}、{{questionsGroup.groupName}}
|
|
<small class="pull-right">
|
|
<small class="pull-right">
|
|
- (共{{questionsGroup.questionCount}}题,</span>共{{questionsGroup.totalScore}}分)
|
|
|
|
|
|
+ (共{{questionsGroup.questionWrapperList.length}}题,</span>共{{questionsGroup.groupScore}}分)
|
|
</small>
|
|
</small>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
@@ -44,7 +44,7 @@ import moment from "moment";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- exam: null,
|
|
|
|
|
|
+ beforeExamRemark: null,
|
|
startInfo: null,
|
|
startInfo: null,
|
|
paperStruct: null,
|
|
paperStruct: null,
|
|
remainTime: 120
|
|
remainTime: 120
|
|
@@ -57,17 +57,33 @@ export default {
|
|
this.goToPaper();
|
|
this.goToPaper();
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
|
|
+
|
|
|
|
+ // FIXME: 考前说明
|
|
const exam = await this.$http.get(
|
|
const exam = await this.$http.get(
|
|
- "/api/ecs_exam_work/exam/" + this.$route.params.examId
|
|
|
|
|
|
+ "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
|
+ this.$route.params.examId +
|
|
|
|
+ `/BEFORE_EXAM_REMARK`
|
|
);
|
|
);
|
|
- this.exam = exam.data;
|
|
|
|
|
|
+ this.beforeExamRemark = exam.data || "错误:不存在";
|
|
try {
|
|
try {
|
|
- const res = await this.$http.get(
|
|
|
|
- "/api/exam_control/start?stu_exam_info_id=" +
|
|
|
|
- this.$route.query.stuExamInfoId
|
|
|
|
- );
|
|
|
|
|
|
+ // await this.$http.get("/api/ecs_oe_student/examControl/endExam");
|
|
|
|
+ // const res = await this.$http.get(
|
|
|
|
+ // "/api/ecs_oe_student/examControl/startExam?examStudentId=" +
|
|
|
|
+ // this.$route.query.stuExamInfoId
|
|
|
|
+ // );
|
|
|
|
+ var res = {
|
|
|
|
+ data: {
|
|
|
|
+ examRecordDataId: 7,
|
|
|
|
+ courseCode: "W00001",
|
|
|
|
+ courseName: "英语",
|
|
|
|
+ studentCode: "20180613",
|
|
|
|
+ studentName: "王章军",
|
|
|
|
+ duration: 120,
|
|
|
|
+ faceLivenessMinute: null
|
|
|
|
+ }
|
|
|
|
+ };
|
|
this.startInfo = res.data;
|
|
this.startInfo = res.data;
|
|
- this.examRecordId = res.data.id;
|
|
|
|
|
|
+ this.examRecordId = res.data.examRecordDataId;
|
|
// this.startInfo = {
|
|
// this.startInfo = {
|
|
// id: 101436,
|
|
// id: 101436,
|
|
// courseName: "计算机应用基础",
|
|
// courseName: "计算机应用基础",
|
|
@@ -86,7 +102,8 @@ export default {
|
|
this.$Message.error(error.message);
|
|
this.$Message.error(error.message);
|
|
}
|
|
}
|
|
const paperStruct = await this.$http.get(
|
|
const paperStruct = await this.$http.get(
|
|
- "/api/exam_question/paper_struct?exam_record_id=" + this.examRecordId
|
|
|
|
|
|
+ "/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
|
|
|
|
+ this.examRecordId
|
|
);
|
|
);
|
|
this.paperStruct = paperStruct.data;
|
|
this.paperStruct = paperStruct.data;
|
|
|
|
|
|
@@ -141,8 +158,8 @@ export default {
|
|
// }
|
|
// }
|
|
// ];
|
|
// ];
|
|
|
|
|
|
- this.paperTotalScore = this.paperStruct
|
|
|
|
- .map(q => q.totalScore)
|
|
|
|
|
|
+ this.paperTotalScore = this.paperStruct.defaultPaper.questionGroupList
|
|
|
|
+ .map(q => q.groupScore)
|
|
.reduce((p, c) => p + c);
|
|
.reduce((p, c) => p + c);
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
@@ -158,7 +175,7 @@ export default {
|
|
this.$router.push(
|
|
this.$router.push(
|
|
`/online-exam/exam/${this.$route.params.examId}/?examRecordId=${
|
|
`/online-exam/exam/${this.$route.params.examId}/?examRecordId=${
|
|
this.examRecordId
|
|
this.examRecordId
|
|
- }`
|
|
|
|
|
|
+ }&examStudentId=${this.$route.query.stuExamInfoId}`
|
|
);
|
|
);
|
|
window.clearInterval(this.intervalId);
|
|
window.clearInterval(this.intervalId);
|
|
}
|
|
}
|