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

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

View File

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

View File

@ -33,7 +33,7 @@
<template v-if="!dataError"> <!-- 地图错误判断 -->
<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 type="danger" size="small" @click="end">{{ $t('joinTraining.initialize') }}</el-button>
</template>