钥匙交互传参修改
This commit is contained in:
parent
4c9a9b29b7
commit
0330c00cbc
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user