提交 a111cf19 authored 作者: matian's avatar matian

代码提交

上级 7e0f2214
...@@ -57,6 +57,7 @@ export default { ...@@ -57,6 +57,7 @@ export default {
}, },
methods: { methods: {
toPersonal(row) { toPersonal(row) {
if (this.tabActive === '2') {
this.$router.push({ this.$router.push({
path: '/teacher/data/exam/PersonalList', path: '/teacher/data/exam/PersonalList',
query: { query: {
...@@ -68,6 +69,9 @@ export default { ...@@ -68,6 +69,9 @@ export default {
status: this.tabActive status: this.tabActive
} }
}) })
} else {
return ''
}
}, },
sortChange(columns) { sortChange(columns) {
if (columns.order === 'ascending') { if (columns.order === 'ascending') {
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
type="text" type="text"
style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c01540" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c01540"
@click="toDetail(row)" @click="toDetail(row)"
>{{ row.title }}</a v-html="row.title"
> ></a>
</template> </template>
</app-list> </app-list>
</el-card> </el-card>
......
...@@ -40,7 +40,22 @@ export default { ...@@ -40,7 +40,22 @@ export default {
{ label: '主观题得分', prop: 'subjective', align: 'center', sortable: 'custom' }, { label: '主观题得分', prop: 'subjective', align: 'center', sortable: 'custom' },
{ label: '客观题得分', prop: 'objective', align: 'center', sortable: 'custom' }, { label: '客观题得分', prop: 'objective', align: 'center', sortable: 'custom' },
{ label: '完成时间', prop: 'duration', align: 'center', sortable: 'custom' }, { label: '完成时间', prop: 'duration', align: 'center', sortable: 'custom' },
{ label: '状态', prop: 'status', align: 'center' }, {
label: '状态',
prop: 'status',
align: 'center',
computed({ row }) {
if (row.status === 2) {
return '已完成'
} else if (row.status === 1) {
return '待批阅'
} else if (row.status === 0) {
return '未提交'
} else if (row.status === 100) {
return '未作答'
}
}
},
{ label: '操作', slots: 'table-operate', align: 'center' } { label: '操作', slots: 'table-operate', align: 'center' }
] ]
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论