element-table翻頁修改index


1.實時翻頁改變index

<el-table-column type="index" 
:index="indexMethod" 
width="50" >
</el-table-column>

2、方法

  indexMethod(index) {
        return (this.pageNo-1)*this.pageSize+index+1;
      }

其中this.pageNo和this.pageSize是自己定義的參數,代表當前處於第幾頁和當前頁面的行數。

參考:https://blog.csdn.net/weixin_43905448/article/details/89030449


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM