diff --git a/.env b/.env deleted file mode 100644 index 0e64c11..0000000 --- a/.env +++ /dev/null @@ -1,5 +0,0 @@ -SKIP_PREFLIGHT_CHECK=true -REACT_APP_BASENAME= "" -REACT_APP_HOST = http://control-api.palnet.co.kr/ -REACT_APP_WS_HOST = ws://control-websocket.palnet.co.kr/ws -REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ diff --git a/.env.development b/.env.development deleted file mode 100644 index 57dcd5a..0000000 --- a/.env.development +++ /dev/null @@ -1,14 +0,0 @@ -REACT_APP_HOST = http://localhost:8080/ -REACT_APP_WS_HOST = ws://localhost:8081/ws - -REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ - -# Naver Search API HOST -NAVER_SEARCH_API_HOST = https://openapi.naver.com/v1/search/local.json - -#windy API KEY -REACT_WINDY_KEY = wf6Lkn1MAtqcgyW78xbceFHBz6ccsUo8 - -# API KEY -NAVER_APP_CLIENT_KEY = WGEct3bJhQC0pyMsP_GK -NAVER_APP_SECRET_KEY = Q4K4OtUYol \ No newline at end of file diff --git a/.env.production b/.env.production deleted file mode 100644 index 5f7901f..0000000 --- a/.env.production +++ /dev/null @@ -1,14 +0,0 @@ -REACT_APP_HOST = http://pav.palntour.com:8080/ -REACT_APP_WS_HOST = ws://pav.palntour.com:8081/ws -REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ - -# Naver Search API HOST -NAVER_SEARCH_API_HOST = https://openapi.naver.com/v1/search/local.json - -#windy API KEY -REACT_WINDY_KEY = 8ynJ7tneZjmRxLmHQPGaDPGsGabgQhkC - -# API KEY -NAVER_APP_CLIENT_KEY = WGEct3bJhQC0pyMsP_GK -NAVER_APP_SECRET_KEY = Q4K4OtUYol - diff --git a/README.md b/README.md index 116796b..15f8b2e 100644 Binary files a/README.md and b/README.md differ diff --git a/src/modules/control/gp/models/controlGpModel.ts b/src/modules/control/gp/models/controlGpModel.ts index 3495c8c..027af6b 100644 --- a/src/modules/control/gp/models/controlGpModel.ts +++ b/src/modules/control/gp/models/controlGpModel.ts @@ -70,6 +70,11 @@ export interface ControlDetailData { hpno: string; telno: string; items: []; + area1: string; + area2: string; + area3: string; + landNm: string; + landNum: string; } export interface ControlGpDtlData { diff --git a/src/modules/control/gp/sagas/controlGpSaga.ts b/src/modules/control/gp/sagas/controlGpSaga.ts index 3aeadf0..64c9ecd 100644 --- a/src/modules/control/gp/sagas/controlGpSaga.ts +++ b/src/modules/control/gp/sagas/controlGpSaga.ts @@ -147,6 +147,7 @@ function* controlDtlSaga( //날씨 api 호출 const res = yield call(controlGpApi.apiweather, rq); const { data } = yield call(controlGpApi.getDetail, controlId); + yield put( Actions.controlGpDtlAction.success({ ...data, diff --git a/src/views/control/main/ControlMain.js b/src/views/control/main/ControlMain.js index 0f7f3d7..1344655 100644 --- a/src/views/control/main/ControlMain.js +++ b/src/views/control/main/ControlMain.js @@ -185,9 +185,9 @@ const ControlMain = () => {
- {!isClickObject ? '인천광역시' : controlDetail?.stAreaNm} + {!isClickObject ? '인천광역시' : !controlDetail?.stAreaNm ? `${controlDetail?.res.area1} ${controlDetail?.res.area2} ${controlDetail?.res.area3} ${controlDetail?.res.landNm} ${controlDetail?.res.landNum} ` : controlDetail?.stAreaNm} - {weathericon()} +  {weathericon()}
diff --git a/src/views/control/report/ControlReportList.js b/src/views/control/report/ControlReportList.js index ffbe173..4e7e6ae 100644 --- a/src/views/control/report/ControlReportList.js +++ b/src/views/control/report/ControlReportList.js @@ -61,21 +61,17 @@ const ControlReportList = props => { {controlGpList?.map(item => { if (item.objectId && item.objectId.indexOf(filterId) != -1) { return ( -
handlerDetail(item)} - key={item.objectId} - > +
-
+
handlerDetail(item)}>
식별번호
{item.objectId}
-
+
handlerDetail(item)}>
이륙 위치
-
-
+
handlerDetail(item)}>
이륙 시간
{item.controlStartDt @@ -85,7 +81,7 @@ const ControlReportList = props => { : '-'}
-
+
handlerDetail(item)}>
속도(고도)
{item.speed ? item.speed : '-'}{' '} @@ -94,12 +90,23 @@ const ControlReportList = props => { {item.elev ? item.elevType : ''})
-
+
handlerDetail(item)}>
상태
{item.dronStatus ? item.dronStatus : '-'}
+
+ +
);