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

代码提交

上级 e9ae5dac
...@@ -93,11 +93,10 @@ export default { ...@@ -93,11 +93,10 @@ export default {
}, },
sortChange(columns) { sortChange(columns) {
if (columns.order === 'ascending') { if (columns.order === 'ascending') {
this.$parent.$parent.$parent.$parent.getClassList() this.tableOptions.remote.params.sort = columns.prop
return columns.prop
} else { } else {
columns.prop = '-' + columns.prop columns.prop = '-' + columns.prop
this.$parent.$parent.$parent.$parent.getClassList() this.tableOptions.remote.params.sort = columns.prop
} }
this.$refs.list.refetch() this.$refs.list.refetch()
}, },
......
...@@ -101,11 +101,10 @@ export default { ...@@ -101,11 +101,10 @@ export default {
// 根据首次缴费时间排序 // 根据首次缴费时间排序
sortChange(columns) { sortChange(columns) {
if (columns.order === 'ascending') { if (columns.order === 'ascending') {
this.$parent.$parent.$parent.$parent.getScoreRanking() this.tableOptions.remote.params.sort = columns.prop
return columns.prop
} else { } else {
columns.prop = '-' + columns.prop columns.prop = '-' + columns.prop
this.$parent.$parent.$parent.$parent.getScoreRanking() this.tableOptions.remote.params.sort = columns.prop
} }
this.$refs.list.refetch() this.$refs.list.refetch()
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论