bfg-common 1.3.319 → 1.3.321
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/assets/localization/local_ru.json +2 -2
- package/components/common/pages/hardwareHealth/tableView/TableView.vue +4 -17
- package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +12 -5
- package/components/common/pages/hardwareHealth/tableView/lib/models/interfaces.ts +1 -1
- package/package.json +1 -1
- package/components/common/pages/hardwareHealth/tableView/lib/models/enums.ts +0 -6
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
"lastWeek": "Прошлая неделя",
|
|
820
820
|
"lastYear": "Прошлый год",
|
|
821
821
|
"latest": "Самый последний",
|
|
822
|
-
"latinCpu": "
|
|
822
|
+
"latinCpu": "ЦПУ",
|
|
823
823
|
"launchConsole": "Запустить консоль",
|
|
824
824
|
"launchRemoteConsole": "ЗАПУСК УДАЛЕННОЙ КОНСОЛИ",
|
|
825
825
|
"launchWebConsole": "ЗАПУСК ВЕБ-КОНСОЛИ",
|
|
@@ -2283,7 +2283,7 @@
|
|
|
2283
2283
|
"alertsAndWarnings": "Оповещения и предупреждения",
|
|
2284
2284
|
"systemEventLog": "Журнал системных событий",
|
|
2285
2285
|
"resetEventLog": "Сбросить журнал событий",
|
|
2286
|
-
"reading": "
|
|
2286
|
+
"reading": "Показания",
|
|
2287
2287
|
"selEntries": "записи SEL",
|
|
2288
2288
|
"lastUpdated": "Последнее обновление",
|
|
2289
2289
|
"daily": "Ежедневно",
|
|
@@ -91,24 +91,11 @@ const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
|
91
91
|
table[props.tableMode].headItems(localization.value)
|
|
92
92
|
)
|
|
93
93
|
|
|
94
|
-
const bodyItems =
|
|
95
|
-
|
|
96
|
-
() => props.dataTable,
|
|
97
|
-
(newValue) => {
|
|
98
|
-
if (!newValue?.length) {
|
|
99
|
-
bodyItems.value = []
|
|
100
|
-
return
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const tableData = ['sensor'].includes(props.tableMode) ? newValue : [] // TODO временно так
|
|
94
|
+
const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
95
|
+
const tableData = ['sensor'].includes(props.tableMode) ? props.dataTable : [] // TODO временно так
|
|
104
96
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
localization.value
|
|
108
|
-
)
|
|
109
|
-
},
|
|
110
|
-
{ deep: true, immediate: true }
|
|
111
|
-
)
|
|
97
|
+
return table[props.tableMode].bodyItems(tableData, localization.value)
|
|
98
|
+
})
|
|
112
99
|
</script>
|
|
113
100
|
|
|
114
101
|
<style lang="scss" scoped>
|
|
@@ -9,9 +9,12 @@ import {
|
|
|
9
9
|
constructColumnKey,
|
|
10
10
|
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
11
11
|
import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
|
|
12
|
-
import { UI_E_SensorsIconByStatus } from '~/components/common/pages/hardwareHealth/tableView/lib/models/enums'
|
|
13
12
|
import { UI_E_SensorsCategoryIcon } from '~/components/common/pages/hardwareHealth/lib/models/enums'
|
|
14
13
|
import { hardwareHealthSensorTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
|
|
14
|
+
import {
|
|
15
|
+
sensorsLocalizationByStatus,
|
|
16
|
+
sensorsIconByStatus,
|
|
17
|
+
} from '~/components/common/pages/hardwareHealth/lib/config/status'
|
|
15
18
|
|
|
16
19
|
const getItems = (
|
|
17
20
|
localization: UI_I_Localization
|
|
@@ -56,7 +59,8 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
export const bodyItems = (
|
|
59
|
-
data: UI_I_HardwareHealthSensors[]
|
|
62
|
+
data: UI_I_HardwareHealthSensors[],
|
|
63
|
+
localization: UI_I_Localization
|
|
60
64
|
): UI_I_BodyItem[][] => {
|
|
61
65
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
62
66
|
data.forEach((sensor: UI_I_HardwareHealthSensors, key) => {
|
|
@@ -79,10 +83,12 @@ export const bodyItems = (
|
|
|
79
83
|
},
|
|
80
84
|
{
|
|
81
85
|
key: 'icon',
|
|
82
|
-
text:
|
|
86
|
+
text: localization[
|
|
87
|
+
sensorsLocalizationByStatus[sensor[hardwareHealthSensorTableKeys[1]]]
|
|
88
|
+
],
|
|
83
89
|
id: key,
|
|
84
90
|
data: {
|
|
85
|
-
iconClassName:
|
|
91
|
+
iconClassName: sensorsIconByStatus[sensor.status],
|
|
86
92
|
isSprite: false,
|
|
87
93
|
},
|
|
88
94
|
},
|
|
@@ -101,7 +107,8 @@ export const bodyItems = (
|
|
|
101
107
|
text: sensor[hardwareHealthSensorTableKeys[3]],
|
|
102
108
|
id: key,
|
|
103
109
|
data: {
|
|
104
|
-
iconClassName:
|
|
110
|
+
iconClassName:
|
|
111
|
+
UI_E_SensorsCategoryIcon[sensor.category.toLowerCase()],
|
|
105
112
|
isSprite: true,
|
|
106
113
|
},
|
|
107
114
|
},
|
package/package.json
CHANGED