第一步:将序号所在的列type定义为index,通过序号所在列的index属性绑定事件进行处理
第二步:定义序号处理方法

   indexMethod(index){
      const {currentPage,pageSize} = this.initial.query
      return Number(currentPage) >1?(Number(currentPage)*Number(pageSize) + Number(index) + 1):(Number(index)+1)
    },

在这里插入图片描述

Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐