|
@@ -27,7 +27,7 @@
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
let that = this
|
|
let that = this
|
|
getWgry().then(resp => {
|
|
getWgry().then(resp => {
|
|
- that.getWgry = resp.data
|
|
|
|
|
|
+ that.getWgry = Array.isArray(resp.data) && resp.data.length > 20 ? resp.data.splice(0,22) : resp.data
|
|
// alert("网格人员")
|
|
// alert("网格人员")
|
|
that.myEcharts()
|
|
that.myEcharts()
|
|
})
|
|
})
|
|
@@ -52,7 +52,8 @@
|
|
var max = 0,
|
|
var max = 0,
|
|
len = arr.length;
|
|
len = arr.length;
|
|
for (var i = 0; i < len; i++) {
|
|
for (var i = 0; i < len; i++) {
|
|
- max += arr[i][key];
|
|
|
|
|
|
+ var item = arr[i][key];
|
|
|
|
+ if (max < item) max = item;
|
|
}
|
|
}
|
|
return max;
|
|
return max;
|
|
}
|
|
}
|