|
|
|
@ -32,11 +32,6 @@ const AssignCustProject = ({ openDialog, closeDialog, toggleDialog, idTask, proy
|
|
|
|
|
} |
|
|
|
|
}, [openDialog]); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (openDialog) { |
|
|
|
|
} |
|
|
|
|
}, [dataUserToProject]) |
|
|
|
|
|
|
|
|
|
const getDataAssignHr = async () => { |
|
|
|
|
const payload = { |
|
|
|
|
"paging": { |
|
|
|
@ -45,7 +40,8 @@ const AssignCustProject = ({ openDialog, closeDialog, toggleDialog, idTask, proy
|
|
|
|
|
}, |
|
|
|
|
"columns": [ |
|
|
|
|
{ "name": "name", "logic_operator": "ilike", "value": "", "table_name": "m_users" }, |
|
|
|
|
{ "name": "proyek_id", "logic_operator": "=", "value": idTask } |
|
|
|
|
{ "name": "proyek_id", "logic_operator": "=", "value": idTask }, |
|
|
|
|
{ "name": "is_customer", "logic_operator": "=", "value": "true" } |
|
|
|
|
], |
|
|
|
|
"joins": [ |
|
|
|
|
{ "name": "m_users", "column_join": "user_id", "column_results": ["name"] }, |
|
|
|
@ -144,7 +140,9 @@ const AssignCustProject = ({ openDialog, closeDialog, toggleDialog, idTask, proy
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleCloseDialogFormTools = (type, data) => { |
|
|
|
|
if (type === "add") getDataAssignHr(); |
|
|
|
|
if (type === "add") { |
|
|
|
|
getDataAssignHr() |
|
|
|
|
} |
|
|
|
|
if (type === "success") { |
|
|
|
|
NotificationManager.success( |
|
|
|
|
`Assign Customer Project berhasil disimpan!`, |
|
|
|
|