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

feat:代码提交

上级 ddffc92f
<template> <template>
<app-container> <app-container>
<app-list v-bind="tableOptions" ref="list"> <app-list v-bind="tableOptions" ref="list">
<template v-slot:table-name="{ row }"> <template #header-aside>
<el-link type="primary">{{ row.paper_title }}</el-link> <el-button type="text" size="mini" @click="toExamData(row)">导出</el-button>
</template> </template>
<!-- 操作 --> <!-- 操作 -->
<template v-slot:table-operate="{ row }"> <template v-slot:table-operate="{ row }">
...@@ -15,18 +15,14 @@ ...@@ -15,18 +15,14 @@
<script> <script>
export default { export default {
data() { data() {
return { return {}
}
}, },
computed: { computed: {
// 列表配置 // 列表配置
tableOptions() { tableOptions() {
return { return {
remote: { remote: {},
}, filters: [{ type: 'input', prop: 'paper_title', placeholder: '学生姓名', label: '学生姓名' }],
filters: [
{ type: 'input', prop: 'paper_title', placeholder: '学生姓名', label: '学生姓名' }
],
columns: [ columns: [
{ label: '学生姓名', prop: 'paper_title', slots: 'table-name' }, { label: '学生姓名', prop: 'paper_title', slots: 'table-name' },
{ label: '总得分', prop: 'class_name', align: 'center', sortable: true }, { label: '总得分', prop: 'class_name', align: 'center', sortable: true },
...@@ -47,7 +43,7 @@ export default { ...@@ -47,7 +43,7 @@ export default {
methods: { methods: {
toExamData(row) { toExamData(row) {
// this.$router.push({ // this.$router.push({
// path: '', // path: '/teacher/data/exam/classDetail',
// query: { // query: {
// row: row // row: row
// } // }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论