Browse Source

테이블 컬럼명 수정 및 장애물 표현 추가

master
sanguu516 2 months ago
parent
commit
458fd8ec27
  1. 55
      src/components/flight/NewFlightApprovalsTable.js

55
src/components/flight/NewFlightApprovalsTable.js

@ -236,6 +236,29 @@ export default function NewFlightApprovalsTable(props) {
: '-';
}
},
{
title: (
<>
장애물 <br />
제한
<br />
표면
<br />
</>
),
dataIndex: 'areaList',
width: '100px',
align: 'center',
render: areaList => {
return areaList.length <= 1
? areaList[0].fltElevMax === 120
? '원추'
: areaList[0].fltElevMax > 45 && areaList[0].fltElevMax < 100
? '수평'
: '-'
: '-';
}
},
{
title: (
<>
@ -264,12 +287,12 @@ export default function NewFlightApprovalsTable(props) {
비행 <br />
반경
<br />
(m)
(m이내)
</>
),
dataIndex: 'bufferZone',
align: 'center',
width: '70px',
width: '80px',
editable: true,
render: (text, record) => {
return text ? text : '-';
@ -281,12 +304,12 @@ export default function NewFlightApprovalsTable(props) {
신청 <br />
고도
<br />
(m)
(m이하)
</>
),
dataIndex: 'fltElev',
align: 'center',
width: '70px',
width: '80px',
editable: true,
render: (text, record) => {
return text ? text : '-';
@ -373,7 +396,7 @@ export default function NewFlightApprovalsTable(props) {
),
dataIndex: 'areaList',
align: 'center',
width: '110px',
width: '120px',
render: areaList => {
const approvalCounts = areaList.reduce(
(counts, item) => {
@ -540,6 +563,22 @@ export default function NewFlightApprovalsTable(props) {
return text ? text : <>-</>;
}
},
{
dataIndex: 'fltElevMax',
align: 'center',
width: '100px',
render: text => {
return text
? text === 120
? '원추'
: text > 45 && text < 100
? '수평'
: '-'
: '-';
}
},
{
align: 'center',
width: '85px',
@ -559,13 +598,13 @@ export default function NewFlightApprovalsTable(props) {
dataIndex: 'bufferZone',
align: 'center',
editable: true,
width: '70px'
width: '80px'
},
{
dataIndex: 'fltElev',
align: 'center',
editable: true,
width: '70px'
width: '80px'
},
{
dataIndex: 'fltElevMax',
@ -613,7 +652,7 @@ export default function NewFlightApprovalsTable(props) {
{
dataIndex: 'approvalCd',
align: 'center',
width: '110px',
width: '120px',
render: text => (
<>
{text === 'U'

Loading…
Cancel
Save