@flexem/fc-gui 3.0.0-alpha.69 → 3.0.0-alpha.70

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
@@ -295,7 +295,13 @@
295
295
  1. FLEXCLOUD-2495 模板中添加未关联告警的告警表元件,导致不显示组态中配置的画面
296
296
  2. FLEXCLOUD-2500 告警表配置当前报警,无数据时点击切换分页按钮,报错“您的请求无效!”
297
297
 
298
- ## 3.0.0-alpha.69(2023-03-08)
298
+ ## 3.0.0-alpha.69(2023-03-09)
299
299
  ### Web端
300
300
  #### Bug Fix
301
- 1. FLEXCLOUD-2517 告警表配置历史告警、历史告警无法切换时间段
301
+ 1. FLEXCLOUD-2517 告警表配置历史告警、历史告警无法切换时间段
302
+
303
+ ## 3.0.0-alpha.70(2023-03-10)
304
+ ### Web端
305
+ #### Bug Fix
306
+ 1. FLEXCLOUD-2520 刷新周期未生效
307
+ 2. FLEXCLOUD-2521【云组态】告警表修改告警名称、告警分组、删除告警后,再次配置告警表时,应提示用户“至少选择一个告警”
@@ -40043,7 +40043,7 @@ var AlarmState;
40043
40043
 
40044
40044
  class alarm_element_AlarmElement extends conditional_display_element_ConditionalDisplayElement {
40045
40045
  constructor(element, injector, permissionChecker, variableCommunicator, variableStore, alarmsStore, signalRAppId) {
40046
- var _a, _b;
40046
+ var _a;
40047
40047
  super(element, permissionChecker, variableCommunicator, variableStore, signalRAppId);
40048
40048
  this.alarmsStore = alarmsStore;
40049
40049
  this.displayOption = {
@@ -40059,6 +40059,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40059
40059
  operationButtonHeight: 24,
40060
40060
  operationButtonMargin: 4
40061
40061
  };
40062
+ this.alarmNames = [];
40062
40063
  this.alarmList = [];
40063
40064
  this.currentAlarmList = [];
40064
40065
  this.page = 0;
@@ -40071,8 +40072,8 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40071
40072
  this.timePeriods = this.getValidTimePeriods();
40072
40073
  this.pageSize = this.model.generalSetting.pageSize;
40073
40074
  if (this.model.filterSetting) {
40074
- this.currentTimePeriod = (_a = this.model.filterSetting) === null || _a === void 0 ? void 0 : _a.refreshCycle;
40075
- this.currentTimePeriod = (_b = this.model.filterSetting) === null || _b === void 0 ? void 0 : _b.displayPeriod;
40075
+ this.alarmNames = this.model.filterSetting.detailsData.map(item => item.name);
40076
+ this.currentTimePeriod = (_a = this.model.filterSetting) === null || _a === void 0 ? void 0 : _a.displayPeriod;
40076
40077
  this.updateQueryTimeRange();
40077
40078
  if (this.model.filterSetting.alarmType) {
40078
40079
  this.refreshIntervalId = setInterval(() => {
@@ -40086,7 +40087,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40086
40087
  return;
40087
40088
  }
40088
40089
  const alarm = alarmWithAppId.alarm;
40089
- if (!Object(lodash["find"])(this.model.filterSetting.detailsData, alarmName => alarmName === alarm.name)) {
40090
+ if (!Object(lodash["find"])(this.alarmNames, itemName => itemName === alarm.name)) {
40090
40091
  return;
40091
40092
  }
40092
40093
  const currentAlarm = this.currentAlarmList.find(re => re.name === alarm.name);
@@ -40145,7 +40146,8 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40145
40146
  }
40146
40147
  init() {
40147
40148
  if (this.model.filterSetting.alarmType) {
40148
- const input = new _tmp_config["c" /* GetAlarmsArgs */](this.model.filterSetting.detailsData, this.startTime, this.endTime, this.pageSize, this.page * this.pageSize);
40149
+ this.updateQueryTimeRange();
40150
+ const input = new _tmp_config["c" /* GetAlarmsArgs */](this.alarmNames, this.startTime, this.endTime, this.pageSize, this.page * this.pageSize);
40149
40151
  this.alarmsStore.getHistoryAlarms(input).subscribe(result => {
40150
40152
  if (!result.error) {
40151
40153
  this.totalCount = result.totalCount;
@@ -40160,7 +40162,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40160
40162
  });
40161
40163
  }
40162
40164
  else {
40163
- const input = new _tmp_config["c" /* GetAlarmsArgs */](this.model.filterSetting.detailsData, undefined, undefined, this.pageSize, this.page * this.pageSize);
40165
+ const input = new _tmp_config["c" /* GetAlarmsArgs */](this.alarmNames, undefined, undefined, this.pageSize, this.page * this.pageSize);
40164
40166
  this.alarmsStore.getCurrentAlarms(input).subscribe(result => {
40165
40167
  if (!result.error) {
40166
40168
  this.totalCount = result.totalCount;