diff --git a/src/i18n/langs/zh/display.js b/src/i18n/langs/zh/display.js index 72e5b6de4..8afa2346c 100644 --- a/src/i18n/langs/zh/display.js +++ b/src/i18n/langs/zh/display.js @@ -56,7 +56,6 @@ export default { threeDimensionalStation: '三维车站', passengerflow: 'cctv视图', trafficplantext:'客流规划', - traffictraintext:'列车客乘', maintainer: '设备故障视图', deviceView: '设备视图', taskOperateSuccess: '任务操作成功', diff --git a/src/jlmap3d/jl3dtrafficplan/connect/stationconnect.js b/src/jlmap3d/jl3dtrafficplan/connect/stationconnect.js index b6306b47b..0b9ed9b3b 100644 --- a/src/jlmap3d/jl3dtrafficplan/connect/stationconnect.js +++ b/src/jlmap3d/jl3dtrafficplan/connect/stationconnect.js @@ -4,7 +4,7 @@ import { getToken } from '@/utils/auth'; import store from '@/store/index_APP_TARGET'; // 定于仿真socket接口 -export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passerStation,passerAi,passerHuman) { +export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passerStation,passerAi,jl3d) { const scope = this; this.teststomp = new StompClient(); @@ -30,8 +30,11 @@ export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passe function callback(Response) { const data = JSON.parse(Response.body); + + if(data.type == "DeviceCtrl_3D"){ if(data.body.type == "PSD"){ + jl3d.changespeed(30); if(data.body.code == passerStation.nowStation.toppsd){ if(data.body.open == 0){ passerAi.passerout("top","end"); @@ -50,23 +53,26 @@ export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passe } if(data.body.code == passerStation.nowStation.downpsd){ if(data.body.open == 0){ - passerAi.passerout("down","end"); + deviceaction.down.action.reset(); deviceaction.down.action.time = deviceaction.down.action._clip.duration; deviceaction.down.action.timeScale = -1; deviceaction.down.action.play(); - + passerAi.passerout("down","end"); }else{ - passerAi.passerout("down","start"); + deviceaction.down.action.reset(); deviceaction.down.action.time = 0; deviceaction.down.action.timeScale = 1; deviceaction.down.action.play(); + passerAi.passerout("down","start"); } } } + if(data.body.type == "TRAIN_DOOR"){ + if(toptrain.nowcode == data.body.code){ if(data.body.open == "0"){ @@ -129,6 +135,7 @@ export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passe let actions; function opentraindoor(train,doorcode,direct){ + // console.log(train); if(direct == "top"){ if(doorcode == "1"){ actions = train.action.down; diff --git a/src/jlmap3d/jl3dtrafficplan/connect/trainconnect.js b/src/jlmap3d/jl3dtrafficplan/connect/trainconnect.js index 69b7b267c..2409de364 100644 --- a/src/jlmap3d/jl3dtrafficplan/connect/trainconnect.js +++ b/src/jlmap3d/jl3dtrafficplan/connect/trainconnect.js @@ -29,7 +29,7 @@ export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passe // 仿真socket接口回调函数 function callback(Response) { const data = JSON.parse(Response.body); - + // console.log(data); if(data.type == "TrainRun_3D"){ trafficTrain.trainList = data.body; // console.log(trafficTrain.nowTrainCode); @@ -38,8 +38,10 @@ export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passe if(data.type == "DeviceCtrl_3D"){ if(data.body.type == "TRAIN_DOOR"){ - if(toptrain.nowcode == data.body.code){ + if(toptrain.nowcode == data.body.code){ + console.log(data.body); + console.log(toptrain.nowcode); if(data.body.open == "0"){ closetraindoor(toptrain,data.body.doorCode,"top"); @@ -62,6 +64,7 @@ export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passe let actions; function opentraindoor(train,doorcode,direct){ + if(direct == "top"){ if(doorcode == "1"){ actions = train.action.down; @@ -79,7 +82,7 @@ export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passe actions = train.action.down; } } - + console.log(actions); for(let an=actions.length-1;an>=0;an--){ actions[an].reset(); actions[an].time = 0; @@ -105,7 +108,7 @@ export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passe actions = train.action.down; } } - + console.log(actions); for(let an=actions.length-1;an>=0;an--){ actions[an].reset(); actions[an].time = actions[an]._clip.duration; diff --git a/src/jlmap3d/jl3dtrafficplan/jl3dtrafficplan.js b/src/jlmap3d/jl3dtrafficplan/jl3dtrafficplan.js index c63b6d250..e2f42d3c8 100644 --- a/src/jlmap3d/jl3dtrafficplan/jl3dtrafficplan.js +++ b/src/jlmap3d/jl3dtrafficplan/jl3dtrafficplan.js @@ -54,7 +54,7 @@ let path; //设备动画action组 let deviceaction = []; //控制帧率的webworker线程 -let passerWebWork = new Worker(JL3D_LOCAL_STATIC+"/workertest/passsimulation/station.js"); +let passerWebWork = new Worker(JL3D_LOCAL_STATIC+"/workertest/trafficplan/trafficstation.js"); //老版本临时ai控制 let olddataai = false; @@ -73,6 +73,11 @@ export function Jl3dTrafficPlan(dom,skinCode,routegroup,viewMap) { this.mixers = []; this.showmodel = null; + this.humanWaitIn = []; + this.humanWaitOut = []; + this.humanInSpeed = 0; + this.humanOutSpeed = 0; + //定义相机 camerass = new THREE.PerspectiveCamera(70, dom.offsetWidth / dom.offsetHeight, 0.01, 1000); camerass.position.set(0, 80, 40); @@ -127,10 +132,18 @@ export function Jl3dTrafficPlan(dom,skinCode,routegroup,viewMap) { let passerCheckDoor = new PasserCheckDoor(); let passerTrain = new PasserTrain(); + // document.addEventListener( "mousedown", onselect, false ); + getPublish3dMapDetail(skinCode).then(netdata3d => { passerStation.loadMaterial(netdata3d); - this.modelmanager.loadpromise(JSON.parse(netdata3d.data.assets).cctvAssetList, scope.mixers).then(function (data) { - + this.modelmanager.loadpromise(Staticmodel, scope.mixers,"2").then(function (data) { + // console.log(scope.modelmanager.station.mesh.getObjectByName("top")); + // let testtop = scope.modelmanager.station.mesh.getObjectByName("down"); + // for(let i=0;i=0;i--){ if(mixers[i]._actions[0].isRunning()){ + // console.log(mixers[i]); mixers[i].update( delta ); } } - for(let i=humanlist.children.length-1;i>=0;i--){ - if(humanlist.children[i].mixer._actions[0].isRunning()){ - humanlist.children[i].mixer.update( delta ); - } - } + // for(let i=humanlist.children.length-1;i>=0;i--){ + // if(humanlist.children[i].mixer._actions[0].isRunning()){ + // humanlist.children[i].mixer.update( delta ); + // } + // } } } , 100); @@ -240,13 +243,7 @@ export function Jl3dTrafficTrain(dom,skinCode,routegroup,viewMap) { // console.log(humanlist.children.length); if(humanlist.children.length < 80){ let direct = Math.floor(Math.random()*(3-1+1))+1; - //1--top - //2-- down - if(direct == 1){ - passerHuman.newHumanCreate(humanlist,passerZone.getzoneposition("enter1"),0); - }else{ - passerHuman.newHumanCreate(humanlist,passerZone.getzoneposition("enter2"),0); - } + if(passerAi.toppasseron){ for(let i=0,leni=passerZone.list["standtop"].doorpoints.length;i=1){ + outStationPassers.children[i].progress = 1; + outStationPassers.children[i].action.stop(); + outStationPassers.children[i].status = 0; + + if(outStationPassers.children[i].stage == 8){ + passerHuman.uncache(outStationPassers.children[i]); + outStationPassers.remove(outStationPassers.children[i]); + i--; + }else if(outStationPassers.children[i].stage == 7){ + outStationPassers.children[i].stage = 8; + } + else if(outStationPassers.children[i].stage == 5){ + + outStationPassers.children[i].stage = 7; + + } + }else{ + //根据动画进度获取动画轨迹上点 + // console.log(i); + // console.log(humanlist.children[i].runrail); + // console.log(humanlist.children[i].progress); + let point = outStationPassers.children[i].runrail.getPointAt(outStationPassers.children[i].progress); + + //更新模型坐标 + outStationPassers.children[i].position.x = point.x; + outStationPassers.children[i].position.y = point.y; + outStationPassers.children[i].position.z = point.z; + if((outStationPassers.children[i].progress+0.001)<1){ + let tangent = outStationPassers.children[i].runrail.getPointAt(outStationPassers.children[i].progress+0.001); + outStationPassers.children[i].lookAt(new THREE.Vector3(tangent.x,outStationPassers.children[i].position.y,tangent.z)); + } + + outStationPassers.children[i].progress += outStationPassers.children[i].speed; + point = null; + + } + } + } + + for(let i=0;i=1){ + topWaitPassers.children[i].progress = 1; + topWaitPassers.children[i].action.stop(); + topWaitPassers.children[i].status = 0; + + if(topWaitPassers.children[i].stage == 4){ + passerHuman.uncache(topWaitPassers.children[i]); + topWaitPassers.remove(topWaitPassers.children[i]); + i--; + } + }else{ + //根据动画进度获取动画轨迹上点 + // console.log(i); + // console.log(humanlist.children[i].runrail); + // console.log(humanlist.children[i].progress); + let point = topWaitPassers.children[i].runrail.getPointAt(topWaitPassers.children[i].progress); + + //更新模型坐标 + topWaitPassers.children[i].position.x = point.x; + topWaitPassers.children[i].position.y = point.y; + topWaitPassers.children[i].position.z = point.z; + if((topWaitPassers.children[i].progress+0.001)<1){ + let tangent = topWaitPassers.children[i].runrail.getPointAt(topWaitPassers.children[i].progress+0.001); + topWaitPassers.children[i].lookAt(new THREE.Vector3(tangent.x,topWaitPassers.children[i].position.y,tangent.z)); + } + + topWaitPassers.children[i].progress += topWaitPassers.children[i].speed; + point = null; + + } + } + } + + for(let i=0;i=1){ + downWaitPassers.children[i].progress = 1; + downWaitPassers.children[i].action.stop(); + downWaitPassers.children[i].status = 0; + if(downWaitPassers.children[i].stage == 4){ + passerHuman.uncache(downWaitPassers.children[i]); + downWaitPassers.remove(downWaitPassers.children[i]); + i--; + } + }else{ + //根据动画进度获取动画轨迹上点 + // console.log(i); + // console.log(humanlist.children[i].runrail); + // console.log(humanlist.children[i].progress); + let point = downWaitPassers.children[i].runrail.getPointAt(downWaitPassers.children[i].progress); + + //更新模型坐标 + downWaitPassers.children[i].position.x = point.x; + downWaitPassers.children[i].position.y = point.y; + downWaitPassers.children[i].position.z = point.z; + if((downWaitPassers.children[i].progress+0.001)<1){ + let tangent = downWaitPassers.children[i].runrail.getPointAt(downWaitPassers.children[i].progress+0.001); + downWaitPassers.children[i].lookAt(new THREE.Vector3(tangent.x,downWaitPassers.children[i].position.y,tangent.z)); + } + + downWaitPassers.children[i].progress += downWaitPassers.children[i].speed; + point = null; + + } + } + } + + for(let i=0;i=1){ + //更新模型坐标 + if(humanlist.children[i].status == 1){ + + + humanlist.children[i].progress = 1; + humanlist.children[i].action.stop(); + humanlist.children[i].status = 0; + if(humanlist.children[i].stage == 3){ + + humanlist.children[i].stage = 4; + if(humanlist.children[i].direct == "top"){ + topWaitPassers.add(humanlist.children[i]); + i--; + }else if(humanlist.children[i].direct == "down"){ + downWaitPassers.add(humanlist.children[i]); + i--; + } + + }else if(humanlist.children[i].stage == 2){ + humanlist.children[i].stage = 3; + + }else if(humanlist.children[i].stage == 1){ + + + humanlist.children[i].stage = 2; + + }else if(humanlist.children[i].stage == 0){ + // // console.log(humans[i].doors); + // zhajiin[humanlist.children[i].doors].waiting = 0; + humanlist.children[i].stage = 1; + } + + } + + }else{ + //根据动画进度获取动画轨迹上点 + // console.log(i); + // console.log(humanlist.children[i].runrail); + // console.log(humanlist.children[i].progress); + let point = humanlist.children[i].runrail.getPointAt(humanlist.children[i].progress); + + //更新模型坐标 + humanlist.children[i].position.x = point.x; + humanlist.children[i].position.y = point.y; + humanlist.children[i].position.z = point.z; + if((humanlist.children[i].progress+0.001)<1){ + let tangent = humanlist.children[i].runrail.getPointAt(humanlist.children[i].progress+0.001); + humanlist.children[i].lookAt(new THREE.Vector3(tangent.x,humanlist.children[i].position.y,tangent.z)); + } + + humanlist.children[i].progress += humanlist.children[i].speed; + point = null; + + } + } + } + } + + this.resetPasser = function(humanlist){ + let passerlength = humanlist.children.length; + for(let i=0;i y ? (x > c ? x : c) : (y > c ? y : c); + // var min = x < y ? (x < c ? x : c) : (y < c ? y : c); + + function getnum(num,pnum){ + let re = []; + let base = Math.floor(num/pnum); + let reset = num%pnum; + for(let i=0;i Math.round(Math.random()*(max-min))+min; + + this.getDoorRandomPos = function(trunkNum,direct){ + let newPos = null; + let doorNum = rand(0,2); + + if(direct == "1"){ + newPos = scope.trunk[trunkNum].leftdoor[doorNum]; + }else if(direct == "2"){ + newPos = scope.trunk[trunkNum].rightdoor[doorNum]; + } + return newPos; + } + + this.getTrunkRandomPos = function(index){ + let newPos = new THREE.Vector3( + scope.trunk[index].position.x+RandomNum(-11,11), + 1.22, + scope.trunk[index].position.z+RandomNum(-1.28,1.28)); + + return newPos; + } + + function RandomNum(Min, Max) { + var Range = Max - Min; + var Rand = Math.random(); + var num = Min + Rand * Range; //四舍五入 + return num; + } +} diff --git a/src/jlmap3d/jl3dtrafficplan/model/zonemanager.js b/src/jlmap3d/jl3dtrafficplan/model/zonemanager.js index 5eaa49901..912057e35 100644 --- a/src/jlmap3d/jl3dtrafficplan/model/zonemanager.js +++ b/src/jlmap3d/jl3dtrafficplan/model/zonemanager.js @@ -58,31 +58,49 @@ let standtop = { stage : "3", randompoint : new THREE.Vector3(-64,1.77,0.38), doorpoints:[ - new THREE.Vector3(-62.84,1.77,-4.38), - new THREE.Vector3(-58.11,1.77,-4.38), - new THREE.Vector3(-53.47,1.77,-4.38), - new THREE.Vector3(-45.45,1.77,-4.38), - new THREE.Vector3(-41.1,1.77,-4.38), - new THREE.Vector3(-36.33,1.77,-4.38), - new THREE.Vector3(-31.5,1.77,-4.38), - new THREE.Vector3(-23.65,1.77,-4.38), - new THREE.Vector3(-18.98,1.77,-4.38), - new THREE.Vector3(-14.46,1.77,-4.38), - new THREE.Vector3(-10,1.77,-4.38), - new THREE.Vector3(-2.2,1.77,-4.38), - new THREE.Vector3(2.49,1.77,-4.38), - new THREE.Vector3(7.17,1.77,-4.38), - new THREE.Vector3(11.8,1.77,-4.38), - new THREE.Vector3(19.41,1.77,-4.38), - new THREE.Vector3(24.09,1.77,-4.38), - new THREE.Vector3(28.72,1.77,-4.38), - new THREE.Vector3(33.46,1.77,-4.38), - new THREE.Vector3(41.24,1.77,-4.38), - new THREE.Vector3(45.82,1.77,-4.38), - new THREE.Vector3(50.69,1.77,-4.38) + new THREE.Vector3(-62.1,1.77,-4.38), + new THREE.Vector3(-57.54,1.77,-4.38), + new THREE.Vector3(-53.1,1.77,-4.38), + new THREE.Vector3(-42.5,1.77,-4.38), + new THREE.Vector3(-37.6,1.77,-4.38), + new THREE.Vector3(-33.6,1.77,-4.38), + new THREE.Vector3(-20.8,1.77,-4.38), + new THREE.Vector3(-16.6,1.77,-4.38), + new THREE.Vector3(-12,1.77,-4.38), + new THREE.Vector3(0.5,1.77,-4.38), + new THREE.Vector3(4.8,1.77,-4.38), + new THREE.Vector3(9.27,1.77,-4.38), + new THREE.Vector3(21.6,1.77,-4.38), + new THREE.Vector3(26.2,1.77,-4.38), + new THREE.Vector3(30.48,1.77,-4.38), + new THREE.Vector3(43.2,1.77,-4.38), + new THREE.Vector3(47.5,1.77,-4.38), + new THREE.Vector3(51.9,1.77,-4.38) ], + // new THREE.Vector3(-62.84,1.77,-4.38), + // new THREE.Vector3(-58.11,1.77,-4.38), + // new THREE.Vector3(-53.47,1.77,-4.38), + // new THREE.Vector3(-45.45,1.77,-4.38), + // new THREE.Vector3(-41.1,1.77,-4.38), + // new THREE.Vector3(-36.33,1.77,-4.38), + // new THREE.Vector3(-31.5,1.77,-4.38), + // new THREE.Vector3(-23.65,1.77,-4.38), + // new THREE.Vector3(-18.98,1.77,-4.38), + // new THREE.Vector3(-14.46,1.77,-4.38), + // new THREE.Vector3(-10,1.77,-4.38), + // new THREE.Vector3(-2.2,1.77,-4.38), + // new THREE.Vector3(2.49,1.77,-4.38), + // new THREE.Vector3(7.17,1.77,-4.38), + // new THREE.Vector3(11.8,1.77,-4.38), + // new THREE.Vector3(19.41,1.77,-4.38), + // new THREE.Vector3(24.09,1.77,-4.38), + // new THREE.Vector3(28.72,1.77,-4.38), + // new THREE.Vector3(33.46,1.77,-4.38), + // new THREE.Vector3(41.24,1.77,-4.38), + // new THREE.Vector3(45.82,1.77,-4.38), + // new THREE.Vector3(50.69,1.77,-4.38) railpoints : [ - new THREE.Vector3(52.1,1.77,-1.8), + new THREE.Vector3(53.1,1.77,-1.8), new THREE.Vector3(-63.5,1.77,-1.8) ] }; @@ -94,31 +112,49 @@ let standdown = { stage : "3", randompoint : new THREE.Vector3(-64,1.77,21), doorpoints:[ - new THREE.Vector3(-62.84,1.77,27), - new THREE.Vector3(-58.11,1.77,27), - new THREE.Vector3(-53.47,1.77,27), - new THREE.Vector3(-45.45,1.77,27), - new THREE.Vector3(-41.1,1.77,27), - new THREE.Vector3(-36.33,1.77,27), - new THREE.Vector3(-31.5,1.77,27), - new THREE.Vector3(-23.65,1.77,27), - new THREE.Vector3(-18.98,1.77,27), - new THREE.Vector3(-14.46,1.77,27), - new THREE.Vector3(-10,1.77,27), - new THREE.Vector3(-2.2,1.77,27), - new THREE.Vector3(2.49,1.77,27), - new THREE.Vector3(7.17,1.77,27), - new THREE.Vector3(11.8,1.77,27), - new THREE.Vector3(19.41,1.77,27), - new THREE.Vector3(24.09,1.77,27), - new THREE.Vector3(28.72,1.77,27), - new THREE.Vector3(33.46,1.77,27), - new THREE.Vector3(41.24,1.77,27), - new THREE.Vector3(45.82,1.77,27), - new THREE.Vector3(50.69,1.77,27) + new THREE.Vector3(-62.1,1.77,27), + new THREE.Vector3(-57.54,1.77,27), + new THREE.Vector3(-53.1,1.77,27), + new THREE.Vector3(-42.5,1.77,27), + new THREE.Vector3(-37.6,1.77,27), + new THREE.Vector3(-33.6,1.77,27), + new THREE.Vector3(-20.8,1.77,27), + new THREE.Vector3(-16.6,1.77,27), + new THREE.Vector3(-12,1.77,27), + new THREE.Vector3(0.5,1.77,27), + new THREE.Vector3(4.8,1.77,27), + new THREE.Vector3(9.27,1.77,27), + new THREE.Vector3(21.6,1.77,27), + new THREE.Vector3(26.2,1.77,27), + new THREE.Vector3(30.48,1.77,27), + new THREE.Vector3(43.2,1.77,27), + new THREE.Vector3(47.5,1.77,27), + new THREE.Vector3(51.9,1.77,27) ], + // new THREE.Vector3(-62.84,1.77,27), + // new THREE.Vector3(-58.11,1.77,27), + // new THREE.Vector3(-53.47,1.77,27), + // new THREE.Vector3(-45.45,1.77,27), + // new THREE.Vector3(-41.1,1.77,27), + // new THREE.Vector3(-36.33,1.77,27), + // new THREE.Vector3(-31.5,1.77,27), + // new THREE.Vector3(-23.65,1.77,27), + // new THREE.Vector3(-18.98,1.77,27), + // new THREE.Vector3(-14.46,1.77,27), + // new THREE.Vector3(-10,1.77,27), + // new THREE.Vector3(-2.2,1.77,27), + // new THREE.Vector3(2.49,1.77,27), + // new THREE.Vector3(7.17,1.77,27), + // new THREE.Vector3(11.8,1.77,27), + // new THREE.Vector3(19.41,1.77,27), + // new THREE.Vector3(24.09,1.77,27), + // new THREE.Vector3(28.72,1.77,27), + // new THREE.Vector3(33.46,1.77,27), + // new THREE.Vector3(41.24,1.77,27), + // new THREE.Vector3(45.82,1.77,27), + // new THREE.Vector3(50.69,1.77,27) railpoints : [ - new THREE.Vector3(52.1,1.77,24), + new THREE.Vector3(53.1,1.77,24), new THREE.Vector3(-64,1.77,24) ] }; @@ -225,22 +261,21 @@ export function ZoneManager() { } this.getstandposition = function(name){ - let n = Math.round(Math.random()*20); + let n = Math.round(Math.random()*17); if(n>=1){ n=n; }else{ n=0; } - let randompoint = new THREE.Vector3(0,scope.list[name].doorpoints[n].y,0); if(name == "standtop"){ randompoint.x = scope.list[name].doorpoints[n].x + Math.random()*3; - randompoint.z = scope.list[name].doorpoints[n].z +5; + randompoint.z = scope.list[name].doorpoints[n].z +4+Math.random()*5; } if(name == "standdown"){ randompoint.x = scope.list[name].doorpoints[n].x + Math.random()*3; - randompoint.z = scope.list[name].doorpoints[n].z -5; + randompoint.z = scope.list[name].doorpoints[n].z -4-Math.random()*5; } let standdata = { door:n, @@ -268,6 +303,7 @@ export function ZoneManager() { } if(name == "exitgate"){ + randompoint.x = scope.list[name].railpoints[exitnum].x ; randompoint.y = scope.list[name].railpoints[exitnum].y ; randompoint.z = scope.list[name].railpoints[exitnum].z ; diff --git a/src/jlmap3d/jl3dtrafficplan/passerai/passerai.js b/src/jlmap3d/jl3dtrafficplan/passerai/passerai.js index ab70fbdaf..7a4c0dd8a 100644 --- a/src/jlmap3d/jl3dtrafficplan/passerai/passerai.js +++ b/src/jlmap3d/jl3dtrafficplan/passerai/passerai.js @@ -252,16 +252,21 @@ export function PasserAi(zone,finder) { path = pathFinder.find(points[0],targetPosition.point); humanlist.children[i].direct = "down"; } - if(path[0].y<9.84){ - points.push(new THREE.Vector3(11.81,9.8,13.11)); - points.push(new THREE.Vector3(29.5,1.77,13.16)); + if(path != null){ + if(path[0].y<9.84){ + points.push(new THREE.Vector3(11.81,9.8,13.11)); + points.push(new THREE.Vector3(29.5,1.77,13.16)); + } + for(let i=0;i val2) { + return 1; + } else { + return 0; + } +} //canvas文字贴图方法 //PS:待提炼 增强功能 var stationcanvas = new Image(); diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 4bb14fdb5..b7d86343d 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,9 +2,9 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 - // BASE_API = 'http://192.168.8.114:9000'; // 旭强 + BASE_API = 'http://192.168.8.129:9000'; // 旭强 // BASE_API = 'http://192.168.8.109:9000'; // 张赛 // BASE_API = 'http://192.168.8.110:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; diff --git a/src/views/jlmap3d/trafficplan/component/stationdata.vue b/src/views/jlmap3d/trafficplan/component/stationdata.vue index 99777d0ca..164086d09 100644 --- a/src/views/jlmap3d/trafficplan/component/stationdata.vue +++ b/src/views/jlmap3d/trafficplan/component/stationdata.vue @@ -96,7 +96,7 @@ export default { this.allPassers = humanlistdata+topWaitPassersdata+downWaitPassersdata+outStationPassersdata+"人"; }, updatePasserSpeed(data){ - this.nowInStationPassers = data.nowInStationPassers+"人/30s"; + this.nowInStationPassers = data+"人/30s"; }, updatePasserOut(data){ diff --git a/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue b/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue index 9ec7923bd..68e742aae 100644 --- a/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue +++ b/src/views/jlmap3d/trafficplan/jl3dtrafficplan.vue @@ -16,11 +16,11 @@ - +