wangjiawen 4 jaren geleden
bovenliggende
commit
d4ede53abb
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      components/detail/Detail.vue

+ 6 - 6
components/detail/Detail.vue

@@ -130,14 +130,14 @@ export default {
 				});
 			});
 			// 这里仅是事件监听【如果socket关闭了会执行】
-/* 			this.socketTask.onClose(() => {
+			this.socketTask_targetdetail_target.onClose(() => {
 					uni.request({
 					    url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
 					    success: (res) => {
 
 					    }
 					});
-			}) */
+			})
 		},
 		targetdetail_curve() {
 			let ip;
@@ -169,14 +169,14 @@ export default {
 				});
 			});
 			// 这里仅是事件监听【如果socket关闭了会执行】
-/* 				this.socketTask.onClose(() => {
+				this.socketTask_targetdetail_curve.onClose(() => {
 						uni.request({
 						    url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_curve?pointKey='+this.pointKey,
 						    success: (res) => {
 
 						    }
 						});
-				}) */
+				})
 		},
 		targetdetail_histogram() {
 
@@ -249,14 +249,14 @@ export default {
 				});
 			});
 			// 这里仅是事件监听【如果socket关闭了会执行】
-/* 				this.socketTask.onClose(() => {
+				this.socketTask_targetdetail_histogram.onClose(() => {
 						uni.request({
 						    url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_histogram?pointKey='+this.pointKey,
 						    success: (res) => {
 
 						    }
 						});
-		     }); */
+		     });
 		},pushWindPowerStationNameToSessionStorage(windpowerstationName) {
 			uni.setStorageSync('windpowerstationName', windpowerstationName);
 			//sessionStorage.setItem('windpowerstationName', windpowerstationName);