diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js index b59a534a..79a1f799 100644 --- a/pc4mobx/hrmSalary/index.js +++ b/pc4mobx/hrmSalary/index.js @@ -37,12 +37,12 @@ import stores from "./stores"; import "./style/index"; // 读取系统多语言配置 -let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, "hrmSalary"); +let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, "HRM"); // 不需要读取系统多语言 -getLocaleLabel = function (nextState, replace, callback) { - callback(); -}; +// getLocaleLabel = function (nextState, replace, callback) { +// callback(); +// }; const Home = (props) => props.children; @@ -105,6 +105,8 @@ const Routes = ( /> + + {/*系统语言改造截止处*/} { return (
- 编辑 - 删除 + {getLabel(111, "编辑")} + {getLabel(111, "删除")} {/* 操作日志 */}
); }; @@ -80,8 +81,8 @@ export default class SalaryItem extends React.Component { handleDeleteItem(record) { const { salaryItemStore: { deleteItemRequest, getTableDatas } } = this.props; Modal.confirm({ - title: "信息确认", - content: "确认删除该条数据吗?", + title: getLabel(111, "信息确认"), + content: `${getLabel(111, "确认删除该条数据吗")}?`, onOk: () => { deleteItemRequest([record.id]).then(() => { getTableDatas({ ...this.state.searchParams }).then(res => { @@ -123,12 +124,12 @@ export default class SalaryItem extends React.Component { }); columns.push({ key: "operate", - title: "操作", + title: getLabel(111, "操作"), render: (text, record) => { return ( { this.onEditItem(record, true); - }}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"} + }}>{(showSalaryItemBtn || showOperateBtn) ? getLabel(111, "编辑") : getLabel(111, "查看")} ); } }); @@ -143,7 +144,7 @@ export default class SalaryItem extends React.Component { { this.handleDeleteItem(record); - }}>删除 + }}>{getLabel(111, "删除")} }> - 系统薪资项 - 自定义薪资项 + {getLabel(111, "系统薪资项")} + {getLabel(111, "自定义薪资项")} ); @@ -246,7 +247,8 @@ export default class SalaryItem extends React.Component { return (
{ (showOperateBtn || showSalaryItemBtn) && - 新增 + {getLabel(111, "新增")} } { (showOperateBtn || showSalaryItemBtn) && @@ -255,12 +257,12 @@ export default class SalaryItem extends React.Component { style={{ marginRight: "10px" }} onClick={() => { if (!selectedRowKeys.length) { - message.info("未选中任何数据!"); + message.info(getLabel(111, "未选中任何数据")); return; } Modal.confirm({ - title: "信息确认", - content: `确定要将所选的薪资项(共${selectedRowKeys.length}条数据)删除吗?`, + title: getLabel(111, "信息确认"), + content: `${getLabel(111, "确定要将所选的薪资项")}(${getLabel(111, "共")}${selectedRowKeys.length})${getLabel(111, "条数据")}${getLabel(111, "删除吗")}?`, onOk: () => { deleteItemRequest(selectedRowKeys).then(() => { getTableDatas({ ...this.state.searchParams }).then(res => { @@ -275,9 +277,9 @@ export default class SalaryItem extends React.Component { }); } }); - }}>批量删除薪资项 + }}>{getLabel(111, "批量删除薪资项")} } - { + { this.setState({ searchValue: value }); }} onSearch={(value) => { this.handleSearch(value); @@ -292,8 +294,8 @@ export default class SalaryItem extends React.Component { const { name, sharedType, taxAgentIds } = request; if (!name || (sharedType === "1" && !taxAgentIds)) { Modal.warning({ - title: "信息确认", - content: "必要信息不完整,红色*为必填项!" + title: getLabel(111, "信息确认"), + content: `${getLabel(111, "必要信息不完整,红色*为必填项")}!` }); return; } @@ -315,16 +317,16 @@ export default class SalaryItem extends React.Component { arrList = [ , + }}>{getLabel(111, "保存")}, + }}>{getLabel(111, "保存并继续创建")} ]; } else if (this.state.editable) { arrList = [ + }}>{getLabel(111, "保存")} ]; } return arrList; @@ -344,7 +346,7 @@ export default class SalaryItem extends React.Component { return (
} iconBgcolor="#F14A2D" showDropIcon={false} @@ -399,7 +401,7 @@ export default class SalaryItem extends React.Component { direction={"right"} title={ { handleAdd(); }} - >添加 + >{getLabel(111, "添加")} ]} >
{ this.handleSearchChange(value); }} diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js index a3ad1e83..6a6ba087 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js @@ -462,7 +462,7 @@ export default class StandingBook extends React.Component { return (
} // 左侧图标 iconBgcolor="#F14A2D" // 左侧图标背景色 buttons={showOperateBtn ? rightBtns : []}