<el-table-column prop="id" label="序号" width="180" align="center">
<template slot-scope="scope">
<!-- 显示序号:当前索引+(默认显示页数-1)*每页显示数量+1 -->
{{scope.$index+(currentPage-1)*pageSize+1}}
<!--{{索引+(1-1)*6+1}} 从第1条显示-->
<!--{{索引+(2-1)*6+1}} 从第7条显示-->
<!-- 默认显示页数currentPage是会变的,pageSize不变-->
</template>
</el-table-column>