지붕면 할당 각도 오류 수정
This commit is contained in:
parent
14e8909f64
commit
d7fb15c2e9
@ -31,6 +31,7 @@ export default function ContextRoofAllocationSetting(props) {
|
||||
handleSaveContext,
|
||||
currentRoofList,
|
||||
handleChangeInput,
|
||||
handleChangePitch,
|
||||
} = useRoofAllocationSetting(id)
|
||||
|
||||
const { findCommonCode } = useCommonCode()
|
||||
@ -123,7 +124,7 @@ export default function ContextRoofAllocationSetting(props) {
|
||||
type="text"
|
||||
className="input-origin block"
|
||||
onChange={(e) => {
|
||||
handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
|
||||
handleChangePitch(e, index)
|
||||
}}
|
||||
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
|
||||
/>
|
||||
|
||||
@ -33,6 +33,7 @@ export default function RoofAllocationSetting(props) {
|
||||
handleChangeLayout,
|
||||
currentRoofList,
|
||||
handleChangeInput,
|
||||
handleChangePitch,
|
||||
} = useRoofAllocationSetting(id)
|
||||
const pitchText = useRecoilValue(pitchTextSelector)
|
||||
const { findCommonCode } = useCommonCode()
|
||||
@ -125,7 +126,7 @@ export default function RoofAllocationSetting(props) {
|
||||
type="text"
|
||||
className="input-origin block"
|
||||
onChange={(e) => {
|
||||
handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
|
||||
handleChangePitch(e, index)
|
||||
}}
|
||||
defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
|
||||
/>
|
||||
|
||||
@ -341,7 +341,6 @@ export function useRoofAllocationSetting(id) {
|
||||
const newRoofList = currentRoofList.map((roof, idx) => {
|
||||
return { ...roof, index: idx, ...basicInfo }
|
||||
})
|
||||
console.log('basicInfo', newRoofList)
|
||||
|
||||
setBasicSetting((prev) => {
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user