Browse Source

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

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

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

@@ -136,8 +136,13 @@
       zhxx() {
         let that = this
         getZhxx().then(resp => {
-          console.log("hhh",resp)
-          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})
+          }
+
         })
       },