代码调整
This commit is contained in:
parent
78122f6e7a
commit
f17a54b860
@ -501,7 +501,7 @@ export default {
|
||||
this.clearOperate();
|
||||
return;
|
||||
}
|
||||
const signal = this.$store.getters['map/getDeviceByCode'](model.signalCode || model.code);
|
||||
// const signal = this.$store.getters['map/getDeviceByCode'](model.signalCode || model.code);
|
||||
if (this.deviceList && this.deviceList.length) {
|
||||
let key = '';
|
||||
this.deviceList.forEach((item, index) => {
|
||||
@ -514,11 +514,11 @@ export default {
|
||||
operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_ROUTE;
|
||||
operate.param = {routeCode: route.code};
|
||||
}
|
||||
} else if (signal.lockedRouteCode) {
|
||||
operate.operation = this.Signal.reopenSignal.button.operation;
|
||||
operate.cmdType = CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL;
|
||||
operate.param = {signalCode: signal.code};
|
||||
operate.over = true;
|
||||
// } else if (signal.lockedRouteCode) {
|
||||
// operate.operation = this.Signal.reopenSignal.button.operation;
|
||||
// operate.cmdType = CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL;
|
||||
// operate.param = {signalCode: signal.code};
|
||||
// operate.over = true;
|
||||
}
|
||||
this.$store.dispatch('trainingNew/next', operate).then(({valid}) => {
|
||||
if (valid) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-dialogDrag
|
||||
title="Train operation"
|
||||
title="Train Control"
|
||||
:visible.sync="dialogVisible"
|
||||
width="30%"
|
||||
:modal="false"
|
||||
|
Loading…
Reference in New Issue
Block a user