Type Indicates the column type. If selection is set, multiple selection boxes are displayed. If index is set, the index of the row (counting from 1) is displayed. If you set expand, it appears as an expandable button. Function(index){}

The type attribute index displays the index number starting from 1.

<el-table-column type="index" label=" "width="50" :index="indexMethod" align="center" > </el-table-column> indexMethod(index) { return (this.dataForm.pageNum - 1) * this.dataForm.pageSize + index + 1; },Copy the code

OK, settled!