关键代码
<el-table-column label="序号" prop="" width="180" align="center">
<template slot-scope="scope">
<span v-text="getIndex1(scope.$index)"> </span>
</template>
</el-table-column>
处理函数
//pageIndex当前页,pageSize每页数
getIndex($index) {
return (this.pageIndex -1) * this.pageSize + $index +1
},
效果图