|
|
|
@ -133,7 +133,7 @@ const DashboardProject = () => {
|
|
|
|
|
const payload = { |
|
|
|
|
"project_id": PROJECT_ID.toString(), |
|
|
|
|
"period": "week", |
|
|
|
|
"end_date": moment(new Date()).format('YYYY-MM-DD') |
|
|
|
|
// "end_date": moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
} |
|
|
|
|
const result = await axios.post(URL, payload, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
console.log('getSCurve', result); |
|
|
|
@ -172,6 +172,7 @@ const DashboardProject = () => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selisihProgress = planningProgress - actualProgress; |
|
|
|
|
console.log("QWE", [planningProgress, actualProgress]); |
|
|
|
|
if (selisihProgress > 0 && selisihProgress <= 5) { |
|
|
|
|
statusHealthBySchedule = 'warning' |
|
|
|
|
} |
|
|
|
|