|
|
@ -142,7 +142,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
const [userProyek, setUserProyek] = useState([]); |
|
|
|
const [userProyek, setUserProyek] = useState([]); |
|
|
|
const [materialProyek, setMaterialProyek] = useState([]); |
|
|
|
const [materialProyek, setMaterialProyek] = useState([]); |
|
|
|
const [dataCharter, setDataCharter] = useState(null); |
|
|
|
const [dataCharter, setDataCharter] = useState(null); |
|
|
|
const [dataViewStartDate, setDataViewStartDate] = useState([]); |
|
|
|
const [dataViewStartDate, setDataViewStartDate] = useState(""); |
|
|
|
const [materialResource, setMaterialResource] = useState([]); |
|
|
|
const [materialResource, setMaterialResource] = useState([]); |
|
|
|
const [toolsResource, setToolsResource] = useState([]); |
|
|
|
const [toolsResource, setToolsResource] = useState([]); |
|
|
|
const [dataTypeProyek, setDataTypeProyek] = useState([]); |
|
|
|
const [dataTypeProyek, setDataTypeProyek] = useState([]); |
|
|
@ -376,7 +376,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
paging: { start: start, length: rowsPerPage }, |
|
|
|
paging: { start: start, length: rowsPerPage }, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (all_project) { |
|
|
|
if (all_project !== null && all_project === true) { |
|
|
|
payload["columns"] = [ |
|
|
|
payload["columns"] = [ |
|
|
|
{ name: "company_id", logic_operator: "like", value: company_id, operator: "AND" } |
|
|
|
{ name: "company_id", logic_operator: "like", value: company_id, operator: "AND" } |
|
|
|
]; |
|
|
|
]; |
|
|
@ -512,6 +512,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleOpenDialogGantt = (data) => { |
|
|
|
const handleOpenDialogGantt = (data) => { |
|
|
|
|
|
|
|
console.log('data.mulai_proyek', data.mulai_proyek); |
|
|
|
setDataViewStartDate(data.mulai_proyek) |
|
|
|
setDataViewStartDate(data.mulai_proyek) |
|
|
|
setidTask(data.id); |
|
|
|
setidTask(data.id); |
|
|
|
setProyekName(data.nama); |
|
|
|
setProyekName(data.nama); |
|
|
@ -1534,32 +1535,12 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span className="menu-text">Assign Checklist K3</span> |
|
|
|
<span className="menu-text">Assign Checklist K3</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* <div |
|
|
|
<div className="menu-list" onClick={() => handleOpenDialogGantt(text)}> |
|
|
|
className="menu-list" |
|
|
|
<span className="menu-icon"> |
|
|
|
onClick={() => handleOpenDialogMaterial(text)} |
|
|
|
<i className="fa fa-bars"></i> |
|
|
|
> |
|
|
|
</span> |
|
|
|
<span className="menu-icon"> |
|
|
|
<span className="menu-text">Gantt</span> |
|
|
|
<i className="fa fa-cube"></i> |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span className="menu-text">Request Material Resource</span> |
|
|
|
|
|
|
|
</div> */} |
|
|
|
|
|
|
|
{/* <div className="menu-list" onClick={() => handleOpenDialogTools(text)}> |
|
|
|
|
|
|
|
<span className="menu-icon"> |
|
|
|
|
|
|
|
<i className="fa fa-cog"></i> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span className="menu-text">Request Tools</span> |
|
|
|
|
|
|
|
</div> */} |
|
|
|
|
|
|
|
{/* <Link to={`/project-charter/${text.id}/gantt`}> */} |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/*text.type_proyek_id != 9 ?*/ |
|
|
|
|
|
|
|
<div className="menu-list" onClick={() => handleOpenDialogGantt(text)}> |
|
|
|
|
|
|
|
<span className="menu-icon"> |
|
|
|
|
|
|
|
<i className="fa fa-bars"></i> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span className="menu-text">Gantt</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
/*: null*/ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
<div className="menu-list" onClick={() => handleSCurve(text)}> |
|
|
|
<div className="menu-list" onClick={() => handleSCurve(text)}> |
|
|
|
<span className="menu-icon"> |
|
|
|
<span className="menu-icon"> |
|
|
|
<i className="fa fa-line-chart"></i> |
|
|
|
<i className="fa fa-line-chart"></i> |
|
|
@ -1572,7 +1553,6 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span className="menu-text">Report Analysis</span> |
|
|
|
<span className="menu-text">Report Analysis</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* </Link> */} |
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
className="menu-list" |
|
|
|
className="menu-list" |
|
|
|
onClick={() => handleOpenDialogProyek(text.id)} |
|
|
|
onClick={() => handleOpenDialogProyek(text.id)} |
|
|
@ -1995,6 +1975,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
toggleDialog={toggleDialogHierarchy} |
|
|
|
toggleDialog={toggleDialogHierarchy} |
|
|
|
idTask={idTask} |
|
|
|
idTask={idTask} |
|
|
|
proyekName={proyekName} |
|
|
|
proyekName={proyekName} |
|
|
|
|
|
|
|
dataViewStartDate={dataViewStartDate} |
|
|
|
/> |
|
|
|
/> |
|
|
|
), |
|
|
|
), |
|
|
|
[openDialogHierarchy] |
|
|
|
[openDialogHierarchy] |
|
|
|