모듈 표 추가
This commit is contained in:
parent
7d76929689
commit
f32e772141
@ -153,11 +153,8 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
if (!roof.roofMaterial) return
|
if (!roof.roofMaterial) return
|
||||||
const roofIndex = roof.roofMaterial.index //지붕의 지붕재의 순번
|
const roofIndex = roof.roofMaterial.index //지붕의 지붕재의 순번
|
||||||
|
|
||||||
console.log('moduleSelectionData', moduleSelectionData)
|
|
||||||
|
|
||||||
trestleDetailList.forEach((detail) => {
|
trestleDetailList.forEach((detail) => {
|
||||||
if (detail.data !== null) {
|
if (detail.data !== null) {
|
||||||
const moduleRowArray = []
|
|
||||||
if (Number(detail.data.roofIndex) === roofIndex) {
|
if (Number(detail.data.roofIndex) === roofIndex) {
|
||||||
//roof에 상세 데이터 추가
|
//roof에 상세 데이터 추가
|
||||||
roof.set({
|
roof.set({
|
||||||
@ -168,21 +165,23 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
|
|
||||||
const offsetObjects = moduleSelectionData.roofConstructions.find((item) => item.addRoof.index === roofIndex)
|
const offsetObjects = moduleSelectionData.roofConstructions.find((item) => item.addRoof.index === roofIndex)
|
||||||
|
|
||||||
console.log('offsetObjects', offsetObjects)
|
|
||||||
|
|
||||||
roof.lines.forEach((line) => {
|
roof.lines.forEach((line) => {
|
||||||
line.attributes = { ...line.attributes, offset: getOffset(offsetObjects.addRoof, line.attributes.type) }
|
line.attributes = { ...line.attributes, offset: getOffset(offsetObjects.addRoof, line.attributes.type) }
|
||||||
})
|
})
|
||||||
//배치면 설치 영역
|
//배치면 설치 영역
|
||||||
makeModuleInstArea(roof, detail.data)
|
makeModuleInstArea(roof, detail.data)
|
||||||
}
|
}
|
||||||
detail.data.module.forEach((module) => {
|
|
||||||
moduleRowArray.push({ moduleMaxRows: module.moduleMaxRows, mixModuleMaxRows: module.mixModuleMaxRows })
|
|
||||||
})
|
|
||||||
rowColArray.push(moduleRowArray)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
trestleDetailList.forEach((detail) => {
|
||||||
|
const moduleRowArray = []
|
||||||
|
detail.data.module.forEach((module) => {
|
||||||
|
moduleRowArray.push({ moduleMaxRows: module.moduleMaxRows, mixModuleMaxRows: module.mixModuleMaxRows })
|
||||||
|
})
|
||||||
|
rowColArray.push(moduleRowArray)
|
||||||
|
})
|
||||||
setModuleRowColArray(rowColArray)
|
setModuleRowColArray(rowColArray)
|
||||||
}
|
}
|
||||||
}, [trestleDetailList])
|
}, [trestleDetailList])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user