element-ui表格翻页的序号递增

1、写方法体里




js:

method:{
indexMethod (index) {
  let curpage = this.page.pagination.pageData.page   //单前页码,具体看组件取值
  let limitpage = this.page.pagination.pageData.limit    //每页条数,具体是组件取值
  return (index+1) + (curpage-1)*limitpage
}
}

2、直接写dom里





你可能感兴趣的:(element-ui表格翻页的序号递增)