明树Git Lab

Commit 1e34c1bc authored by zengfanpei's avatar zengfanpei

update

parent c6bc85ae
...@@ -102,7 +102,7 @@ async function handleCJData(colInfo, deviceHQType) { ...@@ -102,7 +102,7 @@ async function handleCJData(colInfo, deviceHQType) {
for (let index = 0; index < attrs.length; index++) { for (let index = 0; index < attrs.length; index++) {
const attr = attrs[index]; const attr = attrs[index];
if(handleData[`${attr.dbKey}Arr`] && handleData[`${attr.dbKey}Arr`].length) { if(handleData[`${attr.dbKey}Arr`] && handleData[`${attr.dbKey}Arr`].length) {
handleData[attr.dbKey] = (_.sum(handleData[`${attr.dbKey}Arr`]) / handleData[`${attr.dbKey}Arr`].length).toFixed(2) handleData[attr.dbKey] = Number((_.sum(handleData[`${attr.dbKey}Arr`]) / handleData[`${attr.dbKey}Arr`].length).toFixed(2));
} }
} }
return handleData; return handleData;
......
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