|
|
|
@ -109,11 +109,11 @@ export default function companyPage() {
|
|
|
|
|
d3.json('/api/bs/hrmorganization/orgchart/i18n').then((res) => {
|
|
|
|
|
setLabelData(res.data);
|
|
|
|
|
setLabelCompleted(true);
|
|
|
|
|
notification.open({
|
|
|
|
|
message: `${getLabel(547283, res.data)}`,
|
|
|
|
|
description: `${getLabel(547292, res.data)}`,
|
|
|
|
|
icon: <SmileOutlined style={{ color: '#108ee9' }} />,
|
|
|
|
|
});
|
|
|
|
|
// notification.open({
|
|
|
|
|
// message: `${getLabel(547283, res.data)}`,
|
|
|
|
|
// description: `${getLabel(547292, res.data)}`,
|
|
|
|
|
// icon: <SmileOutlined style={{ color: '#108ee9' }} />,
|
|
|
|
|
// });
|
|
|
|
|
});
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
@ -192,7 +192,6 @@ export default function companyPage() {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="display: ${statisticsStyle}">
|
|
|
|
|
<span style="color:red">${d.data.staffNum}</span> /
|
|
|
|
|
<span style="color:green">${d.data.onJobNum}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -214,7 +213,6 @@ export default function companyPage() {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="display: ${statisticsStyle}">
|
|
|
|
|
<span style="color:red">${d.data.staffNum}</span> /
|
|
|
|
|
<span style="color:green">${d.data.onJobNum}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -421,9 +419,7 @@ export default function companyPage() {
|
|
|
|
|
*/
|
|
|
|
|
const handleChange = (requestData) => {
|
|
|
|
|
setTimelineId(0);
|
|
|
|
|
timeLine.searchTimeLines(
|
|
|
|
|
`/api/bs/hrmorganization/orgchart/timeLines?fclass=${requestData.fclass}`,
|
|
|
|
|
);
|
|
|
|
|
timeLine.searchTimeLines(requestData.fclass);
|
|
|
|
|
requestData = { ...requestData, id: 0 };
|
|
|
|
|
handleSearch(requestData, false);
|
|
|
|
|
};
|
|
|
|
@ -490,14 +486,13 @@ export default function companyPage() {
|
|
|
|
|
onZoomIn={(progressBtn) => handleZoomIn(progressBtn)}
|
|
|
|
|
onZoomBehavior={(value) => handleZoomBehavior(value)}
|
|
|
|
|
/>
|
|
|
|
|
<TimeLine
|
|
|
|
|
{/* <TimeLine
|
|
|
|
|
ref={(r) => (timeLine = r)}
|
|
|
|
|
onClick={(timeline) => {
|
|
|
|
|
timeLineSearch(timeline);
|
|
|
|
|
}}
|
|
|
|
|
url={'/api/bs/hrmorganization/orgchart/timeLines?fclass=0'}
|
|
|
|
|
labelData={labelData}
|
|
|
|
|
/>
|
|
|
|
|
/> */}
|
|
|
|
|
<Spin size="large" spinning={spinning}>
|
|
|
|
|
<OrgChartComponent
|
|
|
|
|
setChart={(chart) => (orgChart = chart)}
|
|
|
|
|