From f9c272ad0d2ef1be69103db7f54d57d727f40189 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Thu, 14 Dec 2023 18:18:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=96=B0=E5=A2=9E=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 59c66707753f81d369d952caee9ebc65d29bc472) --- src/api/system/operatelog/index.ts | 25 +++ src/components/OperateLogV2/index.ts | 3 + .../OperateLogV2/src/OperateLogV2.vue | 170 ++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 src/components/OperateLogV2/index.ts create mode 100644 src/components/OperateLogV2/src/OperateLogV2.vue diff --git a/src/api/system/operatelog/index.ts b/src/api/system/operatelog/index.ts index 5fd31dba..49dbe1bb 100644 --- a/src/api/system/operatelog/index.ts +++ b/src/api/system/operatelog/index.ts @@ -31,6 +31,31 @@ export interface OperateLogPageReqVO extends PageParam { startTime?: Date[] } +export type OperateLogV2VO = { + id: number + userNickname: string + traceId: string + userType: number + userId: number + module: string + name: string + bizId: number + content: string + extra: string + requestMethod: string + requestUrl: string + userIp: string + userAgent: string + creator: string + creatorName: string + createTime: Date + // 数据扩展-渲染时使用 + title: string // 操作标题(如果为空则取 name 值) + colSize: number // 变更记录行数 + contentStrList: string[] + tagsContentList: string[] +} + // 查询操作日志列表 export const getOperateLogPageApi = (params: OperateLogPageReqVO) => { return request.get({ url: '/system/operate-log/page', params }) diff --git a/src/components/OperateLogV2/index.ts b/src/components/OperateLogV2/index.ts new file mode 100644 index 00000000..f69c222e --- /dev/null +++ b/src/components/OperateLogV2/index.ts @@ -0,0 +1,3 @@ +import OperateLogV2 from './src/OperateLogV2.vue' + +export { OperateLogV2 } diff --git a/src/components/OperateLogV2/src/OperateLogV2.vue b/src/components/OperateLogV2/src/OperateLogV2.vue new file mode 100644 index 00000000..dd9e8cdf --- /dev/null +++ b/src/components/OperateLogV2/src/OperateLogV2.vue @@ -0,0 +1,170 @@ + + + + +