|
@@ -129,7 +129,7 @@
|
|
<div class="title-rect-group" v-if="chooseData.subject !== undefined">
|
|
<div class="title-rect-group" v-if="chooseData.subject !== undefined">
|
|
<div class="title-rect" />
|
|
<div class="title-rect" />
|
|
<h2 class="title-rect-name">当前科目:{{chooseData.subject.name}}</h2>
|
|
<h2 class="title-rect-name">当前科目:{{chooseData.subject.name}}</h2>
|
|
- <span @click="showTest" style="margin-left: 25px;color: #03966a;cursor:pointer">试卷详情</span>
|
|
|
|
|
|
+ <span v-show="isExamDown" @click="showTest" style="margin-left: 25px;color: #03966a;cursor:pointer">试卷详情</span>
|
|
<div>
|
|
<div>
|
|
<LessonTestReport :examInfo="chooseData" />
|
|
<LessonTestReport :examInfo="chooseData" />
|
|
</div>
|
|
</div>
|
|
@@ -382,18 +382,16 @@
|
|
this.chooseData = data
|
|
this.chooseData = data
|
|
this.selectData = await this.$evTools.getStuPaper(code)
|
|
this.selectData = await this.$evTools.getStuPaper(code)
|
|
if (this.selectData.item.length > 0) {
|
|
if (this.selectData.item.length > 0) {
|
|
- let k = false
|
|
|
|
- for (let item of data.stuScore) {
|
|
|
|
- if (item == -1) {
|
|
|
|
- this.isExam = true
|
|
|
|
- break;
|
|
|
|
|
|
+ let k = 0
|
|
|
|
+ for (let item of data.stuAns) {
|
|
|
|
+ if (item.length == 0) {
|
|
|
|
+ k++
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (this.isExam) {
|
|
|
|
- //this.$store.commit("ToggleLessonTestPopWithSubject", data)
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (k != data.stuAns.length) {
|
|
this.isExamDown = true
|
|
this.isExamDown = true
|
|
- }
|
|
|
|
|
|
+ //this.$store.commit("ToggleLessonTestPopWithSubject", data)
|
|
|
|
+ }
|
|
this.$store.commit("SetPaperInfo", this.selectData)
|
|
this.$store.commit("SetPaperInfo", this.selectData)
|
|
this.$store.commit("SetExamInfo", data)
|
|
this.$store.commit("SetExamInfo", data)
|
|
//console.log(this.chooseData)
|
|
//console.log(this.chooseData)
|