Browse Source

개발자 콘솔 에러 수정

master
sanguu516 6 months ago
parent
commit
9ec6366fd3
  1. 15
      src/components/flight/FlightApprovalsReport.js
  2. 10
      src/components/flight/FlightApprovalsTable.js
  3. 5
      src/containers/flight/flightApprovalsContainer.js

15
src/components/flight/FlightApprovalsReport.js

@ -23,23 +23,14 @@ export default function FlightApprovalsReport(props) {
className='layer-search layer-search-form' className='layer-search layer-search-form'
style={{ width: '480px' }} style={{ width: '480px' }}
> >
<InputGroup <InputGroup>
style={{ <div style={{ position: 'relative' }}>
display: 'flex',
flexDirection: 'row',
alineItems: 'center',
borderRadius: '12px'
}}
>
<div style={{ position: 'relative', display: 'inline-block' }}>
<Input <Input
type='text' type='text'
placeholder={`민원 번호 또는 승인 결과를 입력해 주세요.`} placeholder={`민원 번호 또는 승인 결과를 입력해 주세요.`}
value={filterId} value={filterId}
style={{ style={{
width: '480px', width: '480px'
borderRadius: '12px',
paddingRight: '30px' // Search 아이콘을 위한 공간 확보
}} }}
onKeyPress={handlerKeyPress} onKeyPress={handlerKeyPress}
onChange={e => setFilterId(`${e.target.value}`)} onChange={e => setFilterId(`${e.target.value}`)}

10
src/components/flight/FlightApprovalsTable.js

@ -31,7 +31,6 @@ export default function FlightApprovalsTable(props) {
} else if (props.filter === '') { } else if (props.filter === '') {
setSearchResults(props.data); setSearchResults(props.data);
} }
console.log('>>>', results);
}, [props.filter]); }, [props.filter]);
const handlerOpenModal = (approval, reason) => { const handlerOpenModal = (approval, reason) => {
@ -63,7 +62,6 @@ export default function FlightApprovalsTable(props) {
}; };
const handleRowClick = row => { const handleRowClick = row => {
console.log('Clicked row: ', row);
props.handlerDetail(row.planSno); props.handlerDetail(row.planSno);
// 여기에 클릭 이벤트를 처리하는 코드를 작성하세요. // 여기에 클릭 이벤트를 처리하는 코드를 작성하세요.
}; };
@ -202,13 +200,15 @@ export default function FlightApprovalsTable(props) {
<div className='layer-ti d-flex justify-content-between align-items-center'> <div className='layer-ti d-flex justify-content-between align-items-center'>
<h4>비행승인 신청 결과 목록</h4> <h4>비행승인 신청 결과 목록</h4>
<span className='search-case'> <span className='search-case'>
{dayjs().format('YYYY년 MM월 DD일')} {results?.length} {dayjs().format('YYYY년 MM월 DD일')} {results?.length} 결과
결과
</span> </span>
</div> </div>
<div className='invoice-list-wrapper'> <div className='invoice-list-wrapper'>
<Card> <Card>
<div className='invoice-list-dataTable flight-approval' style={{ width: '100%' }}> <div
className='invoice-list-dataTable flight-approval'
style={{ width: '100%' }}
>
{results?.length > 0 ? ( {results?.length > 0 ? (
<GridDatabase <GridDatabase
title={'비행이력'} title={'비행이력'}

5
src/containers/flight/flightApprovalsContainer.js

@ -226,7 +226,7 @@ export default function FlightApprovalsContainer() {
const handlerMapInit = () => { const handlerMapInit = () => {
if (map.getSource('preview')) { if (map.getSource('preview')) {
map.removeSource('preview'); // map.removeSource('preview');
} else { } else {
map.addSource('preview', { map.addSource('preview', {
type: 'geojson', type: 'geojson',
@ -308,7 +308,6 @@ export default function FlightApprovalsContainer() {
//지도 줌 좌표 설정 //지도 줌 좌표 설정
fitZoomPaths = paths.concat(); fitZoomPaths = paths.concat();
} }
console.log('>>>', fitZoomPaths);
handlerFitBounds( handlerFitBounds(
mapObject, mapObject,
@ -318,7 +317,7 @@ export default function FlightApprovalsContainer() {
'flight' 'flight'
); );
mapObject.setPaintProperty('waypoint', 'circle-radius', 10); // mapObject.setPaintProperty('waypoint', 'circle-radius', 10);
mapObject.getSource('preview').setData(previewGeo2); mapObject.getSource('preview').setData(previewGeo2);
} }
} }

Loading…
Cancel
Save