Browse Source

feat/기체 중량 표출

master
sanguu516 3 weeks ago
parent
commit
bb232c4d7e
  1. 7
      src/redux/features/laanc/laancState.ts
  2. 11
      src/redux/features/laanc/laancThunk.ts

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

@ -663,6 +663,13 @@ export interface ILaancAprvListRs {
limitZoneCd: string;
reqRadius: number;
allowRadius: number;
droneList: {
benefit: string;
insrncJoinYn: string;
planDroneSno: number;
weightCd: string;
weightNm: string;
}[];
areaList: {
planAreaSno: number;
planSno: number;

11
src/redux/features/laanc/laancThunk.ts

@ -284,9 +284,12 @@ export const getLaancAprvList = createAsyncThunk(
...item,
...item.areaList[0],
cReviewedType: item.reviewedType,
areaList: item.areaList.map((area, innerIndex) => {
areaList: item.areaList.map((area, xIndex) => {
return {
...area,
...(item.droneList[xIndex]?.weightNm && {
weightNm: item.droneList[xIndex].weightNm
}),
purpose: item.purpose,
cReviewedType: area.reviewedType
};
@ -297,11 +300,15 @@ export const getLaancAprvList = createAsyncThunk(
...item,
planAreaSno: item.areaList[0].planAreaSno,
cReviewedType: item.reviewedType,
areaList: item.areaList.map((area, innerIndex) => {
areaList: item.areaList.map((area, zIndex) => {
console.log('>>', item?.droneList[zIndex]?.weightNm);
return {
...area,
applyNm: item.applyNm,
purpose: item.purpose,
...(item.droneList[zIndex]?.weightNm && {
weightNm: item.droneList[zIndex].weightNm
}),
cReviewedType: area.reviewedType,
fltElevMax:
!area.fltElevMax && area.approvalCd === 'U'

Loading…
Cancel
Save