多语言完善
This commit is contained in:
parent
124d9df32f
commit
7de556b231
|
|
@ -1,7 +1,8 @@
|
|||
|
||||
import {
|
||||
WeaTools
|
||||
WeaTools,WeaLocaleProvider
|
||||
} from 'ecCom'
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
export const getSearchList = (params) => {
|
||||
return fetch('/api/bs/hrmorganization/dept/listPage', {
|
||||
|
|
@ -50,7 +51,7 @@ export const exportData = () => {
|
|||
return new Promise(resolve => {
|
||||
fetch('/api/bs/hrmorganization/common/department/export').then(res => res.blob().then(blob => {
|
||||
resolve();
|
||||
var filename=`部门档案.xlsx`
|
||||
var filename=`${getLabel(547606,'部门档案数据')}.xlsx`
|
||||
var a = document.createElement('a');
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
a.href = url;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
|
||||
import {
|
||||
WeaTools
|
||||
WeaTools,WeaLocaleProvider
|
||||
} from 'ecCom'
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
export const getSearchList = (params) => {
|
||||
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/listPage', 'GET', params);
|
||||
|
|
@ -52,7 +53,7 @@ export const exportResource = (ids) => {
|
|||
return new Promise(resolve => {
|
||||
fetch('/api/bs/hrmorganization/common/resource/export?ids='+ids).then(res => res.blob().then(blob => {
|
||||
resolve();
|
||||
var filename=`人员档案.xlsx`
|
||||
var filename=`${getLabel(547539,'人员信息')}.xlsx`
|
||||
var a = document.createElement('a');
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
a.href = url;
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ export default class Department extends React.Component {
|
|||
department
|
||||
} = this.props;
|
||||
|
||||
department.setNeDialogTitle("联查岗位");
|
||||
department.setNeDialogTitle(i18n.button.associateJob());
|
||||
department.setVisible(true);
|
||||
department.setDialogLoadingStatus(true);
|
||||
department.getPostionTable(id);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import {
|
|||
WeaRightMenu,
|
||||
WeaTable,
|
||||
WeaLeftRightLayout,
|
||||
WeaOrgTree, WeaDialog
|
||||
WeaOrgTree, WeaDialog,WeaLocaleProvider
|
||||
} from 'ecCom'
|
||||
import {
|
||||
Row,
|
||||
|
|
@ -44,6 +44,7 @@ import NewAndEditDialog from '../NewAndEditDialog';
|
|||
import NewWeaTableDialog from '../NewWeaTableDialog';
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
|
||||
const toJS = mobx.toJS;
|
||||
|
|
@ -145,7 +146,7 @@ export default class Job extends React.Component {
|
|||
job
|
||||
} = this.props;
|
||||
|
||||
job.setNeDialogTitle("联查人员");
|
||||
job.setNeDialogTitle(getLabel(547609,'联查人员'));
|
||||
job.setVisible(true);
|
||||
job.getHrmTable(id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export default class LogView extends React.Component {
|
|||
this.setState({
|
||||
record:record,
|
||||
detailVisible: true,
|
||||
detailDialogTitle: record.operate_typespan + " - " + record.operate_module_name + " : "+record.value
|
||||
detailDialogTitle: record.operate_typespan + " - " + record.operate_module_namespan + " : "+record.value
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,12 +20,15 @@ import {
|
|||
import {
|
||||
findIndex
|
||||
} from 'lodash';
|
||||
import {
|
||||
WeaLocaleProvider
|
||||
} from 'ecCom'
|
||||
|
||||
const toJS = mobx.toJS;
|
||||
const {
|
||||
TableStore
|
||||
} = WeaTableNew;
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
export class JobStore {
|
||||
@observable tableStore = new TableStore();
|
||||
|
|
@ -161,7 +164,7 @@ export class JobStore {
|
|||
Api.refresh().then(res => {
|
||||
if (res.code === 200) {
|
||||
this.getTableInfo();
|
||||
message.success("数据刷新成功");
|
||||
message.success(getLabel(547202,'数据刷新成功'));
|
||||
} else {
|
||||
message.warning(res.msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue