roofConstruction -> roofConstructions 수정
This commit is contained in:
parent
6d310a6a32
commit
7ff0178b19
@ -452,7 +452,7 @@ const Trestle = forwardRef((props, ref) => {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
new Promise((resolve) => {
|
new Promise((resolve) => {
|
||||||
const roofConstruction = newAddedRoofs.map((roof, index) => ({
|
const roofConstructions = newAddedRoofs.map((roof, index) => ({
|
||||||
roofIndex: newRoofs[index].index,
|
roofIndex: newRoofs[index].index,
|
||||||
addRoof: newRoofs[index],
|
addRoof: newRoofs[index],
|
||||||
trestle: {
|
trestle: {
|
||||||
@ -468,9 +468,9 @@ const Trestle = forwardRef((props, ref) => {
|
|||||||
trestleDetail: roof.trestleDetail,
|
trestleDetail: roof.trestleDetail,
|
||||||
}))
|
}))
|
||||||
trestleTrigger({
|
trestleTrigger({
|
||||||
roofConstruction,
|
roofConstructions,
|
||||||
})
|
})
|
||||||
setRoofsStore(roofConstruction)
|
setRoofsStore(roofConstructions)
|
||||||
resolve()
|
resolve()
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -76,16 +76,15 @@ export function useCanvasPopupStatusController(param = 1) {
|
|||||||
roofSurfaceList.forEach((surface) => {
|
roofSurfaceList.forEach((surface) => {
|
||||||
surface.modules = modules.filter((module) => module.surfaceId === surface.id)
|
surface.modules = modules.filter((module) => module.surfaceId === surface.id)
|
||||||
})
|
})
|
||||||
if (data.roofConstruction) {
|
if (data.roofConstructions) {
|
||||||
setRoofs(data.roofConstruction)
|
setRoofs(data.roofConstructions)
|
||||||
setManagementState({ ...managementState, roofs: data.roofConstruction.map((roof) => roof.construction.managementState) })
|
setManagementState({ ...managementState, roofs: data.roofConstructions.map((roof) => roof.construction.managementState) })
|
||||||
// setModuleSelectionDataStore({ ...moduleSelectionDataStore, roofConstructions: data.roofConstruction })
|
// setModuleSelectionDataStore({ ...moduleSelectionDataStore, roofConstructions: data.roofConstruction })
|
||||||
resultData = { ...resultData, ...data }
|
resultData = { ...resultData, roofConstructions: data.roofConstructions }
|
||||||
}
|
}
|
||||||
// if (data?.module) setManagementState(data.common.managementState)
|
// if (data?.module) setManagementState(data.common.managementState)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('resultData', resultData)
|
|
||||||
setModuleSelectionDataStore(resultData)
|
setModuleSelectionDataStore(resultData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user