多语言新功能完善

pull/14/head
Chengliang 10 months ago
parent 483c34fc05
commit d2e0da7297

@ -311,7 +311,7 @@ export default class DrawerComponents extends React.Component {
</div> </div>
<div style="display: inline-block;width: 55%;height:100%"> <div style="display: inline-block;width: 55%;height:100%">
<div style='display:flex;align-items:center;height: 25px;line-height: 25px;margin-top:2px'> <div style='display:flex;align-items:center;height: 25px;line-height: 25px;margin-top:2px'>
<div style="font-weight: bold;font-size: 15px;ont-family: Microsoft YaHei-Bold, Microsoft YaHei;color: #333333;"> <div style="font-weight: bold;font-size: 14px;ont-family: Microsoft YaHei-Bold, Microsoft YaHei;color: #333333;">
${d.data.fname} ${d.data.fname}
<span style='color: red;'>(${d.data.accountType})</span> <span style='color: red;'>(${d.data.accountType})</span>
</div> </div>
@ -368,7 +368,7 @@ export default class DrawerComponents extends React.Component {
onStatusChange = (checkedValues) => { onStatusChange = (checkedValues) => {
if (checkedValues.length === 0) { if (checkedValues.length === 0) {
return message.error('至少选择一种人员性质', 2); return message.error(`${getLabel(547728, labelData)}`, 2);
} }
this.setState({ this.setState({
defaultStatusValue: checkedValues, defaultStatusValue: checkedValues,
@ -385,7 +385,7 @@ export default class DrawerComponents extends React.Component {
onTypeChange = (checkedValues) => { onTypeChange = (checkedValues) => {
if (this.state.showJob) { if (this.state.showJob) {
return message.error('已勾选岗位模式显示', 2); return message.error(`${getLabel(547729, labelData)}`, 2);
} }
this.setState({ this.setState({
defaultTypeValue: checkedValues, defaultTypeValue: checkedValues,
@ -420,19 +420,19 @@ export default class DrawerComponents extends React.Component {
const { labelData } = this.props; const { labelData } = this.props;
const optionsType = [ const optionsType = [
{ label: '显示人员上下级', value: 'isManager' }, { label: `${getLabel(547715, labelData)}`, value: 'isManager' },
{ label: '显示次账号', value: 'isBelongTo' }, { label: `${getLabel(547716, labelData)}`, value: 'isBelongTo' },
]; ];
const optionsStatus = [ const optionsStatus = [
{ label: '试用', value: 0 }, { label: `${getLabel(547718, labelData)}`, value: 0 },
{ label: '正式', value: 1 }, { label: `${getLabel(547719, labelData)}`, value: 1 },
{ label: '临时', value: 2 }, { label: `${getLabel(547720, labelData)}`, value: 2 },
{ label: '试用延期', value: 3 }, { label: `${getLabel(547721, labelData)}`, value: 3 },
{ label: '解聘', value: 4 }, { label: `${getLabel(547722, labelData)}`, value: 4 },
{ label: '离职', value: 5 }, { label: `${getLabel(547723, labelData)}`, value: 5 },
{ label: '退休', value: 6 }, { label: `${getLabel(547724, labelData)}`, value: 6 },
{ label: '无效', value: 7 }, { label: `${getLabel(547725, labelData)}`, value: 7 },
]; ];
if (detailType == 'chart') { if (detailType == 'chart') {
@ -491,7 +491,7 @@ export default class DrawerComponents extends React.Component {
<> <>
{detailType == 'chart' && ( {detailType == 'chart' && (
<Row style={{ margin: '20px 20px 0px 20px' }}> <Row style={{ margin: '20px 20px 0px 20px' }}>
<Col span={2}>显示模式</Col> <Col span={2}>{getLabel(547714, labelData)}</Col>
<Col span={22}> <Col span={22}>
<Checkbox.Group <Checkbox.Group
options={optionsType} options={optionsType}
@ -502,7 +502,7 @@ export default class DrawerComponents extends React.Component {
</Row> </Row>
)} )}
<Row style={{ margin: '10px 20px 10px 20px' }}> <Row style={{ margin: '10px 20px 10px 20px' }}>
<Col span={2}>人员性质</Col> <Col span={2}>{getLabel(547717, labelData)}</Col>
<Col span={22}> <Col span={22}>
<Checkbox.Group <Checkbox.Group
options={optionsStatus} options={optionsStatus}

@ -99,7 +99,7 @@ export default function userPage() {
// //
useEffect(() => { useEffect(() => {
document.cookie = document.cookie =
'ecology_JSessionid=aaaZqe3BtezwSd-qOVlaz; JSESSIONID=aaaZqe3BtezwSd-qOVlaz; Systemlanguid=8; languageidweaver=8; loginidweaver=sysadmin; loginuuids=1; __randcode__=b79816fa-7088-4433-a17f-162b62453f2f'; 'ecology_JSessionid=aaaIt6Y2NuzAQ98Ci0Jaz; Systemlanguid=7; JSESSIONID=aaaIt6Y2NuzAQ98Ci0Jaz; loginidweaver=sysadmin; loginuuids=1; languageidweaver=8; __randcode__=486bc6ba-9c04-47fc-a977-f7c55bab42e9';
d3.json( d3.json(
'/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0', '/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0',
).then((data) => { ).then((data) => {

Loading…
Cancel
Save