|
|
|
@ -244,8 +244,10 @@ const DashboardBOD = () => {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (result.status == 200 && result.data.data) { |
|
|
|
|
SET_PROJECT_PER_DIVISION(result.data.data); |
|
|
|
|
if (result.status == 200 && result.data.data) { |
|
|
|
|
let dataRes = result.data.data; |
|
|
|
|
const filteredData = dataRes.filter(item => item.parent === null); |
|
|
|
|
SET_PROJECT_PER_DIVISION(filteredData); |
|
|
|
|
} |
|
|
|
|
SET_READY_PROJECT_PER_DIVISION(true); |
|
|
|
|
} |
|
|
|
@ -311,7 +313,7 @@ const DashboardBOD = () => {
|
|
|
|
|
planningProgress = item.scurve[0].data.percentagePlan[item.scurve[0].data.percentagePlan.length - 1] |
|
|
|
|
actualProgress = item.scurve[0].data.percentageReal[item.scurve[0].data.percentageReal.length - 1] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selisihProgress = planningProgress - actualProgress |
|
|
|
|
|
|
|
|
|
if (selisihProgress > 0 && selisihProgress <= 5) { |
|
|
|
|