宁波一号线自动折返操作代码调整
This commit is contained in:
parent
4e38516efb
commit
22330bf756
@ -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();
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user