泛微薪资核算iframe表格

custom-新弘农业/V2-薪资核算表格添加序号列
黎永顺 2 years ago
parent f7a7c328aa
commit 3775b103dc

@ -59,7 +59,18 @@ const CommonTable: FC = (props) => {
return <Table
rowKey="id"
className={styles.tableWrapper}
columns={columns}
columns={[
{
title: "序号",
dataIndex: "index",
width: 50,
fixed: "left",
render: (text: any, record: any, index: number) => {
return (pageInfo.pageNum - 1) * pageInfo.size + index + 1;
}
},
...columns
]}
dataSource={dataSource}
bordered
size="small"

@ -208,7 +208,20 @@ const payrollFilesTable: FC = (props) => {
[styles.tableWrapper]: true,
[styles.tableTotalWrapper]: true
})}
columns={columns}
columns={
[
{
title: "序号",
dataIndex: "index",
width: 50,
fixed: "left",
render: (text: any, record: any, index: number) => {
return (pageInfo.pageNum - 1) * pageInfo.size + index + 1;
}
},
...columns
]
}
dataSource={dataSource}
size="small"
rowSelection={rowSelection}

Loading…
Cancel
Save