Commit 5cd98035 by liuguorong93

gx

parent b16ab542
...@@ -307,9 +307,11 @@ export default { ...@@ -307,9 +307,11 @@ export default {
} }
}, },
getDataArr(datas) { getDataArr(datas) {
this.dataArr = datas.map((item) => { this.dataArr = [];
if (item.dognum != 0) { if (datas && datas.length) {
return { datas.forEach((item) => {
if (item && item.dognum != 0) {
this.dataArr.push({
name: item.dwName, name: item.dwName,
value: [parseFloat(item.jd), parseFloat(item.wd)], value: [parseFloat(item.jd), parseFloat(item.wd)],
count: item.dognum, count: item.dognum,
...@@ -318,9 +320,10 @@ export default { ...@@ -318,9 +320,10 @@ export default {
dognum3: item.dognum3, dognum3: item.dognum3,
dognum4: item.dognum4, dognum4: item.dognum4,
lev: item.lev, lev: item.lev,
}; });
} }
}); });
}
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment