关于使用elementUI自定义排序失效问题、
项目有这样一个需求:做报表的时候要整张表进行排序,使用elementUI的sortable
只是在本页分页,需要在 Table 上监听sort-change事件
tableChange(column){
if (column.order == 'descending') {
this.columnOrder=false
}else{
this.columnOrder=true
}
this.columnProp = column.prop
this.handleSearchTable();
},
Object.assign(params, {
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
asc : this.columnOrder,
orderBy : this.columnProp
});