|
@@ -5,6 +5,7 @@
|
|
|
<h1 class="">考试已结束</h1>
|
|
|
<div><img class="user-avatar" :src="user.photoPath" alt="无底照" /></div>
|
|
|
<div class="qm-big-text score-text" v-if="showObjectScore && !examResult.isWarn">客观题得分: <span style="color: red">{{examResult.objectiveScore}}</span></div>
|
|
|
+ <div class="qm-big-text score-text" v-if="showObjectScore && !examResult.isWarn">客观题正确率: <span style="color: red">{{examResult.objectiveAccuracy}}%</span></div>
|
|
|
<div class="qm-big-text score-text" v-if="examResult.isWarn">客观题得分: 成绩待审核</div>
|
|
|
<h1 v-if="examResult.isWarn" class="">违纪提示: </h1>
|
|
|
<div v-if="examResult.isWarn" class="" style="text-align: left; padding-bottom: 20px">
|
|
@@ -45,10 +46,26 @@ export default {
|
|
|
afterExamRemark: null,
|
|
|
showObjectScore: null,
|
|
|
paperTotalScore: null,
|
|
|
- cheatingRemark: null
|
|
|
+ cheatingRemark: null,
|
|
|
+ examResult: null
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
+ const examRecordDataId = this.$route.params.examRecordDataId;
|
|
|
+ const f = async () => {
|
|
|
+ const examResult = (await this.$http.get(
|
|
|
+ "/api/ecs_oe_student/examControl/getEndExamInfo?examRecordDataId=" +
|
|
|
+ examRecordDataId
|
|
|
+ )).data;
|
|
|
+
|
|
|
+ if (examResult === undefined || examResult === null) {
|
|
|
+ setTimeout(f, 3000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.examResult = examResult;
|
|
|
+ };
|
|
|
+ await f();
|
|
|
+
|
|
|
const afterExamRemark = await this.$http.get(
|
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
this.$route.params.examId +
|
|
@@ -81,13 +98,13 @@ export default {
|
|
|
paperStruct: null,
|
|
|
examQuestionList: null
|
|
|
});
|
|
|
- this.updateExamResult({
|
|
|
- examResult: null
|
|
|
- });
|
|
|
+ // this.updateExamResult({
|
|
|
+ // examResult: null
|
|
|
+ // });
|
|
|
},
|
|
|
computed: {
|
|
|
...globalMapState(["user"]),
|
|
|
- ...mapState(["exam", "examResult", "paperStruct"])
|
|
|
+ ...mapState(["exam", "paperStruct"])
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations(["updateExamState", "updateExamResult"])
|