修改三维行车初始绑定列车

This commit is contained in:
sunzhenyu 2020-07-31 16:42:25 +08:00
parent 764a6139ea
commit 44710199b7

View File

@ -218,21 +218,22 @@ import axios from 'axios';
this.selVal = netdata.data[i].groupNumber; this.selVal = netdata.data[i].groupNumber;
this.groupnum = netdata.data[i].groupNumber; this.groupnum = netdata.data[i].groupNumber;
bindSimulationTrain(this.group,this.selVal).then(netdata => { this.dialogVisible = true;
for(let i=0;i<this.trainlist.length;i++){
this.dialogVisible = true; if(this.trainlist[i].groupNumber == this.groupnum){
for(let i=0;i<this.trainlist.length;i++){ // console.log(this.trainlist[i].gear);
if(this.trainlist[i].groupNumber == this.groupnum){ // this.groupnum
// console.log(this.trainlist[i].gear); this.$refs.centercontrol.centerstate(this.trainlist[i].gear);
// this.groupnum
this.$refs.centercontrol.centerstate(this.trainlist[i].gear);
}
} }
}
this.value = this.groupnum; this.value = this.groupnum;
this.nowdrive = this.groupnum; this.nowdrive = this.groupnum;
}).catch(error => { // bindSimulationTrain(this.group,this.selVal).then(netdata => {
}); //
//
// }).catch(error => {
// });
} }
} }