Browse Source

Merge pull request 'report analysis activity data' (#137) from dev-wahyu into staging

Reviewed-on: ordo/adw-frontend#137
pull/2/head
farhantock 1 year ago
parent
commit
c9747e2ead
  1. 13
      src/views/SimproV2/CreatedProyek/ReportAnalysis.js

13
src/views/SimproV2/CreatedProyek/ReportAnalysis.js

@ -36,7 +36,10 @@ const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId }) =>
}; };
const columns = [ const columns = [
{title: "Activity Name", dataIndex: "name", key: "name"} {title: "Activity", dataIndex: "name", key: "name"},
{title: "Gantt", dataIndex: "name_version", key: "name_version"},
{title: "Assign HR", dataIndex: "user_name", key: "user_name"},
{title: "Progress (%)", dataIndex: "persentase_progress", key: "persentase_progress"},
] ]
const columnActivityToHr = [ const columnActivityToHr = [
@ -150,13 +153,19 @@ const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId }) =>
value: search, value: search,
operator: "AND", operator: "AND",
}, },
{
name: "proyek_id",
logic_operator: "=",
value: projectId,
operator: "AND",
},
], ],
orders: { columns: ["id"], ascending: false }, orders: { columns: ["id"], ascending: false },
paging: { start: 0, length: -1 }, paging: { start: 0, length: -1 },
}; };
const result = await axios const result = await axios
.post(`${BASE_SIMPRO_LUMEN}/activity/search`, payload, HEADER) .post(`${BASE_SIMPRO_LUMEN}/activity/search-analysis`, payload, HEADER)
.then((res) => res) .then((res) => res)
.catch((error) => error.response); .catch((error) => error.response);

Loading…
Cancel
Save