|
|
|
@ -296,8 +296,7 @@ |
|
|
|
|
created() { |
|
|
|
|
this.getWeather() |
|
|
|
|
|
|
|
|
|
this.eventCount = this.eventData[0] |
|
|
|
|
this.sonEvent = this.eventData.splice(1, this.eventData.length - 1) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
// this.getServerData() |
|
|
|
@ -461,6 +460,8 @@ |
|
|
|
|
getAlarmData().then(res => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.eventData = res.data |
|
|
|
|
this.eventCount = this.eventData[0] |
|
|
|
|
this.sonEvent = this.eventData.splice(1, this.eventData.length - 1) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|