<el-table ref="multipleTable" :data="tableData" @sort-change="changeTableSort"></el-tabel>
changeTableSort (column) {
if (column.prop === 'returnedMoneyDate' || column.prop === 'planMoney' || column.prop === 'returnedMoney') {
this.sortParam[0].fieldName = column.prop
} else {
this.sortParam[0].fieldName = ''
}
var sortingType = column.order
if (sortingType === 'ascending') {
this.sortParam[0].type = 'ASC'
} else if (sortingType === 'descending') {
this.sortParam[0].type = 'DESC'
} else {
this.sortParam[0].type = 'NON'
}
this.listTable()
},
可以的大家点点关注-总结不易谢谢大家-也可以留言需要哪类的我也可以尝试