From 5b66b538b838f1b2ff968994e33c2ab5a9f309d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 16 Dec 2022 17:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=96=AA=E8=B5=84=E6=A1=A3?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/payrollFiles/index.js | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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}; } }; });