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

Loading…
Cancel
Save