diff --git a/src/components/basis/flight/schedule/FlightScheduleSearch.js b/src/components/basis/flight/schedule/FlightScheduleSearch.js new file mode 100644 index 00000000..6ffe6507 --- /dev/null +++ b/src/components/basis/flight/schedule/FlightScheduleSearch.js @@ -0,0 +1,71 @@ +import { useState } from 'react'; +import { Row, Col, Button, Card, CardBody } from 'reactstrap'; +import { Search, Calendar } from 'react-feather'; +import moment from 'moment'; +import Flatpickr from 'react-flatpickr'; + +function FlightScheduleSearch() { + const [date, setDate] = useState( + moment().subtract('day').format('YYYY-MM-DD') + ); + + const handlerChangeDate = val => { + setDate(moment(val[0]).format('YYYY-MM-DD')); + }; + + return ( +
+ + +
+
+

검색조건

+
+
+ {}}> + + 검색 + +
+
+ + +
+
+
+
+
일자
+
+
+ + +
+ + +
+ +
+
+
+
+
+
+
+
+
+ +
+
+ ); +} + +export default FlightScheduleSearch; diff --git a/src/containers/basis/flight/schedule/FlightScheduleContainer.js b/src/containers/basis/flight/schedule/FlightScheduleContainer.js new file mode 100644 index 00000000..46fb0c74 --- /dev/null +++ b/src/containers/basis/flight/schedule/FlightScheduleContainer.js @@ -0,0 +1,12 @@ +import { CustomMainLayout } from '@src/components/layout/CustomMainLayout'; +import FlightScheduleSearch from '@src/components/basis/flight/schedule/FlightScheduleSearch'; + +function FlightScheduleContainer() { + return ( + + + + ); +} + +export default FlightScheduleContainer; diff --git a/src/navigation/flightPlan/index.js b/src/navigation/flightPlan/index.js index 2c13d2af..f59c230c 100644 --- a/src/navigation/flightPlan/index.js +++ b/src/navigation/flightPlan/index.js @@ -2,8 +2,7 @@ export default [ { id: 'flight_plan_001', title: '비행 계획 관리', - navLink: '#', - type: 'dropdown' + navLink: '#' }, { id: 'flight_plan_001_01', @@ -28,7 +27,7 @@ export default [ { id: 'flight_plan_02', title: '비행운항 스케줄', - navLink: '', + navLink: '/basis/flight/schedule/index', newTab: true } ]; diff --git a/src/router/Router.js b/src/router/Router.js index 972226c0..19478cd2 100644 --- a/src/router/Router.js +++ b/src/router/Router.js @@ -76,13 +76,14 @@ const Router = () => { if (isLogin === false && !route.meta?.authRoute) { return ; } else { - switch (props.route.path) { - case '/account/register': - case '/account/find': - return ; - default: - return ; - } + // switch (props.route.path) { + // case '/account/register': + // case '/account/find': + // return ; + // default: + // return ; + // } + return ; } }; diff --git a/src/router/routes/RouteBasis.js b/src/router/routes/RouteBasis.js index 35cef676..062d738c 100644 --- a/src/router/routes/RouteBasis.js +++ b/src/router/routes/RouteBasis.js @@ -45,16 +45,29 @@ const RouteBasis = [ }, { path: '/basis/flight/plan/create', - component: lazy(() => import('../../views/basis/flight/plan/FlightPlanDetail')) + component: lazy(() => + import('../../views/basis/flight/plan/FlightPlanDetail') + ) }, { path: '/basis/flight/plan/detail/:planSno', - component: lazy(() => import('../../views/basis/flight/plan/FlightPlanDetail')) + component: lazy(() => + import('../../views/basis/flight/plan/FlightPlanDetail') + ) }, { path: '/basis/flight/aprv/index', - component: lazy(() => import('../../views/basis/flight/aprv/FlightPlanAprv')) + component: lazy(() => + import('../../views/basis/flight/aprv/FlightPlanAprv') + ) }, + { + path: '/basis/flight/schedule/index', + component: lazy(() => + import('../../views/basis/flight/schedule/FlightSchedule') + ), + layout: 'BlankLayout' + } ]; export default RouteBasis; diff --git a/src/views/basis/flight/schedule/FlightSchedule.js b/src/views/basis/flight/schedule/FlightSchedule.js new file mode 100644 index 00000000..ea50549e --- /dev/null +++ b/src/views/basis/flight/schedule/FlightSchedule.js @@ -0,0 +1,11 @@ +import '@styles/react/libs/flatpickr/flatpickr.scss'; +import '@styles/react/libs/tables/react-dataTable-component.scss'; + +import '../../../../assets/css/custom.css'; +import FlightScheduleContainer from '../../../../containers/basis/flight/schedule/FlightScheduleContainer'; + +function FlightSchedule() { + return ; +} + +export default FlightSchedule;