代码调整

This commit is contained in:
fan 2023-07-10 13:19:51 +08:00
parent 78122f6e7a
commit f17a54b860
2 changed files with 7 additions and 7 deletions

View File

@ -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) {

View File

@ -1,7 +1,7 @@
<template>
<el-dialog
v-dialogDrag
title="Train operation"
title="Train Control"
:visible.sync="dialogVisible"
width="30%"
:modal="false"