用户答案等

chengdu
yujialong 4 years ago
parent 3120a0bdae
commit 765e8f9595
  1. 17
      src/components/page/ShowExperiment.vue
  2. 1
      src/utils/api.js

@ -171,7 +171,7 @@
<el-input type="textarea" rows="5" v-model="form.comment" disabled></el-input>
</div>
<div class="mgb20">
<div class="mgb20" v-if="form.isSignature">
<div class="meta-title-wrap">
<p class="meta-title"><i class="el-icon-discount"></i> 老师签名</p>
</div>
@ -263,10 +263,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)
@ -274,9 +274,20 @@
judgmentPointsName: item.judgmentPointsName,
userAnswers: n.userAnswers,
referenceAnswer: item.levelFour,
score: n.score
score: n.userScore,
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

@ -161,5 +161,6 @@ export default {
userRecord: `${host}/evaluation/tms/classTech/userRecord`, //查询班级实验列表信息
getReport: `${host}/evaluation/Achievement/getReport`,
uploadSignature:`${host}/evaluation/evaluation/signature/uploadSignature`,
getItemContentByIds:`${host}/kdSys/getItemContentByIds`,
queryItem: `http://116.63.168.79/kdSys/queryItem`,
}
Loading…
Cancel
Save