Browse Source

feat/전송 상태 검색 조건 추가

master
sanguu516 2 weeks ago
parent
commit
5e8f014f9b
  1. 4
      src/components/flight/ControlApprovalsTable.js
  2. 15
      src/components/flight/NewFlightApprovalsReport.js
  3. 5
      src/containers/flight/ControlApprovalsContainer.js
  4. 5
      src/containers/flight/popup/ControlApprovalsPopupContainer.js
  5. 2
      src/redux/features/laanc/laancState.ts

4
src/components/flight/ControlApprovalsTable.js

@ -721,6 +721,10 @@ export default function ControlApprovalsTable(props) {
props.checkState.limitZoneNm === '전체'
? null
: props.checkState.limitZoneNm,
sendProcStatus:
props.checkState.sendProcStatus === '전체'
? null
: checkState.sendProcStatus,
adress:
props.filterArea.address === '전체' ? null : props.filterArea.address
};

15
src/components/flight/NewFlightApprovalsReport.js

@ -248,11 +248,18 @@ export default function NewFlightApprovalsReport(props) {
<CustomInput
type='select'
bsSize='sm'
id='searchDate'
id='sendProcStatus'
onChange={e =>
props.setCheckState({
...props.checkState,
sendProcStatus: e.target.value
})
}
value={props.checkState.sendProcStatus}
>
<option>전송 상태</option>
<option>전송</option>
<option>미전송</option>
<option value='전체'>전송 상태</option>
<option value='S'>전송</option>
<option value='N'>미전송</option>
</CustomInput>
</FormGroup>
</div>

5
src/containers/flight/ControlApprovalsContainer.js

@ -65,7 +65,8 @@ export default function ControlApprovalsContainer({ mode }) {
const [checkState, setCheckState] = useState({
reviewedType: '전체',
reviewedProcType: '전체',
limitZoneNm: '전체'
limitZoneNm: '전체',
sendProcStatus: '전체'
});
// 지역
const [filterArea, setFilterArea] = useState({
@ -240,6 +241,8 @@ export default function ControlApprovalsContainer({ mode }) {
ctprvn: filterArea.ctprvn === '시/도' ? '' : filterArea.ctprvn,
sig: filterArea.sig === '군/구' ? '' : filterArea.sig,
address: filterArea.address,
sendProcStatus:
checkState.sendProcStatus === '전체' ? '' : checkState.sendProcStatus,
limitZoneCd:
checkState.limitZoneNm === '전체' ? '' : checkState.limitZoneNm,
...(search !== '' ? { applyNo: search } : {}),

5
src/containers/flight/popup/ControlApprovalsPopupContainer.js

@ -26,7 +26,8 @@ function ControlApprovalsPopupContainer() {
const [checkState, setCheckState] = useState({
reviewedType: '전체',
reviewedProcType: '전체',
limitZoneNm: '전체'
limitZoneNm: '전체',
sendProcStatus: '전체'
});
const dispatch = useDispatch();
@ -102,6 +103,8 @@ function ControlApprovalsPopupContainer() {
ctprvn: filterArea.ctprvn === '시/도' ? '' : filterArea.ctprvn,
sig: filterArea.sig === '군/구' ? '' : filterArea.sig,
address: filterArea.address,
sendProcStatus:
checkState.sendProcStatus === '전체' ? '' : checkState.sendProcStatus,
limitZoneCd:
checkState.limitZoneNm === '전체' ? '' : checkState.limitZoneNm,
...(search !== '' ? { applyNo: search } : {}),

2
src/redux/features/laanc/laancState.ts

@ -39,6 +39,7 @@ export interface ILaancAprvParam {
applyNo?: string;
reviewedType?: string;
reviewedProcType?: string;
sendProcStatus?: string;
}
export interface IweatherRs {
@ -649,6 +650,7 @@ export interface ILaancAprvListRq {
sig?: string;
reviewedType?: string;
adress?: string;
sendProcStatus?: string;
}
export interface ILaancAprvListRs {

Loading…
Cancel
Save