![](https://i-blog.csdnimg.cn/blog_migrate/d86a499faaaccebabec11b373527c062.png)
<el-table
style="width: 100%"
:data="tableData.slice((page - 1) * size, (page - 1) * size + size)"
>
<el-table-column width="70" label="序号" align="center">
<template slot-scope="scope">
<span>{{ scope.$index + size * (page - 1) + 1 }}</span>
</template>
</el-table-column>
<el-table-column
prop="userAllPathName"
label="成员"
align="center"
></el-table-column>
</el-table>
<el-pagination
background
layout="prev, pager, next, jumper"
:total="tableData.length"
:page-size="size"
:current-page.sync="page"
@current-change="handleCurrentChange"
></el-pagination>
methods:{
// 修改页码
handleCurrentChange(val) {
this.page = val
},
}