提交 2cec1190 authored 作者: pengxiaohui's avatar pengxiaohui

修改bug

上级 63a0f5c6
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
}, },
methods: { methods: {
handleDetail(row) { handleDetail(row) {
console.log(row) // console.log(row)
this.$router.push({ this.$router.push({
path: 'markingPaper', path: 'markingPaper',
query: { eid: this.exam_id, sid: row.student_id } query: { eid: this.exam_id, sid: row.student_id }
......
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
it.get_score = obj.score || 0 it.get_score = obj.score || 0
it.checked_flag = obj.checked_flag || false it.checked_flag = obj.checked_flag || false
if (obj.comment) it.comment = obj.comment if (obj.comment) it.comment = obj.comment
// if (it.answer) it.answer = JSON.parse(it.answer) if (it.answer) it.answer = JSON.parse(it.answer)
if (it.options) it.options = JSON.parse(it.options) if (it.options) it.options = JSON.parse(it.options)
}) })
} else { } else {
...@@ -344,11 +344,12 @@ export default { ...@@ -344,11 +344,12 @@ export default {
subItem.get_score = obj.score || 0 subItem.get_score = obj.score || 0
subItem.checked_flag = obj.checked_flag || false subItem.checked_flag = obj.checked_flag || false
if (obj.comment) subItem.comment = obj.comment if (obj.comment) subItem.comment = obj.comment
// if (subItem.answer) subItem.answer = JSON.parse(subItem.answer) if (subItem.answer) subItem.answer = JSON.parse(subItem.answer)
if (subItem.options) subItem.options = JSON.parse(subItem.options) if (subItem.options) subItem.options = JSON.parse(subItem.options)
} }
}) })
}) })
// console.log(this.questionList)
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论