北京一号线新版指令调整

This commit is contained in:
joylink_cuiweidong 2020-02-14 10:58:00 +08:00
parent ab3ad852b8
commit 7af244dcda

View File

@ -468,11 +468,9 @@ export default {
},
confirm2() {
let operate = {
send: true,
over:true,
type: this.type,
val: this.speed,
cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED,
param: {
speedLimitValue: `${this.speed}`
}
@ -481,12 +479,14 @@ export default {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
operate.operation = OperationEvent.Section.setSpeed.confirm2.operation;
operate.cmdType = CMD.Section.CMD_SECTION_SET_LIMIT_SPEED;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
operate.operation = OperationEvent.Section.cancelSpeed.confirm2.operation;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.confirm2.operation;
operate.cmdType = CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
operate.operation = OperationEvent.Switch.cancelSpeed.confirm2.operation;