|
@@ -2,7 +2,11 @@
|
|
|
|
|
|
<div class="container" v-if="afterExamRemark">
|
|
|
<div class="instructions">
|
|
|
- <h1 class="">考试说明</h1>
|
|
|
+ <div><img :src="this.user.photoPath" alt=""></div>
|
|
|
+ <h1 class="">考试已结束</h1>
|
|
|
+ <div v-if="showObjectScore && !examResult.isWarn">客观分: {{examResult.objectiveScore}}</div>
|
|
|
+ <div v-if="examResult.isWarn">成绩待审核</div>
|
|
|
+ <h1 class="">考后说明: </h1>
|
|
|
<div class="" style="text-align: left; padding-bottom: 20px">
|
|
|
<p v-html="afterExamRemark"></p>
|
|
|
</div>
|
|
@@ -13,13 +17,10 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="exam-detail">
|
|
|
- <h3 class="">科目:</h3>
|
|
|
+ <h3 class="">科目:{{exam.name}}</h3>
|
|
|
<br>
|
|
|
- <h4 class="">试卷概览(总分:)</h4>
|
|
|
+ <h4 class="">试卷总分:{{paperTotalScore}}</h4>
|
|
|
<br>
|
|
|
- <div>
|
|
|
- <img style="width:100%; padding-top: 40px;" src="../good-wish.png" />
|
|
|
- </div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -30,25 +31,40 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapState as globalMapState } from "vuex";
|
|
|
+import { createNamespacedHelpers } from "vuex";
|
|
|
+const { mapState } = createNamespacedHelpers("examingHomeModule");
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
afterExamRemark: null,
|
|
|
- startInfo: null,
|
|
|
- paperStruct: null,
|
|
|
- remainTime: 120
|
|
|
+ showObjectScore: null,
|
|
|
+ paperTotalScore: null
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
- const exam = await this.$http.get(
|
|
|
+ const afterExamRemark = await this.$http.get(
|
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
this.$route.params.examId +
|
|
|
`/AFTER_EXAM_REMARK`
|
|
|
);
|
|
|
- this.afterExamRemark = exam.data || "";
|
|
|
+ this.afterExamRemark = afterExamRemark.data || "";
|
|
|
+ const showObjectScore = await this.$http.get(
|
|
|
+ "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
+ this.$route.params.examId +
|
|
|
+ `/IS_OBJ_SCORE_VIEW`
|
|
|
+ );
|
|
|
+ this.showObjectScore = showObjectScore.data || false;
|
|
|
+
|
|
|
+ this.paperTotalScore = this.paperStruct.defaultPaper.questionGroupList
|
|
|
+ .map(q => q.groupScore)
|
|
|
+ .reduce((p, c) => p + c);
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...globalMapState(["user"]),
|
|
|
+ ...mapState(["exam", "examResult", "paperStruct"])
|
|
|
},
|
|
|
- beforeDestroy() {},
|
|
|
- computed: {},
|
|
|
methods: {}
|
|
|
};
|
|
|
</script>
|