修复岗位职责换行展示
This commit is contained in:
parent
b708c6608d
commit
e7bfc7f831
|
|
@ -80,7 +80,7 @@ export default class DrawerComponents extends React.Component {
|
|||
//获取数据
|
||||
getDeatilDatas(params, type = 'chart', showJob = '1') {
|
||||
const { language } = this.props;
|
||||
this.setState({ spinning: true, data: [] });
|
||||
this.setState({ spinning: true, data: [], dataSource: [] });
|
||||
d3.json(
|
||||
'/api/bs/hrmorganization/orgchart/getDepartmentDetail?' +
|
||||
qs.stringify({ detauleType: type, ...params, showJob }),
|
||||
|
|
@ -131,7 +131,11 @@ export default class DrawerComponents extends React.Component {
|
|||
title: `${i18n.table.mobile[language]}`,
|
||||
},
|
||||
];
|
||||
this.setState({ dataSource: data.dataSource, columns: columns });
|
||||
this.setState({
|
||||
dataSource: data.dataSource,
|
||||
columns: columns,
|
||||
spinning: false,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -500,6 +504,7 @@ export default class DrawerComponents extends React.Component {
|
|||
dataSource={dataSource}
|
||||
columns={columns}
|
||||
scroll={{ y: 500 }}
|
||||
loading={spinning}
|
||||
pagination={{
|
||||
locale: {
|
||||
// 翻页文本替换
|
||||
|
|
@ -539,7 +544,7 @@ export default class DrawerComponents extends React.Component {
|
|||
</Button>,
|
||||
]}
|
||||
>
|
||||
<p>{jobResponsibility}</p>
|
||||
<div style={{ whiteSpace: 'pre-line' }}>{jobResponsibility}</div>
|
||||
</Modal>
|
||||
</Drawer>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ export class TopBar extends React.Component {
|
|||
''
|
||||
)}
|
||||
<Col span={6}>
|
||||
{i18n.level[language]}:
|
||||
{i18n.deptLevel[language]}:
|
||||
<Select
|
||||
style={{ width: 140 }}
|
||||
value={this.state.requestData.level}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ export const i18n = {
|
|||
fclass: { cn: '维度', en: 'Organizational type' },
|
||||
companyRoot: { cn: '分部根节点', en: 'Company' },
|
||||
deptRoot: { cn: '部门根节点', en: 'Department' },
|
||||
level: { cn: '部门层级', en: 'Hierarchy' },
|
||||
deptLevel: { cn: '部门层级', en: 'Hierarchy' },
|
||||
search: { cn: '查询', en: 'Search' },
|
||||
export: { cn: '导出', en: 'Export' },
|
||||
exportImage: { cn: '导出图片', en: ' Export Image' },
|
||||
|
|
|
|||
Loading…
Reference in New Issue