钥匙交互传参修改

This commit is contained in:
joylink_zhaoerwei 2024-04-09 10:33:17 +08:00
parent 4c9a9b29b7
commit 0330c00cbc

View File

@ -272,7 +272,6 @@ export class TccKeyInteraction extends KeyInteraction<TccKey> {
const tccKey = target.getGraphic<TccKey>();
if (!tccKey || !simulationId || !mapId) return;
const state = tccKey?.state.position == 0 ? true : false;
const driverKeyType = tccKey?.datas.code == 'SKQYS1' ? 0 : 1;
tccOperation({
simulationId,
trainId: tccId + '',
@ -280,7 +279,6 @@ export class TccKeyInteraction extends KeyInteraction<TccKey> {
controlType: request.TrainControl.TrainControlType.DRIVER_KEY_SWITCH,
driverKey: {
val: state,
dt: driverKeyType,
},
}).catch((err) => {
errorNotify('操作失败', { message: err.origin.response.data.title });