1.数据如下,提取name和callcount
2代码.
getQueryCallStatistics("sesp1", this.provinceId).then((res) => {
let arr = [];
let arr1 = [];
let arr2 = [];
let arr3 = [];
let arr4 = [];
this.xunshiMap = res.data.callstatistics;
res.data.callstatistics.forEach((element) => {
// arr.push([
// element.name,
// element.callcount.patrol,
// element.callcount.repair,
// element.callcount.defect
// ]);
arr.push([element.name, 27, 38, 27]);
arr1.push(element.name);
arr2.push({ value: element.callcount.defect, name: element.name,type: element.name });
arr3.push({ value: element.callcount.patrol, name: element.name,type: element.name });
arr4.push({ value: element.callcount.repair, name: e