diff --git a/pc4mobx/organization/apis/department.js b/pc4mobx/organization/apis/department.js index a98ec59..58a02d8 100644 --- a/pc4mobx/organization/apis/department.js +++ b/pc4mobx/organization/apis/department.js @@ -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; diff --git a/pc4mobx/organization/apis/resource.js b/pc4mobx/organization/apis/resource.js index 3d5c366..7e05037 100644 --- a/pc4mobx/organization/apis/resource.js +++ b/pc4mobx/organization/apis/resource.js @@ -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; diff --git a/pc4mobx/organization/components/department/department.js b/pc4mobx/organization/components/department/department.js index e322700..6bbbb74 100644 --- a/pc4mobx/organization/components/department/department.js +++ b/pc4mobx/organization/components/department/department.js @@ -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); diff --git a/pc4mobx/organization/components/job/Job.js b/pc4mobx/organization/components/job/Job.js index 1c49129..6dd56bd 100644 --- a/pc4mobx/organization/components/job/Job.js +++ b/pc4mobx/organization/components/job/Job.js @@ -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); } diff --git a/pc4mobx/organization/components/log/LogView.js b/pc4mobx/organization/components/log/LogView.js index 86b5ac3..5231603 100644 --- a/pc4mobx/organization/components/log/LogView.js +++ b/pc4mobx/organization/components/log/LogView.js @@ -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 }) } diff --git a/pc4mobx/organization/stores/job.js b/pc4mobx/organization/stores/job.js index 5555b1c..cfb1c60 100644 --- a/pc4mobx/organization/stores/job.js +++ b/pc4mobx/organization/stores/job.js @@ -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); }