Browse Source

update handle get project with user have access all

pull/1/head
farhantock 11 months 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 },
};
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]

Loading…
Cancel
Save