지붕재선택 메뉴의 데이터 동기화

This commit is contained in:
ysCha 2025-08-05 11:29:06 +09:00
parent dcd7ace830
commit e285210927

View File

@ -127,21 +127,25 @@ export function useRoofAllocationSetting(id) {
} }
}) })
} else { } else {
roofsArray = [ if(roofList.length > 0){
{ roofsArray = roofList
planNo: planNo, }else{
roofApply: true, roofsArray = [
roofSeq: 0, {
roofMatlCd: 'ROOF_ID_WA_53A', planNo: planNo,
roofWidth: 265, roofApply: true,
roofHeight: 235, roofSeq: 0,
roofHajebichi: 0, roofMatlCd: 'ROOF_ID_WA_53A',
roofGap: 'HEI_455', roofWidth: 265,
roofLayout: 'P', roofHeight: 235,
roofPitch: 4, roofHajebichi: 0,
roofAngle: 21.8, roofGap: 'HEI_455',
}, roofLayout: 'P',
] roofPitch: 4,
roofAngle: 21.8,
},
]
}
} }
/** /**
@ -182,6 +186,9 @@ export function useRoofAllocationSetting(id) {
roofSizeSet: '' + res[0].roofSizeSet, roofSizeSet: '' + res[0].roofSizeSet,
roofAngleSet: '' + res[0].roofAngleSet, roofAngleSet: '' + res[0].roofAngleSet,
}) })
//데이터 동기화
setCurrentRoofList(selectRoofs)
}) })
} catch (error) { } catch (error) {
console.error('Data fetching error:', error) console.error('Data fetching error:', error)