修改三维驾驶操作

This commit is contained in:
sunzhenyu 2021-09-24 16:29:12 +08:00
parent 8e34f93a9d
commit 5d01ca21b4
3 changed files with 25 additions and 5 deletions

View File

@ -236,6 +236,9 @@
oldDoorSelection:"",
doorModePut:true,
doorSelectionPut:true,
atoLightTimer:'',
atoLights:false,
}
},
watch: {
@ -261,6 +264,7 @@
mounted() {
window.updatabuttonlight = this.updatabuttonlight;
window.updatedoorlight = this.updatedoorlight;
},
beforeDestroy() {
@ -542,8 +546,11 @@
let data = {
groupNumber:this.groupNum,
};
trainSimulationAto(this.group,data).then(netdata => {
// console.log(netdata);
// clearInterval(this.atoLightTimer);
// this.atobuttonimg = this.greenimg;
});
},
modechange: function (type){
@ -603,13 +610,29 @@
}
if(typeof(data.atoOn) != "undefined"){
// console.log(data.atoOn);
// this.atoOn = data.atoOn;
this.atoOn = data.atoOn;
if(data.atoOn){
clearInterval(this.atoLightTimer);
this.atobuttonimg = this.greenlimg;
}else{
this.atobuttonimg = this.greenimg;
}
}
if(data.atoCanOpen){
if(data.atoCanOpen == true && this.atoOn != true){
this.atoLightTimer = setInterval(()=>{
if(this.atoLights == false){
this.atoLights = true;
this.atobuttonimg = this.greenlimg;
}else{
this.atoLights = false;
this.atobuttonimg = this.greenimg;
}
}, 1000);
}
}
if(typeof(data.circuitEB) != "undefined"){
if(data.circuitEB){

View File

@ -19,7 +19,7 @@ export function mmiimage() {
this.m1['am'] = JL3D_LOCAL_STATIC+'/jl3d/mmi/m1-am.png';
this.m1['cm'] = JL3D_LOCAL_STATIC+'/jl3d/mmi/m1-cm.png';
this.m1['rm'] = JL3D_LOCAL_STATIC+'/jl3d/mmi/m1-rm.png';
this.m1['sm'] = JL3D_LOCAL_STATIC+'/jl3d/mmi/ m1-sm.png';
this.m1['sm'] = JL3D_LOCAL_STATIC+'/jl3d/mmi/m1-sm.png';
this.m2 = [];

View File

@ -283,14 +283,11 @@ export default {
if(newdata.preselectionMode){
this.updateBfhm(newdata.preselectionMode);
}
console.log(newdata);
if(newdata.message){
this.jl3dUpdateMmiMsg("",newdata.message);
}
},
updatemmistate(aaa){
},