北京一号线 现地操作总取消操作代码调整

This commit is contained in:
joylink_cuiweidong 2020-03-18 17:18:43 +08:00
parent 07af51b757
commit d0107db4f1

View File

@ -225,8 +225,10 @@ export default {
const occupy = this.isTrainOccupy(selectType);
if (occupy) {
//
this.signalCloseByLow(selectType);
} else {
//
this.cancelTrainRouteByLow(selectType);
}
break;
}
@ -256,10 +258,6 @@ export default {
//
break;
}
case 'mbm_06': {
//
break;
}
case OperationEvent.Signal.setAutoInterlock.button.operation: {
//
if (selectType.fleetMode != undefined) {
@ -397,6 +395,25 @@ export default {
}
});
},
//
cancelTrainRouteByLow(selectType) {
const operate = {
start: true,
code: this.selected.code,
operation: OperationEvent.Signal.cancelTrainRoute.menu.operation,
param: {
signalCode: selectType.code
},
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}
}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message);
});
},
//
reopenSignalByRoute(selectType) {
@ -452,6 +469,25 @@ export default {
}
});
},
//
signalCloseByLow(selectType) {
const operate = {
start: true,
code: this.selected.code,
operation: OperationEvent.Signal.signalClose.menu.operation,
param: {
signalCode: selectType.code
},
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}
}).catch((error) => {
this.$refs.noticeInfo.doShow(operate, error.message);
});
},
//
humanControl() {
const operate = {