@flexem/fc-gui 3.0.0-alpha.73 → 3.0.0-alpha.75

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
@@ -319,4 +319,14 @@
319
319
  ## 3.0.0-alpha.73(2023-03-13)
320
320
  ### Web端
321
321
  #### Bug Fix
322
- 1. 解决当前告警当第二页的报警恢复后,无告警时,翻页未自动翻到第一页的问题
322
+ 1. 解决当前告警当第二页的报警恢复后,无告警时,翻页未自动翻到第一页的问题
323
+
324
+ ## 3.0.0-alpha.74(2023-03-17)
325
+ ### Web端
326
+ #### Bug Fix
327
+ 1. FLEXCLOUD-2535 【app】分页器与表格分离
328
+
329
+ ## 3.0.0-alpha.75(2023-03-27)
330
+ ### Web端
331
+ #### Bug Fix
332
+ 1. FLEXCLOUD-2535 【app】分页器与表格分离
@@ -39505,6 +39505,7 @@ class video_element_VideoElement extends conditional_display_element_Conditional
39505
39505
  .attr('src', videoUrl)
39506
39506
  .style('width', '100%')
39507
39507
  .style('height', '100%')
39508
+ .style('object-fit', 'fill')
39508
39509
  .attr('playsInline', true)
39509
39510
  .attr('webkit-playsinline', true);
39510
39511
  if (this.isMobileMode) {
@@ -40176,41 +40177,41 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40176
40177
  text-align: ${this.model.generalSetting.headerFont.textAlign};
40177
40178
  ${this.model.generalSetting.headerFont.isUnderline ? 'text-decoration: underline' : ''};
40178
40179
  vertical-align: middle;`;
40179
- for (let i = 0; i < 4; i++) {
40180
+ for (let row = 0; row < 4; row++) {
40180
40181
  const th = document.createElement('th');
40181
- th.innerHTML = this.model.columLabels[i];
40182
- th.style.cssText = `width: ${this.model.widths[i] / this.model.size.width * 100}%;
40182
+ th.innerHTML = this.model.columLabels[row];
40183
+ th.style.cssText = `width: ${this.model.widths[row] / this.model.size.width * 100}%;
40183
40184
  border-style: solid;
40184
40185
  border-color: ${this.model.generalSetting.splitLine};
40185
- border-left-width: ${!i || this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;`;
40186
+ border-left-width: ${!row || this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;`;
40186
40187
  tr.appendChild(th);
40187
40188
  }
40188
40189
  table.appendChild(tr);
40189
40190
  const levelColors = ['#3695FF', '#FFE900', '#FFA800', '#E84F4F'];
40190
- for (let i = 0; i < this.pageSize; i++) {
40191
+ for (let row = 0; row < this.pageSize; row++) {
40191
40192
  tr = document.createElement('tr');
40192
- tr.style.cssText = `height: ${this.model.heights[i + 1]}px;
40193
+ tr.style.cssText = `height: ${this.model.heights[row + 1]}px;
40193
40194
  background: ${this.model.generalSetting.tableFillColor};
40194
40195
  font: ${this.model.generalSetting.fontStyle};
40195
40196
  color: ${this.model.generalSetting.fontColor};
40196
40197
  text-align: ${this.model.generalSetting.textAlign};
40197
40198
  vertical-align: middle;`;
40198
- for (let j = 0; j < 4; j++) {
40199
+ for (let col = 0; col < 4; col++) {
40199
40200
  const td = document.createElement('td');
40200
40201
  td.style.cssText = `border-style: solid;
40201
40202
  border-color: ${this.model.generalSetting.splitLine};
40202
40203
  border-top-width: ${this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;
40203
- border-left-width: ${!j || this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;`;
40204
- if (this.alarmList[i]) {
40205
- if (j !== 2) {
40206
- td.innerHTML = this.alarmList[i][j];
40204
+ border-left-width: ${!col || this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;`;
40205
+ if (this.alarmList[row]) {
40206
+ if (col !== 2) {
40207
+ td.innerHTML = this.alarmList[row][col];
40207
40208
  td.style.cssText += `${this.model.generalSetting.isUnderline ? 'text-decoration: underline' : ''};`;
40208
40209
  }
40209
40210
  else {
40210
40211
  const alarmLevel = document.createElement('div');
40211
40212
  let alarmHeight = parseInt(this.model.generalSetting.fontSize) + 15;
40212
- if (alarmHeight > this.model.heights[i + 1])
40213
- alarmHeight = this.model.heights[i + 1];
40213
+ if (alarmHeight > this.model.heights[row + 1])
40214
+ alarmHeight = this.model.heights[row + 1];
40214
40215
  let margin = '0 15px';
40215
40216
  if (this.model.generalSetting.textAlign === 'left') {
40216
40217
  margin = '0 30px 0 0';
@@ -40220,19 +40221,32 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40220
40221
  }
40221
40222
  alarmLevel.style.cssText = `margin: ${margin};
40222
40223
  border-radius: 5px;
40223
- background: ${levelColors[this.alarmList[i][j]]};
40224
+ background: ${levelColors[this.alarmList[row][col]]};
40224
40225
  color: #ffffff;
40225
- width: ${this.model.widths[j] - 30}px;
40226
+ width: ${this.model.widths[col] - 30}px;
40226
40227
  height: ${alarmHeight}px;
40227
- max-height: ${this.model.heights[i + 1]}px;
40228
+ max-height: ${this.model.heights[row + 1]}px;
40228
40229
  display: flex;
40229
40230
  justify-content: center;
40230
40231
  align-items: center;
40231
40232
  ${this.model.generalSetting.isUnderline ? 'text-decoration: underline' : ''};`;
40232
- alarmLevel.innerHTML = this.model.levelText[this.alarmList[i][j]];
40233
+ alarmLevel.innerHTML = this.model.levelText[this.alarmList[row][col]];
40233
40234
  td.appendChild(alarmLevel);
40234
40235
  }
40235
40236
  }
40237
+ else if (col === 2) {
40238
+ const alarmLevel = document.createElement('div');
40239
+ let margin = '0 15px';
40240
+ if (this.model.generalSetting.textAlign === 'left') {
40241
+ margin = '0 30px 0 0';
40242
+ }
40243
+ else if (this.model.generalSetting.textAlign === 'right') {
40244
+ margin = '0 0 0 30px';
40245
+ }
40246
+ alarmLevel.style.cssText = `margin: ${margin};
40247
+ width: ${this.model.widths[col] - 30}px;`;
40248
+ td.appendChild(alarmLevel);
40249
+ }
40236
40250
  tr.appendChild(td);
40237
40251
  }
40238
40252
  table.appendChild(tr);