feature/V2-dev合并多语言

This commit is contained in:
黎永顺 2023-12-04 13:42:37 +08:00
parent cf268d9931
commit 754e018ccf
1 changed files with 10 additions and 8 deletions

View File

@ -6,10 +6,12 @@
*/
import React, { Component } from "react";
import { Button, Tag } from "antd";
import { WeaDialog, WeaFormItem, WeaInputSearch, WeaTable } from "ecCom";
import { WeaDialog, WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaTable } from "ecCom";
import * as API from "../../../../apis/standingBook";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
class RegSelect extends Component {
constructor(props) {
super(props);
@ -76,7 +78,7 @@ class RegSelect extends Component {
current: pageInfo.pageNum,
pageSize: pageInfo.pageSize,
total: pageInfo.total,
showTotal: total => `${total}`,
showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
showQuickJumper: true,
onChange: (current) => {
this.setState({ pageInfo: { ...pageInfo, pageNum: current } }, () => {
@ -99,8 +101,8 @@ class RegSelect extends Component {
}
};
const buttons = [
<Button type="primary" onClick={this.handleSave}>保存</Button>,
<Button type="ghost" onClick={() => this.setState({ visible: false })}>取消</Button>
<Button type="primary" onClick={this.handleSave}>{getLabel(537558, "保存")}</Button>,
<Button type="ghost" onClick={() => this.setState({ visible: false })}>{getLabel(31129, "取消")}</Button>
];
return (
<div className="regSelectWrapper">
@ -114,7 +116,7 @@ class RegSelect extends Component {
size="small"
type="dashed"
onClick={() => this.setState({ visible: true }, () => this.getEmployeeListByTaxAgent())}
>添加人员</Button>
>{getLabel(383694, "添加人员")}</Button>
{
_.isEmpty(selectedRow) && viewAttr === 3 &&
<span className="wea-required-e9" style={{ verticalAlign: "middle" }}>
@ -124,7 +126,7 @@ class RegSelect extends Component {
</WeaFormItem>
<WeaDialog
onCancel={() => this.setState({ visible: false })}
title="人员"
title={getLabel(30042, "人员")}
visible={visible}
loading={loading}
style={{ width: 680, height: 500 }}
@ -134,7 +136,7 @@ class RegSelect extends Component {
<div style={{ display: "flex", justifyContent: "flex-end", margin: 10 }}>
<WeaInputSearch
value={userName}
placeholder="请输入姓名"
placeholder={getLabel(26919, "请输入姓名")}
onChange={(userName) => this.setState({ userName })}
onSearch={() => this.getEmployeeListByTaxAgent({ userName })}
/>
@ -143,7 +145,7 @@ class RegSelect extends Component {
rowKey="employeeId"
columns={[
{
title: "姓名",
title: getLabel(25034, "姓名"),
dataIndex: "username",
key: "username"
}