https://i.cnblogs.com/posts?cateId=1048797

<template>
  <el-table
    :data="list"
    class="bg-fff"
    :row-class-name="rowIndex"
    >
    <el-table-column
      :formatter="order"
      label="序号"
      width="100">
    </el-table-column>
  </el-table>
</template>
methods: {
    rowIndex({row, rowIndex}) {
      row.rowIndex = rowIndex;
    },
    order(row) {
      return this.pageBeanInter.pageSize * (this.pageBeanInter.pageNum - 1) + row.rowIndex + 1;
    }
  }

 

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2021-06-21
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-08-20
猜你喜欢
  • 2022-01-02
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-11-05
相关资源
相似解决方案