Compare commits
No commits in common. "bab3039d6e669ed5dbf45ef2d362a8deebea913d" and "dcd7ace8308a2d49a402e967256998b78f742432" have entirely different histories.
bab3039d6e
...
dcd7ace830
@ -186,7 +186,7 @@ export default function ContextRoofAllocationSetting(props) {
|
||||
<input
|
||||
type="text"
|
||||
className="input-origin block"
|
||||
value={roof.hajebichi === '' ? '0' : roof.hajebichi}
|
||||
value={parseInt(roof.hajebichi)}
|
||||
readOnly={roof.roofPchAuth === 'R'}
|
||||
onChange={(e) => handleChangeInput(e, 'hajebichi', index)}
|
||||
/>
|
||||
@ -205,8 +205,8 @@ export default function ContextRoofAllocationSetting(props) {
|
||||
// handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
|
||||
handleChangePitch(e, index)
|
||||
}}
|
||||
value={currentAngleType === 'slope' ? (roof.pitch || '0') : (roof.angle || '0')}
|
||||
defaultValue={currentAngleType === 'slope' ? (roof.pitch || '0') : (roof.angle || '0')}
|
||||
value={currentAngleType === 'slope' ? roof.pitch : roof.angle}
|
||||
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
|
||||
/>
|
||||
</div>
|
||||
<span className="absol">{pitchText}</span>
|
||||
|
||||
@ -126,9 +126,6 @@ export function useRoofAllocationSetting(id) {
|
||||
roofAngle: item.roofAngle,
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if(roofList.length > 0){
|
||||
roofsArray = roofList
|
||||
} else {
|
||||
roofsArray = [
|
||||
{
|
||||
@ -146,7 +143,6 @@ export function useRoofAllocationSetting(id) {
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 데이터 설정
|
||||
@ -186,9 +182,6 @@ export function useRoofAllocationSetting(id) {
|
||||
roofSizeSet: '' + res[0].roofSizeSet,
|
||||
roofAngleSet: '' + res[0].roofAngleSet,
|
||||
})
|
||||
//데이터 동기화
|
||||
setCurrentRoofList(selectRoofs)
|
||||
|
||||
})
|
||||
} catch (error) {
|
||||
console.error('Data fetching error:', error)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user