|
@@ -131,7 +131,14 @@ export default {
|
|
for (let j in res.averageMap[i].ClassAverage) {
|
|
for (let j in res.averageMap[i].ClassAverage) {
|
|
res.averageMap[i].ClassAverage[j] = parseFloat(res.averageMap[i].ClassAverage[j].toFixed(2))
|
|
res.averageMap[i].ClassAverage[j] = parseFloat(res.averageMap[i].ClassAverage[j].toFixed(2))
|
|
}
|
|
}
|
|
|
|
+ let subject = this.examInfo.papers.find(item=>{
|
|
|
|
+ return item.subjectId == res.averageMap[i].subjectId
|
|
|
|
+ })
|
|
|
|
+ if(subject){
|
|
|
|
+ res.averageMap[i].subjectId = subject.subjectName
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
this.allData[this.examInfo.id] = res
|
|
this.allData[this.examInfo.id] = res
|
|
this.simpleData = res
|
|
this.simpleData = res
|
|
} else {
|
|
} else {
|
|
@@ -149,6 +156,7 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
examInfo: {
|
|
examInfo: {
|
|
handler() {
|
|
handler() {
|
|
|
|
+ console.log('评测信息:',this.examInfo)
|
|
if (this.examInfo.progress == 'finish') {
|
|
if (this.examInfo.progress == 'finish') {
|
|
if (this.allData[this.examInfo.id]) {
|
|
if (this.allData[this.examInfo.id]) {
|
|
this.simpleData = this.allData[this.examInfo.id]
|
|
this.simpleData = this.allData[this.examInfo.id]
|