|
|
@ -4,9 +4,9 @@ import { BASE_SIMPRO_LUMEN } from '../../../const/ApiConst'; |
|
|
|
|
|
|
|
|
|
|
|
const GanttFrame = React.memo((props) => { |
|
|
|
const GanttFrame = React.memo((props) => { |
|
|
|
const history = useHistory(); |
|
|
|
const history = useHistory(); |
|
|
|
const { versionGanttId, idProject, ro, timestamp, dataViewStartDate, token, companyId, role_name } = props; |
|
|
|
const { versionGanttId, idProject, ro, timestamp, dataViewStartDate, token, companyId, role_name, company_name } = props; |
|
|
|
const iframeSrc = `https://project-gantt.ospro.id/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}×tamp=${timestamp}&start=${dataViewStartDate}&role_name=${role_name}&company_id=${companyId}`; |
|
|
|
const iframeSrc = `https://project-gantt.ospro.id/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}×tamp=${timestamp}&start=${dataViewStartDate}&role_name=${role_name}&company_id=${companyId}&company_name=${company_name}`; |
|
|
|
// const iframeSrc = `http://localhost:8444/generic-ospro-gantt/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}×tamp=${timestamp}&start=${dataViewStartDate}&role_name=${role_name}&company_id=${companyId}`;
|
|
|
|
// const iframeSrc = `http://localhost:8444/generic-ospro-gantt/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}×tamp=${timestamp}&start=${dataViewStartDate}&role_name=${role_name}&company_id=${companyId}&company_name=${company_name}`;
|
|
|
|
const [batchEntityData, setBatchEntityData] = useState(null); |
|
|
|
const [batchEntityData, setBatchEntityData] = useState(null); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
@ -18,7 +18,6 @@ const GanttFrame = React.memo((props) => { |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('message', handleMessage); |
|
|
|
window.addEventListener('message', handleMessage); |
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
const handleNavigation = (event) => { |
|
|
|
const handleNavigation = (event) => { |
|
|
|
if (batchEntityData && batchEntityData !== '') { |
|
|
|
if (batchEntityData && batchEntityData !== '') { |
|
|
|