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 @@ + + + + +