|
|
|
@ -517,15 +517,15 @@ export default { |
|
|
|
this.getDayData(); |
|
|
|
this.getDayData(); |
|
|
|
|
|
|
|
|
|
|
|
// 设置定时器,每 10 秒执行一次 |
|
|
|
// 设置定时器,每 10 秒执行一次 |
|
|
|
// this.timer = setInterval(() => { |
|
|
|
this.timer = setInterval(() => { |
|
|
|
// this.getWeatherData(); |
|
|
|
this.getWeatherData(); |
|
|
|
// this.getSystemMode(); |
|
|
|
this.getSystemMode(); |
|
|
|
// this.getPerformance(); |
|
|
|
this.getPerformance(); |
|
|
|
// this.getOneKeyButton(); |
|
|
|
this.getOneKeyButton(); |
|
|
|
// this.getMonitorList(); |
|
|
|
this.getMonitorList(); |
|
|
|
// this.getAlarnStatus(); |
|
|
|
this.getAlarnStatus(); |
|
|
|
// this.getDayData(); |
|
|
|
this.getDayData(); |
|
|
|
// }, 10000); |
|
|
|
}, 10000); |
|
|
|
// 每秒更新一次时间 |
|
|
|
// 每秒更新一次时间 |
|
|
|
this.nowTimer = setInterval(() => { |
|
|
|
this.nowTimer = setInterval(() => { |
|
|
|
this.currentDate = new Date(); |
|
|
|
this.currentDate = new Date(); |
|
|
|
|