bug 修复 【大铁标准站】大铁车务终端的操作:总取消、信号重开、总人解等报错

This commit is contained in:
joylink_cuiweidong 2023-01-13 16:52:12 +08:00
parent b0d80ac49e
commit 0c7f55c911

View File

@ -6,13 +6,13 @@
<center><b></b><b></b></center>
</span>
</button>
<button :id="MixinCommand.totalCancel.button.domId" class="button_box" @click="buttonDown(MixinCommand.totalCancel.button.operation, [])">
<button :id="MixinCommand.totalCancel.button.domId" class="button_box" @click="buttonDown(MixinCommand.totalCancel.button.operation, ['Signal','SignalButton'])">
<span :style="{color: operation === MixinCommand.totalCancel.button.operation ? '#ccc': 'black'}">
<center><b></b></center>
<center><b></b><b></b></center>
</span>
</button>
<button :id="Signal.reopenSignal.button.domId" class="button_box" @click="buttonDown(Signal.reopenSignal.button.operation, ['Signal'])">
<button :id="Signal.reopenSignal.button.domId" class="button_box" @click="buttonDown(Signal.reopenSignal.button.operation, ['Signal','SignalButton'])">
<span :style="{color: operation === Signal.reopenSignal.button.operation ? '#ccc': 'black'}">
<center><b></b><b></b></center>
<center><b></b><b></b></center>
@ -30,7 +30,7 @@
<center><b></b><b></b></center>
</span>
</button>
<button :id="Signal.humanTrainRoute.button.domId" class="button_box" @click="buttonDown(Signal.humanTrainRoute.button.operation, ['Signal'])">
<button :id="Signal.humanTrainRoute.button.domId" class="button_box" @click="buttonDown(Signal.humanTrainRoute.button.operation, ['Signal','SignalButton'])">
<span :style="{color: operation === Signal.humanTrainRoute.button.operation ? '#ccc':'#800000'}">
<center><b></b></center>
<center><b></b><b></b></center>
@ -461,7 +461,9 @@ export default {
operation: this.Signal.reopenSignal.button.operation,
userOperationType: UserOperationType.LEFTCLICK,
code: device.code,
param: { signalCode: device.code }
param:{
signalCode: device._type === 'Signal' ? device.code : device.signalCode
}
};
this.$store.dispatch('trainingNew/next', operate);
},
@ -555,7 +557,10 @@ export default {
operation: this.$store.state.menuOperation.buttonOperation,
userOperationType: UserOperationType.LEFTCLICK,
val: model.code,
param: { signalCode: model.code }
// param: { signalCode: model.code }
param:{
signalCode: model._type === 'Signal' ? model.code : model.signalCode
}
};
this.$store.dispatch('trainingNew/next', operate);
},