diff --git a/ruoyi-ui/src/api/infra/apiAccessLog.js b/ruoyi-ui/src/api/infra/apiAccessLog.js index 5d1249a1e..6456a5085 100644 --- a/ruoyi-ui/src/api/infra/apiAccessLog.js +++ b/ruoyi-ui/src/api/infra/apiAccessLog.js @@ -1,40 +1,5 @@ import request from '@/utils/request' -// 创建API 访问日志 -export function createApiAccessLog(data) { - return request({ - url: '/infra/api-access-log/create', - method: 'post', - data: data - }) -} - -// 更新API 访问日志 -export function updateApiAccessLog(data) { - return request({ - url: '/infra/api-access-log/update', - method: 'put', - data: data - }) -} - - -// 删除API 访问日志 -export function deleteApiAccessLog(id) { - return request({ - url: '/infra/api-access-log/delete?id=' + id, - method: 'delete' - }) -} - -// 获得API 访问日志 -export function getApiAccessLog(id) { - return request({ - url: '/infra/api-access-log/get?id=' + id, - method: 'get' - }) -} - // 获得API 访问日志分页 export function getApiAccessLogPage(query) { return request({ diff --git a/ruoyi-ui/src/views/infra/apiAccessLog/index.vue b/ruoyi-ui/src/views/infra/apiAccessLog/index.vue index ee7819f3c..04c61fe86 100644 --- a/ruoyi-ui/src/views/infra/apiAccessLog/index.vue +++ b/ruoyi-ui/src/views/infra/apiAccessLog/index.vue @@ -18,7 +18,7 @@ - + @@ -45,8 +45,7 @@ - - + @@ -55,31 +54,26 @@ > - - - - - + + - {{ parseTime(scope.row.beginTime, '{y}-{m}-{d}') }} + {{ parseTime(scope.row.beginTime) }} - + - {{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }} + {{ scope.row.duration }} ms - - - - + - {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }} + {{ scope.row.resultCode === 0 ? '成功' : '失败(' + scope.row.resultMsg + ')' }} - + 详细 @@ -87,11 +81,39 @@ + + + + + + {{ form.id }} + {{ form.traceId }} + {{ form.applicationName }} + + {{ form.userId }} | {{ getDictDataLabel(DICT_TYPE.USER_TYPE, form.userType) }} | {{ form.userIp }} | {{ form.userAgent}} + + {{ form.requestMethod }} | {{ form.requestUrl }} + {{ form.requestParams }} + + {{ parseTime(form.beginTime) }} ~ {{ parseTime(form.endTime) }} | {{ form.duration }} ms + + + 正常 + 失败 | {{ form.resultCode }} || {{ form.resultMsg}} + + + + + + +