Browse Source

조종사 조회,기체 조회(지은대리님)

pull/2/head
sanguu 2 years ago
parent
commit
b17e9d0023
  1. 6
      src/assets/css/custom.css
  2. 27
      src/components/basis/flight/plan/FlightPlanAreaMap.js
  3. 86
      src/components/basis/flight/plan/FlightPlanForm.js

6
src/assets/css/custom.css

@ -191,12 +191,6 @@ button{border:0;background:transparent;}
.tab-content{display:none;}
.tab-content.active{display:block;}
/*비행계획서 신청 버튼 css*/
.arcrft-del-btn{float:right;margin-top: -39px;margin-right: 70px;
}
#ownerNm{width : 250px;}
#email{width : 300px}
.pilot-del-btn{float: right;margin-top: -39px;margin-right: 140px;}
/*날씨상세정보*/
.layer-weather-box{color:#bbb;}
.layer-weather-box .layer-weather-table table{border:1px solid #404656;}

27
src/components/basis/flight/plan/FlightPlanAreaMap.js

@ -44,8 +44,28 @@ const FlightPlanAreaMap = (props) => {
setMode(mapControl.drawType)
}
//console.log("상현>>",mapAreaCoordList[0].coordList[0].lat);
console.log("상현>>",map);
const NaverMapInit = () => {
if(!mapAreaCoordList[0].coordList[0].lat){
debugger
const mapOptions = {
center: new naver.maps.LatLng(mapAreaCoordList[0].coordList[0].lat, mapAreaCoordList[0].coordList[0].lon),
// center: new naver.maps.LatLng(37.520357, 126.610166),
//center: new naver.maps.LatLng(, ),
// zoom: 10,
zoom: 15,
zoomControl: true,
mapTypeId: naver.maps.MapTypeId.NORMAL,
zoomControlOptions: {
position: naver.maps.Position.LEFT_CENTER,
style: naver.maps.ZoomControlStyle.SMALL
}
};
setMap(new naver.maps.Map('map', mapOptions));
}
else if(!(mapAreaCoordList[0].coordList[0].lat)){
debugger
const mapOptions = {
// center: new naver.maps.LatLng(36.56793936069445, 127.85101412107547),
center: new naver.maps.LatLng(37.520357, 126.610166),
@ -58,10 +78,9 @@ const FlightPlanAreaMap = (props) => {
style: naver.maps.ZoomControlStyle.SMALL
}
};
setMap(new naver.maps.Map('map', mapOptions));
};
}
}
const handlerDrawType = val => {
dispatch(drawTypeChangeAction(val));
};

86
src/components/basis/flight/plan/FlightPlanForm.js

@ -272,6 +272,27 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
조종사 조회
</Button.Ripple>
</div>
{data.groupNm?
(
<Col className='pilot-del-btn' xs={12} md={2} xl={2} >
<Button.Ripple
color='danger'
className='text-nowrap px-2'
onClick={() =>
handleDeleteArray({ type: 'pilot', index })
}
outline
>
<X size={14} className='mr-50' />
<span>삭제</span>
</Button.Ripple>
</Col>
)
:
(
<></>
)
}
{pilotList
? pilotList.map((item, i) =>
<PilotForm key={i}
@ -294,6 +315,27 @@ const FlightPlanForm = ({data, handleModal, handleChange, handleSave, handleDele
기체 조회
</Button.Ripple>
</div>
{data.groupNm?
(
<Col className='arcrft-del-btn' xs={12} md={2} xl={2} >
<Button.Ripple
color='danger'
className='text-nowrap px-1'
onClick={() =>
handleDeleteArray({ type: 'arcrft', index })
}
outline
>
<X size={14} className='mr-50' />
<span>삭제</span>
</Button.Ripple>
</Col>
)
:
(
<></>
)
}
{arcrftList
? arcrftList.map((item, i) =>
<ArcrftForm key={i}
@ -622,30 +664,9 @@ const PilotForm = ({data, handleChange, index, handleDeleteArray}) => {
readOnly
/>
{data.groupNm?
(
<Col className='pilot-del-btn' xs={12} md={2} xl={2} >
<Button.Ripple
color='danger'
className='text-nowrap px-2'
onClick={() =>
handleDeleteArray({ type: 'pilot', index })
}
outline
>
<X size={14} className='mr-50' />
<span>삭제</span>
</Button.Ripple>
</Col>
)
:
(
<></>
)
}
</FormGroup>
</Col>
</Row>
</div>)
}
@ -760,27 +781,6 @@ const ArcrftForm = ({data, handleChange, index, handleDeleteArray}) => {
readOnly
/>
{data.groupNm?
(
<Col className='arcrft-del-btn' xs={12} md={2} xl={2} >
<Button.Ripple
color='danger'
className='text-nowrap px-1'
onClick={() =>
handleDeleteArray({ type: 'arcrft', index })
}
outline
>
<X size={14} className='mr-50' />
<span>삭제</span>
</Button.Ripple>
</Col>
)
:
(
<></>
)
}
</FormGroup>
</Col>
{/* {index !== 0 ?

Loading…
Cancel
Save