From c95ddf4372b4edbff4a9956e0cf1851ccadf4c6a Mon Sep 17 00:00:00 2001 From: fan Date: Thu, 21 Dec 2023 17:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E5=85=B3=E8=81=94?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/draw-app/properties/SignalProperty.vue | 1 - src/graphics/signal/Signal.ts | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/draw-app/properties/SignalProperty.vue b/src/components/draw-app/properties/SignalProperty.vue index a9abedd..9f58746 100644 --- a/src/components/draw-app/properties/SignalProperty.vue +++ b/src/components/draw-app/properties/SignalProperty.vue @@ -73,7 +73,6 @@ const { data: signalModel, onUpdate } = useFormData( ); const refDevData = computed(() => { - console.log(signalModel, '===='); return signalModel.refDevice ? { ...signalModel.refDevice.toObject(), diff --git a/src/graphics/signal/Signal.ts b/src/graphics/signal/Signal.ts index 2cd20a6..5825b59 100644 --- a/src/graphics/signal/Signal.ts +++ b/src/graphics/signal/Signal.ts @@ -18,7 +18,7 @@ import { import { SignalCode } from './SignalCode'; import { Station } from '../station/Station'; import { Turnout, TurnoutPort } from '../turnout/Turnout'; -import { Section, SectionPort } from '../section/Section'; +import { Section, SectionPort, SectionType } from '../section/Section'; export interface KilometerSystem { get coordinateSystem(): string; @@ -218,7 +218,9 @@ export class Signal extends JlGraphic { this.humanControl.endFill(); } buildRelation() { - const sections = this.queryStore.queryByType
(Section.Type); + const sections = this.queryStore + .queryByType
(Section.Type) + .filter((item) => item.datas.sectionType === SectionType.Physical); const turnouts = this.queryStore.queryByType(Turnout.Type); let deviceId = 0; let deviceType = '';