Commit 5cd98035 by liuguorong93

gx

parent b16ab542
......@@ -307,9 +307,11 @@ export default {
}
},
getDataArr(datas) {
this.dataArr = datas.map((item) => {
if (item.dognum != 0) {
return {
this.dataArr = [];
if (datas && datas.length) {
datas.forEach((item) => {
if (item && item.dognum != 0) {
this.dataArr.push({
name: item.dwName,
value: [parseFloat(item.jd), parseFloat(item.wd)],
count: item.dognum,
......@@ -318,9 +320,10 @@ export default {
dognum3: item.dognum3,
dognum4: item.dognum4,
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