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