diff --git a/src/api/system/operatelog/index.ts b/src/api/system/operatelog/index.ts index 848a5333..cb47d18c 100644 --- a/src/api/system/operatelog/index.ts +++ b/src/api/system/operatelog/index.ts @@ -23,6 +23,31 @@ export type OperateLogVO = { resultData: string } +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 getOperateLogPage = (params: PageParam) => { 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 @@ + + + + + + + + ======================= + {{ log.creatorName }} + {{ log.title }} + ======================= + + + + + + + {{ tagVal }} + {{ log.contentStrList[index2] }} + + + + + + + + {{ getDictLabel(DICT_TYPE.USER_TYPE, log.userType)[0] }} + + + + + + + + + +