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,
nx: rs.x,
ny: rs.y,
}
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 { controlGpWarnLog } = useSelector(state => state.controlGpLogState);
function weathericon() {
function a() {
function weathericon() {
if (controlDetail) {
let wheatherDetail = controlDetail.items.item;
let skyDetail = wheatherDetail[6].fcstValue;
@ -296,7 +295,7 @@ const ControlReportDetail = props => {
<td>
{controlDetail?.items.item[12].fcstTime.substring(0, 2)}
</td>
<td>{a()}</td>
<td>{weathericon()}</td>
<td>{controlDetail?.items.item[12].fcstValue}</td>
<td>
<Navigation2
@ -321,5 +320,5 @@ const ControlReportDetail = props => {
</div>
);
};
}
export default ControlReportDetail;
Loading…
Cancel
Save