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;
if (hierarchyId) {
payload = {
"select": ["id", "name_version", "calculation_type", "description", "created_at", "progress"],
"columns": [
{ "name": "hierarchy_ftth_id", "logic_operator": "=", "value": hierarchyId, "operator": "AND" }
]
}
} else {
payload = {
"select": ["id", "name_version", "calculation_type", "description", "created_at", "progress"],
"columns": [
{ "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) => {
setLoadVersionGantt(true);
const payload = {
select: ["id", "name_version"],
columns: [
{
name: "proyek_id",

Loading…
Cancel
Save