@flexem/fc-gui 3.0.0-alpha.45 → 3.0.0-alpha.47

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
@@ -189,4 +189,14 @@
189
189
  ## 3.0.0-alpha.45(2022-10-24)
190
190
  ### Web端
191
191
  #### Features
192
- 1. FLEXCLOUD-2321: 小数位写值不应提示超时
192
+ 1. FLEXCLOUD-2321: 小数位写值不应提示超时
193
+
194
+ ## 3.0.0-alpha.46(2022-10-25)
195
+ ### Web端
196
+ #### Features
197
+ 1. 解决组态写值成功后没有反馈的问题
198
+
199
+ ## 3.0.0-alpha.47(2022-10-25)
200
+ ### Web端
201
+ #### Features
202
+ 1. 解决manager设置了数值运算写值失败的问题
@@ -27556,14 +27556,19 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27556
27556
  const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
27557
27557
  this.writeValue = writeValue;
27558
27558
  this.showValue = result.showValue;
27559
- if (!this.numericalOperation && +this.displayText !== +this.showValue) {
27559
+ if (+this.displayText !== +this.showValue) {
27560
27560
  this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
27561
- setTimeout(() => {
27562
- if (+this.displayText !== +this.showValue) {
27563
- this.writeValueMmodalRef.content.isSubmitting = false;
27564
- this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
27565
- }
27566
- }, 10000);
27561
+ if (this.numericalOperation) {
27562
+ this.writeValueMmodalRef.hide();
27563
+ }
27564
+ else {
27565
+ setTimeout(() => {
27566
+ if (+this.displayText !== +this.showValue) {
27567
+ this.writeValueMmodalRef.content.isSubmitting = false;
27568
+ this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
27569
+ }
27570
+ }, 10000);
27571
+ }
27567
27572
  }
27568
27573
  else {
27569
27574
  this.writeValueMmodalRef.hide();
@@ -27598,7 +27603,7 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27598
27603
  var _a;
27599
27604
  this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
27600
27605
  this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
27601
- if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText !== +this.showValue) {
27606
+ if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
27602
27607
  this.writeValueMmodalRef.hide();
27603
27608
  this.writeValueMmodalRef.content.hideValidationErrorInfo();
27604
27609
  this.recordOperation(this.writeValue);