|
@@ -7,7 +7,7 @@
|
|
|
<p v-html="beforeExamRemark"></p>
|
|
|
<!-- <p>{{"测试".repeat(500)}}</p> -->
|
|
|
</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({examRecordDataId: startInfo.id,examStudentId:stateParams.examStudentId,examMins:startInfo.paperMins,examId:examInfo.id,faceVerifyMinute:startInfo.faceVerifyMinute})" -->
|
|
|
|
|
|
<Button class="qm-primary-button" :disabled="remainTime > 110" @click="goToPaper" style="display: inline-block; width: 100%;">
|
|
|
{{ remainTime > 110 ? '强制阅读' : '开始答题'}}(倒计时:{{remainTimeFormatted}})</Button>
|
|
@@ -58,32 +58,31 @@ export default {
|
|
|
}
|
|
|
}, 1000);
|
|
|
|
|
|
- // FIXME: 考前说明
|
|
|
const exam = await this.$http.get(
|
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
this.$route.params.examId +
|
|
|
`/BEFORE_EXAM_REMARK`
|
|
|
);
|
|
|
- this.beforeExamRemark = exam.data || "错误:不存在";
|
|
|
+ this.beforeExamRemark = exam.data || "";
|
|
|
try {
|
|
|
// 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
|
|
|
- }
|
|
|
- };
|
|
|
+ const res = await this.$http.get(
|
|
|
+ "/api/ecs_oe_student/examControl/startExam?examStudentId=" +
|
|
|
+ this.$route.query.examStudentId
|
|
|
+ );
|
|
|
+ // var res = {
|
|
|
+ // data: {
|
|
|
+ // examRecordDataId: 7,
|
|
|
+ // courseCode: "W00001",
|
|
|
+ // courseName: "英语",
|
|
|
+ // studentCode: "20180613",
|
|
|
+ // studentName: "王章军",
|
|
|
+ // duration: 120,
|
|
|
+ // faceLivenessMinute: null
|
|
|
+ // }
|
|
|
+ // };
|
|
|
this.startInfo = res.data;
|
|
|
- this.examRecordId = res.data.examRecordDataId;
|
|
|
+ this.examRecordDataId = res.data.examRecordDataId;
|
|
|
// this.startInfo = {
|
|
|
// id: 101436,
|
|
|
// courseName: "计算机应用基础",
|
|
@@ -103,7 +102,7 @@ export default {
|
|
|
}
|
|
|
const paperStruct = await this.$http.get(
|
|
|
"/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
|
|
|
- this.examRecordId
|
|
|
+ this.examRecordDataId
|
|
|
);
|
|
|
this.paperStruct = paperStruct.data;
|
|
|
|
|
@@ -173,9 +172,9 @@ export default {
|
|
|
methods: {
|
|
|
goToPaper: function() {
|
|
|
this.$router.push(
|
|
|
- `/online-exam/exam/${this.$route.params.examId}/?examRecordId=${
|
|
|
- this.examRecordId
|
|
|
- }&examStudentId=${this.$route.query.stuExamInfoId}`
|
|
|
+ `/online-exam/exam/${this.$route.params.examId}/?examRecordDataId=${
|
|
|
+ this.examRecordDataId
|
|
|
+ }&examStudentId=${this.$route.query.examStudentId}`
|
|
|
);
|
|
|
window.clearInterval(this.intervalId);
|
|
|
}
|