|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React, { useEffect, useState, useMemo } from 'react' |
|
|
|
|
import { Modal, ModalHeader, ModalBody, Col, Row, Breadcrumb, BreadcrumbItem } from 'reactstrap'; |
|
|
|
|
import { Modal, ModalHeader, ModalBody, Breadcrumb, BreadcrumbItem } from 'reactstrap'; |
|
|
|
|
import { Button } from 'reactstrap'; |
|
|
|
|
import { Select, Table, Tooltip, Spin } from 'antd'; |
|
|
|
|
import 'antd/dist/antd.css'; |
|
|
|
@ -13,14 +13,13 @@ import DialogUserGantt from './DialogUserGantt';
|
|
|
|
|
import { Link } from 'react-router-dom'; |
|
|
|
|
|
|
|
|
|
const { Option } = Select |
|
|
|
|
const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName, companyId, hierarchyId, hierarchyName, openDialogHierarchy, isLogin, token, role_id, user_id, dataViewStartDate }) => { |
|
|
|
|
const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName, companyId, configApp, hierarchyId, hierarchyName, openDialogHierarchy, isLogin, token, role_id, user_id, dataViewStartDate }) => { |
|
|
|
|
const HEADER = { |
|
|
|
|
headers: { |
|
|
|
|
"Content-Type": "application/json", |
|
|
|
|
"Authorization": `Bearer ${token}` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const [openDialogForm, setOpenDialogForm] = useState(false) |
|
|
|
|
const [openDialogUserGantt, setOpenDialogUserGantt] = useState(false) |
|
|
|
|
const [dataGantt, setDataGantt] = useState([]) |
|
|
|
@ -134,7 +133,8 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
|
|
|
|
|
role_id, |
|
|
|
|
user_id, |
|
|
|
|
company_id: companyId, |
|
|
|
|
dataViewStartDate |
|
|
|
|
dataViewStartDate, |
|
|
|
|
configApp: configApp |
|
|
|
|
} |
|
|
|
|
}}> |
|
|
|
|
<Tooltip title="Gantt"> |
|
|
|
|