判分点显示分值

dev_2022-04-07
yujialong 3 years ago
parent cfe26b3250
commit c9c23290c0
  1. 13
      src/components/TestPanel.vue

@ -65,7 +65,8 @@
<el-table :data="taskList" :stripe="true" height="405"> <el-table :data="taskList" :stripe="true" height="405">
<el-table-column type="index"></el-table-column> <el-table-column type="index"></el-table-column>
<el-table-column prop="name" label="判分点" align="center"></el-table-column> <el-table-column prop="name" label="判分点" align="center"></el-table-column>
<el-table-column label="完成结果" align="center"> <el-table-column prop="score" label="分值" width="60" align="center"></el-table-column>
<el-table-column label="结果" width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="isSubmit"> <template v-if="isSubmit">
<i <i
@ -79,9 +80,9 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="score" label="得分" align="center"> <el-table-column prop="score" label="得分" width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="isSubmit">{{ scope.row.score }}</template> <template v-if="isSubmit">{{ scope.row.examScore }}</template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -312,7 +313,7 @@ export default {
points = JSON.parse(JSON.stringify(this.points)) points = JSON.parse(JSON.stringify(this.points))
} }
// //
if (cache.empty) { if (cache && cache.empty) {
this.projectId = projectId this.projectId = projectId
this.closeLoad() this.closeLoad()
localStorage.removeItem('codeCache') localStorage.removeItem('codeCache')
@ -494,12 +495,12 @@ export default {
clearInterval(this.statusTimer) clearInterval(this.statusTimer)
let list = res.retInfo let list = res.retInfo
let taskList = this.taskList let taskList = this.taskList
var score = 0 let score = 0
// //
taskList.map(e => { taskList.map(e => {
let item = list.find(n => n.judgmentPointsId === e.judgmentId) let item = list.find(n => n.judgmentPointsId === e.judgmentId)
if (item) { if (item) {
e.score = item.score e.examScore = item.score
e.finishedResult = item.finishedResult // 12 e.finishedResult = item.finishedResult // 12
} else { } else {
e.score = 0 e.score = 0

Loading…
Cancel
Save