浏览代码

数量bug

qinhouyu 2 年之前
父节点
当前提交
bc48cb0d45
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/bigdata/chart-gridDistribution.vue
  2. 1 1
      src/views/bigdata/chart-gridStaff.vue

+ 1 - 1
src/views/bigdata/chart-gridDistribution.vue

@@ -28,7 +28,7 @@
         let that = this
         getWgfb().then(resp => {
           // alert("网格分布")
-          that.data = Array.isArray(resp.data) && resp.data.length > 20 ? resp.data.splice(0,22) : resp.data
+          that.data = Array.isArray(resp.data) && resp.data.length > 20 ? resp.data.splice(0,20) : resp.data
           this.myEcharts()
         })
       },

+ 1 - 1
src/views/bigdata/chart-gridStaff.vue

@@ -27,7 +27,7 @@
         setTimeout(() => {
           let that = this
           getWgry().then(resp => {
-            that.getWgry = Array.isArray(resp.data) && resp.data.length > 20 ? resp.data.splice(0,22) : resp.data
+            that.getWgry = Array.isArray(resp.data) && resp.data.length > 20 ? resp.data.splice(0,20) : resp.data
             // alert("网格人员")
             that.myEcharts()
           })