提交 b75b6172 authored 作者: lihuihui's avatar lihuihui
...@@ -90,13 +90,14 @@ export default { ...@@ -90,13 +90,14 @@ export default {
type: 'input', type: 'input',
prop: 'name', prop: 'name',
placeholder: '请输入考生姓名', placeholder: '请输入考生姓名',
label: '姓名' label: '姓名'
}, },
{ {
type: 'input', type: 'input',
prop: 'school', prop: 'school',
label: '学校' label: '学校:',
placeholder: '请输入学校'
} }
// { // {
// type: 'select', // type: 'select',
...@@ -141,7 +142,7 @@ export default { ...@@ -141,7 +142,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 }
......
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
type: 'select', type: 'select',
prop: 'status', prop: 'status',
placeholder: '请输入考试状态', placeholder: '请输入考试状态',
label: '考试状态', label: '考试状态',
options: status, options: status,
labelKey: 'label', labelKey: 'label',
valueKey: 'value' valueKey: 'value'
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论