提交 4638d63a authored 作者: matian's avatar matian

修改批改大作业默认显示问题

上级 e5f39237
...@@ -256,7 +256,6 @@ const handleExamDetail = (row: any) => { ...@@ -256,7 +256,6 @@ const handleExamDetail = (row: any) => {
:key="item.id" :key="item.id"
style="margin-top: 10px" style="margin-top: 10px"
></PreviewFiles> ></PreviewFiles>
<el-empty description="暂无数据" v-if="!resourceData.lessonPlan.length" /> <el-empty description="暂无数据" v-if="!resourceData.lessonPlan.length" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="资料" name="3"> <el-tab-pane label="资料" name="3">
......
...@@ -60,6 +60,9 @@ const handleGetWorkDetail = () => { ...@@ -60,6 +60,9 @@ const handleGetWorkDetail = () => {
form[key] = res.data[key] form[key] = res.data[key]
}) })
form.attachments = JSON.parse(form.attachments) form.attachments = JSON.parse(form.attachments)
if (form.score === '0.00') {
form.score = ''
}
}) })
} }
</script> </script>
......
...@@ -83,7 +83,11 @@ const listOptions = $computed(() => { ...@@ -83,7 +83,11 @@ const listOptions = $computed(() => {
prop: 'score', prop: 'score',
align: 'center', align: 'center',
computed(row: any) { computed(row: any) {
return row.row.score || '-' if (row.row.score === '0.00') {
return '-'
} else {
return row.row.score
}
} }
}, },
{ label: '操作', slots: 'table-operate', align: 'center' } { label: '操作', slots: 'table-operate', align: 'center' }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论