|
@@ -47,40 +47,32 @@ export default {
|
|
|
async initData() {
|
|
|
const [
|
|
|
examData,
|
|
|
- paperStructData
|
|
|
- // examQuestionListData
|
|
|
+ paperStructData,
|
|
|
+ examQuestionListData
|
|
|
] = await Promise.all([
|
|
|
this.$http.get("/api/ecs_exam_work/exam/" + this.examId),
|
|
|
this.$http.get(
|
|
|
"/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
|
|
|
this.examRecordDataId
|
|
|
+ ),
|
|
|
+ this.$http.get(
|
|
|
+ "/api/ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=" +
|
|
|
+ this.examRecordDataId
|
|
|
)
|
|
|
- // this.$http.get("/api/ecs_oe_student/examQuestion/findExamQuestionList")
|
|
|
]);
|
|
|
const [exam, paperStruct] = [examData.data, paperStructData.data];
|
|
|
|
|
|
- let examQuestionList = []; // examQuestionListData.data;
|
|
|
+ let examQuestionList = examQuestionListData.data.examQuestionEntities;
|
|
|
|
|
|
if (
|
|
|
exam === undefined ||
|
|
|
- paperStruct === undefined
|
|
|
- // ||examQuestionListData === undefined
|
|
|
+ paperStruct === undefined ||
|
|
|
+ examQuestionListData === undefined
|
|
|
) {
|
|
|
this.$Message.error("获取试卷信息失败");
|
|
|
- this.logout();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (exam.examType === "PRACTICE") {
|
|
|
- const practiceType = (await this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
- this.examId +
|
|
|
- `/PRACTICE_TYPE`
|
|
|
- )).data;
|
|
|
- this.practiceType = practiceType; // IN_PRACTICE NO_ANSWER
|
|
|
- exam.practiceType = practiceType;
|
|
|
- }
|
|
|
-
|
|
|
// init subNumber
|
|
|
let questionId = null;
|
|
|
let i = 1;
|
|
@@ -211,13 +203,13 @@ export default {
|
|
|
|
|
|
@media screen and (max-height: 768px) {
|
|
|
.container {
|
|
|
- grid-template-rows: 50px 1fr;
|
|
|
+ grid-template-rows: 50px minmax(0, 1fr);
|
|
|
}
|
|
|
.header {
|
|
|
height: 50px;
|
|
|
}
|
|
|
.side {
|
|
|
- grid-template-rows: 1fr 200px;
|
|
|
+ grid-template-rows: minmax(0, 1fr) 200px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|