中远组织架构图版本记录

上海中远重工组织架构图
Chengliang 7 months ago
parent df21ceb502
commit 9a3c3141df

@ -217,7 +217,7 @@ export class TopBar extends React.Component {
); );
render() { render() {
const { disabled, type } = this.props; const { disabled, type, timelineId } = this.props;
const { const {
rootTreeData, rootTreeData,
open, open,
@ -247,28 +247,30 @@ export class TopBar extends React.Component {
treeIcon treeIcon
/> />
</Col> </Col>
<Col span={6}> {timelineId == 0 && (
<Checkbox <Col span={6}>
style={{ marginTop: '5px', marginLeft: 60 }} <Checkbox
checked={showClass == '1'} style={{ marginTop: '5px', marginLeft: 60 }}
onChange={(e) => checked={showClass == '1'}
this.handleFormChange({ onChange={(e) =>
showClass: e.target.checked ? '1' : '0', this.handleFormChange({
}) showClass: e.target.checked ? '1' : '0',
} })
> }
显示班组 >
</Checkbox> 显示班组
<Tooltip </Checkbox>
title="提示:开启后将显示班组信息" <Tooltip
color="#0082fb" title="提示:开启后将显示班组信息"
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>
)}
<Col span={6}> <Col span={6}>
<Checkbox <Checkbox
@ -308,21 +310,23 @@ export class TopBar extends React.Component {
</Col> </Col>
</Row> </Row>
<Row style={{ marginTop: '15px' }}> <Row style={{ marginTop: '15px' }}>
<Col span={6}> {timelineId == 0 && (
部门节点 <Col span={6}>
<TreeSelect 部门节点
treeDataSimpleMode <TreeSelect
allowClear treeDataSimpleMode
style={{ width: '75%' }} allowClear
value={department} style={{ width: '75%' }}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }} value={department}
placeholder="请选择" dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
onChange={this.onDeptChange} placeholder="请选择"
treeData={deptTreeData} onChange={this.onDeptChange}
treeIcon treeData={deptTreeData}
/> treeIcon
</Col> />
<Col span={8} style={{ textAlign: 'center' }}> </Col>
)}
<Col span={6} style={{ textAlign: 'center' }}>
<Button <Button
type="primary" type="primary"
style={{ marginRight: '10px' }} style={{ marginRight: '10px' }}

@ -22,6 +22,8 @@ let timeLine = null;
let orgChart = null; let orgChart = null;
let topbar = null; let topbar = null;
let versionId = 0;
export default function companyPage() { export default function companyPage() {
const [data, setData] = useState(null); const [data, setData] = useState(null);
let compact = 0; let compact = 0;
@ -54,6 +56,7 @@ export default function companyPage() {
rootId: node.id, rootId: node.id,
fclass: topbar.state.requestData.fclass, fclass: topbar.state.requestData.fclass,
id: infoRef.current, id: infoRef.current,
versionId: versionId,
}; };
drawerCom.showDrawer(params); drawerCom.showDrawer(params);
} }
@ -359,9 +362,9 @@ export default function companyPage() {
*/ */
const timeLineSearch = (timeline) => { const timeLineSearch = (timeline) => {
setTimelineId(timeline.id); setTimelineId(timeline.id);
versionId = timeline.id;
const fclass = topbar.state.requestData.fclass; const fclass = topbar.state.requestData.fclass;
const resetParams = { const resetParams = {
root: undefined,
level: '2', level: '2',
fisvitual: '0', fisvitual: '0',
hidedept: '0', hidedept: '0',
@ -460,6 +463,7 @@ export default function companyPage() {
changeFclass={(requestData) => { changeFclass={(requestData) => {
handleChange(requestData); handleChange(requestData);
}} }}
timelineId={timelineId}
type="company" type="company"
url="/api/bs/hrmorganization/orgchart/getCondition?fclass=0&type=company&id=0" url="/api/bs/hrmorganization/orgchart/getCondition?fclass=0&type=company&id=0"
/> />

@ -99,7 +99,7 @@ export default function userPage() {
// //
useEffect(() => { useEffect(() => {
document.cookie = document.cookie =
'ecology_JSessionid=aaaOSu6bA71rZb9EYCuhz; JSESSIONID=aaaOSu6bA71rZb9EYCuhz; Systemlanguid=7; languageidweaver=7; loginidweaver=sysadmin; loginuuids=1;'; 'ecology_JSessionid=aaaOSu6bA71rZb9EYCuhz; JSESSIONID=aaaOSu6bA71rZb9EYCuhz; Systemlanguid=7; languageidweaver=7; loginuuids=1; loginidweaver=sysadmin;';
d3.json( d3.json(
'/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0', '/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0',
).then((data) => { ).then((data) => {

Loading…
Cancel
Save