@flexem/fc-gui 3.0.0-alpha.76 → 3.0.0-alpha.78

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
@@ -334,4 +334,14 @@
334
334
  ## 3.0.0-alpha.76(2023-03-27)
335
335
  ### Web端
336
336
  #### Bug Fix
337
- 1. 把视频组件中的视频,改成拉伸显示
337
+ 1. 把视频组件中的视频,改成拉伸显示
338
+
339
+ ## 3.0.0-alpha.77(2023-04-06)
340
+ ### Web端
341
+ #### Bug Fix
342
+ 1. FLEXCLOUD-2523 【报警表】模拟告警表元件画面应与历史曲线元件保持一致
343
+
344
+ ## 3.0.0-alpha.78(2023-04-07)
345
+ ### Web端
346
+ #### Bug Fix
347
+ 1. FLEXCLOUD-2553 指示灯元件、开关元件配置监控点后无法在app模拟画面中操作
@@ -38542,7 +38542,8 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
38542
38542
  if (this.model.useSwitch) {
38543
38543
  this.initSwitchOperator();
38544
38544
  this.rootElement.style('cursor', 'hand');
38545
- this.rootElement.on(this.isMobileMode ? 'touchstart' : 'mousedown', () => {
38545
+ const isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
38546
+ this.rootElement.on(this.isMobileMode && isMobile ? 'touchstart' : 'mousedown', () => {
38546
38547
  if (!this.isInitialized) {
38547
38548
  return;
38548
38549
  }
@@ -38584,7 +38585,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
38584
38585
  on_event.preventDefault();
38585
38586
  }
38586
38587
  });
38587
- this.rootElement.on(this.isMobileMode ? 'touchend' : 'mouseup', () => {
38588
+ this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
38588
38589
  this.handleMouseUp();
38589
38590
  on_event.stopPropagation();
38590
38591
  });
@@ -40064,6 +40065,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40064
40065
  this.variableCommunicator = variableCommunicator;
40065
40066
  this.timePeriods = this.getValidTimePeriods();
40066
40067
  this.pageSize = this.model.generalSetting.pageSize;
40068
+ localStorage.setItem('simulate-time', moment().valueOf() + '');
40067
40069
  if (this.model.filterSetting) {
40068
40070
  this.alarmNames = this.model.filterSetting.detailsData.map(item => item.name);
40069
40071
  this.currentTimePeriod = (_a = this.model.filterSetting) === null || _a === void 0 ? void 0 : _a.displayPeriod;
@@ -40317,8 +40319,10 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40317
40319
  }
40318
40320
  }
40319
40321
  loadFirstPage() {
40320
- this.page = 0;
40321
- this.init();
40322
+ if (this.page > 0) {
40323
+ this.page = 0;
40324
+ this.init();
40325
+ }
40322
40326
  }
40323
40327
  loadNextPage() {
40324
40328
  let last_page = Math.ceil(this.totalCount / this.pageSize);
@@ -40326,21 +40330,23 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40326
40330
  last_page--;
40327
40331
  if (this.page < last_page) {
40328
40332
  this.page++;
40333
+ this.init();
40329
40334
  }
40330
- this.init();
40331
40335
  }
40332
40336
  loadPreviousPage() {
40333
40337
  if (this.page > 0) {
40334
40338
  this.page--;
40339
+ this.init();
40335
40340
  }
40336
- this.init();
40337
40341
  }
40338
40342
  loadLastPage() {
40339
40343
  let last_page = Math.ceil(this.totalCount / this.pageSize);
40340
40344
  if (last_page)
40341
40345
  last_page--;
40342
- this.page = last_page;
40343
- this.init();
40346
+ if (this.page !== last_page) {
40347
+ this.page = last_page;
40348
+ this.init();
40349
+ }
40344
40350
  }
40345
40351
  }
40346
40352