|
|
@ -36,6 +36,7 @@ const DashboardProject = () => { |
|
|
|
const { PROJECT_ID, GANTT_ID } = useParams(); |
|
|
|
const { PROJECT_ID, GANTT_ID } = useParams(); |
|
|
|
// const URL_GANTT = `http://103.73.125.81:8446/index.html?base_url=http://103.73.125.81:8444/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`;
|
|
|
|
// const URL_GANTT = `http://103.73.125.81:8446/index.html?base_url=http://103.73.125.81:8444/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`;
|
|
|
|
const URL_GANTT = `https://adw-gantt.ospro.id/index.html?base_url=${BASE_OSPRO}/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; |
|
|
|
const URL_GANTT = `https://adw-gantt.ospro.id/index.html?base_url=${BASE_OSPRO}/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; |
|
|
|
|
|
|
|
// const URL_GANTT = '';
|
|
|
|
const mapRef = useRef() |
|
|
|
const mapRef = useRef() |
|
|
|
const [projectName, setProjectName] = useState("Project Tower ABC"); |
|
|
|
const [projectName, setProjectName] = useState("Project Tower ABC"); |
|
|
|
const [projectManagerName, setProjectManagerName] = useState("John Doe"); |
|
|
|
const [projectManagerName, setProjectManagerName] = useState("John Doe"); |
|
|
@ -92,6 +93,12 @@ const DashboardProject = () => { |
|
|
|
value: PROJECT_ID.toString(), |
|
|
|
value: PROJECT_ID.toString(), |
|
|
|
operator: "AND", |
|
|
|
operator: "AND", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
name: "gantt_id", |
|
|
|
|
|
|
|
logic_operator: "=", |
|
|
|
|
|
|
|
value: GANTT_ID.toString(), |
|
|
|
|
|
|
|
operator: "AND", |
|
|
|
|
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
joins: [ |
|
|
|
joins: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -136,6 +143,7 @@ const DashboardProject = () => { |
|
|
|
const payload = { |
|
|
|
const payload = { |
|
|
|
"sender_id": localStorage.getItem('user_id'), |
|
|
|
"sender_id": localStorage.getItem('user_id'), |
|
|
|
"project_id": PROJECT_ID, |
|
|
|
"project_id": PROJECT_ID, |
|
|
|
|
|
|
|
"gantt_id": GANTT_ID, |
|
|
|
"comment": comment |
|
|
|
"comment": comment |
|
|
|
} |
|
|
|
} |
|
|
|
const result = await axios.post(URL, payload, HEADER).then(res => res).catch(err => err.response) |
|
|
|
const result = await axios.post(URL, payload, HEADER).then(res => res).catch(err => err.response) |
|
|
|