提交 83a92229 authored 作者: matian's avatar matian

增加页面跳转

上级 ccbda7aa
......@@ -25,7 +25,16 @@
>导出</el-button
>
</div>
<app-list v-bind="tableOptions" ref="list" @sort-change="sortChange"></app-list>
<app-list v-bind="tableOptions" ref="list" @sort-change="sortChange">
<template v-slot:title="{ row }">
<el-button
type="text"
style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis"
@click="toDetail"
>{{ row.title }}</el-button
>
</template>
</app-list>
</el-card>
</template>
......@@ -82,7 +91,7 @@ export default {
},
columns: [
{ label: '排序', prop: 'ranking', align: 'center' },
{ label: '题干简述', prop: 'title', align: 'center' },
{ label: '题干简述', prop: 'title', align: 'center', slots: 'title', minWidth: 150 },
{
label: '题型',
prop: 'type',
......@@ -126,6 +135,7 @@ export default {
type: this.type,
course_id: this.course_id,
examination_id: this.examination_id,
chapter_id: this.chapter_id,
download: 'true',
question_type: this.value
}
......@@ -153,6 +163,17 @@ export default {
this.tableOptions.remote.params.sort = columns.prop
}
this.$refs.list.refetch()
},
toDetail(row) {
this.$router.push({
path: '/teacher/data/exam/examData/topicData',
query: {
course_id: this.course_id,
examination_id: this.examination_id,
chapter_id: this.chapter_id,
question_id: row.question_id
}
})
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论