@flexem/fc-gui 3.0.0-alpha.85 → 3.0.0-alpha.86

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
@@ -381,4 +381,9 @@
381
381
  ### Web端
382
382
  #### Bug Fix
383
383
  1. FLEXCLOUD-2609 double类型数值输入元件无法写负数
384
- - 修改写值提示的格式
384
+ - 修改写值提示的格式
385
+
386
+ ## 3.0.0-alpha.86(2023-05-12)
387
+ ### Web端
388
+ #### Bug Fix
389
+ 1. FLEXCLOUD-2612 组态元件写值超时
@@ -37160,14 +37160,17 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
37160
37160
  this.recordValue = result.value;
37161
37161
  const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
37162
37162
  this.showValue = result.showValue;
37163
- if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase() || result.variableRwType === variableRwTypeEnum.witer) {
37163
+ if (this.displayText !== this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
37164
37164
  if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
37165
37165
  this.recordOperation(result.value);
37166
37166
  this.writeValueMmodalRef.hide();
37167
37167
  }
37168
37168
  else {
37169
37169
  this.restorationTimer = setTimeout(() => {
37170
- if (this.displayText.toString().toUpperCase() !== this.showValue.toString().toUpperCase()) {
37170
+ const isEquation = this.model.fractionDigits ?
37171
+ parseFloat(this.displayText) === parseFloat(this.showValue) :
37172
+ parseInt(this.displayText, 16) === parseInt(this.showValue, 16);
37173
+ if (!isEquation) {
37171
37174
  this.writeValueMmodalRef.content.isSubmitting = false;
37172
37175
  this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
37173
37176
  }
@@ -37207,7 +37210,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
37207
37210
  updateVariableValue(value) {
37208
37211
  var _a;
37209
37212
  const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
37210
- if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && displayText.toString().toUpperCase() === this.showValue.toString().toUpperCase()) {
37213
+ const isEquation = this.model.fractionDigits ?
37214
+ parseFloat(displayText) === parseFloat(this.showValue) :
37215
+ parseInt(displayText, 16) === parseInt(this.showValue, 16);
37216
+ if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && isEquation) {
37211
37217
  if (this.restorationTimer) {
37212
37218
  clearTimeout(this.restorationTimer);
37213
37219
  this.restorationTimer = undefined;