Browse Source

.

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

2
src/components/basis/flight/plan/FlightPlanAreaMap.js

@ -59,7 +59,7 @@ const FlightPlanAreaMap = (props) => {
bufferzoom.bufferzoom =13;
}
else if(areaCoordList[0].bufferZone>=2000 && areaCoordList[0].bufferZone <5000){
bufferzoom.bufferzoom =12;
bufferzoom.bufferzoom =12;
}
else if(areaCoordList[0].bufferZone>=5000 && areaCoordList[0].bufferZone <=9000){
bufferzoom.bufferzoom =11;

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

@ -184,7 +184,7 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
<Label for='test'>
<span className='necessary'>*</span>
</Label>
{
{/* {
(isFlightDone) ?
(
<Input
@ -220,8 +220,27 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
{...{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>
</Col>
<Col className='list-input' lg={4} md={4} sm={12}>
@ -229,7 +248,7 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
<Label for='test'>
<span className='necessary'>*</span>
</Label>
{
{/* {
(isFlightDone) ?
(
<Input
@ -265,7 +284,27 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
{...{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>
</Col>
<Col className='list-input' lg={4} md={4} sm={12}>

Loading…
Cancel
Save