From b70feae1832388cd893ac005f87af3662962455a Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Wed, 17 Jun 2020 18:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=89=E7=BB=B4=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E8=B6=85=E9=80=9F=E6=8A=A5=E8=AD=A6=E5=92=8C=E7=89=B5?= =?UTF-8?q?=E5=BC=95=E7=8A=B6=E6=80=81mmi=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=89=A7=E6=9C=AC=E8=AE=BE=E8=AE=A1=E4=B8=AD?= =?UTF-8?q?=E4=B8=89=E7=BB=B4=E9=A9=BE=E9=A9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jlmap3d/load3ddata.js | 9 ++ src/jlmap3d/edit/connect/newgetmodels.js | 6 +- .../jlmap3d/drive/drivecontrol/centerpane.vue | 37 ++++--- .../drive/drivecontrol/toprightpane.vue | 9 +- src/views/jlmap3d/drive/jl3ddrive.vue | 29 ++++- src/views/jlmap3d/drive/sceneview/mmiview.vue | 101 ++++++++++++------ src/views/newMap/displayNew/index.vue | 9 +- src/views/newMap/displayNew/menuScript.vue | 4 + .../newMap/jointTrainingNew/menuDemon.vue | 1 + 9 files changed, 145 insertions(+), 60 deletions(-) diff --git a/src/api/jlmap3d/load3ddata.js b/src/api/jlmap3d/load3ddata.js index d45385004..d1b4f262b 100644 --- a/src/api/jlmap3d/load3ddata.js +++ b/src/api/jlmap3d/load3ddata.js @@ -73,3 +73,12 @@ export function getPublish3dMapDetail(id) { }); return datad.then(); } + +/** 更新地图3d数据*/ +export function tuoguan3ddrive(group,on,data) { + return request({ + url: `/api/scriptSimulation/${group}/${on}/trust`, + method: 'put', + data: data + }); +} diff --git a/src/jlmap3d/edit/connect/newgetmodels.js b/src/jlmap3d/edit/connect/newgetmodels.js index 70501918e..882699430 100644 --- a/src/jlmap3d/edit/connect/newgetmodels.js +++ b/src/jlmap3d/edit/connect/newgetmodels.js @@ -102,13 +102,13 @@ export function getmodels(data) { deviceType:"suidaobg", type:"nbsuidao", picUrl:"", - assetUrl:"../../static/model/suidao/nbsuidao.FBX" + assetUrl:"../../static/model/suidao/suidao.FBX" } assets.push(backgroundmodel); models.assets = assets; - models.stationtexture = "nb1"; - models.istexture = true; + models.stationtexture = "fz1"; + models.istexture = false; console.log(models); postmap.assets = JSON.stringify(models); //link轨道 diff --git a/src/views/jlmap3d/drive/drivecontrol/centerpane.vue b/src/views/jlmap3d/drive/drivecontrol/centerpane.vue index a26a30e31..dfff507c2 100644 --- a/src/views/jlmap3d/drive/drivecontrol/centerpane.vue +++ b/src/views/jlmap3d/drive/drivecontrol/centerpane.vue @@ -85,23 +85,23 @@ } }, watch: { - move:function(val,oldval) { - if(val != oldval){ - let command ={ - code:this.groupNum, - operation:"602", - type:"07", - param:val - }; - // if(this.drawWay == 'true'){ - throttle(trainSimulationForce(this.group,this.groupNum,val),200,true); - // - // }else{ - // throttle(sendSimulationCommand(this.group,command),200,true); - // } - - } - }, + // move:function(val,oldval) { + // if(val != oldval){ + // let command ={ + // code:this.groupNum, + // operation:"602", + // type:"07", + // param:val + // }; + // // if(this.drawWay == 'true'){ + // throttle(trainSimulationForce(this.group,this.groupNum,val),200,true); + // // + // // }else{ + // // throttle(sendSimulationCommand(this.group,command),200,true); + // // } + // + // } + // }, touchstate:function(val,oldval){ if(val != oldval){ // if(this.userRole == "DRIVER"){ @@ -234,6 +234,9 @@ } } + + throttle(trainSimulationForce(this.group,this.groupNum, this.move),200,true); + updatemmic1(this.move); }, speedend: function(event){ document.getElementById("div1").onmousemove = null; diff --git a/src/views/jlmap3d/drive/drivecontrol/toprightpane.vue b/src/views/jlmap3d/drive/drivecontrol/toprightpane.vue index bdef4a581..699da4c00 100644 --- a/src/views/jlmap3d/drive/drivecontrol/toprightpane.vue +++ b/src/views/jlmap3d/drive/drivecontrol/toprightpane.vue @@ -119,7 +119,7 @@
{{ $t('jlmap3d.closeRightDoor') }}
-
+
{{ $t('jlmap3d.emergencyBraking') }}
@@ -140,7 +140,7 @@