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

代码提交

上级 7e0f2214
......@@ -57,17 +57,21 @@ export default {
},
methods: {
toPersonal(row) {
this.$router.push({
path: '/teacher/data/exam/PersonalList',
query: {
class_id: row.class_id,
course_id: this.paramList.course_id,
examination_id: this.paramList.examination_id,
chapter_id: this.paramList.chapter_id,
type: this.paramList.type,
status: this.tabActive
}
})
if (this.tabActive === '2') {
this.$router.push({
path: '/teacher/data/exam/PersonalList',
query: {
class_id: row.class_id,
course_id: this.paramList.course_id,
examination_id: this.paramList.examination_id,
chapter_id: this.paramList.chapter_id,
type: this.paramList.type,
status: this.tabActive
}
})
} else {
return ''
}
},
sortChange(columns) {
if (columns.order === 'ascending') {
......
......@@ -32,8 +32,8 @@
type="text"
style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c01540"
@click="toDetail(row)"
>{{ row.title }}</a
>
v-html="row.title"
></a>
</template>
</app-list>
</el-card>
......
......@@ -40,7 +40,22 @@ export default {
{ label: '主观题得分', prop: 'subjective', align: 'center', sortable: 'custom' },
{ label: '客观题得分', prop: 'objective', 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' }
]
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论