Merge remote-tracking branch 'origin/test_dispaly' into test

This commit is contained in:
fan 2023-01-13 18:12:59 +08:00
commit aee86e8024
2 changed files with 15 additions and 7 deletions

View File

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

View File

@ -193,8 +193,11 @@ export default {
this.logout(); this.logout();
}); });
} else if (this.$route.query.third) { } else if (this.$route.query.third) {
// this.$router.push({ path: `/trainingPlatform/simulation/${this.$route.query.mapId}`, query: { lineCode: this.$route.query.lineCode } }); if (this.$route.query.project === 'cgy') {
window.close(); window.parent.postMessage('back', '*');
} else {
window.close();
}
} else if (this.projectDevice) { } else if (this.projectDevice) {
this.logout(); this.logout();
} else { } else {