咏竹莉
where there is a will,there is a way
<el-table-column label="序号" type="index" width="50" align="center">
  <template slot-scope="scope">
      <span>{undefined{(page.currentPage - 1) * page.pageSize + scope.$index + 1}}</span>
  </template>
</el-table-column>

 

page: {
        currentPage: 1, // 当前页
        pageSize: 10, // 每页显示条目个数
        totalCount: 0 // 总条目数
},

 

posted on 2021-12-10 14:28  咏竹莉  阅读(738)  评论(0编辑  收藏  举报