工资单问题

This commit is contained in:
黎永顺 2023-02-13 17:31:52 +08:00
parent a665200b9c
commit c22e326fd7
1 changed files with 5 additions and 14 deletions

View File

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