diff --git a/fund-admin/src/api/operationLog.js b/fund-admin/src/api/operationLog.js new file mode 100644 index 0000000..589f20d --- /dev/null +++ b/fund-admin/src/api/operationLog.js @@ -0,0 +1,43 @@ +import request from '../utils/request' + +/** + * 获取操作日志列表(分页) + */ +export const getOperationLogList = (params) => { + return request({ + url: '/sys/api/v1/operation-log/list', + method: 'get', + params + }) +} + +/** + * 获取操作日志详情 + */ +export const getOperationLogById = (logId) => { + return request({ + url: `/sys/api/v1/operation-log/${logId}`, + method: 'get' + }) +} + +/** + * 删除操作日志 + */ +export const deleteOperationLog = (logId) => { + return request({ + url: `/sys/api/v1/operation-log/${logId}`, + method: 'delete' + }) +} + +/** + * 批量删除操作日志(删除指定天数之前的日志) + */ +export const batchDeleteOperationLog = (days) => { + return request({ + url: '/sys/api/v1/operation-log/batch', + method: 'delete', + params: { days } + }) +} diff --git a/fund-admin/src/views/system/operationLog.vue b/fund-admin/src/views/system/operationLog.vue new file mode 100644 index 0000000..fa99713 --- /dev/null +++ b/fund-admin/src/views/system/operationLog.vue @@ -0,0 +1,350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 批量清理 + + + + + + + + + + {{ getOperationTypeText(row.operationType) }} + + + + + + + + + + {{ row.executionTime }}ms + + + + + + + + 成功 + 失败 + + + + + + 查看详情 + 删除 + + + + + + + + + + + + {{ detail.logId }} + {{ detail.module }} + + + {{ getOperationTypeText(detail.operationType) }} + + + + 成功 + 失败 + + {{ detail.description }} + {{ detail.requestMethod }} + {{ detail.executionTime }}ms + {{ detail.requestUrl }} + + {{ detail.requestParams }} + + + {{ detail.responseResult }} + + {{ detail.operatorName }} + {{ detail.operatorId }} + {{ detail.operatorIp }} + {{ detail.operatorLocation }} + {{ detail.createdTime }} + + {{ detail.errorMsg }} + + + + 关闭 + + + + + + + + + + 将删除 {{ batchDeleteDays }} 天前的所有操作日志 + + + + + 取消 + 确定删除 + + + + + + + +
{{ detail.requestParams }}
{{ detail.responseResult }}
{{ detail.errorMsg }}