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