取消设备登录鼠标悬浮车次窗会展示&上饶项目登录不展示按计划行车

This commit is contained in:
fan 2021-11-03 14:06:00 +08:00
parent a4172815ca
commit 1f7b6f5dc1
3 changed files with 12 additions and 12 deletions

View File

@ -4,13 +4,13 @@ export default class EMouse {
} }
mouseover(e) { mouseover(e) {
if (this.device.prdType) { // if (this.device.prdType) {
this.device.setVisible(true); // this.device.setVisible(true);
const instance = this.device.getInstanceByCode(this.device.model.sectionCode); // const instance = this.device.getInstanceByCode(this.device.model.sectionCode);
if (instance && instance.mouseEvent && instance.mouseEvent.mouseover) { // if (instance && instance.mouseEvent && instance.mouseEvent.mouseover) {
instance.mouseEvent.mouseEnter(e); // instance.mouseEvent.mouseEnter(e);
} // }
} // }
} }
mouseout(e) { mouseout(e) {
@ -24,9 +24,9 @@ export default class EMouse {
} }
mouseEnter() { mouseEnter() {
if (this.device.prdType) { // if (this.device.prdType) {
this.device.setVisible(true); // this.device.setVisible(true);
} // }
} }
mouseLeave() { mouseLeave() {

View File

@ -165,7 +165,7 @@ export default {
return this.$store.state.socket.simulationPause; return this.$store.state.socket.simulationPause;
}, },
isDepoltSim() { isDepoltSim() {
return this.$route.query.prdType === '09'; return this.$route.query.prdType === '09' || this.project !== 'srsandbox';
} }
}, },
watch: { watch: {

View File

@ -33,7 +33,7 @@
<template v-if="!dataError"> <!-- 地图错误判断 --> <template v-if="!dataError"> <!-- 地图错误判断 -->
<template v-if="isAdmin && project != 'refereeJsxt' && $route.query.type !== 'ILW'"> <template v-if="isAdmin && project != 'refereeJsxt' && $route.query.type !== 'ILW'">
<!-- 按计划行车 --> <!-- 按计划行车 -->
<el-button type="success" :disabled="isDisable" size="small" @click="selectBeginTime">{{ $t('joinTraining.drivingByPlan') }}</el-button> <el-button v-if="project !== 'srsandbox'" type="success" :disabled="isDisable" size="small" @click="selectBeginTime">{{ $t('joinTraining.drivingByPlan') }}</el-button>
<el-button v-if="isAdministrator" v-loading="pauseLoading" :type="simulationPaused?'warning':'primary'" size="small" @click="startOrPause">{{ simulationPaused?'开始':'暂停' }}</el-button> <el-button v-if="isAdministrator" v-loading="pauseLoading" :type="simulationPaused?'warning':'primary'" size="small" @click="startOrPause">{{ simulationPaused?'开始':'暂停' }}</el-button>
<el-button type="danger" size="small" @click="end">{{ $t('joinTraining.initialize') }}</el-button> <el-button type="danger" size="small" @click="end">{{ $t('joinTraining.initialize') }}</el-button>
</template> </template>