|
|
@ -89,7 +89,7 @@ const DialogFormProyek = ({ |
|
|
|
const [lastIdxRisks, setLastIdxRisks] = useState(0); |
|
|
|
const [lastIdxRisks, setLastIdxRisks] = useState(0); |
|
|
|
const [lastIdxMilestones, setLastIdxMilestones] = useState(0); |
|
|
|
const [lastIdxMilestones, setLastIdxMilestones] = useState(0); |
|
|
|
const [lastIdxApproval, setLastIdxApproval] = useState(0); |
|
|
|
const [lastIdxApproval, setLastIdxApproval] = useState(0); |
|
|
|
const [loading, setLoading] = useState(true); |
|
|
|
const [loading, setLoading] = useState(false); |
|
|
|
const handleGetdataIdproyek = async (id) => { |
|
|
|
const handleGetdataIdproyek = async (id) => { |
|
|
|
setLoading(true) |
|
|
|
setLoading(true) |
|
|
|
const result = await axios |
|
|
|
const result = await axios |
|
|
@ -226,6 +226,7 @@ const DialogFormProyek = ({ |
|
|
|
setLastIdxMilestones(0); |
|
|
|
setLastIdxMilestones(0); |
|
|
|
setLastIdxApproval(0); |
|
|
|
setLastIdxApproval(0); |
|
|
|
setStep(1); |
|
|
|
setStep(1); |
|
|
|
|
|
|
|
setLoading(false) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
@ -822,7 +823,7 @@ const DialogFormProyek = ({ |
|
|
|
> |
|
|
|
> |
|
|
|
{dataDivisions.map((res) => ( |
|
|
|
{dataDivisions.map((res) => ( |
|
|
|
<Option key={res.id} value={res.id}> |
|
|
|
<Option key={res.id} value={res.id}> |
|
|
|
{res.displayName} |
|
|
|
{res.name} |
|
|
|
</Option> |
|
|
|
</Option> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</Select> |
|
|
|
</Select> |
|
|
@ -830,7 +831,7 @@ const DialogFormProyek = ({ |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
<Col md={6}> |
|
|
|
<Col md={6}> |
|
|
|
<FormGroup> |
|
|
|
<FormGroup> |
|
|
|
<Label className="capitalize" style={{ fontWeight: "bold" }}>Project Duration</Label> |
|
|
|
<Label className="capitalize" style={{ fontWeight: "bold" }}>Project Duration (Days)</Label> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
min="1" |
|
|
|
min="1" |
|
|
|