Browse Source

드론관제 함수 수정

ctrlDraw
sanguu(박상현) 2 years ago
parent
commit
41fcb639ad
  1. 1
      src/components/basis/flight/plan/FlightPlanAreaDetailForm.js
  2. 7
      src/views/control/report/ControlReportDetail.js

1
src/components/basis/flight/plan/FlightPlanAreaDetailForm.js

@ -163,6 +163,7 @@ const FlightPlanAreaDetailForm = ({
base_time: basetime, base_time: basetime,
nx: rs.x, nx: rs.x,
ny: rs.y, ny: rs.y,
} }
dispatch(FlightweatherAction.request(apidata)); dispatch(FlightweatherAction.request(apidata));
} }

7
src/views/control/report/ControlReportDetail.js

@ -35,9 +35,8 @@ const ControlReportDetail = props => {
//const { controlWheather } = useSelector(state => state.ControlGpWeatherState); //const { controlWheather } = useSelector(state => state.ControlGpWeatherState);
const { controlGpWarnLog } = useSelector(state => state.controlGpLogState); const { controlGpWarnLog } = useSelector(state => state.controlGpLogState);
function weathericon() {
function a() { function weathericon() {
if (controlDetail) { if (controlDetail) {
let wheatherDetail = controlDetail.items.item; let wheatherDetail = controlDetail.items.item;
let skyDetail = wheatherDetail[6].fcstValue; let skyDetail = wheatherDetail[6].fcstValue;
@ -296,7 +295,7 @@ const ControlReportDetail = props => {
<td> <td>
{controlDetail?.items.item[12].fcstTime.substring(0, 2)} {controlDetail?.items.item[12].fcstTime.substring(0, 2)}
</td> </td>
<td>{a()}</td> <td>{weathericon()}</td>
<td>{controlDetail?.items.item[12].fcstValue}</td> <td>{controlDetail?.items.item[12].fcstValue}</td>
<td> <td>
<Navigation2 <Navigation2
@ -321,5 +320,5 @@ const ControlReportDetail = props => {
</div> </div>
); );
}; };
}
export default ControlReportDetail; export default ControlReportDetail;
Loading…
Cancel
Save