Browse Source

.

pull/2/head
junh_eee 2 years ago
parent
commit
55137ef50f
  1. 49
      src/components/basis/flight/plan/FlightPlanForm.js

49
src/components/basis/flight/plan/FlightPlanForm.js

@ -184,7 +184,7 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
<Label for='test'> <Label for='test'>
<span className='necessary'>*</span> <span className='necessary'>*</span>
</Label> </Label>
{ {/* {
(isFlightDone) ? (isFlightDone) ?
( (
<Input <Input
@ -220,8 +220,27 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
{...{options:{minDate: "today"}}} {...{options:{minDate: "today"}}}
/> />
) )
} } */}
<Flatpickr
size='sm'
className='form-control calendar-flat'
type='text'
id='schFltStDt'
name='schFltStDt'
data-enable-time
// defaultValue={data.schFltStDt}
value={data.schFltStDt}
onChange={(date) => {
const value = moment(date[0]).format('YYYY-MM-DD HH:mm:ss') || '';
handleChange({
type: 'plan',
name: 'schFltStDt',
value
})
}}
placeholder='비행 시작일자 선택(클릭)'
// {...{options:{minDate: "today"}}}
/>
</FormGroup> </FormGroup>
</Col> </Col>
<Col className='list-input' lg={4} md={4} sm={12}> <Col className='list-input' lg={4} md={4} sm={12}>
@ -229,7 +248,7 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
<Label for='test'> <Label for='test'>
<span className='necessary'>*</span> <span className='necessary'>*</span>
</Label> </Label>
{ {/* {
(isFlightDone) ? (isFlightDone) ?
( (
<Input <Input
@ -265,7 +284,27 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
{...{options:{minDate: "today"}}} {...{options:{minDate: "today"}}}
/> />
) )
} } */}
<Flatpickr
size='sm'
className='form-control calendar-flat'
type='text'
id='schFltEndDt'
name='schFltEndDt'
data-enable-time
// defaultValue={data.schFltEndDt}
value={data.schFltEndDt}
onChange={(date) => {
const value = moment(date[0]).format('YYYY-MM-DD HH:mm:ss') || '';
handleChange({
type: 'plan',
name: 'schFltEndDt',
value
})
}}
placeholder='비행 종료일자 선택(클릭)'
// {...{options:{minDate: "today"}}}
/>
</FormGroup> </FormGroup>
</Col> </Col>
<Col className='list-input' lg={4} md={4} sm={12}> <Col className='list-input' lg={4} md={4} sm={12}>

Loading…
Cancel
Save