产品-多语言话
This commit is contained in:
parent
e2ce9eb457
commit
f4f024867b
|
|
@ -1,6 +1,9 @@
|
|||
import React, { PureComponent } from "react";
|
||||
import { WeaLocaleProvider } from "ecCom";
|
||||
import CustomTable from "../../components/customTable";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
class CustomPaginationTable extends PureComponent {
|
||||
shouldComponentUpdate(nextProps, nextState, nextContext) {
|
||||
return !(nextProps.columnIndex && this.props.columnIndex !== nextProps.columnIndex);
|
||||
|
|
@ -15,7 +18,7 @@ class CustomPaginationTable extends PureComponent {
|
|||
this.props.onPageChange(value);
|
||||
},
|
||||
total: this.props.total,
|
||||
showTotal: total => `共 ${total} 条`,
|
||||
showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
|
||||
current: this.props.current,
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: ["10", "20", "50", "100"],
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { DatePicker } from "antd";
|
||||
import { WeaNewScroll, WeaTop } from "ecCom";
|
||||
import { WeaLocaleProvider, WeaNewScroll, WeaTop } from "ecCom";
|
||||
import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
|
||||
import CustomTab from "../../components/customTab";
|
||||
import moment from "moment";
|
||||
|
|
@ -10,6 +10,7 @@ import Authority from "./authority";
|
|||
import CustomPaginationTable from "../../components/customPaginationTable";
|
||||
import "./index.less";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
const { RangePicker } = DatePicker;
|
||||
|
||||
@inject("mySalaryStore")
|
||||
|
|
@ -63,7 +64,7 @@ export default class MySalary extends React.Component {
|
|||
return (
|
||||
<a onClick={() => {
|
||||
this.handleView(record);
|
||||
}}>查看</a>
|
||||
}}>{getLabel(130277, "查看1")}</a>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
@ -118,17 +119,17 @@ export default class MySalary extends React.Component {
|
|||
|
||||
const topTab = [
|
||||
{
|
||||
title: "工资单",
|
||||
title: getLabel(503, "工资单"),
|
||||
viewcondition: "0"
|
||||
},
|
||||
{
|
||||
title: "调薪记录",
|
||||
title: getLabel(111, "调薪记录"),
|
||||
viewcondition: "2"
|
||||
}
|
||||
];
|
||||
const renderSearchOperationItem = () => {
|
||||
if (this.state.selectedKey === "0") {
|
||||
return (<div><span className="tabSearchLabel">薪资所属月:</span>
|
||||
return (<div><span className="tabSearchLabel">{getLabel(111, "薪资所属月:")}</span>
|
||||
|
||||
<RangePicker format="YYYY-MM"
|
||||
value={salaryRange}
|
||||
|
|
@ -143,7 +144,7 @@ export default class MySalary extends React.Component {
|
|||
<div className="mySalaryBenefitsWrapper">
|
||||
<Authority ecId={`${this && this.props && this.props.ecId || ""}_Authority@lulowc`} store={mySalaryStore}>
|
||||
<WeaTop
|
||||
title="我的薪资福利" // 文字
|
||||
title={getLabel(111, "我的薪资福利")} // 文字
|
||||
icon={<i className="icon-coms-fa"/>} // 左侧图标
|
||||
iconBgcolor="#F14A2D" // 左侧图标背景色
|
||||
showDropIcon={false} // 是否显示下拉按钮
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import React from "react";
|
||||
import { WeaDialog } from "ecCom";
|
||||
import { WeaDialog, WeaLocaleProvider } from "ecCom";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { toJS } from "mobx";
|
||||
import ComputerTemplate from "../payroll/templatePreview/computerTemplate";
|
||||
import "../payroll/templatePreview/index.less";
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
@inject("mySalaryStore")
|
||||
@observer
|
||||
|
|
@ -19,7 +20,7 @@ export default class PayrollModal extends React.Component {
|
|||
const salaryGroups = mySalaryBill.salaryGroups && toJS(mySalaryBill.salaryGroups);
|
||||
return (
|
||||
<WeaDialog
|
||||
title="工资单"
|
||||
title={getLabel(503, "工资单")}
|
||||
visible={this.props.visible} onCancel={() => {
|
||||
this.props.onCancel();
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue