북면 설치 가능 모듈은 단독으로만 가능함
This commit is contained in:
parent
1524766b7e
commit
7557f61130
@ -122,6 +122,21 @@ export default function PassivityCircuitAllocation(props) {
|
||||
return
|
||||
}
|
||||
|
||||
// targetModule중 북면 설치 여부가 Y인 것과 N인 것이 혼합이면 안됨.
|
||||
const targetModuleGroup = [...new Set(canvas
|
||||
.getObjects()
|
||||
.filter((obj) => obj.name === POLYGON_TYPE.MODULE && targetModules.includes(obj.id))
|
||||
.map((obj) => obj.moduleInfo.northModuleYn))]
|
||||
|
||||
if (targetModuleGroup.length > 1) {
|
||||
swalFire({
|
||||
text: getMessage('module.circuit.fix.not.same.roof.error'),
|
||||
type: 'alert',
|
||||
icon: 'warning',
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
switch (pcsTpCd) {
|
||||
case 'INDFCS': {
|
||||
const originHaveThisPcsModules = canvas
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user