Browse Source

Resolve conflicts

pull/1/head
root 1 year ago
parent
commit
6984f8a8fc
  1. 1
      src/const/ApiConst.js
  2. 6
      src/views/SimproV2/CreatedProyek/DialogGantt.js
  3. 1
      src/views/SimproV2/Gantt/GanttFrame.js

1
src/const/ApiConst.js

@ -119,6 +119,7 @@ export const TOKEN_ADW =
export let BASE_OSPRO = "https://project-api.ospro.id"; export let BASE_OSPRO = "https://project-api.ospro.id";
// export let BASE_OSPRO = "http://localhost:8444/adw-backend"; // export let BASE_OSPRO = "http://localhost:8444/adw-backend";
export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`;
export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`;
export let BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`; export let BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`;

6
src/views/SimproV2/CreatedProyek/DialogGantt.js

@ -247,6 +247,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
) : ( ) : (
<div>Gantt Project {proyekName}</div> <div>Gantt Project {proyekName}</div>
)} )}
<div style={{ display:'flex'}}>
<Select <Select
placeholder='Search Gantt Name' placeholder='Search Gantt Name'
showSearch showSearch
@ -254,7 +255,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
option.children.toLowerCase().includes(inputValue.toLowerCase()) option.children.toLowerCase().includes(inputValue.toLowerCase())
} }
onChange={(val) => setSearchGantt(val)} onChange={(val) => setSearchGantt(val)}
style={{ width: 200 }} style={{ width: 200, marginRight:'10px' }}
> >
{dataGantt.map((res) => ( {dataGantt.map((res) => (
<Option key={res.id} value={res.id}> <Option key={res.id} value={res.id}>
@ -262,13 +263,12 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
</Option> </Option>
))} ))}
</Select> </Select>
{!hierarchyId && ( {!hierarchyId && (
<Button onClick={handleOpenDialogForm} size='sm' color="primary"> <Button onClick={handleOpenDialogForm} size='sm' color="primary">
<i className='fa fa-plus'></i> <i className='fa fa-plus'></i>
</Button> </Button>
)} )}
</div>
</ModalHeader> </ModalHeader>
<ModalBody> <ModalBody>
<div style={{ width: '100%', overflow: "auto" }}> <div style={{ width: '100%', overflow: "auto" }}>

1
src/views/SimproV2/Gantt/GanttFrame.js

@ -20,6 +20,7 @@ const GanttFrame = React.memo((props) => {
const { versionGanttId, idProject, ro, timestamp } = props; const { versionGanttId, idProject, ro, timestamp } = 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}&timestamp=${timestamp}`; 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}&timestamp=${timestamp}`;
const [batchEntityData, setBatchEntityData] = useState(null); const [batchEntityData, setBatchEntityData] = useState(null);
useEffect(() => { useEffect(() => {

Loading…
Cancel
Save