Browse Source

update is_customer

pull/1/head
wahyuun 9 months ago
parent
commit
68a542dbd0
  1. 6
      src/views/SimproV2/CreatedProyek/DialogAssignCust.js

6
src/views/SimproV2/CreatedProyek/DialogAssignCust.js

@ -44,14 +44,14 @@ const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, compa
"select": [ "select": [
"id", "id",
"name", "name",
"role_id" "is_customer"
], ],
"paging": { "paging": {
"start": 0, "start": 0,
"length": -1 "length": -1
}, },
"columns": [ "columns": [
{ "name": "role_id", "logic_operator": "=", "value": 44 }, { "name": "is_customer", "logic_operator": "=", "value": true },
{ "name": "company_id", "logic_operator": "=", "value": company_id }, { "name": "company_id", "logic_operator": "=", "value": company_id },
], ],
"orders": { "orders": {
@ -69,7 +69,7 @@ const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, compa
if (result && result.status == 200) { if (result && result.status == 200) {
let dataRes = result.data.data; let dataRes = result.data.data;
const filteredData = dataRes.filter(item => item.role_id === 44); const filteredData = dataRes.filter(item => item.is_customer === true);
setTransferUser(filteredData); setTransferUser(filteredData);
} }
} }

Loading…
Cancel
Save