需求: 需要在el-table中有一列是序号,且翻页时,序号要连续,且删除当前行时,序号需要从后往前递补;且这个序号不是通过后端返回的数组中取到的对应字段,需要纯前端处理 <el-table-column type="index" label="序号" width="60"> <template #default="scope"> {{ (pageNum-1)*pageSize+scope.$index+1 }} </template> </el-table-column>