From dd3de164d06e69db9b9725e95344cc055c85f9c1 Mon Sep 17 00:00:00 2001 From: sunleking Date: Fri, 13 Nov 2020 21:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=89=E7=BB=B4=E5=AE=A2?= =?UTF-8?q?=E6=B5=81=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3dtrafficplan/loader/loader.js | 6 +++--- src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue | 2 +- src/views/jlmap3d/trafficplan/jl3dtraffictrain.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jlmap3d/jl3dtrafficplan/loader/loader.js b/src/jlmap3d/jl3dtrafficplan/loader/loader.js index bf238562c..1fe0a8933 100644 --- a/src/jlmap3d/jl3dtrafficplan/loader/loader.js +++ b/src/jlmap3d/jl3dtrafficplan/loader/loader.js @@ -1,8 +1,10 @@ import { BASE_ASSET_API } from '@/api/jlmap3d/assets3d.js'; +import store from '@/store/index_APP_TARGET'; //模型管理器 let mode = "0"; export function ModelManager(){ let scope = this; + this.man1 = { code:null, locateType:"01", @@ -100,6 +102,7 @@ export function ModelManager(){ Promise.all(initlist).then((result) => { console.log("success"); + store.dispatch('app/animationsClose'); resolve("success"); //['成功了', 'success'] }).catch((error) => { //console.log(error); @@ -113,11 +116,8 @@ export function ModelManager(){ function fbxpromise(asset,mixers,model){ return new Promise(function(resolve, reject){ var loader = new THREE.FBXLoader(); - if( mode == "2"){ - loader.load( asset.url, function ( object ) { - model.mesh = object; resolve(asset.deviceType); diff --git a/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue b/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue index 68e742aae..188281112 100644 --- a/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue +++ b/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue @@ -57,7 +57,7 @@ export default { group:'', mapId:'', lineCode:'', - loadingProjectList: ['login', 'design', 'xty', 'designxty', 'gzb', 'designxty', 'xadt', 'designxadt', 'drts', 'designdrts'] + loadingProjectList: ['login', 'design', 'xty', 'designxty', 'gzb', 'designxty', 'xadt', 'designxadt', 'drts', 'designdrts','bjd'] }; }, computed: { diff --git a/src/views/jlmap3d/trafficplan/jl3dtraffictrain.vue b/src/views/jlmap3d/trafficplan/jl3dtraffictrain.vue index 2b87b1a21..b302f8229 100644 --- a/src/views/jlmap3d/trafficplan/jl3dtraffictrain.vue +++ b/src/views/jlmap3d/trafficplan/jl3dtraffictrain.vue @@ -105,7 +105,7 @@