dashboard weight updates
This commit is contained in:
parent
4ff37c175e
commit
3eadd05d1c
|
|
@ -209,7 +209,7 @@ export class ConsumptionDashboard extends Component {
|
|||
dataType: "float",
|
||||
format: "#,###.00",
|
||||
align: "right",
|
||||
summary: { type: "sum" }
|
||||
summary: { type: "sum_" }
|
||||
},
|
||||
{
|
||||
title: "UOM",
|
||||
|
|
@ -224,7 +224,7 @@ export class ConsumptionDashboard extends Component {
|
|||
dataType: "float",
|
||||
format: "#,###.00",
|
||||
align: "right",
|
||||
summary: { type: "sum" }
|
||||
summary: { type: "sum_" }
|
||||
}
|
||||
];
|
||||
|
||||
|
|
@ -278,7 +278,7 @@ export class ConsumptionDashboard extends Component {
|
|||
align: "right",
|
||||
dataType: "float",
|
||||
format: "#,###.00",
|
||||
summary: { type: "sum" },
|
||||
summary: { type: "sum_" },
|
||||
}));
|
||||
|
||||
return [...baseColumns, ...dynamicColumns];
|
||||
|
|
@ -287,6 +287,10 @@ export class ConsumptionDashboard extends Component {
|
|||
async renderGrid() {
|
||||
const { data } = this.processConsumptionData();
|
||||
const columns = await this.getColumns();
|
||||
const agg = pq.aggregate;
|
||||
agg.sum_ = function(arr, col) {
|
||||
return " " + agg.sum(arr, col).toFixed(2).toString();
|
||||
};
|
||||
|
||||
const gridOptions = {
|
||||
selectionModel: { type: "row" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue