<el-table>
<el-table-column label="序号" type="index" width="70" align="center">
<template slot-scope="scope">
<span v-text="getIndex(scope.$index)"> </span>
</template>
</el-table-column>
</el-table>
data() {
return {
queryParams: {
pageNo: 1,
pageSize: 10,
oneName:null,
},
},
//获取表格序号
getIndex($index) {
return (this.queryParams.pageNo - 1) * this.queryParams.pageSize + $index + 1
},
element 列表自定义序号
最新推荐文章于 2024-02-22 14:22:57 发布