diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/index.js index 7373b6da..f19d2d61 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/index.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/index.js @@ -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) {