|
|
|
@ -151,7 +151,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getProjectPerBudgetHealth = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-per-budget-health` |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-per-budget-health/${moment().format('YYYY')}/${company_id}/${all_project}/${hierarchy}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
const content = "Get Project by Budget Health."; |
|
|
|
|
|
|
|
|
@ -174,7 +174,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getProjectBudgetHealthPerDivision = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-budget-health-per-division` |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-budget-health-per-division/${moment().format('YYYY')}/${company_id}/${all_project}/${hierarchy}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
const content = "Get Project by Schedule Health per Division."; |
|
|
|
|
|
|
|
|
@ -198,7 +198,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getProjectScheduleHealthPerDivision = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-schedule-health-per-division` |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-schedule-health-per-division/${moment().format('YYYY')}/${company_id}/${all_project}/${hierarchy}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
const content = "Get Project by Schedule Health."; |
|
|
|
|
|
|
|
|
@ -246,7 +246,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getTotalProjectPerDivision = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-per-division` |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-per-division/${moment().format('YYYY')}/${company_id}/${all_project}/${hierarchy}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
const content = "Get Project by Division."; |
|
|
|
|
|
|
|
|
@ -271,7 +271,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getTotalProjectValuePerDivision = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-value-per-division/${moment().format('YYYY')}` |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-value-per-division/${moment().format('YYYY')}/${company_id}/${all_project}/${hierarchy}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
const content = "Get Project Value by Division"; |
|
|
|
|
|
|
|
|
@ -300,7 +300,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
setOpenDetailedView(true); |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-detail-expenditure` |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-detail-expenditure/${moment().format('YYYY')}/${company_id}/${all_project}/${hierarchy}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
const content = "Get Detail Expenditure"; |
|
|
|
|
|
|
|
|
|