产品-多语言系统

This commit is contained in:
黎永顺 2023-04-14 15:26:51 +08:00
parent e2ef01994a
commit 3bec34092f
1 changed files with 7 additions and 2 deletions

View File

@ -157,8 +157,12 @@ export default class NormalIndex extends Component {
const { current, pageSize, tableData, selectedRowKeys, showSum, siaccountSum } = this.state;
const { list: dataSource, total, columns } = tableData;
const pageInfo = { current, pageSize, total };
const i18n = {
"总计": "total", "编辑": getLabel(111, "编辑"),
"操作": getLabel(111, "操作"), "姓名": getLabel(111, "姓名")
};
childFrameObj.contentWindow.postMessage(JSON.stringify({
dataSource, columns, pageInfo,
dataSource, columns, pageInfo, i18n,
selectedRowKeys, showSum, siaccountSum,
showOperates: !getQueryString("type")
}), "*");
@ -486,7 +490,8 @@ export default class NormalIndex extends Component {
<div className="month">
<span>
{getLabel(111, "账单月份")}
<Tooltip placement="topLeft" title={`${getLabel(111, "提示")}:${getLabel(111, "正常缴纳")}${getLabel(111, "账单月份即社保福利缴纳月份")}`}>
<Tooltip placement="topLeft"
title={`${getLabel(111, "提示")}:${getLabel(111, "正常缴纳")}${getLabel(111, "账单月份即社保福利缴纳月份")}`}>
<Icon type="question-circle"/>
</Tooltip>
</span>