From e04e855c6637e49bd3d643cdcbcfb1e43ae73612 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 15 Oct 2024 09:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=88=97=E8=BD=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=97=E8=BD=A6=E7=BC=96=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rts-sim-testing-message | 2 +- src/api/Simulation.ts | 1 + src/components/draw-app/dialogs/AddTrainDialog.vue | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rts-sim-testing-message b/rts-sim-testing-message index 5b0baec..a629336 160000 --- a/rts-sim-testing-message +++ b/rts-sim-testing-message @@ -1 +1 @@ -Subproject commit 5b0baec461fba33bcb76212ce2b1a19d1b79057f +Subproject commit a6293366a132680309a62855d4c4e19546ba3aa8 diff --git a/src/api/Simulation.ts b/src/api/Simulation.ts index 819ecc3..890c4c4 100644 --- a/src/api/Simulation.ts +++ b/src/api/Simulation.ts @@ -57,6 +57,7 @@ export async function addTrain(data: { configTrain: TrainConfigData; trainEndsA: TrainEnd; trainEndsB: TrainEnd; + trainCoachNum: number; }) { const response = await api.post(`${UriBase}/train/add`, data); return response.data; diff --git a/src/components/draw-app/dialogs/AddTrainDialog.vue b/src/components/draw-app/dialogs/AddTrainDialog.vue index d778e38..ba074e6 100644 --- a/src/components/draw-app/dialogs/AddTrainDialog.vue +++ b/src/components/draw-app/dialogs/AddTrainDialog.vue @@ -178,6 +178,7 @@ function onCreate() { trainEmergencyBrake: trainConfig.value.train_emergency_brake, configTrain: trainConfig.value.trainConfigData as TrainConfigData, trainControlMapId: trainConfig.value.trainControlMapId, + trainCoachNum: parseInt(trainConfig.value.train_sets), trainEndsA: { radarCheckSpeedDiff: 0, radarCheckTime: 0,