Browse Source

날씨 테이블 수정 M/S

pull/2/head
sanguu(박상현) 2 years ago
parent
commit
0b00931ae6
  1. 34
      src/components/basis/flight/plan/TodayWeather.js
  2. 12
      src/views/control/report/ControlReportDetail.js

34
src/components/basis/flight/plan/TodayWeather.js

@ -72,7 +72,7 @@ export function TodayWeather({ todayData }) {
<td>
<Navigation2 style={{ transform: `rotate(${i.category[1]?.fcstValue}deg)` }} />
</td>
<td>{i.category[2].fcstValue}m/s</td>
<td>{i.category[2].fcstValue} m/s</td>
</tr>
)
})}
@ -127,7 +127,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[1]?.fcstValue}deg)` }} />
</td>
<td>{dayres[2].fcstValue}m/s</td>
<td>{dayres[2].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[5].fcstTime.substring(0, 2)}</td>
@ -143,7 +143,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[6]?.fcstValue}deg)` }} />
</td>
<td>{dayres[7].fcstValue}m/s</td>
<td>{dayres[7].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[10].fcstTime.substring(0, 2)}</td>
@ -159,7 +159,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[11]?.fcstValue}deg)` }} />
</td>
<td>{dayres[12].fcstValue}m/s</td>
<td>{dayres[12].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[15].fcstTime.substring(0, 2)}</td>
@ -175,7 +175,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[16]?.fcstValue}deg)` }} />
</td>
<td>{dayres[17].fcstValue}m/s</td>
<td>{dayres[17].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[20].fcstTime.substring(0, 2)}</td>
@ -191,7 +191,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[21]?.fcstValue}deg)` }} />
</td>
<td>{dayres[22].fcstValue}m/s</td>
<td>{dayres[22].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[25].fcstTime.substring(0, 2)}</td>
@ -207,7 +207,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[26]?.fcstValue}deg)` }} />
</td>
<td>{dayres[27].fcstValue}m/s</td>
<td>{dayres[27].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[30].fcstTime.substring(0, 2)}</td>
@ -223,7 +223,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[31]?.fcstValue}deg)` }} />
</td>
<td>{dayres[32].fcstValue}m/s</td>
<td>{dayres[32].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[35].fcstTime.substring(0, 2)}</td>
@ -239,7 +239,7 @@ export function TomorrowWeahter({ tomorrowData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[36]?.fcstValue}deg)` }} />
</td>
<td>{dayres[37].fcstValue}m/s</td>
<td>{dayres[37].fcstValue} m/s</td>
</tr>
</tbody>
</Table>
@ -288,7 +288,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[1]?.fcstValue}deg)` }} />
</td>
<td>{dayres[2].fcstValue}m/s</td>
<td>{dayres[2].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[5].fcstTime.substring(0, 2)}</td>
@ -304,7 +304,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[6]?.fcstValue}deg)` }} />
</td>
<td>{dayres[7].fcstValue}m/s</td>
<td>{dayres[7].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[10].fcstTime.substring(0, 2)}</td>
@ -320,7 +320,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[11]?.fcstValue}deg)` }} />
</td>
<td>{dayres[12].fcstValue}m/s</td>
<td>{dayres[12].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[15].fcstTime.substring(0, 2)}</td>
@ -336,7 +336,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[16]?.fcstValue}deg)` }} />
</td>
<td>{dayres[17].fcstValue}m/s</td>
<td>{dayres[17].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[20].fcstTime.substring(0, 2)}</td>
@ -352,7 +352,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[21]?.fcstValue}deg)` }} />
</td>
<td>{dayres[22].fcstValue}m/s</td>
<td>{dayres[22].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[25].fcstTime.substring(0, 2)}</td>
@ -368,7 +368,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[26]?.fcstValue}deg)` }} />
</td>
<td>{dayres[27].fcstValue}m/s</td>
<td>{dayres[27].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[30].fcstTime.substring(0, 2)}</td>
@ -384,7 +384,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[31]?.fcstValue}deg)` }} />
</td>
<td>{dayres[32].fcstValue}m/s</td>
<td>{dayres[32].fcstValue} m/s</td>
</tr>
<tr>
<td>{dayres[35].fcstTime.substring(0, 2)}</td>
@ -400,7 +400,7 @@ export function AfterTomorrowWeahter({ afterData }) {
<td>
<Navigation2 style={{ transform: `rotate(${dayres[36]?.fcstValue}deg)` }} />
</td>
<td>{dayres[37].fcstValue}m/s</td>
<td>{dayres[37].fcstValue} m/s</td>
</tr>
</tbody>
</Table>

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

@ -166,8 +166,8 @@ const ControlReportDetail = props => {
<div className='list-right-txt'>
{controlDetail?.cntrlStDt
? moment(controlDetail?.cntrlStDt, 'YYYYMMDDHHmmss').format(
'MM-DD HH:mm:ss'
)
'MM-DD HH:mm:ss'
)
: '-'}
</div>
</dt>
@ -225,9 +225,9 @@ const ControlReportDetail = props => {
<div className='list-right-txt'>
{controlGpDetail?.serverRcvDt
? moment(
controlGpDetail?.serverRcvDt,
'YYYYMMDDHHmmss'
).format('MM-DD HH:mm:ss')
controlGpDetail?.serverRcvDt,
'YYYYMMDDHHmmss'
).format('MM-DD HH:mm:ss')
: '-'}
</div>
</dt>
@ -300,7 +300,7 @@ const ControlReportDetail = props => {
}}
/>
</td>
<td>{controlDetail?.items.item[4].fcstValue}m/s</td>
<td>{controlDetail?.items.item[4].fcstValue} m/s</td>
</tr>
</tbody>
</Table>

Loading…
Cancel
Save