用户答案等

master
yujialong 4 years ago
parent d205921f97
commit 4363089165
  1. 2
      src/components/page/Experiment.vue
  2. 2
      src/components/page/ExperimentTeach.vue
  3. 2
      src/components/page/ExperimentVir.vue
  4. 17
      src/components/page/ShowExperiment.vue
  5. 1
      src/utils/api.js

@ -69,7 +69,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="220"> <el-table-column label="操作" align="center" width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="edit(scope.row)">修改分数</el-button> <el-button type="text" @click="edit(scope.row)">批阅</el-button>
<el-button type="text" @click="show(scope.row)">查看成绩报告</el-button> <el-button type="text" @click="show(scope.row)">查看成绩报告</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
</template> </template>

@ -69,7 +69,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="220"> <el-table-column label="操作" align="center" width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="edit(scope.row)">修改分数</el-button> <el-button type="text" @click="edit(scope.row)">批阅</el-button>
<el-button type="text" @click="show(scope.row)">查看成绩报告</el-button> <el-button type="text" @click="show(scope.row)">查看成绩报告</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
</template> </template>

@ -64,7 +64,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="220"> <el-table-column label="操作" align="center" width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="edit(scope.row)">修改分数</el-button> <el-button type="text" @click="edit(scope.row)">批阅</el-button>
<el-button type="text" @click="show(scope.row)">查看成绩报告</el-button> <el-button type="text" @click="show(scope.row)">查看成绩报告</el-button>
<!-- <el-button type="text" @click="handleDelete(scope.row)">删除</el-button> --> <!-- <el-button type="text" @click="handleDelete(scope.row)">删除</el-button> -->
</template> </template>

@ -310,10 +310,10 @@
this.$post(this.api.queryItem,n.levelThree) this.$post(this.api.queryItem,n.levelThree)
.then((res) => { .then((res) => {
n.levelFour = res.subject.find(e => e.id == n.levelFour).itemDescription n.levelFour = res.subject.find(e => e.id == n.levelFour).itemDescription
console.log(11,n)
}).catch((err) => {}) }).catch((err) => {})
} }
}) })
let ids = []
setTimeout(() => { setTimeout(() => {
score.map(n => { score.map(n => {
let item = answerList.find(e => e.tradingJudgmentPointsId == n.tradingJudgmentPointsId) let item = answerList.find(e => e.tradingJudgmentPointsId == n.tradingJudgmentPointsId)
@ -321,10 +321,21 @@
judgmentPointsName: item.judgmentPointsName, judgmentPointsName: item.judgmentPointsName,
userAnswers: n.userAnswers, userAnswers: n.userAnswers,
referenceAnswer: item.levelFour, referenceAnswer: item.levelFour,
score: n.score, score: n.userScore,
id: n.id 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) },500)
this.sjData = sjData this.sjData = sjData

@ -135,6 +135,7 @@ export default {
queryReport:`${host}/evaluation/Achievement/queryReport`, queryReport:`${host}/evaluation/Achievement/queryReport`,
getReport: `${host}/evaluation/Achievement/getReport`, getReport: `${host}/evaluation/Achievement/getReport`,
editScore: `${host}/evaluation/Achievement/editScore`, editScore: `${host}/evaluation/Achievement/editScore`,
getItemContentByIds:`${host}/kdSys/getItemContentByIds`,
// 教师评语 // 教师评语
addComment: `${host}/evaluation/Achievement/addComment`, addComment: `${host}/evaluation/Achievement/addComment`,

Loading…
Cancel
Save