修改请求参数(门模式)

This commit is contained in:
joylink_zhaoerwei 2024-08-27 11:44:09 +08:00
parent 8f9c0c852a
commit 0ac19e5d35

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