泛微薪资核算iframe表格
This commit is contained in:
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}
|
||||
|
|
@ -232,7 +245,7 @@ const payrollFilesTable: FC = (props) => {
|
|||
<Table.Summary.Row>
|
||||
{
|
||||
sumRow.loading ? <Spin tip="加载中"/> :
|
||||
_.map([{},...totalColumns], (item, index) => {
|
||||
_.map([{}, ...totalColumns], (item, index) => {
|
||||
if (index === 0) {
|
||||
return <Table.Summary.Cell index={0} key={index} align="center"><Text
|
||||
type="danger">总计</Text></Table.Summary.Cell>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue