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