|
|
|
@ -272,6 +272,9 @@ const DashboardProject = () => {
|
|
|
|
|
if (GANTT_ID) { |
|
|
|
|
URL = `${BASE_OSPRO}/api/project/detail/${PROJECT_ID}/${GANTT_ID}`; |
|
|
|
|
} |
|
|
|
|
if (SCURVE) { |
|
|
|
|
URL = `${BASE_OSPRO}/api/project/detail/${PROJECT_ID}/${GANTT_ID}/${SCURVE}`; |
|
|
|
|
} |
|
|
|
|
const result = await axios |
|
|
|
|
.get(URL, HEADER) |
|
|
|
|
.then((res) => res) |
|
|
|
@ -301,10 +304,22 @@ const DashboardProject = () => {
|
|
|
|
|
result.data.data.company ? result.data.data.company : "-" |
|
|
|
|
); |
|
|
|
|
setPlannedStart( |
|
|
|
|
result.data.data?.mulai_proyek ? result.data.data.mulai_proyek : null |
|
|
|
|
SCURVE |
|
|
|
|
? result.data.data.mulai_proyek |
|
|
|
|
? result.data.data.mulai_proyek |
|
|
|
|
: null |
|
|
|
|
: result.data.data.header?.planned_start |
|
|
|
|
? result.data.data.header?.planned_start |
|
|
|
|
: null |
|
|
|
|
); |
|
|
|
|
setPlannedFinish( |
|
|
|
|
result.data.data?.akhir_proyek ? result.data.data.akhir_proyek : null |
|
|
|
|
SCURVE |
|
|
|
|
? result.data.data.akhir_proyek |
|
|
|
|
? result.data.data.akhir_proyek |
|
|
|
|
: null |
|
|
|
|
: result.data.data.header?.planned_end |
|
|
|
|
? result.data.data.header?.planned_end |
|
|
|
|
: null |
|
|
|
|
); |
|
|
|
|
setActualStart( |
|
|
|
|
result.data.data.header?.start_date |
|
|
|
|