| 
					
				 | 
			
			
				@@ -518,16 +518,17 @@ async function getDeviceList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //tab选项切换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function onChangeTab(tab) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async function onChangeTab(tab) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   activeKey.value = tab; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  stationId.value='' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (activeKey.value == 'device') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // clearTimeout(timer1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getSubStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getStationList1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   await  getSubStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   await  getStationList1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getSubStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getMonitor1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    await getSubStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    await getStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    await getMonitor1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -716,6 +717,7 @@ async function getSubStationList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   let res = await subStationList({ strtype: 'modbus' }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (res.length != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     cardList.value = res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    stationId.value=stationId.value ? stationId.value : cardList[0].id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openNum.value = cardList.value?.filter((v) => v.linkstatus == 1)['length']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     clsoeNum.value = cardList.value?.filter((v) => v.linkstatus == 0)['length']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -990,9 +992,9 @@ async function handleDelStation(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //取消删除左侧分站 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function handleCancelDelStation(){} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-onMounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  getSubStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  getStationList1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+onMounted(async() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  await getSubStationList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  await getStationList1(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 onUnmounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (timer) { 
			 |