关于使用elementUI自定义排序失效问题

雷亚荣

关注

阅读 140

2022-04-14

关于使用elementUI自定义排序失效问题、

项目有这样一个需求:做报表的时候要整张表进行排序,使用elementUI的sortable只是在本页分页,需要在 Table 上监听sort-change事件
elementUI描述

 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

  });

精彩评论(0)

0 0 举报