Browse Source

fix/전송상태 랜덤 삭제

master
sanguu516 3 weeks ago
parent
commit
184251197b
  1. 2
      src/components/flight/ControlApprovalsTable.js
  2. 2
      src/components/flight/OperationApprovalsTable.js
  3. 7
      src/redux/features/laanc/laancThunk.ts

2
src/components/flight/ControlApprovalsTable.js

@ -559,7 +559,7 @@ export default function ControlApprovalsTable(props) {
width: '100px', width: '100px',
align: 'center', align: 'center',
render: planAreaSno => { render: planAreaSno => {
return Math.random() < 0.5 ? '전송' : '미전송'; return '미전송';
} }
} }
]; ];

2
src/components/flight/OperationApprovalsTable.js

@ -540,7 +540,7 @@ export default function OperationApprovalsTable(props) {
width: '100px', width: '100px',
align: 'center', align: 'center',
render: planAreaSno => { render: planAreaSno => {
return Math.random() < 0.5 ? '전송' : '미전송'; return '미전송';
} }
}, },
{ {

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

@ -290,6 +290,9 @@ export const getLaancAprvList = createAsyncThunk(
...(item.droneList[xIndex]?.weightNm && { ...(item.droneList[xIndex]?.weightNm && {
weightNm: item.droneList[xIndex].weightNm weightNm: item.droneList[xIndex].weightNm
}), }),
...(item.droneList[xIndex]?.benefit && {
benefit: item.droneList[xIndex].benefit
}),
purpose: item.purpose, purpose: item.purpose,
cReviewedType: area.reviewedType cReviewedType: area.reviewedType
}; };
@ -301,11 +304,13 @@ export const getLaancAprvList = createAsyncThunk(
planAreaSno: item.areaList[0].planAreaSno, planAreaSno: item.areaList[0].planAreaSno,
cReviewedType: item.reviewedType, cReviewedType: item.reviewedType,
areaList: item.areaList.map((area, zIndex) => { areaList: item.areaList.map((area, zIndex) => {
console.log('>>', item?.droneList[zIndex]?.weightNm);
return { return {
...area, ...area,
applyNm: item.applyNm, applyNm: item.applyNm,
purpose: item.purpose, purpose: item.purpose,
...(item.droneList[zIndex]?.benefit && {
benefit: item.droneList[zIndex].benefit
}),
...(item.droneList[zIndex]?.weightNm && { ...(item.droneList[zIndex]?.weightNm && {
weightNm: item.droneList[zIndex].weightNm weightNm: item.droneList[zIndex].weightNm
}), }),

Loading…
Cancel
Save