Browse Source

use select for search

pull/2/head
Wahyu Ramadhan 1 year ago
parent
commit
c596670b89
  1. 2
      src/views/SimproV2/CreatedProyek/DialogGantt.js
  2. 1
      src/views/SimproV2/CreatedProyek/index.js

2
src/views/SimproV2/CreatedProyek/DialogGantt.js

@ -74,12 +74,14 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
let payload; let payload;
if (hierarchyId) { if (hierarchyId) {
payload = { payload = {
"select": ["id", "name_version", "calculation_type", "description", "created_at", "progress"],
"columns": [ "columns": [
{ "name": "hierarchy_ftth_id", "logic_operator": "=", "value": hierarchyId, "operator": "AND" } { "name": "hierarchy_ftth_id", "logic_operator": "=", "value": hierarchyId, "operator": "AND" }
] ]
} }
} else { } else {
payload = { payload = {
"select": ["id", "name_version", "calculation_type", "description", "created_at", "progress"],
"columns": [ "columns": [
{ "name": "proyek_id", "logic_operator": "=", "value": idTask, "operator": "AND" } { "name": "proyek_id", "logic_operator": "=", "value": idTask, "operator": "AND" }
] ]

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

@ -304,6 +304,7 @@ const CreatedProyek = ({ params, ...props }) => {
const getdataGantt = async (idTask) => { const getdataGantt = async (idTask) => {
setLoadVersionGantt(true); setLoadVersionGantt(true);
const payload = { const payload = {
select: ["id", "name_version"],
columns: [ columns: [
{ {
name: "proyek_id", name: "proyek_id",

Loading…
Cancel
Save