물재이용 공통코드 작업 수정 사항 추가
This commit is contained in:
@@ -64,11 +64,10 @@ export const getCommonUpCd = async (set:any) => {
|
||||
);
|
||||
|
||||
const list = Array.isArray(lwCd) ? lwCd : lwCd.content ?? [];
|
||||
|
||||
lwCds[mapping] = list.map((it: any) => ({
|
||||
text: it.lwpoCdNm,
|
||||
val: it.lwpoCd,
|
||||
}));
|
||||
lwCds[mapping] = list.map((it: any) => ({
|
||||
text: it.lwpoCdNm,
|
||||
val: it.lwpoCd,
|
||||
}));
|
||||
})
|
||||
);
|
||||
lwCdCode=lwCds
|
||||
@@ -76,7 +75,7 @@ export const getCommonUpCd = async (set:any) => {
|
||||
code: {
|
||||
...state.code,
|
||||
rainFcltCd: lwCdCode['rainFcltCd']??[],
|
||||
bdstUsgCd: lwCdCode['bdstUsgCd']??[] ,
|
||||
bdstUsgCd: lwCdCode['bdstUsgCd']??[],
|
||||
orgwtKndCd: lwCdCode['orgwtKndCd']??[] ,
|
||||
pplQulity: lwCdCode['pplQulity']??[] ,
|
||||
pplLenght: lwCdCode['pplLenght']??[] ,
|
||||
@@ -88,6 +87,7 @@ export const getCommonUpCd = async (set:any) => {
|
||||
htdPowerMthdCd: lwCdCode['htdPowerMthdCd']??[],
|
||||
htdUtztnUsgCd: lwCdCode['htdUtztnUsgCd']??[],
|
||||
rswtBdstType:lwCdCode['rswtBdstType']??[] ,
|
||||
bdstTotalUsgType:lwCdCode['bdstUsgCd']?.concat(lwCdCode['rswtBdstType'] || [])??[]
|
||||
},
|
||||
}));
|
||||
}catch(e){
|
||||
@@ -256,6 +256,7 @@ export type comCodeState = {
|
||||
htdPowerMthdCd: SelectDataType[];
|
||||
htdUtztnUsgCd: SelectDataType[];
|
||||
rswtBdstType:SelectDataType[];
|
||||
bdstTotalUsgType:SelectDataType[]
|
||||
userSiSggCd: string;
|
||||
};
|
||||
};
|
||||
@@ -293,6 +294,7 @@ export const comCodeStateExport: comCodeState = {
|
||||
htdUtztnUsgCd: lwCds['htdUtztnUsgCd']??[],
|
||||
userSiSggCd: laeSecd,
|
||||
rswtBdstType:lwCds['rswtBdstType']??[] ,
|
||||
bdstTotalUsgType:lwCds['bdstTotalUsgType']??[]
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user