From f991d849fcdfa59764cdd44dacbc693b2c6d6879 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Tue, 31 Oct 2023 17:33:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E5=B2=94=E7=8A=B6=E6=80=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../line-app/states/TurnoutState.vue | 203 +++++++++++++++--- src/drawApp/graphics/TurnoutInteraction.ts | 70 +++++- src/graphics/turnout/Turnout.ts | 11 + 3 files changed, 250 insertions(+), 34 deletions(-) diff --git a/src/components/line-app/states/TurnoutState.vue b/src/components/line-app/states/TurnoutState.vue index a4bc8eb..0baa72e 100644 --- a/src/components/line-app/states/TurnoutState.vue +++ b/src/components/line-app/states/TurnoutState.vue @@ -29,38 +29,177 @@ hint="" /> -
- -
-
- -
-
- -
-
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/drawApp/graphics/TurnoutInteraction.ts b/src/drawApp/graphics/TurnoutInteraction.ts index 5cee999..94c55ad 100644 --- a/src/drawApp/graphics/TurnoutInteraction.ts +++ b/src/drawApp/graphics/TurnoutInteraction.ts @@ -339,8 +339,74 @@ export class TurnoutStates extends GraphicStateBase implements ITurnoutState { get fw(): boolean { return this.states.fw; } - set fw(fw: boolean) { - this.states.fw = fw; + set fw(v: boolean) { + this.states.fw = v; + } + get force(): boolean { + return this.states.force; + } + set force(v: boolean) { + this.states.force = v; + } + get sb(): boolean { + return this.states.sb; + } + set sb(v: boolean) { + this.states.sb = v; + } + get dwsb(): boolean { + return this.states.dwsb; + } + set dwsb(v: boolean) { + this.states.dwsb = v; + } + get fwsb(): boolean { + return this.states.fwsb; + } + set fwsb(v: boolean) { + this.states.fwsb = v; + } + get jc(): boolean { + return this.states.jc; + } + set jc(v: boolean) { + this.states.jc = v; + } + get qdc(): boolean { + return this.states.qdc; + } + set qdc(v: boolean) { + this.states.qdc = v; + } + get qfc(): boolean { + return this.states.qfc; + } + set qfc(v: boolean) { + this.states.qfc = v; + } + get qyc(): boolean { + return this.states.qyc; + } + set qyc(v: boolean) { + this.states.qyc = v; + } + get dc(): boolean { + return this.states.dc; + } + set dc(v: boolean) { + this.states.dc = v; + } + get fc(): boolean { + return this.states.fc; + } + set fc(v: boolean) { + this.states.fc = v; + } + get yc(): boolean { + return this.states.yc; + } + set yc(v: boolean) { + this.states.yc = v; } get states(): state.SwitchState { return this.getState(); diff --git a/src/graphics/turnout/Turnout.ts b/src/graphics/turnout/Turnout.ts index ac1577a..9ded281 100644 --- a/src/graphics/turnout/Turnout.ts +++ b/src/graphics/turnout/Turnout.ts @@ -61,6 +61,17 @@ export interface ITurnoutState extends GraphicState { reverse?: boolean; dw?: boolean; fw?: boolean; + force?: boolean; + sb?: boolean; + dwsb?: boolean; + fwsb?: boolean; + jc?: boolean; + qdc?: boolean; + qfc?: boolean; + qyc?: boolean; + dc?: boolean; + fc?: boolean; + yc?: boolean; } export const TurnoutConsts = {