前端基础学习-根据当前页和size确定table序号
单纯根据index索引无法在表格翻页后进行累加
下面是根据当前页面page和size来确定list数据的序号
<el-table-column label="序号" width="50" align="center">
<template slot-scope="scope">
<span>{{( searchForm.page -1 ) * searchForm.size + scope.$index + 1 }}</span>
</template>
</el-table-column>
效果
当翻页之后