From c9e41e0c823ab33cfae22f48a01de3a261ad2a53 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Tue, 15 Apr 2025 09:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=AF=BC=E5=87=BAcsv?= =?UTF-8?q?=E3=80=81=E6=8A=A5=E5=91=8A=E6=A8=A1=E6=9D=BF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=A1=86=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/system/log/index.ts | 5 + frontend/src/styles/element.scss | 2 +- frontend/src/views/log/index.vue | 57 ++- .../template/components/reportPopup.vue | 429 +++++++++--------- frontend/src/views/system/template/index.vue | 5 + 5 files changed, 258 insertions(+), 240 deletions(-) diff --git a/frontend/src/api/system/log/index.ts b/frontend/src/api/system/log/index.ts index 1178379..17edb68 100644 --- a/frontend/src/api/system/log/index.ts +++ b/frontend/src/api/system/log/index.ts @@ -9,3 +9,8 @@ import http from '@/api' export const getAuditLog = (params: AuditLog.ReqAuditLogParams) => { return http.post(`/sysLog/list`, params) } + + +export const exportCsv = (params: AuditLog.ReqAuditLogParams) => { + return http.download(`/sysLog/exportCSV`, params) +} \ No newline at end of file diff --git a/frontend/src/styles/element.scss b/frontend/src/styles/element.scss index 22874db..b350d1f 100644 --- a/frontend/src/styles/element.scss +++ b/frontend/src/styles/element.scss @@ -445,7 +445,7 @@ .dialog-small { .el-dialog__body { - max-height: 340px; + max-height: 350px; } } diff --git a/frontend/src/views/log/index.vue b/frontend/src/views/log/index.vue index d2d476e..b646c00 100644 --- a/frontend/src/views/log/index.vue +++ b/frontend/src/views/log/index.vue @@ -1,16 +1,14 @@