diff --git a/src/apis/request/biz/log/ndm-record-check.ts b/src/apis/request/biz/log/ndm-record-check.ts index 7a42dbc..479b038 100644 --- a/src/apis/request/biz/log/ndm-record-check.ts +++ b/src/apis/request/biz/log/ndm-record-check.ts @@ -48,3 +48,13 @@ export const reloadAllRecordCheckApi = async (dayOffset: number, options?: { sta if (!data) throw new Error(`${data}`); return data; }; + +export const batchExportRecordCheckApi = async (params: { checkDuration: number; gapSeconds: number; stationCode: Station['code'][] }, options?: { signal?: AbortSignal }) => { + const { signal } = options ?? {}; + const { checkDuration, gapSeconds, stationCode } = params; + const client = userClient; + const endpoint = `/api/ndm/ndmRecordCheck/batchExportByTemplate`; + const resp = await client.post(endpoint, { checkDuration, gapSeconds, stationCode }, { responseType: 'blob', retRaw: true, signal }); + const data = unwrapResponse(resp); + return data; +}; diff --git a/src/components/station/record-check-export-modal/record-check-export-modal.vue b/src/components/station/record-check-export-modal/record-check-export-modal.vue index cd6e889..94bd3c5 100644 --- a/src/components/station/record-check-export-modal/record-check-export-modal.vue +++ b/src/components/station/record-check-export-modal/record-check-export-modal.vue @@ -1,11 +1,12 @@ @@ -92,6 +137,11 @@ const onAfterLeave = () => { + diff --git a/src/pages/station/station-page.vue b/src/pages/station/station-page.vue index a17406d..2a5be42 100644 --- a/src/pages/station/station-page.vue +++ b/src/pages/station/station-page.vue @@ -81,7 +81,7 @@ const { mutate: syncCamera, isPending: cameraSyncing } = useMutation({ window.$notification.info({ title: '摄像机同步结果', content: notices.join(','), - duration: 3000, + duration: 10000, }); if (successRequests.length > 0) { // 摄像机同步后,需要重新查询一次设备 @@ -123,7 +123,7 @@ const { mutate: syncNvrChannels, isPending: nvrChannelsSyncing } = useMutation({ window.$notification.info({ title: '录像机通道同步结果', content: notices.join(','), - duration: 3000, + duration: 10000, }); cancelAction(); },