@flexem/fc-gui 3.0.0-alpha.98 → 3.0.0-alpha.99

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
@@ -439,4 +439,9 @@
439
439
  ## 3.0.0-alpha.98(2023-09-26)
440
440
  ### Web端
441
441
  #### Bug Fix
442
- 1. FLEXCLOUD-2864 2018年创建的模板组态写值失败(在开发分支上使用)
442
+ 1. FLEXCLOUD-2864 2018年创建的模板组态写值失败(在开发分支上使用)
443
+
444
+ ## 3.0.0-alpha.99(2023-11-27)
445
+ ### Web端
446
+ #### Features
447
+ 1. FLEXCLOUD-2885 设备模板—组态设计—告警表/历史曲线表,分页、时间选择背景为透明
@@ -36740,27 +36740,31 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
36740
36740
  .append('foreignObject').attr('width', chartWidth).attr('height', this.displayOption.operationAreaHeight).attr('fill', 'none')
36741
36741
  .append('xhtml:div').style('height', (this.displayOption.operationAreaHeight - 4) + 'px').style('overflow', 'hidden').style('margin-top', '4px');
36742
36742
  const selectElement = operationArea.append('select').style('margin-left', this.displayOption.marginLeft + 'px')
36743
+ .style('background-color', 'inherit')
36743
36744
  .style('font-size', this.displayOption.operationSelectFontSize).on('change', () => {
36744
36745
  const displayTimePeriod = this.rootElement.select('select').property('value');
36745
36746
  this.updateTimeRange(displayTimePeriod);
36746
36747
  this.reRenderElement(this.startTime, this.endTime, this.displayOption.dataLimit, HistoricalCurveTimeRange.BeginOpenEndOpen);
36747
36748
  });
36749
+ const rect = this.$element.parent().parent().find('rect');
36750
+ const fillColor = rect.attr('fill');
36748
36751
  const options = selectElement.selectAll('option').data(this.timePeriods).enter().append('option');
36749
- options.text(d => d.name).attr('value', d => d.key).property('selected', d => d.key === Number(this.currentTimePeriod));
36752
+ options.text(d => d.name).attr('value', d => d.key).property('selected', d => d.key === Number(this.currentTimePeriod))
36753
+ .style('background-color', fillColor);
36750
36754
  const buttonWidth = this.displayOption.operationButtonWidth + 'px', buttonHeight = this.displayOption.operationButtonHeight + 'px';
36751
36755
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
36752
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/last_page.svg)')
36756
+ .style('float', 'right').style('background-image', 'url(assets/img/last_page.svg)')
36753
36757
  .on('click', () => { this.loadLastPage(); });
36754
36758
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
36755
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/next_page.svg)')
36759
+ .style('float', 'right').style('background-image', 'url(assets/img/next_page.svg)')
36756
36760
  .style('margin', `0 ${this.displayOption.operationButtonMargin}px 0 0`)
36757
36761
  .on('click', () => { this.loadNextPage(); });
36758
36762
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
36759
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/previous_page.svg)')
36763
+ .style('float', 'right').style('background-image', 'url(assets/img/previous_page.svg)')
36760
36764
  .style('margin', `0 ${this.displayOption.operationButtonMargin}px 0 0`)
36761
36765
  .on('click', () => { this.loadPreviousPage(); });
36762
36766
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
36763
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/first_page.svg)')
36767
+ .style('float', 'right').style('background-image', 'url(assets/img/first_page.svg)')
36764
36768
  .style('margin', `0 ${this.displayOption.operationButtonMargin}px 0 0`)
36765
36769
  .on('click', () => { this.loadFirstPage(); });
36766
36770
  }
@@ -40336,7 +40340,6 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40336
40340
  }
40337
40341
  fontString += this.model.generalSetting.headerFont.fontSize + ' ' + this.model.generalSetting.headerFont.fontFamily;
40338
40342
  tr.style.cssText = `height: ${this.model.heights[0]}px;
40339
- background: ${this.model.generalSetting.headerFillColor};
40340
40343
  color: ${this.model.generalSetting.headerFont.color};
40341
40344
  font: ${fontString};
40342
40345
  text-align: ${this.model.generalSetting.headerFont.textAlign};
@@ -40356,7 +40359,6 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40356
40359
  for (let row = 0; row < this.pageSize; row++) {
40357
40360
  tr = document.createElement('tr');
40358
40361
  tr.style.cssText = `height: ${this.model.heights[row + 1]}px;
40359
- background: ${this.model.generalSetting.tableFillColor};
40360
40362
  font: ${this.model.generalSetting.fontStyle};
40361
40363
  color: ${this.model.generalSetting.fontColor};
40362
40364
  text-align: ${this.model.generalSetting.textAlign};
@@ -40436,18 +40438,18 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
40436
40438
  }
40437
40439
  const buttonWidth = this.displayOption.operationButtonWidth + 'px', buttonHeight = this.displayOption.operationButtonHeight + 'px';
40438
40440
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
40439
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/last_page.svg)')
40441
+ .style('float', 'right').style('background-image', 'url(assets/img/last_page.svg)')
40440
40442
  .on('click', () => { this.loadLastPage(); });
40441
40443
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
40442
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/next_page.svg)')
40444
+ .style('float', 'right').style('background-image', 'url(assets/img/next_page.svg)')
40443
40445
  .style('margin', `0 ${this.displayOption.operationButtonMargin}px 0 0`)
40444
40446
  .on('click', () => { this.loadNextPage(); });
40445
40447
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
40446
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/previous_page.svg)')
40448
+ .style('float', 'right').style('background-image', 'url(assets/img/previous_page.svg)')
40447
40449
  .style('margin', `0 ${this.displayOption.operationButtonMargin}px 0 0`)
40448
40450
  .on('click', () => { this.loadPreviousPage(); });
40449
40451
  operationArea.append('button').style('width', buttonWidth).style('height', buttonHeight).style('border', 'none')
40450
- .style('float', 'right').style('background', 'white').style('background-image', 'url(assets/img/first_page.svg)')
40452
+ .style('float', 'right').style('background-image', 'url(assets/img/first_page.svg)')
40451
40453
  .style('margin', `0 ${this.displayOption.operationButtonMargin}px 0 0`)
40452
40454
  .on('click', () => { this.loadFirstPage(); });
40453
40455
  this.setStatusAsNormal();