Squashed commit of the following:
All checks were successful
CI / Docker-Build (push) Successful in 2m40s

commit 0ac19e5d35
Author: joylink_zhaoerwei <Bob_Engineer@163.com>
Date:   Tue Aug 27 11:44:09 2024 +0800

    修改请求参数(门模式)

commit 8f9c0c852a
Author: joylink_zhaoerwei <Bob_Engineer@163.com>
Date:   Thu Aug 22 14:31:15 2024 +0800

    驾驶台旋钮操作bug修复
This commit is contained in:
joylink_zhaoerwei 2024-08-27 11:45:32 +08:00
parent a061a6d1e9
commit aadebddbad

View File

@ -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,
},