diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/index.js index faef8b8c..0721f5d1 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/index.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/index.js @@ -14,13 +14,13 @@ import { WeaFormItem, WeaHelpfulTip, WeaInput, + WeaPopoverHrm, WeaSearchGroup, WeaSelect, WeaSlideModal, WeaTab, WeaTable, - WeaTop, - WeaPopoverHrm + WeaTop } from "ecCom"; import { WeaTableNew } from "comsMobx"; import { Button, Dropdown, Menu, message, Modal, Popover } from "antd"; @@ -148,8 +148,8 @@ class Index extends Component { const { taxAgentStore } = this.props; const { getTaxAgentSelectListAsAdmin } = taxAgentStore; getTaxAgentSelectListAsAdmin(); - const init = this.init(); this.queryList("/api/bs/hrmsalary/salaryArchive/pendingList"); + const init = this.init(); } init = async () => { @@ -192,7 +192,16 @@ class Index extends Component { const { loading, pageInfo, searchItemsValue } = this.state; const { payrollFilesStore: { tableStore, queryList } } = this.props; const payload = { ...pageInfo }; - this.setState({ loading: { ...loading, query: true } }); + this.setState({ + loading: { ...loading, query: true }, + dataSource: [], + tabCount: { + SUSPEND: 0, + STOP: 0, + FIXED: 0, + PENDING: 0 + } + }); queryList(payload, searchItemsValue, url).then(({ data, status }) => { this.setState({ loading: { ...loading, query: false } }); if (status) { @@ -427,7 +436,7 @@ class Index extends Component { ; } }; - }else if (item.dataIndex === "operate") { + } else if (item.dataIndex === "operate") { return { ...item, fixed: "right", @@ -487,7 +496,7 @@ class Index extends Component { ...item, width: item.oldWidth, render: (text) => { - return {text} + return {text}; } }; });