|
|
|
@ -310,10 +310,10 @@ |
|
|
|
|
this.$post(this.api.queryItem,n.levelThree) |
|
|
|
|
.then((res) => { |
|
|
|
|
n.levelFour = res.subject.find(e => e.id == n.levelFour).itemDescription |
|
|
|
|
console.log(11,n) |
|
|
|
|
}).catch((err) => {}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
let ids = [] |
|
|
|
|
setTimeout(() => { |
|
|
|
|
score.map(n => { |
|
|
|
|
let item = answerList.find(e => e.tradingJudgmentPointsId == n.tradingJudgmentPointsId) |
|
|
|
@ -321,10 +321,21 @@ |
|
|
|
|
judgmentPointsName: item.judgmentPointsName, |
|
|
|
|
userAnswers: n.userAnswers, |
|
|
|
|
referenceAnswer: item.levelFour, |
|
|
|
|
score: n.score, |
|
|
|
|
id: n.id |
|
|
|
|
score: n.userScore, |
|
|
|
|
id: n.id, |
|
|
|
|
type: n.type |
|
|
|
|
}) |
|
|
|
|
n.type == 1 && ids.push(`ids=${n.userAnswers}`) |
|
|
|
|
}) |
|
|
|
|
this.$get(`${this.api.getItemContentByIds}?${ids.join('&')}`).then((res) => { |
|
|
|
|
let list = res.data |
|
|
|
|
sjData.map(n => { |
|
|
|
|
if(n.type == 1){ |
|
|
|
|
let item = list.find(e => e.id == n.userAnswers) |
|
|
|
|
if(item) n.userAnswers = item.itemDescription |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}).catch((err) => {}) |
|
|
|
|
},500) |
|
|
|
|
|
|
|
|
|
this.sjData = sjData |
|
|
|
|