宁波一号线自动折返操作代码调整

This commit is contained in:
joylink_cuiweidong 2020-03-24 11:09:10 +08:00
parent 4e38516efb
commit 22330bf756
3 changed files with 7 additions and 6 deletions

View File

@ -101,7 +101,6 @@ export default {
}
}
this.operation = operate.operation;
if (this.operation == OperationEvent.AutoTurnBack.SetAutoTurnBackButton.menu.operation) {
this.passRadio = '1';
} else if (this.operation == OperationEvent.AutoTurnBack.CancelAutoTurnBackButton.menu.operation) {
@ -137,6 +136,8 @@ export default {
sendCommand(operate) {
this.loading = true;
commitOperate(operate, {}, 2).then((data)=>{
this.loading = false;
this.doClose();
}).catch(error => {
this.loading = false;
this.doClose();

View File

@ -106,13 +106,13 @@ export default {
},
//
handlerTurnBack() {
commitOperate(menuOperate.Signal.setAutoTurnBack, {autoTurnBackCode:this.selected.code}, 0).then((data)=>{
commitOperate(menuOperate.Signal.setAutoTurnBack, {cycleCode:this.selected.cycleCode}, 0).then((data)=>{
this.$refs.turnBackControl.doShow(data.operate, this.selected);
});
},
//
cancelTurnBack() {
commitOperate(menuOperate.Signal.cancelAutoTurnBack, {autoTurnBackCode:this.selected.code}, 0).then((data)=>{
commitOperate(menuOperate.Signal.cancelAutoTurnBack, {cycleCode:this.selected.cycleCode, cancelRoute:false}, 0).then((data)=>{
this.$refs.turnBackControl.doShow(data.operate, this.selected);
});
}

View File

@ -907,7 +907,7 @@ export const OperationEvent = {
operation: '3181',
domId: '_Tips-Signal-cancelGuide-Confirm'
}
},
}
},
// 物理区段操作
@ -1951,11 +1951,11 @@ export const OperationEvent = {
},
CancelAutoTurnBackButton: {
menu: {
operation: '900',
operation: '901',
domId: '_Tips-Turn-Back-Menu'
},
confirm: {
operation: '9001',
operation: '9011',
domId: '_Tips-Turn-Back-confirm-Menu'
}
}