@flexem/fc-gui 3.0.0-alpha.76 → 3.0.0-alpha.77
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/CHANGELOG.md
CHANGED
|
@@ -40064,6 +40064,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
|
|
|
40064
40064
|
this.variableCommunicator = variableCommunicator;
|
|
40065
40065
|
this.timePeriods = this.getValidTimePeriods();
|
|
40066
40066
|
this.pageSize = this.model.generalSetting.pageSize;
|
|
40067
|
+
localStorage.setItem('simulate-time', moment().valueOf() + '');
|
|
40067
40068
|
if (this.model.filterSetting) {
|
|
40068
40069
|
this.alarmNames = this.model.filterSetting.detailsData.map(item => item.name);
|
|
40069
40070
|
this.currentTimePeriod = (_a = this.model.filterSetting) === null || _a === void 0 ? void 0 : _a.displayPeriod;
|
|
@@ -40317,8 +40318,10 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
|
|
|
40317
40318
|
}
|
|
40318
40319
|
}
|
|
40319
40320
|
loadFirstPage() {
|
|
40320
|
-
this.page
|
|
40321
|
-
|
|
40321
|
+
if (this.page > 0) {
|
|
40322
|
+
this.page = 0;
|
|
40323
|
+
this.init();
|
|
40324
|
+
}
|
|
40322
40325
|
}
|
|
40323
40326
|
loadNextPage() {
|
|
40324
40327
|
let last_page = Math.ceil(this.totalCount / this.pageSize);
|
|
@@ -40326,21 +40329,23 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
|
|
|
40326
40329
|
last_page--;
|
|
40327
40330
|
if (this.page < last_page) {
|
|
40328
40331
|
this.page++;
|
|
40332
|
+
this.init();
|
|
40329
40333
|
}
|
|
40330
|
-
this.init();
|
|
40331
40334
|
}
|
|
40332
40335
|
loadPreviousPage() {
|
|
40333
40336
|
if (this.page > 0) {
|
|
40334
40337
|
this.page--;
|
|
40338
|
+
this.init();
|
|
40335
40339
|
}
|
|
40336
|
-
this.init();
|
|
40337
40340
|
}
|
|
40338
40341
|
loadLastPage() {
|
|
40339
40342
|
let last_page = Math.ceil(this.totalCount / this.pageSize);
|
|
40340
40343
|
if (last_page)
|
|
40341
40344
|
last_page--;
|
|
40342
|
-
this.page
|
|
40343
|
-
|
|
40345
|
+
if (this.page !== last_page) {
|
|
40346
|
+
this.page = last_page;
|
|
40347
|
+
this.init();
|
|
40348
|
+
}
|
|
40344
40349
|
}
|
|
40345
40350
|
}
|
|
40346
40351
|
|