@flexem/fc-gui 3.0.0-alpha.116 → 3.0.0-alpha.117
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.
|
@@ -35316,6 +35316,7 @@ class readable_element_ReadableElement extends conditional_enable_element_Condit
|
|
|
35316
35316
|
});
|
|
35317
35317
|
}
|
|
35318
35318
|
reportValueChanged(value) {
|
|
35319
|
+
var _a, _b, _c, _d;
|
|
35319
35320
|
Object(lodash["forEach"])(this.elementStates, elementState => {
|
|
35320
35321
|
if (elementState.variableName === value.variableName || elementState.variableName === value.systemName) {
|
|
35321
35322
|
elementState.state = value.state;
|
|
@@ -35329,20 +35330,21 @@ class readable_element_ReadableElement extends conditional_enable_element_Condit
|
|
|
35329
35330
|
}
|
|
35330
35331
|
if (value.systemName === '设备状态') {
|
|
35331
35332
|
let name = value.customStatus;
|
|
35332
|
-
const language = window.abp.localization.currentCulture.name;
|
|
35333
|
+
const language = ((_b = (_a = window.abp.localization) === null || _a === void 0 ? void 0 : _a.currentCulture) === null || _b === void 0 ? void 0 : _b.name) || ((_d = (_c = this.localization.localizationService) === null || _c === void 0 ? void 0 : _c.translate) === null || _d === void 0 ? void 0 : _d.currentLang);
|
|
35334
|
+
const isChinese = language === 'zh-Hans' || language === 'zh';
|
|
35333
35335
|
if (!name) {
|
|
35334
35336
|
switch (value.state) {
|
|
35335
35337
|
case 1:
|
|
35336
|
-
name =
|
|
35338
|
+
name = isChinese ? '在线' : 'Online';
|
|
35337
35339
|
break;
|
|
35338
35340
|
case 3:
|
|
35339
|
-
name =
|
|
35341
|
+
name = isChinese ? '离线' : 'Offline';
|
|
35340
35342
|
break;
|
|
35341
35343
|
case 4:
|
|
35342
|
-
name =
|
|
35344
|
+
name = isChinese ? '告警' : 'Alarming';
|
|
35343
35345
|
break;
|
|
35344
35346
|
case 5:
|
|
35345
|
-
name =
|
|
35347
|
+
name = isChinese ? '未绑定' : 'Unbound';
|
|
35346
35348
|
break;
|
|
35347
35349
|
default:
|
|
35348
35350
|
}
|