|
|
@ -21,6 +21,7 @@ const { TextArea } = Input;
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
import 'moment/locale/zh-cn';
|
|
|
|
import 'moment/locale/zh-cn';
|
|
|
|
import locale from 'antd/lib/date-picker/locale/zh_CN';
|
|
|
|
import locale from 'antd/lib/date-picker/locale/zh_CN';
|
|
|
|
|
|
|
|
import { HomeOutlined } from '@ant-design/icons';
|
|
|
|
moment.locale('zh-cn');
|
|
|
|
moment.locale('zh-cn');
|
|
|
|
|
|
|
|
|
|
|
|
export class TopBar extends React.Component {
|
|
|
|
export class TopBar extends React.Component {
|
|
|
@ -81,7 +82,6 @@ export class TopBar extends React.Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
confirmLoading: false,
|
|
|
|
confirmLoading: false,
|
|
|
|
description: '',
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
message.success('版本记录成功,请重新刷新页面', 2, 3);
|
|
|
|
message.success('版本记录成功,请重新刷新页面', 2, 3);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -114,6 +114,9 @@ export class TopBar extends React.Component {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
arr = [...data.companyTree];
|
|
|
|
arr = [...data.companyTree];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
arr.map((item, index) => {
|
|
|
|
|
|
|
|
item.icon = <HomeOutlined />;
|
|
|
|
|
|
|
|
});
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
rootTreeData: arr,
|
|
|
|
rootTreeData: arr,
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -160,6 +163,9 @@ export class TopBar extends React.Component {
|
|
|
|
fetch(url)
|
|
|
|
fetch(url)
|
|
|
|
.then((res) => res.json())
|
|
|
|
.then((res) => res.json())
|
|
|
|
.then((data) => {
|
|
|
|
.then((data) => {
|
|
|
|
|
|
|
|
data.companyTree.map((item, index) => {
|
|
|
|
|
|
|
|
item.icon = <HomeOutlined />;
|
|
|
|
|
|
|
|
});
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
fclasslist: data.fclasslist,
|
|
|
|
fclasslist: data.fclasslist,
|
|
|
|
rootTreeData: data.companyTree,
|
|
|
|
rootTreeData: data.companyTree,
|
|
|
@ -231,6 +237,7 @@ export class TopBar extends React.Component {
|
|
|
|
onChange={this.onRootChange}
|
|
|
|
onChange={this.onRootChange}
|
|
|
|
loadData={this.onRootLoadData}
|
|
|
|
loadData={this.onRootLoadData}
|
|
|
|
treeData={rootTreeData}
|
|
|
|
treeData={rootTreeData}
|
|
|
|
|
|
|
|
treeIcon
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={6}>
|
|
|
|
<Col span={6}>
|
|
|
|