|
|
|
@ -30,6 +30,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
this.state = {
|
|
|
|
|
fclasslist: [],
|
|
|
|
|
rootTreeData: [], //根节点异步树
|
|
|
|
|
treeLoadedKeys: [],
|
|
|
|
|
treeExpandedKeys: [],
|
|
|
|
|
requestData: {
|
|
|
|
|
fclass: '0',
|
|
|
|
@ -66,10 +67,6 @@ export class TopBar extends React.Component {
|
|
|
|
|
return message.error('请填写描述信息');
|
|
|
|
|
}
|
|
|
|
|
this.setState({ confirmLoading: true });
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// this.setState({ open: false, confirmLoading: false, description: '' });
|
|
|
|
|
// message.success('版本记录成功,请重新刷新页面');
|
|
|
|
|
// }, 2000);
|
|
|
|
|
let api =
|
|
|
|
|
'/api/bs/hrmorganization/orgchart/versionRecord?fclass=' +
|
|
|
|
|
requestData.fclass +
|
|
|
|
@ -131,7 +128,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
*/
|
|
|
|
|
onRootLoadData = (treeNode) =>
|
|
|
|
|
new Promise((resolve) => {
|
|
|
|
|
const { id } = treeNode.props;
|
|
|
|
|
const { id } = treeNode;
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
const { fclass } = this.state.requestData;
|
|
|
|
|
let api =
|
|
|
|
@ -191,7 +188,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const { disabled, type } = this.props;
|
|
|
|
|
const { rootTreeData, open, confirmLoading } = this.state;
|
|
|
|
|
const { rootTreeData, open, confirmLoading, treeExpandedKeys } = this.state;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className={style.topbarWrapper}>
|
|
|
|
@ -211,6 +208,9 @@ export class TopBar extends React.Component {
|
|
|
|
|
hidedept: '0',
|
|
|
|
|
};
|
|
|
|
|
this.handleFormChange(requestData);
|
|
|
|
|
this.setState({
|
|
|
|
|
rootTreeData: [],
|
|
|
|
|
});
|
|
|
|
|
this.getNodeTreeNode(
|
|
|
|
|
`/api/bs/hrmorganization/orgchart/getSubCompanyTree?fclass=${value}`,
|
|
|
|
|
false,
|
|
|
|
|