zmdblog

公式:

page.total - (循环变量 + page.limit * (当前页数 - 1))

 

样式:

 

 

思路:

 <el-table-column label="序号" width="100">
          <template slot-scope="scopeIndex">
            <span>{{computedIndex(scopeIndex.$index)}}</span>
          </template>
        </el-table-column>

  

 computed: {
    computedIndex() {
      return val => {
          return this.page.total - (val + this.page.pageSize * (this.page.currentPage - 1))
      };
    },
}

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-11-06
  • 2021-10-28
  • 2021-11-03
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2021-11-09
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案