@flexem/fc-gui 3.0.0-alpha.48 → 3.0.0-alpha.49

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
@@ -201,7 +201,7 @@
201
201
  #### Features
202
202
  1. 解决manager设置了数值运算写值失败的问题
203
203
 
204
- ## 3.0.0-alpha.48(2022-10-25)
204
+ ## 3.0.0-alpha.49(2022-10-25)
205
205
  ### Web端
206
206
  #### Features
207
207
  1. 解决一个偶发问题,在云组态的元件中设置了增益时,可能出现写完值后会先显示增益后的值并提示超过长度,再关掉弹窗的问题
@@ -27553,6 +27553,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27553
27553
  });
27554
27554
  this.writeValueMmodalRef.content.onClosed = (result) => {
27555
27555
  if (result) {
27556
+ if (this.restorationTimer) {
27557
+ clearTimeout(this.restorationTimer);
27558
+ this.restorationTimer = undefined;
27559
+ }
27556
27560
  const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
27557
27561
  this.writeValue = writeValue;
27558
27562
  this.showValue = result.showValue;
@@ -27561,7 +27565,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27561
27565
  this.writeValueMmodalRef.hide();
27562
27566
  }
27563
27567
  else {
27564
- setTimeout(() => {
27568
+ this.restorationTimer = setTimeout(() => {
27565
27569
  if (+this.displayText !== +this.showValue) {
27566
27570
  this.writeValueMmodalRef.content.isSubmitting = false;
27567
27571
  this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
@@ -27604,6 +27608,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27604
27608
  this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
27605
27609
  this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
27606
27610
  if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
27611
+ if (this.restorationTimer) {
27612
+ clearTimeout(this.restorationTimer);
27613
+ this.restorationTimer = undefined;
27614
+ }
27607
27615
  this.writeValueMmodalRef.hide();
27608
27616
  this.writeValueMmodalRef.content.hideValidationErrorInfo();
27609
27617
  this.recordOperation(this.writeValue);