|
|
|
@ -65,7 +65,8 @@ |
|
|
|
|
<el-table :data="taskList" :stripe="true" height="405"> |
|
|
|
|
<el-table-column type="index"></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 v-if="isSubmit"> |
|
|
|
|
<i |
|
|
|
@ -79,9 +80,9 @@ |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</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 v-if="isSubmit">{{ scope.row.score }}</template> |
|
|
|
|
<template v-if="isSubmit">{{ scope.row.examScore }}</template> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -312,7 +313,7 @@ export default { |
|
|
|
|
points = JSON.parse(JSON.stringify(this.points)) |
|
|
|
|
} |
|
|
|
|
// 如果是没有代码的缓存,则只需要恢复项目,否则,就调接口查询缓存代码 |
|
|
|
|
if (cache.empty) { |
|
|
|
|
if (cache && cache.empty) { |
|
|
|
|
this.projectId = projectId |
|
|
|
|
this.closeLoad() |
|
|
|
|
localStorage.removeItem('codeCache') |
|
|
|
@ -494,12 +495,12 @@ export default { |
|
|
|
|
clearInterval(this.statusTimer) |
|
|
|
|
let list = res.retInfo |
|
|
|
|
let taskList = this.taskList |
|
|
|
|
var score = 0 |
|
|
|
|
let score = 0 |
|
|
|
|
// 给判分列表添加分数和运行结果 |
|
|
|
|
taskList.map(e => { |
|
|
|
|
let item = list.find(n => n.judgmentPointsId === e.judgmentId) |
|
|
|
|
if (item) { |
|
|
|
|
e.score = item.score |
|
|
|
|
e.examScore = item.score |
|
|
|
|
e.finishedResult = item.finishedResult // 1:正确,2:错误 |
|
|
|
|
} else { |
|
|
|
|
e.score = 0 |
|
|
|
|