123
							parent
							
								
									0fddcc3aed
								
							
						
					
					
						commit
						16e913b4df
					
				| 
						 | 
					@ -686,13 +686,16 @@ const check = () => {
 | 
				
			||||||
                if (checkindex == romeObj.length) { // 巡检结束
 | 
					                if (checkindex == romeObj.length) { // 巡检结束
 | 
				
			||||||
                    checkComplete();
 | 
					                    checkComplete();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                setTimeout(() => {
 | 
					                check()
 | 
				
			||||||
                    check()
 | 
					 | 
				
			||||||
                }, 1000)
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        // 显示标签,已经检查通过
 | 
					        var pos1 = new THREE.Vector3( camera.position );
 | 
				
			||||||
        addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
 | 
					 
 | 
				
			||||||
 | 
					        var pos2 = new THREE.Vector3( checkPosition );
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        var distance = pos1.distanceTo(pos2);
 | 
				
			||||||
 | 
					        console.log(12354, distance);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let nextObj;
 | 
					        let nextObj;
 | 
				
			||||||
        if (checkindex == checkArr.length - 1) {
 | 
					        if (checkindex == checkArr.length - 1) {
 | 
				
			||||||
            nextObj = checkArr[0].getWorldPosition(new THREE.Vector3())
 | 
					            nextObj = checkArr[0].getWorldPosition(new THREE.Vector3())
 | 
				
			||||||
| 
						 | 
					@ -707,6 +710,8 @@ const check = () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            ease: "power1.inOut",
 | 
					            ease: "power1.inOut",
 | 
				
			||||||
            onComplete: () => {
 | 
					            onComplete: () => {
 | 
				
			||||||
 | 
					                // 显示标签,已经检查通过
 | 
				
			||||||
 | 
					                // addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        checkindex++;
 | 
					        checkindex++;
 | 
				
			||||||
| 
						 | 
					@ -716,8 +721,10 @@ const check = () => {
 | 
				
			||||||
// 巡检结束
 | 
					// 巡检结束
 | 
				
			||||||
const checkComplete = () => {
 | 
					const checkComplete = () => {
 | 
				
			||||||
    toHomeView();
 | 
					    toHomeView();
 | 
				
			||||||
 | 
					    checkindex = 0;
 | 
				
			||||||
    bimStore().setCheckArr(romeObj);
 | 
					    bimStore().setCheckArr(romeObj);
 | 
				
			||||||
    emit('checkComplete', romeObj);
 | 
					    emit('checkComplete', romeObj);
 | 
				
			||||||
 | 
					    return;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue