|
@@ -101,7 +101,7 @@ function setSingleWeight(row, countObj, endIndex) {
|
|
|
// console.log(totalWeight, 'totalWeight');
|
|
// console.log(totalWeight, 'totalWeight');
|
|
|
row['singleWeight'] = Number(totalWeight/row[countObj.countKey]).toFixed(2);
|
|
row['singleWeight'] = Number(totalWeight/row[countObj.countKey]).toFixed(2);
|
|
|
} else if (row.totalWeight && row[countObj.countKey]) {
|
|
} else if (row.totalWeight && row[countObj.countKey]) {
|
|
|
- row['singleWeight'] = (row.totalWeight / totalCount).toFixed(2);
|
|
|
|
|
|
|
+ row['singleWeight'] = (row.totalWeight / row.totalCount).toFixed(2);
|
|
|
} else {
|
|
} else {
|
|
|
row['singleWeight'] = 0;
|
|
row['singleWeight'] = 0;
|
|
|
}
|
|
}
|