|
|
@ -158,6 +158,8 @@ export default function companyPage() {
|
|
|
|
const nodeContentRender = (d, i, arr, state) => {
|
|
|
|
const nodeContentRender = (d, i, arr, state) => {
|
|
|
|
let fclass = topbar.state.requestData.fclass;
|
|
|
|
let fclass = topbar.state.requestData.fclass;
|
|
|
|
let statisticsStyle = fclass == 0 ? 'block' : 'none';
|
|
|
|
let statisticsStyle = fclass == 0 ? 'block' : 'none';
|
|
|
|
|
|
|
|
let flevelStyle =
|
|
|
|
|
|
|
|
d.data.ftype == 2 && d.data.deptLevel == 0 ? 'inline-block' : 'none';
|
|
|
|
if (d.data.ftype == 0) {
|
|
|
|
if (d.data.ftype == 0) {
|
|
|
|
return `<div>
|
|
|
|
return `<div>
|
|
|
|
<div style="display: inline-block; text-align: center; margin-left: 5px;">
|
|
|
|
<div style="display: inline-block; text-align: center; margin-left: 5px;">
|
|
|
@ -185,7 +187,9 @@ export default function companyPage() {
|
|
|
|
} style="width: 110px;margin: 0 auto;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;
|
|
|
|
} style="width: 110px;margin: 0 auto;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;
|
|
|
|
line-height: 18px;word-break: break-all;">${d.data.fname}</div>
|
|
|
|
line-height: 18px;word-break: break-all;">${d.data.fname}</div>
|
|
|
|
<div style="display: ${statisticsStyle}">
|
|
|
|
<div style="display: ${statisticsStyle}">
|
|
|
|
<span style="color:red">${d.data.staffNum}</span> /
|
|
|
|
<span style="color:red;display: ${flevelStyle}">${
|
|
|
|
|
|
|
|
d.data.staffNum
|
|
|
|
|
|
|
|
} /</span>
|
|
|
|
<span style="color:green">${d.data.onJobNum}</span>
|
|
|
|
<span style="color:green">${d.data.onJobNum}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -204,7 +208,9 @@ export default function companyPage() {
|
|
|
|
<div style="width: 110px;margin: 0 auto;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
|
|
|
|
<div style="width: 110px;margin: 0 auto;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
|
|
|
|
line-height: 18px;word-break: break-all;">${d.data.fname}</div>
|
|
|
|
line-height: 18px;word-break: break-all;">${d.data.fname}</div>
|
|
|
|
<div style="display: ${statisticsStyle}">
|
|
|
|
<div style="display: ${statisticsStyle}">
|
|
|
|
<span style="color:red">${d.data.staffNum}</span> /
|
|
|
|
<span style="color:red;display: ${flevelStyle}">${
|
|
|
|
|
|
|
|
d.data.staffNum
|
|
|
|
|
|
|
|
} /</span>
|
|
|
|
<span style="color:green">${d.data.onJobNum}</span>
|
|
|
|
<span style="color:green">${d.data.onJobNum}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -472,6 +478,13 @@ export default function companyPage() {
|
|
|
|
onZoomIn={(progressBtn) => handleZoomIn(progressBtn)}
|
|
|
|
onZoomIn={(progressBtn) => handleZoomIn(progressBtn)}
|
|
|
|
onZoomBehavior={(value) => handleZoomBehavior(value)}
|
|
|
|
onZoomBehavior={(value) => handleZoomBehavior(value)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TimeLine
|
|
|
|
|
|
|
|
ref={(r) => (timeLine = r)}
|
|
|
|
|
|
|
|
onClick={(timeline) => {
|
|
|
|
|
|
|
|
timeLineSearch(timeline);
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
url={'/api/bs/hrmorganization/orgchart/timeLines?fclass=0'}
|
|
|
|
|
|
|
|
/>
|
|
|
|
<Spin size="large" spinning={spinning}>
|
|
|
|
<Spin size="large" spinning={spinning}>
|
|
|
|
<OrgChartComponent
|
|
|
|
<OrgChartComponent
|
|
|
|
setChart={(chart) => (orgChart = chart)}
|
|
|
|
setChart={(chart) => (orgChart = chart)}
|
|
|
|