顺胜项目组织二开需求封版处理
This commit is contained in:
parent
2d658dd619
commit
3d3b8a61da
|
|
@ -182,10 +182,11 @@ export class TopBar extends React.Component {
|
|||
};
|
||||
|
||||
onDeptChange = (value, label, extra) => {
|
||||
const { deptTreeData } = this.state;
|
||||
var opt = this.buildLevelOpt(0);
|
||||
var level = '1';
|
||||
const foundItem = deptTreeData.find((item) => item.value === value);
|
||||
var level = foundItem ? foundItem.depth : '1';
|
||||
if (value != undefined) {
|
||||
level = extra.triggerNode.props.level;
|
||||
opt = this.buildLevelOpt(level);
|
||||
}
|
||||
this.handleFormChange({
|
||||
|
|
@ -298,7 +299,7 @@ export class TopBar extends React.Component {
|
|||
))}
|
||||
</Select>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<Col span={fclass == '0' ? 6 : 8}>
|
||||
根节点:
|
||||
<TreeSelect
|
||||
treeDataSimpleMode
|
||||
|
|
@ -313,28 +314,33 @@ export class TopBar extends React.Component {
|
|||
treeIcon
|
||||
/>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<Checkbox
|
||||
style={{ marginTop: '5px', marginLeft: 100 }}
|
||||
checked={this.state.requestData.hidedept == '1'}
|
||||
onChange={(e) =>
|
||||
this.handleFormChange({
|
||||
hidedept: e.target.checked ? '1' : '0',
|
||||
})
|
||||
}
|
||||
>
|
||||
隐藏部门
|
||||
</Checkbox>
|
||||
<Tooltip
|
||||
title="提示:开启后将只显示分部组织架构!!!"
|
||||
color="#0082fb"
|
||||
placement="rightTop"
|
||||
>
|
||||
<QuestionCircleOutlined
|
||||
style={{ color: '#0082fb', cursor: 'pointer', fontSize: 16 }}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Col>
|
||||
{fclass == '0' ? (
|
||||
<Col span={6}>
|
||||
<Checkbox
|
||||
style={{ marginTop: '5px', marginLeft: 100 }}
|
||||
checked={this.state.requestData.hidedept == '1'}
|
||||
onChange={(e) =>
|
||||
this.handleFormChange({
|
||||
hidedept: e.target.checked ? '1' : '0',
|
||||
})
|
||||
}
|
||||
>
|
||||
隐藏部门
|
||||
</Checkbox>
|
||||
|
||||
<Tooltip
|
||||
title="提示:开启后将只显示分部组织架构!!!"
|
||||
color="#0082fb"
|
||||
placement="rightTop"
|
||||
>
|
||||
<QuestionCircleOutlined
|
||||
style={{ color: '#0082fb', cursor: 'pointer', fontSize: 16 }}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Col>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
<Col span={6}>
|
||||
部门层级:
|
||||
<Select
|
||||
|
|
@ -351,31 +357,35 @@ export class TopBar extends React.Component {
|
|||
</Col>
|
||||
</Row>
|
||||
<Row style={{ marginTop: '15px' }}>
|
||||
<Col span={6}>
|
||||
<Checkbox
|
||||
style={{ marginTop: '5px' }}
|
||||
checked={this.state.requestData.fisvitual == '1'}
|
||||
onChange={(e) =>
|
||||
this.handleFormChange({
|
||||
fisvitual: e.target.checked ? '1' : '0',
|
||||
})
|
||||
}
|
||||
>
|
||||
显示虚拟组织
|
||||
</Checkbox>
|
||||
<Tooltip
|
||||
title="提示:若启用虚拟组织,需要在分部自定义表增加字段(名称 fblx) 字段类型 下拉框(0实体 1虚拟) 部门自定义表同上(字段名称 bmlx)。"
|
||||
color="#0082fb"
|
||||
placement="rightTop"
|
||||
>
|
||||
<QuestionCircleOutlined
|
||||
style={{ color: '#0082fb', cursor: 'pointer', fontSize: 16 }}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Col>
|
||||
{fclass == '0' ? (
|
||||
<Col span={6}>
|
||||
<Checkbox
|
||||
style={{ marginTop: '5px' }}
|
||||
checked={this.state.requestData.fisvitual == '1'}
|
||||
onChange={(e) =>
|
||||
this.handleFormChange({
|
||||
fisvitual: e.target.checked ? '1' : '0',
|
||||
})
|
||||
}
|
||||
>
|
||||
显示虚拟组织
|
||||
</Checkbox>
|
||||
<Tooltip
|
||||
title="提示:若启用虚拟组织,需要在分部自定义表增加字段(名称 fblx) 字段类型 下拉框(0实体 1虚拟) 部门自定义表同上(字段名称 bmlx)。"
|
||||
color="#0082fb"
|
||||
placement="rightTop"
|
||||
>
|
||||
<QuestionCircleOutlined
|
||||
style={{ color: '#0082fb', cursor: 'pointer', fontSize: 16 }}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Col>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
{fclass != '0' ? (
|
||||
<Col span={8}>
|
||||
部门节点:
|
||||
部门根节点:
|
||||
<TreeSelect
|
||||
treeDataSimpleMode
|
||||
allowClear
|
||||
|
|
|
|||
Loading…
Reference in New Issue