Merge remote-tracking branch 'origin/master'

dev
xins 1 year ago
commit cf6abbff50

@ -55,8 +55,8 @@
<div class="info1">监控单元数量</div> <div class="info1">监控单元数量</div>
<div class="info2">设备数量</div> <div class="info2">设备数量</div>
<div class="info3">在线设备数量</div> <div class="info3">在线设备数量</div>
<div class="num1">{{ num1 }}</div> <div class="num1">{{ num2 }}</div>
<div class="num2">{{ num2 }}</div> <div class="num2">{{ num1 }}</div>
<div class="num3">{{ num3 }}</div> <div class="num3">{{ num3 }}</div>
</div> </div>
<div id="map" class="map"></div> <div id="map" class="map"></div>
@ -140,6 +140,7 @@ export default {
}, },
methods: { methods: {
async getData() { async getData() {
if(this.$store.getters.sceneId === null) return
await this.createMap() await this.createMap()
await this.getAlarmStats() await this.getAlarmStats()
await this.getAubDevice() await this.getAubDevice()
@ -227,6 +228,7 @@ export default {
map.setFitView() map.setFitView()
}, },
async getAlarmStats() { async getAlarmStats() {
if(this.$store.getters.sceneId === null) return
const {data} = await alarmStats(this.$store.getters.sceneId) const {data} = await alarmStats(this.$store.getters.sceneId)
let option1 = { let option1 = {
...this.chart1Option, ...this.chart1Option,

Loading…
Cancel
Save