antd-vue 表格序号自增
2020-04-24 本文已影响0人
zhang_sir_
columns: [
{
filterMultiple:false,
title: '编号',
width:60,
align:"center",
customRender:(t,r,index)=> {
return parseInt(`${(this.ipagination.current-1)*this.limit + (index+1)}`);
}
},
{
title: '操作人',
align: "center",
width:200,
dataIndex: 'operator',
},
{
title: '操作日期',
align: "center",
width:200,
dataIndex: 'operateDate',
},
],
页面效果: