custom/上海港湾多语言
This commit is contained in:
parent
1c547fffc9
commit
36f277c490
|
|
@ -52,6 +52,7 @@ import ExternalPersonManage from "./pages/externalPersonManage";
|
|||
import AdjustSalaryManage from "./pages/adjustSalaryManage";
|
||||
import TopologyMap from "./pages/topologyMap";
|
||||
import SupplementaryCalc from "./pages/supplementaryCalc";
|
||||
import SalaryManage from "./pages/custom-pages/gangwan/salaryManage"
|
||||
|
||||
import stores from "./stores";
|
||||
import "./style/index";
|
||||
|
|
@ -188,6 +189,7 @@ const Routes = (
|
|||
<Route key="externalPersonManage" path="externalPersonManage" component={ExternalPersonManage}/>
|
||||
<Route key="topologyView" path="topologyView/:salarySobId/:salaryItemId" component={TopologyMap}/>
|
||||
<Route key="supplementaryCalc" path="supplementaryCalc" component={SupplementaryCalc}/>
|
||||
<Route key="salaryManage" path="salaryManage" component={SalaryManage}/>
|
||||
</Route>
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,77 @@
|
|||
/*
|
||||
* 港湾二开
|
||||
* 薪酬管理页面-社保档案、薪资档案、薪资账套、个税扣缴义务人
|
||||
* @Author: 黎永顺
|
||||
* @Date: 2024/6/13
|
||||
* @Wechat:
|
||||
* @Email: 971387674@qq.com
|
||||
* @description:
|
||||
*/
|
||||
import React, { Component } from "react";
|
||||
import { WeaLocaleProvider, WeaTab } from "ecCom";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
class Index extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
selectedKey: "welfare"
|
||||
};
|
||||
}
|
||||
|
||||
renderContent = () => {
|
||||
const { selectedKey } = this.state;
|
||||
let dom = null;
|
||||
switch (selectedKey) {
|
||||
case "welfare":
|
||||
dom = <iframe
|
||||
style={{ border: 0, width: "100%", height: "100%" }}
|
||||
src="/spa/hrmSalary/static/index.html#/main/hrmSalary/socialSecurityBenefits/archives"
|
||||
/>;
|
||||
break;
|
||||
case "salary":
|
||||
dom = <iframe
|
||||
style={{ border: 0, width: "100%", height: "100%" }}
|
||||
src="/spa/hrmSalary/static/index.html#/main/hrmSalary/salaryFile"
|
||||
/>;
|
||||
break;
|
||||
case "agent":
|
||||
dom = <iframe
|
||||
style={{ border: 0, width: "100%", height: "100%" }}
|
||||
src="/spa/hrmSalary/static/index.html#/main/hrmSalary/taxAgent"
|
||||
/>;
|
||||
break;
|
||||
case "account":
|
||||
dom = <iframe
|
||||
style={{ border: 0, width: "100%", height: "100%" }}
|
||||
src="/spa/hrmSalary/static/index.html#/main/hrmSalary/ledger"
|
||||
/>;
|
||||
break;
|
||||
default:
|
||||
dom = null;
|
||||
break;
|
||||
}
|
||||
return dom;
|
||||
};
|
||||
|
||||
render() {
|
||||
const { selectedKey } = this.state;
|
||||
const topTab = [
|
||||
{ viewcondition: "welfare", title: getLabel(538001, "社保福利档案") },
|
||||
{ viewcondition: "salary", title: getLabel(538004, "薪资档案") },
|
||||
{ viewcondition: "agent", title: getLabel(537996, "个税扣缴义务人") },
|
||||
{ viewcondition: "account", title: getLabel(538010, "薪资账套") }
|
||||
];
|
||||
return (
|
||||
<WeaTab
|
||||
datas={topTab} selectedKey={selectedKey} keyParam="viewcondition"
|
||||
onChange={v => this.setState({ selectedKey: v })}
|
||||
>
|
||||
<div style={{ width: "100%", height: "calc(100vh - 46px)" }}>{this.renderContent()}</div>
|
||||
</WeaTab>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Index;
|
||||
|
|
@ -150,7 +150,7 @@ class Index extends Component {
|
|||
"操作日志": getLabel(545781, "操作日志")
|
||||
};
|
||||
const childFrameObj = document.getElementById("atdTable");
|
||||
childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
|
||||
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
|
||||
};
|
||||
getSalaryFileList = (props) => {
|
||||
const { pageInfo } = this.state;
|
||||
|
|
|
|||
Loading…
Reference in New Issue