|
|
@ -266,8 +266,8 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleDashboard = async (text) => { |
|
|
|
const handleDashboard = async (id) => { |
|
|
|
const URL = `${BASE_OSPRO}/api/project/detail/${text.id}`; |
|
|
|
const URL = `${BASE_OSPRO}/api/project/detail/${id}`; |
|
|
|
const result = await axios |
|
|
|
const result = await axios |
|
|
|
.get(URL, HEADER) |
|
|
|
.get(URL, HEADER) |
|
|
|
.then((res) => res) |
|
|
|
.then((res) => res) |
|
|
@ -285,7 +285,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} else if (result.status == 200 && result.data.data) { |
|
|
|
} else if (result.status == 200 && result.data.data) { |
|
|
|
history.push( |
|
|
|
history.push( |
|
|
|
`dashboard-customer/${text.id}/${result.data.gantt}/1` |
|
|
|
`/dashboard-customer/${id}/${result.data.gantt}/1` |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -596,6 +596,10 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
getProjectDetail(data.id); |
|
|
|
getProjectDetail(data.id); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleDashboardCustomer = async (data) => { |
|
|
|
|
|
|
|
handleDashboard(data.id); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleOpenReport = async (data) => { |
|
|
|
const handleOpenReport = async (data) => { |
|
|
|
setOpenDialogRA(true); |
|
|
|
setOpenDialogRA(true); |
|
|
|
setProjectId(data.id); |
|
|
|
setProjectId(data.id); |
|
|
@ -1615,7 +1619,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
<Tooltip title="Dashboard Project"> |
|
|
|
<Tooltip title="Dashboard Project"> |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
onClick={() => handleDashboard(text)} |
|
|
|
onClick={() => handleDashboardCustomer(text)} |
|
|
|
type="link" |
|
|
|
type="link" |
|
|
|
style={{ color: "green" }} |
|
|
|
style={{ color: "green" }} |
|
|
|
> |
|
|
|
> |
|
|
|