修改综合演练三维驾驶初始样式

This commit is contained in:
sunzhenyu 2020-12-10 11:29:12 +08:00
parent ed5f1dd7eb
commit dae99ee4ad
6 changed files with 32 additions and 11 deletions

View File

@ -93,18 +93,21 @@ export function StationStandList() {
let jlmapstationdata = jlmapdata.stationList;
let jlmapstanddata = jlmapdata.stationStandList;
// jlmapstationdata.splice(0,1);
console.log(standsdata);
console.log(jlmapstationdata);
for(let i=0;i<jlmapstationdata.length;i++){
if(jlmapstationdata[i].visible == false){
if(jlmapstationdata[i].visible == false || jlmapstationdata[i].subheadDisplay == false){
jlmapstationdata.splice(i,1);
i--;
}else{
standsdata[i].code = jlmapstationdata[i].code;
standsdata[i].name = jlmapstationdata[i].name;
}
// console.log(jlmapstationdata[i].subheadDisplay);
}
console.log(standsdata);
// console.log(jlmapstationdata);
// console.log(jlmapstanddata);
console.log(standsdata);
let stations = jlmap3ddata.stationstandlist.list;
let num;
let num2;

View File

@ -129,6 +129,7 @@ import axios from 'axios';
}
window.updateDriverTrust = this.updateDriverTrust;
window.updateDriveValue = this.updateDriveValue;
// this.teststomp = new StompClient();
@ -274,6 +275,12 @@ import axios from 'axios';
}
}
},
updateDriveValue(newvalue){
if(newvalue != this.value){
this.value = newvalue;
}
},
updatetrainlist(){
getSimulationTrainlistNew(this.group).then(netdata => {
this.options = [];

View File

@ -1,6 +1,6 @@
<template>
<div class="jalmap3ddiv">
<div id="drivediv" class="jalmap3ddiv" >
<div class="trainstatus">
{{$t('jlmap3d.trainGroupNumber')}}{{ trainnum }}</br>
@ -71,6 +71,7 @@ export default {
},
data() {
return {
driveIndex:1500,
trainlist: null,
stationlist: null,
msgdata: null,
@ -92,6 +93,7 @@ export default {
dcontrolshow: false,
msgshow:false,
controlmsg:"不能选择其它列车",
};
},
watch: {
@ -181,11 +183,14 @@ export default {
// this.$refs.mmiui.init();
},
methods: {
show: function (skinCode,group) {
show: function (skinCode,group,zindex) {
// console.log("show");
// console.log(skinCode);
// console.log(this.jlmap3d);
if(zindex){
this.driveIndex = zindex;
document.getElementById("drivediv").style.zIndex = zindex;
}
if (this.jlmap3d == null) {
this.init(skinCode,group);
} else {
@ -287,9 +292,14 @@ export default {
updatestatus(newdata){
if(newdata.groupNumber){
this.trainnum = newdata.groupNumber;
updateDriveValue(this.trainnum);
}
updatedoorlight(newdata);
this.$refs.mmiui.updatetrainstatus(newdata);
if(this.$refs.mmiui){
this.$refs.mmiui.updatetrainstatus(newdata);
}
updatabuttonlight(newdata);
},
warningmsg(nowmsg){
@ -354,7 +364,7 @@ export default {
}
.trainstatus{
left:0;
left:48%;
top:0;
width:fit-content;
width:-webkit-fit-content;

View File

@ -1071,7 +1071,7 @@ export default {
width: 503px;
transform: translateX(-503px);
transition: all 0.4s;
z-index: 9;
z-index: 35;
&.active{
transform: translateX(0px);
}

View File

@ -393,6 +393,7 @@ export default {
this.$store.dispatch('training/setPrdType', '04');
this.$store.dispatch('training/setRoles', 'DRIVER');
this.jl3dmaintainershow = false;
this.hidepanel();
break;
case 'MAINTAINER':
this.$store.dispatch('training/setPrdType', '');
@ -484,7 +485,7 @@ export default {
if (this.$store.state.training.prdType == '04') {
this.panelShow = false;
this.drivingShow = true;
this.$refs.Jl3dDrive.show(this.mapId, this.group);
this.$refs.Jl3dDrive.show(this.mapId, this.group,34);
} else {
const routeData = this.$router.resolve({
path:'/jlmap3d/sandbox',

View File

@ -244,7 +244,7 @@ export default {
</script>
<style>
.schema {
z-index: 34;
z-index: 8;
display: inline;
position: absolute;
right: 5px;