|
@@ -242,6 +242,7 @@ export default {
|
|
|
this.warnNum = warnNum;
|
|
|
this.devDevice = res.data.data.deviceList;
|
|
|
}
|
|
|
+ uni.hideLoading();
|
|
|
});
|
|
|
},
|
|
|
getShareNum() {
|
|
@@ -274,32 +275,32 @@ export default {
|
|
|
// });
|
|
|
// },
|
|
|
// 需要跟车对接一下,换一个接口
|
|
|
- getWarmList() {
|
|
|
- this.$http
|
|
|
- .post(
|
|
|
- "wap/stats/alarmRetentionQuery",
|
|
|
- {
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 20,
|
|
|
- },
|
|
|
- {
|
|
|
- header: {
|
|
|
- "Content-Type": "application/json;charset=UTF-8",
|
|
|
- token: uni.getStorageSync("tokenValue") || "",
|
|
|
- },
|
|
|
- }
|
|
|
- )
|
|
|
- .then((res) => {
|
|
|
- if (res.data.data) {
|
|
|
- // this.warmNum = res.data.data.total;
|
|
|
- if (res.data.data.rows.length > 0) {
|
|
|
- this.warmDetail = res.data.data.rows;
|
|
|
- this.warmList = res.data.data.rows;
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- uni.hideLoading();
|
|
|
- },
|
|
|
+ // getWarmList() {
|
|
|
+ // this.$http
|
|
|
+ // .post(
|
|
|
+ // "wap/stats/alarmRetentionQuery",
|
|
|
+ // {
|
|
|
+ // pageNo: 1,
|
|
|
+ // pageSize: 20,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // header: {
|
|
|
+ // "Content-Type": "application/json;charset=UTF-8",
|
|
|
+ // token: uni.getStorageSync("tokenValue") || "",
|
|
|
+ // },
|
|
|
+ // }
|
|
|
+ // )
|
|
|
+ // .then((res) => {
|
|
|
+ // if (res.data.data) {
|
|
|
+ // // this.warmNum = res.data.data.total;
|
|
|
+ // if (res.data.data.rows.length > 0) {
|
|
|
+ // this.warmDetail = res.data.data.rows;
|
|
|
+ // this.warmList = res.data.data.rows;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // uni.hideLoading();
|
|
|
+ // },
|
|
|
},
|
|
|
onLoad() {},
|
|
|
onShow() {
|
|
@@ -309,7 +310,7 @@ export default {
|
|
|
});
|
|
|
this.getperSonInfo();
|
|
|
this.getShareNum();
|
|
|
- this.getWarmList();
|
|
|
+ // this.getWarmList();
|
|
|
// this.getWeather();
|
|
|
this.isInitAlarm = true;
|
|
|
this.isIniTenMinutes = true;
|