| 
					
				 | 
			
			
				@@ -10,7 +10,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <In03 ref="In03Ele" v-if="currentTargetType=='IN03'" :click-event="In03ClickEvent" :in03-model-load-state="in03modelloadstate" :user-timeout="AutoPlayer"></In03> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <In04 v-if="currentTargetType=='IN04'" :click-event="In04ClickEvent" :in04-model-load-state="in04modelloadstate" :user-timeout="AutoPlayer"></In04> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <In05 v-if="currentTargetType=='IN05'" :click-event="In05ClickEvent" :in05-model-load-state="in05modelloadstate" :user-timeout="AutoPlayer"></In05> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <Bottom @loadNavModel="loadNavModel" :fac-model-load-state="facModelLoadState"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <Bottom @loadNavModel="loadNavModel" :fac-model-load-state="isLoaded"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -126,7 +126,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 limtMoveCPS: 10, // 限制每秒鼠标移动的消息个数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 userTimeout: 1000 * 60 * 5, // 用户操作超时设置,毫秒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 exitTimeout: 1000 * 60 * 60 * 999999, // 用户超时后多久断开会话 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                maxTimeout: 1000, // 会话超时时间,允许掉线后引擎保存多久,在该时间内可重新连接到会话,否则会创建新的会话 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                maxTimeout: 10000, // 会话超时时间,允许掉线后引擎保存多久,在该时间内可重新连接到会话,否则会创建新的会话 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 debug: false // 是否启用调试,开启后调用Native接口时会使用console.log进行记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //2.[可选]监听连接成功消息 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -143,6 +143,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 reconnect.value = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 isClearEle.value=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 playerConnState = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                isLoaded.value = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 facModelLoadState.value=false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 in02modelloadstate.value=false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 in03modelloadstate.value=false; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -150,14 +151,19 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 in05modelloadstate.value = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 window.IN03Markers=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 window.IN04Markers=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                window.IN05Markers=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                window.IN05Markers=null;       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AutoPlayer.value=false;      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                EngineContent.value.pause();      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(e=='signal websocket error'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //服务器网络不通 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 modelLoadState={}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //currentTargetType.value=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //4.[推荐]尝试重新连接 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 reconntimer = setTimeout(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     console.log('尝试自动重连:', playerConnState) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (playerConnState) return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if(player==null || player.Native==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(player==null ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         window.location.reload(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -167,25 +173,40 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //5. [推荐] 响应UserTimeOut消息,引擎接收用户鼠标触屏事件超时发出通知 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             player.on("UserTimeOut", () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                console.info('用户长时间没有操作三维视图,会话即将退出,可调用player.resetTimer()取消退出'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AutoPlayer.value = true;                 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.info('用户长时间没有操作三维视图,可调用player.resetTimer()取消退出'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //AutoPlayer.value = true;  //暂时取消自动漫游功能               
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             player.on('TimeOutExit',()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 console.info('长时间没有操作,已断开连接'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            player.on('ConnectedFailed',(evt)=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.info('服务器连接失败'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //6.监听远程过程调用加载完成消息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             player.on("NativeLoad", async (Native) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 modelLoadState={}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                EngineContent.value.play(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 playerNative.value =Native; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                var devAllCount = 6 * 12 * 2 - 4 //设备总数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //var loadedcnt = document.getElementById("loadedcnt") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //var totalcnt = document.getElementById("totalcnt") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //totalcnt.innerText = devAllCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //loadedcnt.innerText="0"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                loadFacModel(Native); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                switch(window.CurrentTargetType){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    case "IN02": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        loadIn02Model(Native); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    case "IN03": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        loadIn03Model(Native); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    case "IN04": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        loadIn04Model(Native); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    case "IN05": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        loadIn05Model(Native); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    default: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        loadFacModel(Native); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }                 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 setTimeout(function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     isLoaded.value=true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                },4000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                },2000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //调整视角,使其达到最佳初始效果 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 backMasterView(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -387,10 +408,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             await player.Native.Model.setModelVisible(currentTargetType.value,true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             showMarker(currentTargetType.value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            for (var i in ANIMATION_DATA) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // 添加关键帧 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                player.Native.CameraAnimation.addKeyFrames([ANIMATION_DATA[i]]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             in02modelloadstate.value=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         async function showMarker(type){ 
			 |