diff --git a/src/views/control/main/ControlMain.js b/src/views/control/main/ControlMain.js index 19208d6..3af9b02 100644 --- a/src/views/control/main/ControlMain.js +++ b/src/views/control/main/ControlMain.js @@ -19,7 +19,8 @@ import { objectUnClickAction, laancModeAction } from '../../../modules/control/map/actions/controlMapActions'; -import Dddd from '../setting/Dddd'; +import FlightPlan from '../setting/LAANC/FlightPlan'; + import ControlMenuLeft from '../menu/ControlMenuLeft'; import ControlTopPackage from '../menu/ControlTopPackage'; @@ -207,8 +208,8 @@ const ControlMain = () => { {isLaanc ? (
-
- +
+
) : ( diff --git a/src/views/control/setting/Dddd.js b/src/views/control/setting/Dddd.js deleted file mode 100644 index f7cda5d..0000000 --- a/src/views/control/setting/Dddd.js +++ /dev/null @@ -1,34 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { Search } from 'react-feather'; -import { BiBuildings, BiGridAlt } from 'react-icons/bi'; -import { CgTrees } from 'react-icons/cg'; -import { VscRadioTower } from 'react-icons/vsc'; -import { useDispatch, useSelector } from 'react-redux'; -import { - Button, - InputGroup, - ButtonGroup, - InputGroupAddon, - Input, - CustomInput -} from 'reactstrap'; -import { - areaClickAction, - environmentClickAction, - mapTypeChangeAction, - sensorClickAction -} from '../../../modules/control/map/actions/controlMapActions'; - -const Dddd = props => { - return ( -
-
-
-

지도유형

- {/* */} -
-
-
- ); -}; -export default Dddd; diff --git a/src/views/control/setting/LAANC/FlightPlan.js b/src/views/control/setting/LAANC/FlightPlan.js new file mode 100644 index 0000000..dcf4adb --- /dev/null +++ b/src/views/control/setting/LAANC/FlightPlan.js @@ -0,0 +1,491 @@ +import React, { useEffect, useState } from 'react'; +import { Search } from 'react-feather'; +import { BiBuildings, BiGridAlt } from 'react-icons/bi'; +import { CgTrees } from 'react-icons/cg'; +import { VscRadioTower } from 'react-icons/vsc'; +import { useDispatch, useSelector } from 'react-redux'; +import Flatpickr from 'react-flatpickr'; +import '@styles/react/libs/flatpickr/flatpickr.scss'; +import moment from 'moment'; +import { + Button, + InputGroup, + ButtonGroup, + InputGroupAddon, + Input, + Row, + Col, + FormGroup, + Label, + Card, + CardBody, + CustomInput +} from 'reactstrap'; +import { + areaClickAction, + environmentClickAction, + mapTypeChangeAction, + sensorClickAction +} from '../../../../modules/control/map/actions/controlMapActions'; + +const FlightPlan = props => { + return ( +
+
+
+

LAANC 승인 요청

+ {/* */} + props.handlerLaanc()} + > + 취소 + +
+
+ + + + +
+
+
+
+
+
+
+

위치 선택

+
+
+ handlerDrawType('LINE')} + disabled={props.isDisabled || props.isDone} + > + WayPoint + + handlerDrawType('CIRCLE')} + disabled={props.isDisabled || props.isDone} + > + Circle + + handlerDrawType('POLYGON')} + disabled={props.isDisabled || props.isDone} + > + Polygon + + 날씨 정보 +
+
+
+

조종사 정보

+
+
+ + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + bsSize='sm' + placeholder='홍길동' + /> + + + + +
+ + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + readOnly + /> +
+
+ { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + placeholder='010-0000-0000' + /> +
+
+ + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='' + /> + + +
+
+
+

비행 계획 정보

+
+
+ + + + + { + const value = + moment(date[0]).format('YYYY-MM-DD HH:mm:ss') || + ''; + handleChange({ + type: 'plan', + name: 'schFltStDt', + value + }); + }} + placeholder='비행 시작일자 선택(클릭)' + /> + + + + + + { + const value = + moment(date[0]).format('YYYY-MM-DD HH:mm:ss') || + ''; + handleChange({ + type: 'plan', + name: 'schFltEndDt', + value + }); + }} + placeholder='비행 종료일자 선택(클릭)' + // {...{options:{minDate: "today"}}} + /> + + + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + // className={classnames({ + // 'is-invalid': props.errors.arcrftTypeCd + // })} + > + {/* TODO CDNOT 코드연동 필요 */} + + + + + + + + + + + +
+ {/* TODO area 다건 표출 */} +
+

비행 구역 정보

+
+
+ + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='100m' + /> + + + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='' + /> + + + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='100m' + /> + + + +
+
+

기체 정보

+
+
+ + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='100m' + /> + + + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='100m' + /> + + + + + + { + const { name, value } = e.target; + handleChange({ + type: 'plan', + name, + value + }); + }} + // innerRef={props.data} + placeholder='100m' + /> + + + +
+
+

유의사항

+
+ {/*
+ + 저장 + + {data.planSno ? ( + + 삭제 + + ) : null} +
*/} +
+
+ +
+ +
+
+ ); +}; +export default FlightPlan;