|
|
@ -4,7 +4,7 @@ import { Button, Form } from 'reactstrap'; |
|
|
|
import { Table, Tooltip } from 'antd'; |
|
|
|
import { Table, Tooltip } from 'antd'; |
|
|
|
import 'antd/dist/antd.css'; |
|
|
|
import 'antd/dist/antd.css'; |
|
|
|
import moment from 'moment'; |
|
|
|
import moment from 'moment'; |
|
|
|
import { ASSIGN_HR_PROJECT_SEARCH, ASSIGN_HR_PROJECT_DELETE, USER_LIST, PROJECT_ROLE_SEARCH, ASSIGN_HR_PROJECT_ADD, ASSIGN_HR_PROJECT_EDIT } from '../../../const/ApiConst'; |
|
|
|
import { API_ADW, TOKEN_ADW, ASSIGN_HR_PROJECT_SEARCH, ASSIGN_HR_PROJECT_DELETE, USER_LIST, PROJECT_ROLE_SEARCH, ASSIGN_HR_PROJECT_ADD, ASSIGN_HR_PROJECT_EDIT } from '../../../const/ApiConst'; |
|
|
|
import axios from "../../../const/interceptorApi" |
|
|
|
import axios from "../../../const/interceptorApi" |
|
|
|
import { NotificationContainer, NotificationManager } from 'react-notifications'; |
|
|
|
import { NotificationContainer, NotificationManager } from 'react-notifications'; |
|
|
|
import SweetAlert from 'react-bootstrap-sweetalert'; |
|
|
|
import SweetAlert from 'react-bootstrap-sweetalert'; |
|
|
@ -75,15 +75,19 @@ const AssignHrProject = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const getDataUser = async () => { |
|
|
|
const getDataUser = async () => { |
|
|
|
|
|
|
|
const HEADER_ADW = { |
|
|
|
|
|
|
|
headers: { |
|
|
|
|
|
|
|
"Authorization": `${TOKEN_ADW}` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
const result = await axios |
|
|
|
const result = await axios |
|
|
|
.get(USER_LIST, HEADER) |
|
|
|
.get(`${API_ADW}employees`, HEADER_ADW) |
|
|
|
|
|
|
|
// .get(USER_LIST, HEADER)
|
|
|
|
.then(res => res) |
|
|
|
.then(res => res) |
|
|
|
.catch((error) => error.response); |
|
|
|
.catch((error) => error.response); |
|
|
|
|
|
|
|
if (result && result.data && result.data.data.length != 0) { |
|
|
|
if (result && result.data && result.data.code == 200) { |
|
|
|
|
|
|
|
let dataRes = result.data.data |
|
|
|
let dataRes = result.data.data |
|
|
|
setListUser(dataRes) |
|
|
|
setListUser(dataRes) |
|
|
|
} else { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|