|
|
@ -12,8 +12,7 @@ import 'antd/dist/antd.css'; |
|
|
|
import { NotificationManager } from 'react-notifications'; |
|
|
|
import { NotificationManager } from 'react-notifications'; |
|
|
|
|
|
|
|
|
|
|
|
const role_id = localStorage.getItem('role_id'); |
|
|
|
const role_id = localStorage.getItem('role_id'); |
|
|
|
const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, company_id }) => { |
|
|
|
const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, company_id, token }) => { |
|
|
|
const token = localStorage.getItem("token") |
|
|
|
|
|
|
|
const HEADER = { |
|
|
|
const HEADER = { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
"Content-Type": "application/json", |
|
|
|
"Content-Type": "application/json", |
|
|
@ -159,6 +158,9 @@ const DialogAssignCust = ({ openDialog, closeDialog, toggleDialog, idTask, compa |
|
|
|
}}> |
|
|
|
}}> |
|
|
|
<Transfer |
|
|
|
<Transfer |
|
|
|
showSearch |
|
|
|
showSearch |
|
|
|
|
|
|
|
filterOption={(inputValue, option) => |
|
|
|
|
|
|
|
option.title.toLowerCase().includes(inputValue.toLowerCase()) |
|
|
|
|
|
|
|
} |
|
|
|
titles={['Available Customer', 'Granted to']} |
|
|
|
titles={['Available Customer', 'Granted to']} |
|
|
|
dataSource={assignCustomer} |
|
|
|
dataSource={assignCustomer} |
|
|
|
targetKeys={targetKeys} |
|
|
|
targetKeys={targetKeys} |
|
|
|