feat: add alarm-host

This commit is contained in:
yangsy
2025-11-26 16:28:05 +08:00
parent 8fa904dfc0
commit 68052f7630
15 changed files with 238 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ export function useDeviceSelection() {
const router = useRouter();
const selectedStationCode = ref<string>();
const selectedDeviceType = ref<DeviceTypeVal>(DeviceType.Camera);
const selectedDeviceType = ref<DeviceTypeVal>(DeviceType.AlarmHost);
const selectedDevice = ref<NdmDeviceResultVO>();
const initFromRoute = (lineDevices: LineDevices) => {

View File

@@ -10,6 +10,7 @@ import { computed } from 'vue';
const createEmptyStationAlarmCounts = () => {
return {
[DeviceType.AlarmHost]: 0,
[DeviceType.Camera]: 0,
[DeviceType.Decoder]: 0,
[DeviceType.Keyboard]: 0,

View File

@@ -9,6 +9,7 @@ import { computed } from 'vue';
const createEmptyStationDevices = (): StationDevices => {
return {
[DeviceType.AlarmHost]: [],
[DeviceType.Camera]: [],
[DeviceType.Decoder]: [],
[DeviceType.Keyboard]: [],