|
|
|
@ -22,10 +22,9 @@ const { TextArea } = Input;
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import 'moment/locale/zh-cn';
|
|
|
|
|
import locale from 'antd/lib/date-picker/locale/zh_CN';
|
|
|
|
|
import { HomeOutlined } from '@ant-design/icons';
|
|
|
|
|
import { HomeOutlined, FolderOpenOutlined } from '@ant-design/icons';
|
|
|
|
|
moment.locale('zh-cn');
|
|
|
|
|
import { getLabel } from '../../util/i18n.js';
|
|
|
|
|
import { SmileOutlined } from '@ant-design/icons';
|
|
|
|
|
|
|
|
|
|
export class TopBar extends React.Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
@ -116,7 +115,11 @@ export class TopBar extends React.Component {
|
|
|
|
|
arr = [...data.companyTree];
|
|
|
|
|
}
|
|
|
|
|
arr.map((item, index) => {
|
|
|
|
|
item.icon = <HomeOutlined />;
|
|
|
|
|
if (item.type == '1') {
|
|
|
|
|
item.icon = <HomeOutlined />;
|
|
|
|
|
} else {
|
|
|
|
|
item.icon = <FolderOpenOutlined />;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.setState({
|
|
|
|
|
rootTreeData: arr,
|
|
|
|
@ -165,7 +168,11 @@ export class TopBar extends React.Component {
|
|
|
|
|
.then((res) => res.json())
|
|
|
|
|
.then((data) => {
|
|
|
|
|
data.companyTree.map((item, index) => {
|
|
|
|
|
item.icon = <HomeOutlined />;
|
|
|
|
|
if (item.type == '1') {
|
|
|
|
|
item.icon = <HomeOutlined />;
|
|
|
|
|
} else {
|
|
|
|
|
item.icon = <FolderOpenOutlined />;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.setState({
|
|
|
|
|
fclasslist: data.fclasslist,
|
|
|
|
@ -197,7 +204,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
return (
|
|
|
|
|
<div className={style.topbarWrapper}>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={6}>
|
|
|
|
|
{/* <Col span={6}>
|
|
|
|
|
{getLabel(547293, labelData)}:
|
|
|
|
|
<Select
|
|
|
|
|
defaultValue="0"
|
|
|
|
@ -228,7 +235,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
</Option>
|
|
|
|
|
))}
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
</Col> */}
|
|
|
|
|
<Col span={6}>
|
|
|
|
|
{getLabel(547294, labelData)}:
|
|
|
|
|
<TreeSelect
|
|
|
|
@ -280,8 +287,6 @@ export class TopBar extends React.Component {
|
|
|
|
|
<Option value="4">{getLabel(547465, labelData)}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row style={{ marginTop: '15px' }}>
|
|
|
|
|
<Col span={6}>
|
|
|
|
|
<Checkbox
|
|
|
|
|
style={{ marginTop: '5px' }}
|
|
|
|
@ -304,8 +309,10 @@ export class TopBar extends React.Component {
|
|
|
|
|
/>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row style={{ marginTop: '15px' }}>
|
|
|
|
|
<Col span={16}>
|
|
|
|
|
{this.state.requestData.fclass == '0' && (
|
|
|
|
|
{/* {this.state.requestData.fclass == '0' && (
|
|
|
|
|
<span>
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
@ -336,7 +343,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
{getLabel(547313, labelData)}
|
|
|
|
|
</Button>
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|
)} */}
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|