|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="bigdata-map-tabbar">
|
|
<div class="bigdata-map-tabbar">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
- <el-col :span="4" v-for="(item,index) in data_zhxx_data" :key="index">
|
|
|
|
|
|
+ <el-col :span="4" v-for="(item,index) in regionNum" :key="index">
|
|
<div class="list-content">
|
|
<div class="list-content">
|
|
<span>{{item.value}}</span>
|
|
<span>{{item.value}}</span>
|
|
<h5>{{item.name}}</h5>
|
|
<h5>{{item.name}}</h5>
|
|
@@ -144,7 +144,13 @@
|
|
zhxx() {
|
|
zhxx() {
|
|
let that = this
|
|
let that = this
|
|
getZhxx().then(resp => {
|
|
getZhxx().then(resp => {
|
|
- that.data_zhxx_data = [...resp.data.event, ...resp.data.data]
|
|
|
|
|
|
+ // that.data_zhxx_data = [...resp.data.event, ...resp.data.data]
|
|
|
|
+ that.regionNum = [];
|
|
|
|
+ that.regionNum.push(...resp.data.event)
|
|
|
|
+ that.regionNum.push(...resp.data.data)
|
|
|
|
+ for(let i in resp.data.device){
|
|
|
|
+ that.regionNum.push({value: resp.data.device[i].deviceCount,name: resp.data.device[i].deviceName})
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|