提交 1c232bac authored 作者: matian's avatar matian

代码提交

上级 a111cf19
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<div :class="`paper-title active${row.ranking}`">{{ row.ranking }}</div> <div :class="`paper-title active${row.ranking}`">{{ row.ranking }}</div>
</template> </template>
<template v-slot:table-name="{ row }"> <template v-slot:table-name="{ row }">
<el-button type="text" @click="toPersonal(row)">{{ row.class_name }}</el-button> <el-button type="text" @click="toPersonal(row)" v-if="tabActive === '2' || tabActive === '1'">{{
row.class_name
}}</el-button>
<div v-if="tabActive === '100' || tabActive === '0'">{{ row.class_name }}</div>
</template> </template>
</app-list> </app-list>
</app-container> </app-container>
...@@ -57,21 +60,17 @@ export default { ...@@ -57,21 +60,17 @@ 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: { class_id: row.class_id,
class_id: row.class_id, course_id: this.paramList.course_id,
course_id: this.paramList.course_id, examination_id: this.paramList.examination_id,
examination_id: this.paramList.examination_id, chapter_id: this.paramList.chapter_id,
chapter_id: this.paramList.chapter_id, type: this.paramList.type,
type: this.paramList.type, status: this.tabActive
status: this.tabActive }
} })
})
} else {
return ''
}
}, },
sortChange(columns) { sortChange(columns) {
if (columns.order === 'ascending') { if (columns.order === 'ascending') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论