dev #533

Merged
ysCha merged 4 commits from dev into dev-deploy 2025-12-29 22:51:29 +09:00
Showing only changes of commit c454b1936f - Show all commits

View File

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