南京二 调整 故障模式不弹出 进路操作弹框

This commit is contained in:
fan 2021-08-11 14:39:43 +08:00
parent 9e2c7f67a1
commit 951eac98d4

View File

@ -282,7 +282,7 @@
import { mapGetters } from 'vuex';
import { deepAssign } from '@/utils/index';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { TrainingMode, MouseEvent } from '@/scripts/ConstDic';
import { TrainingMode, MouseEvent, OperateMode } from '@/scripts/ConstDic';
import { EventBus } from '@/scripts/event-bus';
import * as adapter from '@/jmapNew/utils/adapter';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
@ -381,7 +381,8 @@ export default {
},
computed: {
...mapGetters('training', [
'mode'
'mode',
'operatemode'
]),
...mapGetters('map', [
'routeList',
@ -812,7 +813,7 @@ export default {
},
handleRouteMenu() { //
this.initCentralizedStationList(this.routeParamList);
if (this.selectedObj._event === MouseEvent.Right) {
if (this.selectedObj._event === MouseEvent.Right && this.operatemode !== OperateMode.FAULT) {
this.rightClickDialogVisible = true;
}
// this.param = { routeCode: this.route.code };