|
@@ -7,7 +7,7 @@
|
|
<div class="qm-big-text score-text" v-if="!examResult">答案获取中...</div>
|
|
<div class="qm-big-text score-text" v-if="!examResult">答案获取中...</div>
|
|
<div class="qm-big-text score-text" v-if="!examResult && getResultTimes > 30">后台繁忙,请稍后在待考列表中查看客观题得分。</div>
|
|
<div class="qm-big-text score-text" v-if="!examResult && getResultTimes > 30">后台繁忙,请稍后在待考列表中查看客观题得分。</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.objectiveScore}}</span></div>
|
|
- <div class="qm-big-text score-text" v-if="exam.examType !== 'ONLINE' && showObjectScore && !examResult.isWarn">客观题正确率: <span style="color: red">{{examResult.objectiveAccuracy}}%</span></div>
|
|
|
|
|
|
+ <div class="qm-big-text score-text" v-if="exam && exam.examType !== 'ONLINE' && showObjectScore && !examResult.isWarn">客观题正确率: <span style="color: red">{{examResult.objectiveAccuracy}}%</span></div>
|
|
<div class="qm-big-text score-text" v-if="examResult.isWarn">客观题得分: 成绩待审核</div>
|
|
<div class="qm-big-text score-text" v-if="examResult.isWarn">客观题得分: 成绩待审核</div>
|
|
<h1 v-if="examResult.isWarn" class="" style="text-align: left;">违纪提示: </h1>
|
|
<h1 v-if="examResult.isWarn" class="" style="text-align: left;">违纪提示: </h1>
|
|
<div v-if="examResult.isWarn" class="" style="text-align: left; padding-bottom: 20px">
|
|
<div v-if="examResult.isWarn" class="" style="text-align: left; padding-bottom: 20px">
|
|
@@ -40,7 +40,6 @@ export default {
|
|
return {
|
|
return {
|
|
afterExamRemark: null,
|
|
afterExamRemark: null,
|
|
showObjectScore: null,
|
|
showObjectScore: null,
|
|
- paperTotalScore: null,
|
|
|
|
cheatingRemark: null,
|
|
cheatingRemark: null,
|
|
examResult: null,
|
|
examResult: null,
|
|
getResultTimes: 0
|
|
getResultTimes: 0
|
|
@@ -67,32 +66,40 @@ export default {
|
|
};
|
|
};
|
|
await f();
|
|
await f();
|
|
|
|
|
|
- const afterExamRemark = await this.$http.get(
|
|
|
|
- "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
|
- this.$route.params.examId +
|
|
|
|
- `/AFTER_EXAM_REMARK`
|
|
|
|
- );
|
|
|
|
- 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;
|
|
|
|
-
|
|
|
|
- if (this.examResult.isWarn) {
|
|
|
|
- const cheatingRemark = await this.$http.get(
|
|
|
|
|
|
+ try {
|
|
|
|
+ if (!this.exam) {
|
|
|
|
+ this.exam = (await this.$http.get(
|
|
|
|
+ "/api/ecs_exam_work/exam/" + this.$route.params.examId
|
|
|
|
+ )).data;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const afterExamRemark = await this.$http.get(
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
this.$route.params.examId +
|
|
this.$route.params.examId +
|
|
- `/CHEATING_REMARK`
|
|
|
|
|
|
+ `/AFTER_EXAM_REMARK`
|
|
);
|
|
);
|
|
- this.cheatingRemark = cheatingRemark.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;
|
|
|
|
+
|
|
|
|
+ if (this.examResult.isWarn) {
|
|
|
|
+ const cheatingRemark = await this.$http.get(
|
|
|
|
+ "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
|
+ this.$route.params.examId +
|
|
|
|
+ `/CHEATING_REMARK`
|
|
|
|
+ );
|
|
|
|
+ this.cheatingRemark = cheatingRemark.data || "";
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ this.$Message.error("获取考试设置错误,请在待考列表查看成绩!");
|
|
|
|
+ this.$router.push("/");
|
|
}
|
|
}
|
|
|
|
|
|
document.body.style = "";
|
|
document.body.style = "";
|
|
- // this.paperTotalScore = this.paperStruct.defaultPaper.questionGroupList
|
|
|
|
- // .map(q => q.groupScore)
|
|
|
|
- // .reduce((p, c) => p + c);
|
|
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
this.updateExamState({
|
|
this.updateExamState({
|
|
@@ -100,16 +107,13 @@ export default {
|
|
paperStruct: null,
|
|
paperStruct: null,
|
|
examQuestionList: null
|
|
examQuestionList: null
|
|
});
|
|
});
|
|
- // this.updateExamResult({
|
|
|
|
- // examResult: null
|
|
|
|
- // });
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...globalMapState(["user"]),
|
|
...globalMapState(["user"]),
|
|
- ...mapState(["exam", "paperStruct"])
|
|
|
|
|
|
+ ...mapState(["exam"])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapMutations(["updateExamState", "updateExamResult"])
|
|
|
|
|
|
+ ...mapMutations(["updateExamState"])
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|