|
|
|
@ -61,6 +61,7 @@ const DashboardBOD = (props) => {
|
|
|
|
|
const [READY_TABLE_DETAIL_EXPENDITURE, SET_READY_TABLE_DETAIL_EXPENDITURE] = useState(false); |
|
|
|
|
const [DATA_DETAIL_EXPENDITURE, SET_DATA_DETAIL_EXPENDITURE] = useState([]); |
|
|
|
|
useEffect(() => { |
|
|
|
|
actualProgressProject(); |
|
|
|
|
getCompanyCashFlow(); // expenditure
|
|
|
|
|
getCompanyExpenditureColor(); // expenditure Color
|
|
|
|
|
getCompanyFinancialHealthColor(); // financial health Color
|
|
|
|
@ -111,6 +112,11 @@ const DashboardBOD = (props) => {
|
|
|
|
|
SET_PROJECT_EXPENDITURE_COLOR(result.data.data) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const actualProgressProject = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/project/actual-progress-project-command`; |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getCompanyFinancialHealthColor = async () => { |
|
|
|
|
const URL = `${BASE_OSPRO}/api/dashboard/get-detail-financial-health-color/${role_name}` |
|
|
|
|
const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) |
|
|
|
|