解决:设置一个count方法,在换页后重新计算表格行号
<el-table-column label="ID" type="index" :index="count" />
在method方法中添加以下方法:
count(index) {
return (this.currentPage - 1) * this.pageSize + index + 1
},
解决:设置一个count方法,在换页后重新计算表格行号
<el-table-column label="ID" type="index" :index="count" />
在method方法中添加以下方法:
count(index) {
return (this.currentPage - 1) * this.pageSize + index + 1
},