0
点赞
收藏
分享

微信扫一扫

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

雷亚荣 2022-04-14 阅读 140
vue.js

关于使用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 条评论