From 38953c5157992c6ca7adffc525b0697876307c9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=AE=AB=E4=B9=98=E9=A3=8E?= <1794748404@qq.com> Date: Wed, 15 May 2024 22:33:31 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A4=B4=E6=9F=A5=E8=AF=A2=E5=92=8C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/log/operationLog.js | 6 ++ src/views/log/operation-log/index.vue | 140 +++++++++++++++++++++----- 2 files changed, 121 insertions(+), 25 deletions(-) diff --git a/src/api/log/operationLog.js b/src/api/log/operationLog.js index 3680fae..c27bf30 100644 --- a/src/api/log/operationLog.js +++ b/src/api/log/operationLog.js @@ -18,3 +18,9 @@ export function batchDeleteOperationLogByIds(data) { }) } +export function CleanOperationLog() { + return request({ + url: '/api/log/operation/clean', + method: 'delete' + }) +} diff --git a/src/views/log/operation-log/index.vue b/src/views/log/operation-log/index.vue index 47c18b8..0e45a94 100644 --- a/src/views/log/operation-log/index.vue +++ b/src/views/log/operation-log/index.vue @@ -3,33 +3,87 @@ - + - + + + + + + + + - + 查询 - 批量删除 + 批量删除 + + + 清空日志 - + + + + @@ -39,7 +93,8 @@ @@ -70,7 +125,7 @@ From a3c55c1b61f0b67c5cc32db494cad89fc4e4e0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=AE=AB=E4=B9=98=E9=A3=8E?= <1794748404@qq.com> Date: Wed, 15 May 2024 22:39:00 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 49ac4b55774ae7674b2917563c02a485ab4a2a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=AE=AB=E4=B9=98=E9=A3=8E?= <1794748404@qq.com> Date: Wed, 15 May 2024 22:42:49 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 3c591fcbc075ca6fab9f683bc68718a9d3c2ae94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=AE=AB=E4=B9=98=E9=A3=8E?= <1794748404@qq.com> Date: Fri, 17 May 2024 18:13:39 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=B2=A1=E6=9C=89=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/log/operation-log/index.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/views/log/operation-log/index.vue b/src/views/log/operation-log/index.vue index 0e45a94..49ea810 100644 --- a/src/views/log/operation-log/index.vue +++ b/src/views/log/operation-log/index.vue @@ -23,10 +23,6 @@ @clear="search" /> - @@ -236,7 +232,9 @@ export default { }).then(async res => { this.loading = true try { - await CleanOperationLog() + await CleanOperationLog().then(res => { + this.judgeResult(res) + }) } finally { this.loading = false }