|
@@ -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);
|