@flexem/fc-gui 3.0.0-alpha.47 → 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 +6 -1
- package/bundles/@flexem/fc-gui.umd.js +10 -2
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +4 -4
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/numerical-display/numerical-display-element.d.ts +1 -0
- package/elements/numerical-display/numerical-display-element.js +10 -2
- package/elements/numerical-display/numerical-display-element.metadata.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -199,4 +199,9 @@
|
|
|
199
199
|
## 3.0.0-alpha.47(2022-10-25)
|
|
200
200
|
### Web端
|
|
201
201
|
#### Features
|
|
202
|
-
1. 解决manager设置了数值运算写值失败的问题
|
|
202
|
+
1. 解决manager设置了数值运算写值失败的问题
|
|
203
|
+
|
|
204
|
+
## 3.0.0-alpha.49(2022-10-25)
|
|
205
|
+
### Web端
|
|
206
|
+
#### Features
|
|
207
|
+
1. 解决一个偶发问题,在云组态的元件中设置了增益时,可能出现写完值后会先显示增益后的值并提示超过长度,再关掉弹窗的问题
|
|
@@ -27553,22 +27553,26 @@ 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;
|
|
27559
27563
|
if (+this.displayText !== +this.showValue) {
|
|
27560
|
-
this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
|
|
27561
27564
|
if (this.numericalOperation) {
|
|
27562
27565
|
this.writeValueMmodalRef.hide();
|
|
27563
27566
|
}
|
|
27564
27567
|
else {
|
|
27565
|
-
setTimeout(() => {
|
|
27568
|
+
this.restorationTimer = setTimeout(() => {
|
|
27566
27569
|
if (+this.displayText !== +this.showValue) {
|
|
27567
27570
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
27568
27571
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
27569
27572
|
}
|
|
27570
27573
|
}, 10000);
|
|
27571
27574
|
}
|
|
27575
|
+
this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
|
|
27572
27576
|
}
|
|
27573
27577
|
else {
|
|
27574
27578
|
this.writeValueMmodalRef.hide();
|
|
@@ -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);
|