提交 6131da4b authored 作者: matian's avatar matian

Auto stash before merge of "vite" and "origin/vite"

上级 751b094a
......@@ -29,7 +29,7 @@ export default {
columns: [
{ label: '班级名称', prop: 'class_name', align: 'center' },
{ label: '班级人数', prop: 'student_total', align: 'center', sortable: 'custom' },
{ label: '完成人数', prop: 'finishedStudentTotal', align: 'center', sortable: 'custom' },
{ label: '完成人数', prop: 'finished_student_total', align: 'center', sortable: 'custom' },
{ label: '课程完成率', prop: 'course_completion_rate', align: 'center', sortable: 'custom' },
{
label: '累计学习时长',
......
......@@ -93,10 +93,11 @@ export default {
},
sortChange(columns) {
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
this.$parent.$parent.$parent.$parent.getClassList()
return columns.prop
} else {
columns.prop = '-' + columns.prop
this.tableOptions.remote.params.sort = columns.prop
this.$parent.$parent.$parent.$parent.getClassList()
}
this.$refs.list.refetch()
},
......
......@@ -101,10 +101,11 @@ export default {
// 根据首次缴费时间排序
sortChange(columns) {
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
this.$parent.$parent.$parent.$parent.getScoreRanking()
return columns.prop
} else {
columns.prop = '-' + columns.prop
this.tableOptions.remote.params.sort = columns.prop
this.$parent.$parent.$parent.$parent.getScoreRanking()
}
this.$refs.list.refetch()
},
......
......@@ -29,7 +29,14 @@
</div>
<app-list v-bind="tableOptions" ref="list" @sort-change="sortChange">
<template v-slot:title="{ row }">
<a class="title_row" type="text" @click="toDetail(row)" v-html="row.title" :title="row.title.slice(3, -4)"></a>
<el-tooltip
class="title_row"
effect="dark"
:content="row.title.includes('<p>') ? row.title.slice(3, -4) : row.title"
placement="top-start"
>
<a class="title_row" type="text" @click="toDetail(row)" v-html="row.title"></a>
</el-tooltip>
</template>
</app-list>
</el-card>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论