Procházet zdrojové kódy

历史数据刷新问题解决

zhangsijie před 2 roky
rodič
revize
fa6f5ea237
1 změnil soubory, kde provedl 22 přidání a 22 odebrání
  1. 22 22
      pages/cb/sy/history.vue

+ 22 - 22
pages/cb/sy/history.vue

@@ -114,29 +114,29 @@
 				console.log(this.historylistdata)
 			},
 			// forecast.send_control.get_device_config 获取当前时间的数据
-			async newdata() {
-				const res = await this.$myRequest({
-					url: '/api/api_gateway?method=sex_lure_nl.sex_lure.nl_device_mqtt',
-					data: {
-						d_id: this.d_id
-					}
-				})
-				if (res) {
-					uni.showToast({
-						title: '刷新成功',
-						duration: 2000,
-						icon: "none"
-					});
-				} else {
-					uni.showToast({
-						title: '刷新失败',
-						duration: 2000,
-						icon: "none"
-					});
-				}
-			},
+			// async newdata() {
+			// 	const res = await this.$myRequest({
+			// 		url: '/api/api_gateway?method=sex_lure_nl.sex_lure.nl_device_mqtt',
+			// 		data: {
+			// 			d_id: this.d_id
+			// 		}
+			// 	})
+			// 	if (res) {
+			// 		uni.showToast({
+			// 			title: '刷新成功',
+			// 			duration: 2000,
+			// 			icon: "none"
+			// 		});
+			// 	} else {
+			// 		uni.showToast({
+			// 			title: '刷新失败',
+			// 			duration: 2000,
+			// 			icon: "none"
+			// 		});
+			// 	}
+			// },
 			refresh() { //获取当前时间的数据
-				this.newdata()
+				this.historylist()
 			},
 			prev() { //上一页
 				if (this.page > 1) {