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 === '전체' props.checkState.limitZoneNm === '전체'
? null ? null
: props.checkState.limitZoneNm, : props.checkState.limitZoneNm,
sendProcStatus:
props.checkState.sendProcStatus === '전체'
? null
: checkState.sendProcStatus,
adress: adress:
props.filterArea.address === '전체' ? null : props.filterArea.address props.filterArea.address === '전체' ? null : props.filterArea.address
}; };

15
src/components/flight/NewFlightApprovalsReport.js

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

5
src/containers/flight/ControlApprovalsContainer.js

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

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

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

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

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

Loading…
Cancel
Save