防淹门一键关联集中站
This commit is contained in:
parent
2fb6f91372
commit
875a566b38
@ -16,6 +16,8 @@ import { GarageDoor } from '../garageDoor/GarageDoor';
|
|||||||
import { CarWashing } from '../carWashing/CarWashing';
|
import { CarWashing } from '../carWashing/CarWashing';
|
||||||
import { GarageDoorData } from 'src/drawApp/graphics/GarageDoorInteraction';
|
import { GarageDoorData } from 'src/drawApp/graphics/GarageDoorInteraction';
|
||||||
import { CarWashingData } from 'src/drawApp/graphics/CarWashingInteraction';
|
import { CarWashingData } from 'src/drawApp/graphics/CarWashingInteraction';
|
||||||
|
import { FloodGate } from '../floodGate/FloodGate';
|
||||||
|
import { FloodGateData } from 'src/drawApp/graphics/FloodGateInteraction';
|
||||||
|
|
||||||
//判断线段与线段有木有交点
|
//判断线段与线段有木有交点
|
||||||
export function isSegmentsIntersect(
|
export function isSegmentsIntersect(
|
||||||
@ -176,6 +178,7 @@ export function handleCentralizedStationsData(
|
|||||||
[Transponder.Type, new TransponderData()],
|
[Transponder.Type, new TransponderData()],
|
||||||
[GarageDoor.Type, new GarageDoorData()],
|
[GarageDoor.Type, new GarageDoorData()],
|
||||||
[CarWashing.Type, new CarWashingData()],
|
[CarWashing.Type, new CarWashingData()],
|
||||||
|
[FloodGate.Type, new FloodGateData()],
|
||||||
]);
|
]);
|
||||||
devices.forEach((device) => {
|
devices.forEach((device) => {
|
||||||
const data = dataMap.get(device.type);
|
const data = dataMap.get(device.type);
|
||||||
|
@ -840,6 +840,9 @@ function oneClickRelateCentralizedStation() {
|
|||||||
const carWashings = drawApp.queryStore
|
const carWashings = drawApp.queryStore
|
||||||
.queryByType<CarWashing>(CarWashing.Type)
|
.queryByType<CarWashing>(CarWashing.Type)
|
||||||
.filter((g) => containDeviceIds.includes(g.datas.linkSection));
|
.filter((g) => containDeviceIds.includes(g.datas.linkSection));
|
||||||
|
const floodGates = drawApp.queryStore
|
||||||
|
.queryByType<FloodGate>(FloodGate.Type)
|
||||||
|
.filter((g) => containDeviceIds.includes(g.datas.linkSection));
|
||||||
const allSetCentralizedStationsDevice = [
|
const allSetCentralizedStationsDevice = [
|
||||||
...containDevices,
|
...containDevices,
|
||||||
...signals,
|
...signals,
|
||||||
@ -847,6 +850,7 @@ function oneClickRelateCentralizedStation() {
|
|||||||
...axleCountings,
|
...axleCountings,
|
||||||
...garageDoors,
|
...garageDoors,
|
||||||
...carWashings,
|
...carWashings,
|
||||||
|
...floodGates,
|
||||||
];
|
];
|
||||||
allSetCentralizedStationsDevice.forEach(
|
allSetCentralizedStationsDevice.forEach(
|
||||||
(g) => ((g as Signal).datas.centralizedStations = [])
|
(g) => ((g as Signal).datas.centralizedStations = [])
|
||||||
|
Loading…
Reference in New Issue
Block a user