Vue using elementUI behind the page does not sort the problem
{{scope.$index}} can get the index of the current row. <el-table :data="List"> <el-table-column label=" serial number "type="index" width="120" > <template slot-scope="scope"> <span>{{ (page - 1) * pagesize + scope.$index + 1 }}</span> </template> </el-table-column> </el-table>Copy the code