Merge pull request 'feature/cl' (#51) from feature/cl into dev

Reviewed-on: http://221.226.25.34:3000/liang.cheng/trunk/pulls/51
This commit is contained in:
liang.cheng 2024-06-19 09:50:25 +08:00
commit db16b925f6
8 changed files with 19 additions and 15 deletions

View File

@ -1,7 +1,8 @@
import { import {
WeaTools WeaTools,WeaLocaleProvider
} from 'ecCom' } from 'ecCom'
const getLabel = WeaLocaleProvider.getLabel;
export const getSearchList = (params) => { export const getSearchList = (params) => {
return fetch('/api/bs/hrmorganization/dept/listPage', { return fetch('/api/bs/hrmorganization/dept/listPage', {
@ -50,7 +51,7 @@ export const exportData = () => {
return new Promise(resolve => { return new Promise(resolve => {
fetch('/api/bs/hrmorganization/common/department/export').then(res => res.blob().then(blob => { fetch('/api/bs/hrmorganization/common/department/export').then(res => res.blob().then(blob => {
resolve(); resolve();
var filename=`部门档案.xlsx` var filename=`${getLabel(547606,'部门档案数据')}.xlsx`
var a = document.createElement('a'); var a = document.createElement('a');
var url = window.URL.createObjectURL(blob); var url = window.URL.createObjectURL(blob);
a.href = url; a.href = url;

View File

@ -1,7 +1,8 @@
import { import {
WeaTools WeaTools,WeaLocaleProvider
} from 'ecCom' } from 'ecCom'
const getLabel = WeaLocaleProvider.getLabel;
export const getSearchList = (params) => { export const getSearchList = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/listPage', 'GET', params); return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/listPage', 'GET', params);
@ -52,7 +53,7 @@ export const exportResource = (ids) => {
return new Promise(resolve => { return new Promise(resolve => {
fetch('/api/bs/hrmorganization/common/resource/export?ids='+ids).then(res => res.blob().then(blob => { fetch('/api/bs/hrmorganization/common/resource/export?ids='+ids).then(res => res.blob().then(blob => {
resolve(); resolve();
var filename=`人员档案.xlsx` var filename=`${getLabel(547539,'人员信息')}.xlsx`
var a = document.createElement('a'); var a = document.createElement('a');
var url = window.URL.createObjectURL(blob); var url = window.URL.createObjectURL(blob);
a.href = url; a.href = url;

View File

@ -149,7 +149,7 @@ export default class Department extends React.Component {
department department
} = this.props; } = this.props;
department.setNeDialogTitle("联查岗位"); department.setNeDialogTitle(i18n.button.associateJob());
department.setVisible(true); department.setVisible(true);
department.setDialogLoadingStatus(true); department.setDialogLoadingStatus(true);
department.getPostionTable(id); department.getPostionTable(id);

View File

@ -18,7 +18,7 @@ import {
WeaRightMenu, WeaRightMenu,
WeaTable, WeaTable,
WeaLeftRightLayout, WeaLeftRightLayout,
WeaOrgTree, WeaDialog WeaOrgTree, WeaDialog,WeaLocaleProvider
} from 'ecCom' } from 'ecCom'
import { import {
Row, Row,
@ -44,6 +44,7 @@ import NewAndEditDialog from '../NewAndEditDialog';
import NewWeaTableDialog from '../NewWeaTableDialog'; import NewWeaTableDialog from '../NewWeaTableDialog';
import { renderNoright } from '../../util'; import { renderNoright } from '../../util';
const getLabel = WeaLocaleProvider.getLabel;
const toJS = mobx.toJS; const toJS = mobx.toJS;
@ -145,7 +146,7 @@ export default class Job extends React.Component {
job job
} = this.props; } = this.props;
job.setNeDialogTitle("联查人员"); job.setNeDialogTitle(getLabel(547609,'联查人员'));
job.setVisible(true); job.setVisible(true);
job.getHrmTable(id); job.getHrmTable(id);
} }

View File

@ -69,7 +69,7 @@ export default class LogView extends React.Component {
this.setState({ this.setState({
record:record, record:record,
detailVisible: true, detailVisible: true,
detailDialogTitle: record.operate_typespan + " - " + record.operate_module_name + " : "+record.value detailDialogTitle: record.operate_typespan + " - " + record.operate_module_namespan + " : "+record.value
}) })
} }

View File

@ -241,12 +241,12 @@ export default class ResourceCard extends React.Component {
<div className='name'>{data.user.name} <div className='name'>{data.user.name}
<span>{data.user.sex == 0 ? <i className="icon-coms-men" /> : <i className="icon-coms-women" />}</span> <span>{data.user.sex == 0 ? <i className="icon-coms-men" /> : <i className="icon-coms-women" />}</span>
</div> </div>
<div className='icon-info'> {/* <div className='icon-info'>
<i className="icon-coms-Send-message" /> <i className="icon-coms-Send-message" />
<i className="icon-coms-message-o" /> <i className="icon-coms-message-o" />
<i className="icon-coms-Send-emails" /> <i className="icon-coms-Send-emails" />
<i className="icon-coms-New-schedule-o" /> <i className="icon-coms-New-schedule-o" />
</div> </div> */}
<div className='content'> <div className='content'>
<div> <div>
<span className='label'><i className="icon-portal-email-o" /></span> <span className='label'><i className="icon-portal-email-o" /></span>

View File

@ -179,9 +179,7 @@ export class ColumnSetting {
<span style={{ marginLeft: 10 }}> <span style={{ marginLeft: 10 }}>
<WeaHelpfulTip <WeaHelpfulTip
ecId={`${this && this.props && this.props.ecId || ""}_WeaHelpfulTip@4vdvfp@${index}`} ecId={`${this && this.props && this.props.ecId || ""}_WeaHelpfulTip@4vdvfp@${index}`}
title={getLabel('547638', `页面链接地址可以为外网地址http://www.baidu.com title={getLabel('547638', "页面链接地址可以为外网地址http://www.baidu.com也可以是内部地址/test.jsp可以带上参数传参像这样/test.jsp?a=1&b=2也可以写占位符${id}传人员id像这样/test.jsp?a=1&b=${id}&mypara2=${id}")}/>
也可以是内部地址/test.jsp可以带上参数传参像这样/test.jsp?a=1&b=2
也可以写占位符${id}传人员id像这样/test.jsp?a=1&b=${id}&mypara2=${id}`)}/>
</span> </span>
</span>; </span>;
} }

View File

@ -20,12 +20,15 @@ import {
import { import {
findIndex findIndex
} from 'lodash'; } from 'lodash';
import {
WeaLocaleProvider
} from 'ecCom'
const toJS = mobx.toJS; const toJS = mobx.toJS;
const { const {
TableStore TableStore
} = WeaTableNew; } = WeaTableNew;
const getLabel = WeaLocaleProvider.getLabel;
export class JobStore { export class JobStore {
@observable tableStore = new TableStore(); @observable tableStore = new TableStore();
@ -161,7 +164,7 @@ export class JobStore {
Api.refresh().then(res => { Api.refresh().then(res => {
if (res.code === 200) { if (res.code === 200) {
this.getTableInfo(); this.getTableInfo();
message.success("数据刷新成功"); message.success(getLabel(547202,'数据刷新成功'));
} else { } else {
message.warning(res.msg); message.warning(res.msg);
} }