代码调整

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(); this.clearOperate();
return; 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) { if (this.deviceList && this.deviceList.length) {
let key = ''; let key = '';
this.deviceList.forEach((item, index) => { this.deviceList.forEach((item, index) => {
@ -514,11 +514,11 @@ export default {
operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_ROUTE; operate.cmdType = CMD.Signal.CMD_SIGNAL_SET_ROUTE;
operate.param = {routeCode: route.code}; operate.param = {routeCode: route.code};
} }
} else if (signal.lockedRouteCode) { // } else if (signal.lockedRouteCode) {
operate.operation = this.Signal.reopenSignal.button.operation; // operate.operation = this.Signal.reopenSignal.button.operation;
operate.cmdType = CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL; // operate.cmdType = CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL;
operate.param = {signalCode: signal.code}; // operate.param = {signalCode: signal.code};
operate.over = true; // operate.over = true;
} }
this.$store.dispatch('trainingNew/next', operate).then(({valid}) => { this.$store.dispatch('trainingNew/next', operate).then(({valid}) => {
if (valid) { if (valid) {

View File

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