修改请求参数(门模式)
This commit is contained in:
parent
8f9c0c852a
commit
0ac19e5d35
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user