Browse Source

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

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

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

@@ -136,8 +136,12 @@
       zhxx() {
         let that = this
         getZhxx().then(resp => {
-          console.log("综合信息", resp.data)
-          that.regionNum = 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})
+          }
         })
       },