Prechádzať zdrojové kódy

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

wang_xy 2 rokov pred
rodič
commit
7b33ba772c
1 zmenil súbory, kde vykonal 6 pridanie a 3 odobranie
  1. 6 3
      src/views/bigdata/tabbar.vue

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

@@ -132,12 +132,15 @@
     },
 
     methods: {
-
       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({count: resp.data.device[i].deviceCount,name: resp.data.device[i].deviceName})
+          }
         })
       },