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