From fbdf490a3077e2064b86bca94dd904a59922eb8b Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 8 Oct 2024 16:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=93=8D=E4=BD=9C=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/line-app/infos/TrainInfo.vue | 8 ++++---- src/drawApp/graphics/TrainInteraction.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/line-app/infos/TrainInfo.vue b/src/components/line-app/infos/TrainInfo.vue index 7d55cdb..0488cf2 100644 --- a/src/components/line-app/infos/TrainInfo.vue +++ b/src/components/line-app/infos/TrainInfo.vue @@ -627,11 +627,11 @@ const options = [ value: 2, }, { - label: '列车驾驶台', + label: '取消连接', value: 3, }, { - label: '取消连接', + label: '列车驾驶台', value: 4, }, { @@ -645,9 +645,9 @@ function doTrainOperation(option: { label: string; value: number }) { setTrain(); } else if (option.value == 2) { linkTrain(); - } else if (option.value == 3) { - openTccDialog(); } else if (option.value == 4) { + openTccDialog(); + } else if (option.value == 3) { cancelTrainLink(); } else if (option.value == 5) { clearTrain(); diff --git a/src/drawApp/graphics/TrainInteraction.ts b/src/drawApp/graphics/TrainInteraction.ts index c9eeab7..16a6c2e 100644 --- a/src/drawApp/graphics/TrainInteraction.ts +++ b/src/drawApp/graphics/TrainInteraction.ts @@ -719,8 +719,8 @@ const TrainOperateMenu: ContextMenu = ContextMenu.init({ items: [ TrainParam, TrainLink, - DrivingCabConfig, CancelLink, + DrivingCabConfig, removeTrainConfig, ], },