Commit 5cd98035 by liuguorong93

gx

parent b16ab542
...@@ -307,20 +307,23 @@ export default { ...@@ -307,20 +307,23 @@ 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) => {
name: item.dwName, if (item && item.dognum != 0) {
value: [parseFloat(item.jd), parseFloat(item.wd)], this.dataArr.push({
count: item.dognum, name: item.dwName,
dognum1: item.dognum1, value: [parseFloat(item.jd), parseFloat(item.wd)],
dognum2: item.dognum2, count: item.dognum,
dognum3: item.dognum3, dognum1: item.dognum1,
dognum4: item.dognum4, dognum2: item.dognum2,
lev: item.lev, 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