This commit is contained in:
parent
393f666dc6
commit
66dd3de27b
|
|
@ -23,6 +23,7 @@ export class TopBar extends React.Component {
|
|||
deptartmentTreeData: [], //部门异步树
|
||||
treeExpandedKeys: [],
|
||||
levelOptions: [], //层级数据,hrm中层级字段
|
||||
butvisable: true,
|
||||
requestData: {
|
||||
date: moment(new Date()).format('YYYY-MM-DD'), //日期
|
||||
department: undefined,
|
||||
|
|
@ -99,6 +100,7 @@ export class TopBar extends React.Component {
|
|||
this.setState({
|
||||
levelOptions: data.data.deptLevel,
|
||||
deptartmentTreeData: data.data.deptTree,
|
||||
butvisable: data.data.hasRight,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
@ -188,11 +190,13 @@ export class TopBar extends React.Component {
|
|||
window.open('#/chart', '_blank');
|
||||
}}
|
||||
>
|
||||
图谱
|
||||
任命架构图
|
||||
</Button>
|
||||
<Dropdown overlay={this.menu}>
|
||||
<Button type="primary">导出</Button>
|
||||
</Dropdown>
|
||||
{this.state.butvisable && (
|
||||
<Dropdown overlay={this.menu}>
|
||||
<Button type="primary">导出</Button>
|
||||
</Dropdown>
|
||||
)}
|
||||
</Col>
|
||||
</Row>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ export default function companyPage() {
|
|||
} else if (d.data.ftype == 2) {
|
||||
let one = d.data.leader == '' ? 'none' : 'inline-block';
|
||||
let three = d.data.deputyLeader == '' ? 'none' : 'inline-block';
|
||||
let two = d.data.header == '' ? 'none' : 'block';
|
||||
let two = d.data.header == '' ? 'none' : 'inline-block';
|
||||
return `
|
||||
<div style="width: 100%; height: 100%; background-size: 100% 100%;" >
|
||||
<div style='position:absolute;height:100%'>
|
||||
|
|
@ -173,13 +173,11 @@ export default function companyPage() {
|
|||
<div style="width: 130px;margin: 0 auto;line-height: 18px;display:${two}">分管领导:${
|
||||
d.data.header
|
||||
} </div>
|
||||
<div style="width: 120px;margin: 0 auto;line-height: 18px;>
|
||||
<span style="display:${one}">${
|
||||
d.data.leader
|
||||
}</span><span style="display:${three}"> || ${
|
||||
d.data.deputyLeader
|
||||
}</span></div>
|
||||
</div>
|
||||
<div style="width: 120px;margin: 0 auto;line-height: 18px;">
|
||||
<p style="display:${one}">${d.data.leader}</p>
|
||||
<p style="display:${three}"> || ${d.data.deputyLeader}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export default function userPage() {
|
|||
// 获取数据
|
||||
useEffect(() => {
|
||||
document.cookie =
|
||||
'33_ecology_JSessionid=aaa-86YwPw671co9NOKIy; ecology_JSessionid=aaa-86YwPw671co9NOKIy; Systemlanguid=7; languageidweaver=7; JSESSIONID=aaa-86YwPw671co9NOKIy; loginuuids=1; CASTGC=TGT-48-lHCAbEDfdJkcC7xyZ6S5BHpVJqKfYgMPoezM2bBBmyrCYyCLOc-c01; loginidweaver=1; __randcode__=5a256767-7b8d-46e3-98ca-bb4ac7a509eb';
|
||||
'33_ecology_JSessionid=aaaB2ipClrImrf_cwBwJy; JSESSIONID=aaaB2ipClrImrf_cwBwJy; ecology_JSessionid=aaaB2ipClrImrf_cwBwJy; Systemlanguid=7; languageidweaver=7; loginuuids=2761; CASTGC=TGT-8-SejF5mLWvSQwjKm9DlNGjlcpdvfcbm4uevY6qWcYinoneozleM-c01; loginidweaver=2761; __randcode__=60a5a6ab-4d49-4e14-a360-3660fb0bde4d';
|
||||
d3.json(
|
||||
// "/user/data"
|
||||
'/api/bs/hrmorganization/orgchart/userData?fclass=0&root=0&date=' +
|
||||
|
|
|
|||
Loading…
Reference in New Issue