|
@@ -16,7 +16,7 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="section__header section__header--warm"
|
|
|
- v-if="!examResult.reportStatus"
|
|
|
+ v-if="!reportdata.reportStatus"
|
|
|
>
|
|
|
<div class="title">
|
|
|
<span class="icon">X</span>
|
|
@@ -29,7 +29,7 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="section__header section__header--success"
|
|
|
- v-if="examResult.reportStatus"
|
|
|
+ v-if="reportdata.reportStatus"
|
|
|
>
|
|
|
<div class="title">
|
|
|
<span class="icon">✔</span>
|
|
@@ -67,25 +67,25 @@
|
|
|
试卷得分
|
|
|
<span class="note">(客观题)</span>
|
|
|
</div>
|
|
|
- <div class="desc">{{ examResult.score }}</div>
|
|
|
- <div class="other">满分{{ examResult.totalScore }}</div>
|
|
|
+ <div class="desc">{{ reportdata.performance }}</div>
|
|
|
+ <div class="other">满分{{ reportdata.totalScore }}</div>
|
|
|
</div>
|
|
|
<div class="right-box__in right-box__in--bottom">
|
|
|
<div class="child">
|
|
|
<div class="child__title child__title--success">
|
|
|
- {{ examResult.rightQuestionNum }}
|
|
|
+ {{ reportdata.rightQuestionNum }}
|
|
|
</div>
|
|
|
<div class="child__desc">正确题数</div>
|
|
|
</div>
|
|
|
<div class="child">
|
|
|
<div class="child__title child__title--yellow">
|
|
|
- {{ examResult.lessQuestionNum }}
|
|
|
+ {{ reportdata.lessQuestionNum }}
|
|
|
</div>
|
|
|
<div class="child__desc">少选题数</div>
|
|
|
</div>
|
|
|
<div class="child child---right">
|
|
|
<div class="child__title child__title--warm">
|
|
|
- {{ examResult.doWrongQuestionNum }}
|
|
|
+ {{ doWrongQuestionNum }}
|
|
|
</div>
|
|
|
<div class="child__desc">错误题数</div>
|
|
|
</div>
|
|
@@ -165,10 +165,15 @@ export default {
|
|
|
total: 0,
|
|
|
recordId: '',
|
|
|
type: 0, //type:1章卷,2节卷,3模考卷
|
|
|
+ reportdata: {},
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["examResult"]),
|
|
|
+ doWrongQuestionNum() {
|
|
|
+ let value = this.reportdata.totalQuestionNum - this.reportdata.rightQuestionNum - this.reportdata.lessQuestionNum
|
|
|
+ return value > 0 ? value : 0
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
const { examId, recordId, type } = this.$route.query
|
|
@@ -179,9 +184,10 @@ export default {
|
|
|
this.bankReport()
|
|
|
},
|
|
|
mounted() {
|
|
|
- if (JSON.stringify(this.examResult) == "{}") {
|
|
|
- this.$router.back(-1);
|
|
|
- }
|
|
|
+ console.log('examResult:', this.examResult)
|
|
|
+ // if (JSON.stringify(this.examResult) == "{}") {
|
|
|
+ // this.$router.back(-1);
|
|
|
+ // }
|
|
|
},
|
|
|
methods: {
|
|
|
getcourList() {
|