feature/V2-dev合并多语言
This commit is contained in:
parent
cf268d9931
commit
754e018ccf
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue