泛微薪资核算iframe表格

This commit is contained in:
黎永顺 2023-06-01 13:36:29 +08:00
parent bbf2a4ebdb
commit cc3a671f7c
1 changed files with 3 additions and 2 deletions

View File

@ -106,6 +106,7 @@ const StandingbookTable: FC = (props) => {
};
const rowSelection = {
selectedRowKeys: selected,
columnWidth: 80,
onChange: (selectedRowKeys: Array<any>) => {
setSelected(selectedRowKeys);
window.parent.postMessage(
@ -136,9 +137,9 @@ const StandingbookTable: FC = (props) => {
<Table.Summary.Row>
{
_.isEmpty(sumRow) ? <Spin tip="加载中"/> :
_.map(columns, (item, index) => {
_.map([{}, ...columns], (item, index) => {
if (index === 0) {
return <Table.Summary.Cell colSpan={2} index={0} key={index} align="center"><Text
return <Table.Summary.Cell index={0} key={index} align="center"><Text
type="danger"></Text></Table.Summary.Cell>;
}
return <Table.Summary.Cell index={index} key={index}>