|
|
@ -62,6 +62,7 @@ const DashboardPM = () => { |
|
|
|
const [MANPOWERS, SET_MANPOWERS] = useState(0) |
|
|
|
const [MANPOWERS, SET_MANPOWERS] = useState(0) |
|
|
|
const [PROJECTPHASES, SET_PROJECTPHASES] = useState([]) |
|
|
|
const [PROJECTPHASES, SET_PROJECTPHASES] = useState([]) |
|
|
|
const [PROJECTSBYPHASE, SET_PROJECTSBYPHASE] = useState([]) |
|
|
|
const [PROJECTSBYPHASE, SET_PROJECTSBYPHASE] = useState([]) |
|
|
|
|
|
|
|
const [PROJECTSONDANGER, SET_PROJECTSONDANGER] = useState(0) |
|
|
|
|
|
|
|
|
|
|
|
const [PROJECTTYPES, SET_PROJECTTYPES] = useState([]) |
|
|
|
const [PROJECTTYPES, SET_PROJECTTYPES] = useState([]) |
|
|
|
const [PROJECTSBYTYPE, SET_PROJECTSBYTYPE] = useState([]) |
|
|
|
const [PROJECTSBYTYPE, SET_PROJECTSBYTYPE] = useState([]) |
|
|
@ -87,6 +88,7 @@ const DashboardPM = () => { |
|
|
|
result.data.projectsByPhase != undefined ? SET_PROJECTSBYPHASE(result.data.projectsByPhase) : SET_PROJECTSBYPHASE([]) |
|
|
|
result.data.projectsByPhase != undefined ? SET_PROJECTSBYPHASE(result.data.projectsByPhase) : SET_PROJECTSBYPHASE([]) |
|
|
|
result.data.projectTypes != undefined ? SET_PROJECTTYPES(result.data.projectTypes) : SET_PROJECTTYPES([]) |
|
|
|
result.data.projectTypes != undefined ? SET_PROJECTTYPES(result.data.projectTypes) : SET_PROJECTTYPES([]) |
|
|
|
result.data.projectsByType != undefined ? SET_PROJECTSBYTYPE(result.data.projectsByType) : SET_PROJECTSBYTYPE([]) |
|
|
|
result.data.projectsByType != undefined ? SET_PROJECTSBYTYPE(result.data.projectsByType) : SET_PROJECTSBYTYPE([]) |
|
|
|
|
|
|
|
result.data.projectsOnDanger != undefined ? SET_PROJECTSONDANGER(result.data.projectsOnDanger) : SET_PROJECTSONDANGER(0) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -114,7 +116,7 @@ const DashboardPM = () => { |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
<Col span={3} style={{ margin: '' }}> |
|
|
|
<Col span={3} style={{ margin: '' }}> |
|
|
|
<BoxDashboardNoIcon |
|
|
|
<BoxDashboardNoIcon |
|
|
|
value={PROJECTCOUNT} |
|
|
|
value={PROJECTSONDANGER} |
|
|
|
bgColor="#f51d1d" |
|
|
|
bgColor="#f51d1d" |
|
|
|
title="Projects on Danger" |
|
|
|
title="Projects on Danger" |
|
|
|
fSize="0.7rem" |
|
|
|
fSize="0.7rem" |
|
|
@ -148,7 +150,7 @@ const DashboardPM = () => { |
|
|
|
<BoxDashboardNoIcon |
|
|
|
<BoxDashboardNoIcon |
|
|
|
value={MANPOWERS} |
|
|
|
value={MANPOWERS} |
|
|
|
bgColor="#0287c7" |
|
|
|
bgColor="#0287c7" |
|
|
|
title="Manpowers" |
|
|
|
title="Manpower" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
<Col span={2} style={{ margin: '' }}> |
|
|
|
<Col span={2} style={{ margin: '' }}> |
|
|
@ -163,7 +165,7 @@ const DashboardPM = () => { |
|
|
|
<Col span={24} style={{ margin: '0px 0px 0px 0px' }}> |
|
|
|
<Col span={24} style={{ margin: '0px 0px 0px 0px' }}> |
|
|
|
<Collapse> |
|
|
|
<Collapse> |
|
|
|
|
|
|
|
|
|
|
|
<Panel header="More Information Chart" key="1"> |
|
|
|
<Panel header="More Information" key="1"> |
|
|
|
<Row style={{ margin: '10px 10px 0px 10px' }}> |
|
|
|
<Row style={{ margin: '10px 10px 0px 10px' }}> |
|
|
|
<Col span={8} > |
|
|
|
<Col span={8} > |
|
|
|
<Row></Row> |
|
|
|
<Row></Row> |
|
|
|