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 = [ {