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