custom/上海港湾-工资单查看添加领导查询下属的功能

This commit is contained in:
黎永顺 2023-12-11 15:46:01 +08:00
parent 7eadce16ff
commit 62baaa9a33
1 changed files with 7 additions and 3 deletions

View File

@ -32,6 +32,9 @@ class Index extends Component {
case "2":
Dom = <SalaryAdjustmentRecords/>;
break;
case "3":
Dom = <SalaryAdjustmentRecords/>;
break;
default:
break;
}
@ -42,7 +45,8 @@ class Index extends Component {
const { selectedKey, salaryYearMonth } = this.state;
const tabs = [
{ key: "1", title: getLabel(111, "工资单") },
{ key: "2", title: getLabel(543150, "调薪记录") }
{ key: "2", title: getLabel(543150, "调薪记录") },
{ key: "3", title: getLabel(111, "下属工资单") }
];
const btns = [
<div className="flex-salary">
@ -53,9 +57,9 @@ class Index extends Component {
];
return (
<WeaReqTop
title={getLabel(537998, "我的薪资福利")} icon={<i className="icon-coms-fa"/>}
title={getLabel(537998, "薪资福利")} icon={<i className="icon-coms-fa"/>}
iconBgcolor="#F14A2D" tabDatas={tabs} className="mySalary_wrapper"
buttons={selectedKey === "1" ? btns : []} buttonSpace={10} selectedKey={selectedKey}
buttons={selectedKey !== "2" ? btns : []} buttonSpace={10} selectedKey={selectedKey}
onChange={selectedKey => this.setState({ selectedKey })}
>
{this.renderContent()}