Browse Source

add filter request endpoint dashboard/get-total-project-per-division1~

pull/2/head
wahyuun 1 year ago
parent
commit
d48322a6a8
  1. 8
      src/views/Dashboard/DashboardBOD.js

8
src/views/Dashboard/DashboardBOD.js

@ -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) {

Loading…
Cancel
Save