@nokecy/qc-ui 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -286,18 +286,20 @@ function AgGridPlus(props) {
|
|
|
286
286
|
var calculateArrCopy = [];
|
|
287
287
|
var calculateData = {};
|
|
288
288
|
calcColFields.map(function (i) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
289
|
+
if (!i.cellRenderer) {
|
|
290
|
+
switch (i.calculateType) {
|
|
291
|
+
case "sum":
|
|
292
|
+
calculateData[i.field] = sumFun(i.field);
|
|
293
|
+
break;
|
|
294
|
+
case "avg":
|
|
295
|
+
calculateData[i.field] = avgFun(i.field);
|
|
296
|
+
break;
|
|
297
|
+
case "standardDeviation":
|
|
298
|
+
calculateData[i.field] = standardDeviationFun(i.field);
|
|
299
|
+
break;
|
|
300
|
+
default:
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
301
303
|
}
|
|
302
304
|
});
|
|
303
305
|
if (Object.keys(calculateData).length > 0) {
|
|
@@ -277,18 +277,20 @@ function AgGridPlus(props) {
|
|
|
277
277
|
var calculateArrCopy = [];
|
|
278
278
|
var calculateData = {};
|
|
279
279
|
calcColFields.map(function (i) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
280
|
+
if (!i.cellRenderer) {
|
|
281
|
+
switch (i.calculateType) {
|
|
282
|
+
case "sum":
|
|
283
|
+
calculateData[i.field] = sumFun(i.field);
|
|
284
|
+
break;
|
|
285
|
+
case "avg":
|
|
286
|
+
calculateData[i.field] = avgFun(i.field);
|
|
287
|
+
break;
|
|
288
|
+
case "standardDeviation":
|
|
289
|
+
calculateData[i.field] = standardDeviationFun(i.field);
|
|
290
|
+
break;
|
|
291
|
+
default:
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
292
294
|
}
|
|
293
295
|
});
|
|
294
296
|
if (Object.keys(calculateData).length > 0) {
|