修改录制界面三维驾驶初始车辆显示

This commit is contained in:
sunzhenyu 2020-07-09 16:39:58 +08:00
parent df3b8eebd7
commit f424184363
3 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# just a flag
NODE_ENV = 'development'
VUE_APP_PRO = 'local'
# VUE_APP_PRO = 'local'
# base api
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'

View File

@ -153,7 +153,7 @@ export function JLmapDriving(dom,data,mapId,storemod,translation,routegroup,proj
getPublishMapDetail(mapId).then(data => {
let mapnetdata = data.data;
getPublish3dMapDetail(mapId).then(netdata => {
console.log(netdata);
// console.log(netdata);
let assetsdata = JSON.parse(netdata.data.sections);
if(assetsdata.link){
scope.datatype = "old";

View File

@ -2,7 +2,7 @@
<div class="drivepane">
<div style="position: absolute;right:50%;top:50%;z-index:10;background: #EBEBEB;" v-show="tuoguanbutton" @click="tuoguan">{{ tuoguanbuttonmsg }}</div>
<div style="position: absolute;right:50%;top:60%;z-index:10;background: #EBEBEB;">
<el-select v-model="value" placeholder="请选择列车" @change="currentsel" @visible-change="clickselect" >
<el-select v-model="value" :placeholder="initMsg" @change="currentsel" @visible-change="clickselect" >
<el-option
v-for="item in options"
:key="item.value"
@ -76,6 +76,7 @@ import axios from 'axios';
data() {
return {
options: [],
initMsg:"请选择列车",
value: '',
teststomp:null,
topid:null,
@ -172,7 +173,7 @@ import axios from 'axios';
getSimulationTrainlistNew(this.group).then(netdata => {
this.options = [];
this.trainlist = netdata.data;
console.log(netdata);
for(let i=0;i<netdata.data.length;i++){
let option= {
value: netdata.data[i].groupNumber,
@ -180,11 +181,15 @@ import axios from 'axios';
name:null,
}
option.disabled = false;
if(netdata.data[i].name){
option.label = netdata.data[i].name+"正在驾驶"+netdata.data[i].groupNumber;
this.initMsg = netdata.data[i].name+"正在驾驶"+netdata.data[i].groupNumber;
this.groupNumber = netdata.data[i].groupNumber;
option.disabled = true;
}
if(netdata.data[i].driverId){
if(netdata.data[i].driverId == this.userId){