北京一号线 现地操作总取消操作代码调整
This commit is contained in:
parent
07af51b757
commit
d0107db4f1
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user