diff --git a/src/pages/payrollFilesTable/index.tsx b/src/pages/payrollFilesTable/index.tsx index d47ac2c..dd02c76 100644 --- a/src/pages/payrollFilesTable/index.tsx +++ b/src/pages/payrollFilesTable/index.tsx @@ -1,7 +1,7 @@ import React, { FC, useEffect, useState } from "react"; import { Button, Dropdown, Menu, Space, Spin, Table, Typography } from "antd"; import { DownOutlined } from "@ant-design/icons"; -import { exceptStr, paginationFun } from "@/utils/common"; +import { convertColumns, exceptStr, paginationFun } from "@/utils/common"; import styles from "@/pages/atdTable/components/index.less"; import { defaultPage, IPage } from "@/common/types"; import cs from "classnames"; @@ -158,7 +158,7 @@ const payrollFilesTable: FC = (props) => { } }; } - return { ...item }; + return _.omitBy({ ...item }, item => !item); })); setShowSumrow(showSum); setSumRow(_.isEmpty(countResult) ? { [new Date().getTime()]: new Date().getTime() } : countResult); @@ -202,13 +202,14 @@ const payrollFilesTable: FC = (props) => { ); } }; + return