From aa4684273bddb5eaa19f8982787755e5565e9b38 Mon Sep 17 00:00:00 2001 From: yangsy Date: Wed, 28 Jan 2026 14:31:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=BD=95=E5=83=8F=E8=AF=8A=E6=96=AD=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/request/biz/log/ndm-record-check.ts | 10 ++++ .../record-check-export-modal.vue | 58 +++++++++++++++++-- src/pages/station/station-page.vue | 4 +- 3 files changed, 66 insertions(+), 6 deletions(-) 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(); },