feat: alarm records query
This commit is contained in:
@@ -35,15 +35,15 @@ const { data: lineAlarms } = useLineAlarmsQuery();
|
||||
"
|
||||
:station-alarms="
|
||||
lineAlarms?.[station.code] ?? {
|
||||
[DeviceType.Camera]: { occurred: [], recovered: [] },
|
||||
[DeviceType.Decoder]: { occurred: [], recovered: [] },
|
||||
[DeviceType.Keyboard]: { occurred: [], recovered: [] },
|
||||
[DeviceType.MediaServer]: { occurred: [], recovered: [] },
|
||||
[DeviceType.Nvr]: { occurred: [], recovered: [] },
|
||||
[DeviceType.SecurityBox]: { occurred: [], recovered: [] },
|
||||
[DeviceType.Switch]: { occurred: [], recovered: [] },
|
||||
[DeviceType.VideoServer]: { occurred: [], recovered: [] },
|
||||
unclassified: { occurred: [], recovered: [] },
|
||||
[DeviceType.Camera]: [],
|
||||
[DeviceType.Decoder]: [],
|
||||
[DeviceType.Keyboard]: [],
|
||||
[DeviceType.MediaServer]: [],
|
||||
[DeviceType.Nvr]: [],
|
||||
[DeviceType.SecurityBox]: [],
|
||||
[DeviceType.Switch]: [],
|
||||
[DeviceType.VideoServer]: [],
|
||||
unclassified: [],
|
||||
}
|
||||
"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user