|
@@ -293,11 +293,12 @@ export default {
|
|
item.examInfo[i].subject = res.subjects[i]
|
|
item.examInfo[i].subject = res.subjects[i]
|
|
item.examInfo[i].allClass = res.claId
|
|
item.examInfo[i].allClass = res.claId
|
|
item.examInfo[i].isOrder = this.getItemTitle.type === 'Art' ? item.exam[0].isOrder : 0
|
|
item.examInfo[i].isOrder = this.getItemTitle.type === 'Art' ? item.exam[0].isOrder : 0
|
|
|
|
+ let queNum = res.subjects[i].id === 'subject_music' ? 17 : 32
|
|
if(res.stuAns.length) {
|
|
if(res.stuAns.length) {
|
|
console.log(res.stuAns, i, res.stuAns[i]);
|
|
console.log(res.stuAns, i, res.stuAns[i]);
|
|
if (!res.stuAns[i].length) {
|
|
if (!res.stuAns[i].length) {
|
|
item.examInfo[i].stuAns = []
|
|
item.examInfo[i].stuAns = []
|
|
- item.examInfo[i].stuScore = Array(item.examInfo[i].point.length).fill(-1)
|
|
|
|
|
|
+ item.examInfo[i].stuScore = (item.examInfo[i].point && item.examInfo[i].point.length) ? Array(item.examInfo[i].point.length).fill(-1) : Array(queNum).fill(-1)
|
|
} else {
|
|
} else {
|
|
item.examInfo[i].stuAns = res.stuAns[i]
|
|
item.examInfo[i].stuAns = res.stuAns[i]
|
|
// 批注
|
|
// 批注
|
|
@@ -306,7 +307,7 @@ export default {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
item.examInfo[i].stuAns = []
|
|
item.examInfo[i].stuAns = []
|
|
- item.examInfo[i].stuScore = Array(item.examInfo[i].point.length).fill(-1)
|
|
|
|
|
|
+ item.examInfo[i].stuScore = (item.examInfo[i].point && item.examInfo[i].point.length) ? Array(item.examInfo[i].point.length).fill(-1) : Array(queNum).fill(-1)
|
|
}
|
|
}
|
|
item.examInfo[i].taskStatus = item.exam[0].taskStatus
|
|
item.examInfo[i].taskStatus = item.exam[0].taskStatus
|
|
|
|
|