diff --git a/src/apis/models/device/index.ts b/src/apis/models/device/index.ts index b92c971..0f30847 100644 --- a/src/apis/models/device/index.ts +++ b/src/apis/models/device/index.ts @@ -26,3 +26,4 @@ export * from './video/ndm-video-server'; export type NdmDeviceVO = NdmSecurityBoxVO | NdmSwitchVO | NdmNvrVO | NdmCameraVO | NdmDecoderVO | NdmKeyboardVO | NdmMediaServerVO | NdmVideoServerVO; export type NdmDeviceResultVO = Partial; export type NdmServerVO = NdmMediaServerVO | NdmVideoServerVO; +export type NdmServerResultVO = Partial; diff --git a/src/apis/models/device/log/ndm-device-alarm-log.ts b/src/apis/models/device/log/ndm-device-alarm-log.ts index fe4f72e..776ba81 100644 --- a/src/apis/models/device/log/ndm-device-alarm-log.ts +++ b/src/apis/models/device/log/ndm-device-alarm-log.ts @@ -15,6 +15,7 @@ export interface NdmDeviceAlarmLogVO extends BaseModel { impactService: string; alarmType: string; deviceType: string; + stationCode: string; } export type NdmDeviceAlarmLogResultVO = Partial; diff --git a/src/apis/requests/station/ndm-verify.ts b/src/apis/requests/station/ndm-verify.ts index 5e0251c..91d173f 100644 --- a/src/apis/requests/station/ndm-verify.ts +++ b/src/apis/requests/station/ndm-verify.ts @@ -8,3 +8,20 @@ export const ndmVerify = async (stationCode: string, signal?: AbortSignal) => { throw err; } }; + +export interface BatchVerify { + name: string; + ipAddress: string; + stationCode: string; + verifyUrl: string; + onlineState: boolean; +} + +export const batchVerify = async (signal?: AbortSignal) => { + const resp = await ndmClient.post('/api/ndm/ndmKeepAlive/batchVerify', {}, { retRaw: true, timeout: 5000, signal }); + const [err, list] = resp; + if (err || !list) { + throw err; + } + return list; +}; diff --git a/src/components/dashboard-page/device-alarm-detail-modal.vue b/src/components/dashboard-page/device-alarm-detail-modal.vue index 4b32a62..baad649 100644 --- a/src/components/dashboard-page/device-alarm-detail-modal.vue +++ b/src/components/dashboard-page/device-alarm-detail-modal.vue @@ -1,24 +1,23 @@