diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js index af5bbfb0..8e13a182 100644 --- a/pc4mobx/hrmSalary/index.js +++ b/pc4mobx/hrmSalary/index.js @@ -1,7 +1,8 @@ import React from "react"; import Route from "react-router/lib/Route"; import { WeaLocaleProvider } from "ecCom"; -import MySalary from "./pages/mySalary"; +// import MySalary from "./pages/mySalary"; +import MySalary from "./pages/mySalaryBenefits"; import Programme from "./pages/socialSecurityBenefits/programme"; import Archives from "./pages/socialSecurityBenefits/archives"; import StandingBook from "./pages/socialSecurityBenefits/standingBook"; @@ -103,6 +104,7 @@ const Routes = ( onEnter={getLocaleLabel} component={Home}> + {/**/} 左侧内容 宽度200} + > +
右侧内容
+ + ); + } +} + +export default Index; diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js new file mode 100644 index 00000000..dadc5372 --- /dev/null +++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js @@ -0,0 +1,57 @@ +/* + * Author: 黎永顺 + * name: 我的薪资福利 + * Description: + * Date: 2023/11/13 + */ +import React, { Component } from "react"; +import { WeaLocaleProvider, WeaReqTop } from "ecCom"; +import Payroll from "./components/payrollTable"; +import moment from "moment"; + +const getLabel = WeaLocaleProvider.getLabel; + +class Index extends Component { + constructor(props) { + super(props); + this.state = { + selectedKey: "1", salaryYearMonth: [moment().startOf("year").format("YYYY-MM"), moment().format("YYYY-MM")] + }; + } + + renderChilidren = () => { + const { selectedKey } = this.state; + let Dom = null; + switch (selectedKey) { + case "1": + Dom = ; + break; + case "2": + Dom = null; + break; + default: + break; + } + return Dom; + }; + + render() { + const { selectedKey } = this.state; + const tabs = [ + { key: "1", title: getLabel(111, "工资单") }, + { key: "2", title: getLabel(543150, "调薪记录") } + ]; + return ( + } + iconBgcolor="#F14A2D" tabDatas={tabs} className="xc_tj_fx_wrapper" + buttons={[]} buttonSpace={10} selectedKey={selectedKey} + onChange={selectedKey => this.setState({ selectedKey })} + > + {this.renderChilidren()} + + ); + } +} + +export default Index;