|
|
@ -4,8 +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 } = props; |
|
|
|
const { versionGanttId, idProject, ro, timestamp, dataViewStartDate, token, company_id, role_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}`; |
|
|
|
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=${company_id}`; |
|
|
|
|
|
|
|
// 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=${company_id}`;
|
|
|
|
const [batchEntityData, setBatchEntityData] = useState(null); |
|
|
|
const [batchEntityData, setBatchEntityData] = useState(null); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|