수동설정 시 실내집중형 로직 수정

This commit is contained in:
hyojun.choi 2025-12-29 11:10:02 +09:00
parent 54767d2f26
commit c454b1936f

View File

@ -103,17 +103,6 @@ export default function PassivityCircuitAllocation(props) {
surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface
}) })
if (surfaceList.length > 1) {
if (Object.keys(surfaceType).length > 1) {
swalFire({
text: getMessage('module.circuit.fix.not.same.roof.error'),
type: 'alert',
icon: 'warning',
})
return
}
}
if (!circuitNumber || circuitNumber === 0) { if (!circuitNumber || circuitNumber === 0) {
swalFire({ swalFire({
text: getMessage('module.circuit.minimun.error'), text: getMessage('module.circuit.minimun.error'),
@ -145,7 +134,11 @@ export default function PassivityCircuitAllocation(props) {
originSurfaceList.concat(originSurfaceList).forEach((surface) => { originSurfaceList.concat(originSurfaceList).forEach((surface) => {
surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface
}) })
break
}
case 'OUTDMULTI': {
if (surfaceList.length > 1) { if (surfaceList.length > 1) {
if (Object.keys(surfaceType).length > 1) { if (Object.keys(surfaceType).length > 1) {
swalFire({ swalFire({
@ -156,10 +149,6 @@ export default function PassivityCircuitAllocation(props) {
return return
} }
} }
break
}
case 'OUTDMULTI': {
if (selectedModels.length > 1) { if (selectedModels.length > 1) {
let result = false let result = false