Browse Source

统计分析增加事件和设备数量展示

wang_xy 2 years ago
parent
commit
1065d24480
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/bigdata/tabbar.vue

+ 2 - 2
src/views/bigdata/tabbar.vue

@@ -3,7 +3,7 @@
     <el-row :gutter="20">
     <el-row :gutter="20">
       <el-col :span="4" v-for="(item,index) in regionNum" :key="index">
       <el-col :span="4" v-for="(item,index) in regionNum" :key="index">
         <div class="list-content">
         <div class="list-content">
-          <span>{{item.count}}</span>
+          <span>{{item.value}}</span>
           <h5>{{item.name}}</h5>
           <h5>{{item.name}}</h5>
         </div>
         </div>
       </el-col>
       </el-col>
@@ -144,7 +144,7 @@
           that.regionNum.push(...resp.data.event)
           that.regionNum.push(...resp.data.event)
           that.regionNum.push(...resp.data.data)
           that.regionNum.push(...resp.data.data)
           for(let i in resp.data.device){
           for(let i in resp.data.device){
-            that.regionNum.push({count: resp.data.device[i].deviceCount,name: resp.data.device[i].deviceName})
+            that.regionNum.push({value: resp.data.device[i].deviceCount,name: resp.data.device[i].deviceName})
           }
           }
 
 
         })
         })