diff --git a/src/components/statistics/StatisticsSearch.js b/src/components/statistics/StatisticsSearch.js
index eefd66e..32fe947 100644
--- a/src/components/statistics/StatisticsSearch.js
+++ b/src/components/statistics/StatisticsSearch.js
@@ -11,6 +11,49 @@ import { Search } from 'react-feather';
import { Bar, Doughnut } from 'react-chartjs-2';
import { useEffect, useState } from 'react';
+const competentAgency = [
+ {
+ text: '서울지방항공청(항공운항과)',
+ value: 'F0001'
+ },
+ {
+ text: '김포항공관리사무소(안전운항과)',
+ value: 'F0002'
+ },
+ {
+ text: '양양공항출장소',
+ value: 'F0003'
+ },
+ {
+ text: '원주공항출장소',
+ value: 'F0004'
+ },
+ {
+ text: '청주공항출장소',
+ value: 'F0005'
+ },
+ {
+ text: '군산공항출장소',
+ value: 'F0006'
+ },
+ {
+ text: '부산지방항공청(항공운항과)',
+ value: 'F0007'
+ },
+ {
+ text: '제주지방항공청(안전운항과)',
+ value: 'F0008'
+ },
+ {
+ text: '정석비행장',
+ value: 'F0009'
+ },
+ {
+ text: '울진공항출장소',
+ value: 'F0010'
+ }
+];
+
export default function StatisticsSearch({
tooltipShadow,
gridLineColor,
@@ -23,8 +66,8 @@ export default function StatisticsSearch({
handlerChartTitle,
handleChangeSearchType,
formatSeconds,
- user,
- entireGroupList
+ user
+ // entireGroupList
}) {
const [total, setTotal] = useState([]);
const [top, setTop] = useState([]);
@@ -294,9 +337,9 @@ export default function StatisticsSearch({
)
}
>
- {entireGroupList?.map(i => (
-
))}
diff --git a/src/containers/statistics/AbnormalSituationContainer.js b/src/containers/statistics/AbnormalSituationContainer.js
index ec64995..6d34941 100644
--- a/src/containers/statistics/AbnormalSituationContainer.js
+++ b/src/containers/statistics/AbnormalSituationContainer.js
@@ -13,12 +13,12 @@ export default function AbnormalSituationContainer() {
state => state.statisticsState
);
const { user } = useSelector(state => state.authState);
- const { entireGroupList } = useSelector(state => state.groupState);
+ // const { entireGroupList } = useSelector(state => state.groupState);
const [searchType, setSearchType] = useState({
category: 'PLAN',
dateType: 'year',
- serviceType: 'KAC',
+ serviceType: 'F0002',
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: new Date().getDate()
@@ -37,10 +37,10 @@ export default function AbnormalSituationContainer() {
};
// 사용자가 SUPER 권한일 경우 전체 그룹 조회
- useEffect(() => {
- user?.authId === 'SUPER' &&
- dispatch(GroupActions.ENTIRE_GROUP_LIST.request());
- }, []);
+ // useEffect(() => {
+ // user?.authId === 'SUPER' &&
+ // dispatch(GroupActions.ENTIRE_GROUP_LIST.request());
+ // }, []);
// 사용자가 SUPER 권한일 경우 serviceType 파라미터 추가 - 상단 통계 데이터
useEffect(() => {
@@ -140,7 +140,7 @@ export default function AbnormalSituationContainer() {
searchData={abnormalSearch}
searchType={searchType}
user={user}
- entireGroupList={entireGroupList}
+ // entireGroupList={entireGroupList}
categoryTypeOptions={categoryTypeOptions}
dateLists={dateLists}
handlerBarTicks={handlerBarTicks}
diff --git a/src/containers/statistics/FlightContainer.js b/src/containers/statistics/FlightContainer.js
index faf5054..434f625 100644
--- a/src/containers/statistics/FlightContainer.js
+++ b/src/containers/statistics/FlightContainer.js
@@ -11,12 +11,12 @@ export default function FlightContainer() {
const { flight, flightSearch } = useSelector(state => state.statisticsState);
const { user } = useSelector(state => state.authState);
- const { entireGroupList } = useSelector(state => state.groupState);
+ // const { entireGroupList } = useSelector(state => state.groupState);
const [searchType, setSearchType] = useState({
category: 'TIME',
dateType: 'year',
- serviceType: 'KAC',
+ serviceType: 'F0002',
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: new Date().getDate()
@@ -35,10 +35,10 @@ export default function FlightContainer() {
};
// 사용자가 SUPER 권한일 경우 전체 그룹 조회
- useEffect(() => {
- user?.authId === 'SUPER' &&
- dispatch(GroupActions.ENTIRE_GROUP_LIST.request());
- }, [user]);
+ // useEffect(() => {
+ // user?.authId === 'SUPER' &&
+ // dispatch(GroupActions.ENTIRE_GROUP_LIST.request());
+ // }, [user]);
// 사용자가 SUPER 권한일 경우 serviceType 파라미터 추가 - 상단 통계 데이터
useEffect(() => {
@@ -200,7 +200,7 @@ export default function FlightContainer() {
searchData={flightSearch}
searchType={searchType}
user={user}
- entireGroupList={entireGroupList}
+ // entireGroupList={entireGroupList}
categoryTypeOptions={categoryTypeOptions}
dateLists={dateLists}
formatSeconds={formatSeconds}
diff --git a/src/containers/statistics/FlightResultContainer.js b/src/containers/statistics/FlightResultContainer.js
index 7d39573..dda3461 100644
--- a/src/containers/statistics/FlightResultContainer.js
+++ b/src/containers/statistics/FlightResultContainer.js
@@ -11,12 +11,12 @@ export default function ResultContainer() {
const { result, resultSearch } = useSelector(state => state.statisticsState);
const { user } = useSelector(state => state.authState);
- const { entireGroupList } = useSelector(state => state.groupState);
+ // const { entireGroupList } = useSelector(state => state.groupState);
const [searchType, setSearchType] = useState({
category: 'FLT_RESULT',
dateType: 'year',
- serviceType: 'KAC',
+ serviceType: 'F0002',
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: new Date().getDate()
@@ -35,10 +35,10 @@ export default function ResultContainer() {
};
// 사용자가 SUPER 권한일 경우 전체 그룹 조회
- useEffect(() => {
- user?.authId === 'SUPER' &&
- dispatch(GroupActions.ENTIRE_GROUP_LIST.request());
- }, [user]);
+ // useEffect(() => {
+ // user?.authId === 'SUPER' &&
+ // dispatch(GroupActions.ENTIRE_GROUP_LIST.request());
+ // }, [user]);
// 사용자가 SUPER 권한일 경우 serviceType 파라미터 추가 - 상단 통계 데이터
useEffect(() => {
@@ -138,7 +138,7 @@ export default function ResultContainer() {
searchData={resultSearch}
searchType={searchType}
user={user}
- entireGroupList={entireGroupList}
+ // entireGroupList={entireGroupList}
categoryTypeOptions={categoryTypeOptions}
dateLists={dateLists}
handlerBarTicks={handlerBarTicks}