dev #277

Merged
ysCha merged 2 commits from dev into prd-deploy 2025-08-05 11:31:23 +09:00
Showing only changes of commit e285210927 - Show all commits

View File

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