wangjiawen 4 年之前
父节点
当前提交
f512eff986
共有 42 个文件被更改,包括 9409 次插入5369 次删除
  1. 25 5
      components/detail/Detail.vue
  2. 2 2
      unpackage/dist/dev/app-plus/app-config-service.js
  3. 862 412
      unpackage/dist/dev/app-plus/app-service.js
  4. 8519 4946
      unpackage/dist/dev/app-plus/app-view.js
  5. 1 1
      unpackage/dist/dev/app-plus/manifest.json
  6. 二进制
      unpackage/dist/dev/app-plus/static/logo1.png
  7. 二进制
      unpackage/dist/dev/app-plus/static/picture/DingWei.png
  8. 二进制
      unpackage/dist/dev/app-plus/static/picture/SanJiao.png
  9. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/pic_tu_01.png
  10. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/pic_tu_02.png
  11. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/pic_tu_03.png
  12. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-10C.png
  13. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-15C.png
  14. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-20C.png
  15. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-25C.png
  16. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-30C.png
  17. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-35C.png
  18. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-40C.png
  19. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-45C.png
  20. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-50C.png
  21. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-5C.png
  22. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/0C.png
  23. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/10C.png
  24. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/15C.png
  25. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/20C.png
  26. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/25C.png
  27. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/30C.png
  28. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/35C.png
  29. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/40C.png
  30. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/45C.png
  31. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/50C.png
  32. 二进制
      unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/5C.png
  33. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherProphet_40/weatherCalendarCardList40/weatherCalendarCard40/blue22.png
  34. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherProphet_40/weatherCalendarCardList40/weatherCalendarCard40/white22.png
  35. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherProphet_40/weatherCalendarCardList40/weatherCalendarCard40/white30.png
  36. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_7/blue22.png
  37. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_7/iconall.png
  38. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_7/white30.png
  39. 二进制
      unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_8_15/white30.png
  40. 0 1
      unpackage/dist/dev/app-plus/static/zy-search/delete.svg
  41. 0 1
      unpackage/dist/dev/app-plus/static/zy-search/search.svg
  42. 0 1
      unpackage/dist/dev/app-plus/static/zy-search/voice.svg

+ 25 - 5
components/detail/Detail.vue

@@ -93,7 +93,14 @@ export default {
 	onReady() {},
 
 	methods: {
-		targetdetail_target() {
+		async targetdetail_target() {
+			let ip;
+			uni.request({
+			    url: "http://192.168.1.104:8082/targetdetail/targetdetail_target?pointKey=HB_GD_KBF_JS_P4_L19_220_CI0136",
+			    success: (res) => {
+			        ip = res.data;
+			    }
+			});
 			let _this = this;
 			// 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
 			this.socketTask_targetdetail_target = uni.connectSocket({
@@ -112,7 +119,7 @@ export default {
 				// 注:只有连接正常打开中 ,才能正常收到消息
 				this.socketTask_targetdetail_target.onMessage(res => {
 					//console.log("收到服务器内容:" + res.data);
-					_this.targetdetail.targetdetail_target = res.data;
+					_this.targetdetail.targetdetail_target =JSON.parse(res.data)[ip];
 					console.log(_this.targetdetail.targetdetail_target);
 				});
 			});
@@ -122,6 +129,13 @@ export default {
 								}) */
 		},
 		targetdetail_curve() {
+			let ip;
+			uni.request({
+			    url: "http://192.168.1.104:8082/targetdetail/targetdetail_curve?pointKey=HB_GD_KBF_JS_P4_L19_220_CI0136",
+			    success: (res) => {
+			        ip = res.data;
+			    }
+			});
 			let _this = this;
 			// 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
 			this.socketTask_targetdetail_curve = uni.connectSocket({
@@ -140,7 +154,7 @@ export default {
 				// 注:只有连接正常打开中 ,才能正常收到消息
 				this.socketTask_targetdetail_curve.onMessage(res => {
 					//console.log("收到服务器内容:" + res.data);
-					_this.targetdetail.targetdetail_curve = eval(res.data);
+					_this.targetdetail.targetdetail_curve = JSON.parse(res.data)[ip];
 				});
 			});
 			// 这里仅是事件监听【如果socket关闭了会执行】
@@ -168,7 +182,13 @@ export default {
 						return fmt;
 			};
 			
-			
+			let ip;
+			uni.request({
+			    url: "http://192.168.1.104:8082/targetdetail/targetdetail_histogram?pointKey=HB_GD_KBF_JS_P4_L19_220_CI0136",
+			    success: (res) => {
+			        ip = res.data;
+			    }
+			});
 			let _this = this;
 			// 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
 			this.socketTask_targetdetail_histogram = uni.connectSocket({
@@ -187,7 +207,7 @@ export default {
 				// 注:只有连接正常打开中 ,才能正常收到消息
 				this.socketTask_targetdetail_histogram.onMessage(res => {
 					//console.log("收到服务器内容:" + res.data);
-					_this.targetdetail.targetdetail_histogram = eval(res.data);
+					_this.targetdetail.targetdetail_histogram = JSON.parse(res.data)[ip];
 					
 					let Column = {
 						 "categories": ["04/11","04/12", "04/13", "04/14", "04/15", "04/16", "04/17"],

文件差异内容过多而无法显示
+ 2 - 2
unpackage/dist/dev/app-plus/app-config-service.js


文件差异内容过多而无法显示
+ 862 - 412
unpackage/dist/dev/app-plus/app-service.js


文件差异内容过多而无法显示
+ 8519 - 4946
unpackage/dist/dev/app-plus/app-view.js


文件差异内容过多而无法显示
+ 1 - 1
unpackage/dist/dev/app-plus/manifest.json


二进制
unpackage/dist/dev/app-plus/static/logo1.png


二进制
unpackage/dist/dev/app-plus/static/picture/DingWei.png


二进制
unpackage/dist/dev/app-plus/static/picture/SanJiao.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/pic_tu_01.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/pic_tu_02.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/pic_tu_03.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-10C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-15C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-20C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-25C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-30C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-35C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-40C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-45C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-50C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/-5C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/0C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/10C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/15C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/20C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/25C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/30C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/35C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/40C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/45C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/50C.png


二进制
unpackage/dist/dev/app-plus/static/picture/thermometerCard/thermometer/5C.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherProphet_40/weatherCalendarCardList40/weatherCalendarCard40/blue22.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherProphet_40/weatherCalendarCardList40/weatherCalendarCard40/white22.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherProphet_40/weatherCalendarCardList40/weatherCalendarCard40/white30.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_7/blue22.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_7/iconall.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_7/white30.png


二进制
unpackage/dist/dev/app-plus/static/picture/weatherTemperatureWindSpeedCard_8_15/white30.png


文件差异内容过多而无法显示
+ 0 - 1
unpackage/dist/dev/app-plus/static/zy-search/delete.svg


文件差异内容过多而无法显示
+ 0 - 1
unpackage/dist/dev/app-plus/static/zy-search/search.svg


文件差异内容过多而无法显示
+ 0 - 1
unpackage/dist/dev/app-plus/static/zy-search/voice.svg