- element-ui的序号
<el-table-column
prop="id" header-align="center"
align="center" width="40" label="ID">
<template slot-scope="scope">
{{ (pageIndex - 1) * pageSize + scope.$index + 1 }}
</template>
</el-table-column>
- iview的序号
{
title: '序号', width: 60,
key: 'id',
render: (h, params) => {
return h("span", params.index + (this.queryForm.pageNum - 1) * this.queryForm.pageSize + 1);
},
tableColumn: 'lpggas.Id',
//sortable: 'custom'
},