|
@@ -397,6 +397,14 @@ export default {
|
|
|
action: "答题页面",
|
|
|
detail: "before initData",
|
|
|
});
|
|
|
+ const examRecordDataId = this.$route.params.examRecordDataId;
|
|
|
+ const examId = this.$route.params.examId;
|
|
|
+ const { courseName, courseCode } = (
|
|
|
+ await this.$http.post(
|
|
|
+ "/api/ecs_oe_student/examControl/getCourseInfo/" + examRecordDataId,
|
|
|
+ { "axios-retry": { retries: 4 }, noErrorMessage: true }
|
|
|
+ )
|
|
|
+ ).data;
|
|
|
const [
|
|
|
{ data: weixinAnswerEnabled },
|
|
|
{ data: faceCheckEnabled },
|
|
@@ -405,35 +413,25 @@ export default {
|
|
|
{ data: exam },
|
|
|
{ data: paperStruct },
|
|
|
{ data: examQuestionListOrig },
|
|
|
- { data: courseName },
|
|
|
] = await Promise.all([
|
|
|
this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/weixinAnswerEnabled/" +
|
|
|
- this.$route.params.examId
|
|
|
- ),
|
|
|
- this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/faceCheckEnabled/" +
|
|
|
- this.$route.params.examId
|
|
|
+ `/api/ecs_exam_work/exam/weixinAnswerEnabled/${examId}?courseCode=${courseCode}`
|
|
|
),
|
|
|
+ this.$http.get("/api/ecs_exam_work/exam/faceCheckEnabled/" + examId),
|
|
|
this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/identificationOfLivingEnabled/" +
|
|
|
- this.$route.params.examId
|
|
|
+ "/api/ecs_exam_work/exam/identificationOfLivingEnabled/" + examId
|
|
|
),
|
|
|
this.$http.get(
|
|
|
"/api/ecs_exam_work/exam/getExamPropertyFromCacheByStudentSession/" +
|
|
|
- this.$route.params.examId +
|
|
|
+ examId +
|
|
|
`/SNAPSHOT_INTERVAL,PRACTICE_TYPE,FREEZE_TIME`
|
|
|
),
|
|
|
- this.$http.get("/api/ecs_exam_work/exam/" + this.$route.params.examId),
|
|
|
+ this.$http.get("/api/ecs_exam_work/exam/" + examId),
|
|
|
this.$http.get(
|
|
|
"/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
|
|
|
- this.$route.params.examRecordDataId
|
|
|
+ examRecordDataId
|
|
|
),
|
|
|
this.$http.get("/api/ecs_oe_student/examQuestion/findExamQuestionList"),
|
|
|
- this.$http.get(
|
|
|
- "/api/ecs_oe_student/examControl/courseName/" +
|
|
|
- this.$route.params.examRecordDataId
|
|
|
- ),
|
|
|
]);
|
|
|
this.courseName = courseName;
|
|
|
|