修改三维客流列车人物动画

This commit is contained in:
sunzhenyu 2020-11-30 09:57:38 +08:00
parent e26c6dc080
commit cbc7a2d3fe

View File

@ -316,9 +316,10 @@ export function Jl3dTrafficTrain(dom,skinCode,routegroup,viewMap,initCode) {
this.updateTrainData = function(newData){ this.updateTrainData = function(newData){
if(scope.trainList.length > 0){ console.log(newData);
for(let i=0;i<scope.trainList.length;i++){ console.log(scope.trainList);
if(newData.code == scope.trainList[i].code){ let i = newData.code;
if(scope.trainList[i]){
scope.trainList[i].num = scope.trainList[i].num + newData.in - newData.out; scope.trainList[i].num = scope.trainList[i].num + newData.in - newData.out;
if(passerTrain.toptrain.nowcode == newData.code){ if(passerTrain.toptrain.nowcode == newData.code){
@ -335,9 +336,6 @@ export function Jl3dTrafficTrain(dom,skinCode,routegroup,viewMap,initCode) {
scope.nowTrunk.numList = trainDataList; scope.nowTrunk.numList = trainDataList;
updateTrainNum(trainDataList); updateTrainNum(trainDataList);
} }
i = scope.trainList.length;
}
}
} }
} }