|
|
|
@ -28,7 +28,9 @@ export class TopBar extends React.Component {
|
|
|
|
|
root: '0',
|
|
|
|
|
level: '3',
|
|
|
|
|
fisvitual: '0',
|
|
|
|
|
isvitual: '0',
|
|
|
|
|
},
|
|
|
|
|
colSpan: props.type == 'user' ? 5 : 4,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -81,7 +83,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
return (
|
|
|
|
|
<div className={style.topbarWrapper}>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={5}>
|
|
|
|
|
<Col span={this.state.colSpan}>
|
|
|
|
|
数据日期:
|
|
|
|
|
<DatePicker
|
|
|
|
|
placeholder="请选择日期"
|
|
|
|
@ -103,7 +105,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col span={5}>
|
|
|
|
|
<Col span={this.state.colSpan}>
|
|
|
|
|
维度:
|
|
|
|
|
<Select
|
|
|
|
|
defaultValue="0"
|
|
|
|
@ -117,7 +119,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col span={5}>
|
|
|
|
|
<Col span={this.state.colSpan}>
|
|
|
|
|
根节点:
|
|
|
|
|
<Select
|
|
|
|
|
showSearch
|
|
|
|
@ -135,7 +137,7 @@ export class TopBar extends React.Component {
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col span={5}>
|
|
|
|
|
<Col span={this.state.colSpan}>
|
|
|
|
|
显示层级:
|
|
|
|
|
<Select
|
|
|
|
|
defaultValue="3"
|
|
|
|
@ -149,6 +151,21 @@ export class TopBar extends React.Component {
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
{this.props.type == 'company' && (
|
|
|
|
|
<Col span={this.state.colSpan}>
|
|
|
|
|
组织:
|
|
|
|
|
<Select
|
|
|
|
|
defaultValue="0"
|
|
|
|
|
style={{ width: 120 }}
|
|
|
|
|
value={this.state.requestData.isvitual}
|
|
|
|
|
onChange={(value) => this.handleFormChange({ isvitual: value })}
|
|
|
|
|
>
|
|
|
|
|
<Option value="0">实体组织</Option>
|
|
|
|
|
<Option value="1">虚拟组织</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* <Col span={4}>
|
|
|
|
|
<Checkbox style={{ marginTop: "5px" }} onChange={(e) => this.handleFormChange({fisvitual: e.target.checked ? "1": "0"})}>显示虚拟组织</Checkbox>
|
|
|
|
|
</Col> */}
|
|
|
|
|