From aadebddbad258b048feb44f4cb3570cd68248935 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Tue, 27 Aug 2024 11:45:32 +0800 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 0ac19e5d35f5eded7a7516a463b254d0547a94ba Author: joylink_zhaoerwei Date: Tue Aug 27 11:44:09 2024 +0800 修改请求参数(门模式) commit 8f9c0c852a56ab040f46075e4a837b9acbb6920a Author: joylink_zhaoerwei Date: Thu Aug 22 14:31:15 2024 +0800 驾驶台旋钮操作bug修复 --- src/stores/tcc-store.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/stores/tcc-store.ts b/src/stores/tcc-store.ts index 29c2497..9bbbab9 100644 --- a/src/stores/tcc-store.ts +++ b/src/stores/tcc-store.ts @@ -78,13 +78,20 @@ export const useTccStore = defineStore('tcc', { position = 2; break; } + let controlType = + request.TrainControl.TrainControlType.DIRECTION_KEY_SWITCH; + if (tccKeyDir.datas.code == 'MMS') { + controlType = + request.TrainControl.TrainControlType.TRAIN_DOOR_MODE_CHANGE; + } + const simulationId = useLineStore().simulationId; if (!simulationId) return; tccOperation({ simulationId, trainId: this.tccId + '', deviceId: this.tccKeyDirId, - controlType: request.TrainControl.TrainControlType.DIRECTION_KEY_SWITCH, + controlType, switchKey: { val: position, },