From c22e326fd7fe8125284de4a9901bcff5d65a3d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Mon, 13 Feb 2023 17:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=B5=84=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/mySalary/index.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/mySalary/index.js b/pc4mobx/hrmSalary/pages/mySalary/index.js index 43197cb1..8af3bfb1 100644 --- a/pc4mobx/hrmSalary/pages/mySalary/index.js +++ b/pc4mobx/hrmSalary/pages/mySalary/index.js @@ -41,7 +41,7 @@ export default class MySalary extends React.Component { }); }; - getColumns() { + getColumns = () => { const { mySalaryStore: { myBillTableStore } } = this.props; let columns = myBillTableStore.columns ? myBillTableStore.columns : []; columns = columns.filter(item => item.hide == "false"); @@ -68,7 +68,7 @@ export default class MySalary extends React.Component { } }); return columns; - } + }; // 区间改变事件 handleSalaryRangePickerChange = (range) => { @@ -86,7 +86,7 @@ export default class MySalary extends React.Component { }; - handleTabChange=(selectedKey)=> { + handleTabChange = (selectedKey) => { if (selectedKey === "2") { const { mySalaryStore: { getRecordList } } = this.props; getRecordList(); @@ -113,17 +113,8 @@ export default class MySalary extends React.Component { recordListPageInfo, myBillPageInfo } = mySalaryStore; - const { salaryBillVisible } = this.state; - if (!hasRight && !loading) { // 无权限处理 - return renderNoright(); - } - const collectParams = { // 收藏功能配置 - favname: "我的薪资福利", - favouritetype: 1, - objid: 0, - link: "wui/index.html#/ns_demo03/index", - importantlevel: 1 - }; + const { salaryBillVisible, salaryInfoId, salaryRange } = this.state; + if (!hasRight && !loading) return renderNoright(); const topTab = [ {