|
|
@ -36,10 +36,10 @@ export class TopBar extends React.Component {
|
|
|
|
treeExpandedKeys: [],
|
|
|
|
treeExpandedKeys: [],
|
|
|
|
deptTreeData: [],
|
|
|
|
deptTreeData: [],
|
|
|
|
requestData: {
|
|
|
|
requestData: {
|
|
|
|
fclass: '0',
|
|
|
|
fclass: '',
|
|
|
|
root: undefined,
|
|
|
|
root: undefined,
|
|
|
|
department: undefined,
|
|
|
|
department: undefined,
|
|
|
|
level: '2',
|
|
|
|
level: '1',
|
|
|
|
fisvitual: '0',
|
|
|
|
fisvitual: '0',
|
|
|
|
hidedept: '0',
|
|
|
|
hidedept: '0',
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -239,6 +239,10 @@ export class TopBar extends React.Component {
|
|
|
|
fclasslist: data.fclasslist,
|
|
|
|
fclasslist: data.fclasslist,
|
|
|
|
rootTreeData: data.companyTree,
|
|
|
|
rootTreeData: data.companyTree,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.handleFormChange({ fclass: data.fclass, root: data.root });
|
|
|
|
|
|
|
|
this.getDeptTreeData(
|
|
|
|
|
|
|
|
`/api/bs/hrmorganization/orgchart/getDepartmentTree?fclass=${data.fclass}&subcompany=${data.root}`,
|
|
|
|
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -337,7 +341,7 @@ export class TopBar extends React.Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{i18n.hideDept[language]}:
|
|
|
|
{i18n.hideDept[language]}
|
|
|
|
</Checkbox>
|
|
|
|
</Checkbox>
|
|
|
|
|
|
|
|
|
|
|
|
<Tooltip
|
|
|
|
<Tooltip
|
|
|
@ -418,6 +422,9 @@ export class TopBar extends React.Component {
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
style={{ marginRight: '10px' }}
|
|
|
|
style={{ marginRight: '10px' }}
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|
|
|
|
|
if (fclass != '0' && department == undefined) {
|
|
|
|
|
|
|
|
return message.warning(`${i18n.searchRemind[language]}`);
|
|
|
|
|
|
|
|
}
|
|
|
|
this.props.onSearch(this.state.requestData);
|
|
|
|
this.props.onSearch(this.state.requestData);
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|