|
|
|
@ -376,7 +376,11 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
paging: { start: start, length: rowsPerPage }, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
if (parseInt(role_id) !== 70) { |
|
|
|
|
if (all_project) { |
|
|
|
|
payload["columns"] = [ |
|
|
|
|
{ name: "company_id", logic_operator: "like", value: company_id, operator: "AND" } |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
payload["columns"] = [ |
|
|
|
|
{ name: "created_by_id", logic_operator: "IN", value: hierarchy, operator: "AND" } |
|
|
|
|
]; |
|
|
|
@ -508,6 +512,7 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const handleOpenDialogGantt = (data) => { |
|
|
|
|
setDataViewStartDate(data.mulai_proyek) |
|
|
|
|
setidTask(data.id); |
|
|
|
|
setProyekName(data.nama); |
|
|
|
|
setOpenDialogGantt(true); |
|
|
|
@ -1977,6 +1982,7 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
token={token} |
|
|
|
|
isLogin={isLogin} |
|
|
|
|
proyekName={proyekName} |
|
|
|
|
dataViewStartDate={dataViewStartDate} |
|
|
|
|
/> |
|
|
|
|
), |
|
|
|
|
[openDialogGantt] |
|
|
|
|