2020-08-13 15:55:25 +08:00
|
|
|
<template>
|
|
|
|
|
|
|
|
<div class="jl3dmap3dMaintainer">
|
|
|
|
<div class="jl3dmap3dMaintainerSelect">
|
2020-09-23 16:20:50 +08:00
|
|
|
<div class="maintainerSelectButton selectButtonImg1" style="left:10%" @mouseenter="onMouseOverNormal"></div>
|
|
|
|
<div class="maintainerSelectButton selectButtonImg2" style="left:10%;" v-show="normalShow"@mouseleave="onMouseOutNormal" @click="initNormal"></div>
|
|
|
|
|
|
|
|
<div class="maintainerSelectButton selectButtonImg3" style="left:40%;" @mouseenter="onMouseOverVr"></div>
|
|
|
|
<div class="maintainerSelectButton selectButtonImg4" style="left:40%;" v-show="vrShow" @mouseleave="onMouseOutVr" @click="initVR"></div>
|
|
|
|
|
|
|
|
<div class="maintainerSelectButton selectButtonImg5" style="left:70%;" @mouseenter="onMouseOverRescue"></div>
|
|
|
|
<div class="maintainerSelectButton selectButtonImg6" style="left:70%;" v-show="trainRescueShow" @mouseleave="onMouseOutRescue" @click="initTrainRescueVr"></div>
|
|
|
|
|
|
|
|
|
2020-08-13 15:55:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import { ProjectIcon } from '@/scripts/ProjectConfig';
|
|
|
|
|
|
|
|
import bgPsdImg from '@/assets/bg_psd.png';
|
|
|
|
// import Jlmap3dMsg from '@/views/jlmap3d/show/msg';
|
|
|
|
|
|
|
|
var train;
|
|
|
|
export default {
|
|
|
|
name: 'Jl3dMaintainerSelect',
|
|
|
|
components: {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
normalShow:false,
|
|
|
|
vrShow:false,
|
2020-09-23 16:20:50 +08:00
|
|
|
trainRescueShow:false,
|
2020-08-13 15:55:25 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
beforeDestroy() {
|
|
|
|
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
// document.querySelector("link[rel*='icon']").href = loginInfo[this.$route.query.project].linkIcon || ProjectIcon[this.$route.query.project];
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.getParams();
|
|
|
|
|
|
|
|
// console.log("");
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getParams:function() {
|
|
|
|
var routerParams = this.$route.query.group;
|
|
|
|
this.mapid = this.$route.query.mapId;
|
|
|
|
this.group = this.$route.query.group;
|
|
|
|
this.token = this.$route.query.token;
|
|
|
|
},
|
|
|
|
initNormal: function () {
|
|
|
|
const routeData = this.$router.resolve({
|
|
|
|
path:'/jlmap3d/maintainer',
|
|
|
|
query:{
|
|
|
|
mapid:this.mapid,
|
|
|
|
group:this.group,
|
|
|
|
token:this.token,
|
|
|
|
noPreLogout: true
|
|
|
|
}
|
|
|
|
});
|
|
|
|
window.open(routeData.href);
|
|
|
|
},
|
|
|
|
initVR:function (skinCode, group) {
|
|
|
|
const routeData = this.$router.resolve({
|
|
|
|
path:'/jlmap3d/maintainervr',
|
|
|
|
query:{
|
|
|
|
mapid:this.mapid,
|
|
|
|
group:this.group,
|
|
|
|
token:this.token,
|
|
|
|
noPreLogout: true
|
|
|
|
}
|
|
|
|
});
|
|
|
|
window.open(routeData.href);
|
|
|
|
},
|
2020-09-23 16:20:50 +08:00
|
|
|
initTrainRescueVr:function (skinCode, group) {
|
|
|
|
const routeData = this.$router.resolve({
|
|
|
|
path:'/jlmap3d/trainrescuevr',
|
|
|
|
query:{
|
|
|
|
mapid:this.mapid,
|
|
|
|
group:this.group,
|
|
|
|
token:this.token,
|
|
|
|
noPreLogout: true
|
|
|
|
}
|
|
|
|
});
|
|
|
|
window.open(routeData.href);
|
|
|
|
},
|
2020-08-13 15:55:25 +08:00
|
|
|
onMouseOverNormal() {
|
|
|
|
this.normalShow=true;
|
|
|
|
},
|
|
|
|
onMouseOutNormal() {
|
|
|
|
this.normalShow=false;
|
|
|
|
},
|
|
|
|
onMouseOverVr() {
|
|
|
|
this.vrShow=true;
|
|
|
|
},
|
|
|
|
onMouseOutVr() {
|
|
|
|
this.vrShow=false;
|
|
|
|
},
|
2020-09-23 16:20:50 +08:00
|
|
|
onMouseOverRescue() {
|
|
|
|
this.trainRescueShow=true;
|
|
|
|
},
|
|
|
|
onMouseOutRescue() {
|
|
|
|
this.trainRescueShow=false;
|
|
|
|
},
|
2020-08-13 15:55:25 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
|
@import "src/styles/mixin.scss";
|
|
|
|
|
|
|
|
|
|
|
|
.jl3dmap3dMaintainer {
|
|
|
|
position:absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 35;
|
|
|
|
}
|
|
|
|
|
|
|
|
.jl3dmap3dMaintainerSelect{
|
|
|
|
position:absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 350;
|
|
|
|
top:0;
|
|
|
|
left:0;
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/background/other.jpg");
|
2020-08-13 15:55:25 +08:00
|
|
|
// background-repeat:no-repeat;
|
|
|
|
z-index: 350;
|
|
|
|
background-size:100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.maintainerSelectButton{
|
|
|
|
position:absolute;
|
|
|
|
width: 20%;
|
|
|
|
height: 55%;
|
|
|
|
position:absolute;
|
|
|
|
top:22.5%;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 20px;
|
|
|
|
line-height:100px;
|
2020-08-13 16:50:54 +08:00
|
|
|
cursor:pointer;
|
2020-08-13 15:55:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.selectButtonImg1{
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/vrtest/maintainer.png");
|
2020-08-13 15:55:25 +08:00
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-size:100% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.selectButtonImg2{
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/vrtest/zc.png");
|
2020-08-13 15:55:25 +08:00
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-size:100% 100%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.selectButtonImg3{
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/vrtest/maintainervr.png");
|
2020-08-13 15:55:25 +08:00
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-size:100% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.selectButtonImg4{
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/vrtest/vr.png");
|
2020-08-13 15:55:25 +08:00
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-size:100% 100%;
|
|
|
|
}
|
|
|
|
|
2020-09-23 16:20:50 +08:00
|
|
|
.selectButtonImg5{
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/vrtest/trainrescue.png");
|
2020-09-23 16:20:50 +08:00
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-size:100% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.selectButtonImg6{
|
2020-10-09 10:02:16 +08:00
|
|
|
background-image:url("/cbtc/static/vrtest/trvr.png");
|
2020-09-23 16:20:50 +08:00
|
|
|
background-repeat:no-repeat;
|
|
|
|
background-size:100% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-13 15:55:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|