Browse Source

update handle get project with user have access all

pull/1/head
farhantock 1 year ago
parent
commit
a956cca218
  1. 8
      src/views/SimproV2/CreatedProyek/index.js

8
src/views/SimproV2/CreatedProyek/index.js

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

Loading…
Cancel
Save