diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js index 6bf91113..f20f1570 100644 --- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js +++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js @@ -5,7 +5,7 @@ import { WeaDropdown, WeaHelpfulTip, WeaTab, WeaTop } from "ecCom"; import { Button, Dropdown, Menu, message } from "antd"; import "./index.less"; import { getQueryString } from "../../../util/url"; -import { getSearchs } from "../../../util"; +import { getSearchs, renderLoading } from "../../../util"; import CustomPaginationTable from "../../../components/customPaginationTable"; import PayrollPartTable from "./payrollPartTable"; @@ -56,7 +56,9 @@ export default class PayrollGrant extends React.Component { }).then(() => { getInfoList({ salarySendId: this.state.currentId, - isGranted: selectedKey !== "0" + isGranted: selectedKey !== "0", + current: this.pageInfo.current, + pageSize: this.pageInfo.pageSize }); this.handleClose(); }); @@ -73,7 +75,10 @@ export default class PayrollGrant extends React.Component { }).then(() => { getInfoList({ salarySendId: currentId, - isGranted: selectedKey !== "0" + isGranted: selectedKey !== "0", + current: this.pageInfo.current, + pageSize: this.pageInfo.pageSize + }); this.handleClose(); }); @@ -466,23 +471,26 @@ export default class PayrollGrant extends React.Component {
- { - this.pageInfo.current = value; - this.handleDataPageChange(value); - }} - onShowSizeChange={(current, pageSize) => { - this.pageInfo = { current, pageSize }; - this.handleShowSizeChange(this.pageInfo); - }} - /> + { + !_.isEmpty(this.getColumns()) ? + { + this.pageInfo.current = value; + this.handleDataPageChange(value); + }} + onShowSizeChange={(current, pageSize) => { + this.pageInfo = { current, pageSize }; + this.handleShowSizeChange(this.pageInfo); + }} + /> : renderLoading() + }
({ ...it, - includeObj: _.map(it.includeObj, child => child.targetName).join(","), - excludeObj: _.map(it.excludeObj, child => child.targetName).join(",") + includeObj: _.map(it.includeObj, child => child.targetName || child.targetTypeName).join(","), + excludeObj: _.map(it.excludeObj, child => child.targetName || child.targetTypeName).join(",") })), columns });