raain-app 1.6.12 → 1.6.13
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.
package/fesm2020/raain-app.mjs
CHANGED
|
@@ -2124,9 +2124,13 @@ class RaainDetailsComponent {
|
|
|
2124
2124
|
await this.compareManager.selectGauge(gaugeSelected.id, 0);
|
|
2125
2125
|
}
|
|
2126
2126
|
async refreshGaugeValues(gaugeSelected) {
|
|
2127
|
-
const
|
|
2128
|
-
const
|
|
2129
|
-
|
|
2127
|
+
const gaugeValueShowBegin = new Date(this.periodBegin.getTime() - 24 * 60 * 60 * 1000);
|
|
2128
|
+
const gaugeValueShowEnd = new Date(this.periodEnd.getTime() + 24 * 60 * 60 * 1000);
|
|
2129
|
+
gaugeValueShowBegin.setHours(0);
|
|
2130
|
+
gaugeValueShowBegin.setMinutes(0);
|
|
2131
|
+
gaugeValueShowEnd.setHours(23);
|
|
2132
|
+
gaugeValueShowEnd.setMinutes(59);
|
|
2133
|
+
const gaugeMeasures = await this.profileService.getGaugeMeasures(gaugeSelected.id, gaugeValueShowBegin, gaugeValueShowEnd);
|
|
2130
2134
|
const gaugeValues = gaugeMeasures.map((gm) => {
|
|
2131
2135
|
const cartesianMeasureValue = new CartesianMeasureValue(gm.values[0]);
|
|
2132
2136
|
const value = cartesianMeasureValue.getCartesianValues()[0].value;
|