产品-系统多语言
This commit is contained in:
parent
b0d176d911
commit
c2b659681b
|
|
@ -1,9 +1,12 @@
|
|||
import React, { Component } from "react";
|
||||
import { WeaLocaleProvider } from "ecCom";
|
||||
import ImportModal from "../../../components/importModal";
|
||||
import * as API from "../../../apis/payrollFiles";
|
||||
import { Menu, Modal } from "antd";
|
||||
import "../index.less";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
class ImportMenu extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
|
@ -26,7 +29,7 @@ class ImportMenu extends Component {
|
|||
params.listType = "FIXED";
|
||||
} else {
|
||||
params.listType = this.state.importParams.importType;
|
||||
params.importType = '';
|
||||
params.importType = "";
|
||||
}
|
||||
API.salaryArchivePreview(params).then(({ status, data }) => {
|
||||
if (status) {
|
||||
|
|
@ -54,8 +57,8 @@ class ImportMenu extends Component {
|
|||
const { key } = e;
|
||||
if (key === "init") {
|
||||
Modal.confirm({
|
||||
title: "信息确认",
|
||||
content: `若导入表格中的人员已存在在薪资档案中,初始化导入会将档案中该人员的数据清除再导入,点击确定继续导入`,
|
||||
title: getLabel(111, "信息确认"),
|
||||
content: getLabel(111, `若导入表格中的人员已存在在薪资档案中,初始化导入会将档案中该人员的数据清除再导入,点击确定继续导入`),
|
||||
onOk: () => {
|
||||
this.setState({
|
||||
importParams: {
|
||||
|
|
@ -96,7 +99,7 @@ class ImportMenu extends Component {
|
|||
params.importType = this.state.importParams.importType;
|
||||
params.listType = "FIXED";
|
||||
} else {
|
||||
params.importType = '';
|
||||
params.importType = "";
|
||||
params.listType = this.state.importParams.importType;
|
||||
}
|
||||
API.importSalaryArchive(params).then(({ status, data }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue