提交 278c7ace authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 acb98d79
...@@ -49,6 +49,7 @@ const listOptions = computed(() => { ...@@ -49,6 +49,7 @@ const listOptions = computed(() => {
label: '评分人', label: '评分人',
prop: 'checker_name', prop: 'checker_name',
computed: ({ row }) => { computed: ({ row }) => {
try {
const scores = JSON.parse(row.score_details) const scores = JSON.parse(row.score_details)
return Array.isArray(scores) return Array.isArray(scores)
? scores ? scores
...@@ -56,6 +57,10 @@ const listOptions = computed(() => { ...@@ -56,6 +57,10 @@ const listOptions = computed(() => {
.map((item) => `${item.checker_name}(${item.total_score})`) .map((item) => `${item.checker_name}(${item.total_score})`)
.join('<br/>') .join('<br/>')
: '' : ''
} catch (error) {
console.log('评分人解析失败', error)
return ''
}
}, },
}, },
{ label: '提交时间', prop: 'commit_time' }, { label: '提交时间', prop: 'commit_time' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论