diff --git a/.gitignore b/.gitignore index 60ba69e..351d259 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ build/ Thumbs.db # Logs -logs/ +/logs/ *.log npm-debug.log* yarn-debug.log* diff --git a/frontend/.gitignore b/frontend/.gitignore index d600b6c..336c26a 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -1,5 +1,5 @@ # Logs -logs +/logs *.log npm-debug.log* yarn-debug.log* diff --git a/frontend/src/views/system/logs/Index.vue b/frontend/src/views/system/logs/Index.vue new file mode 100644 index 0000000..7df7db0 --- /dev/null +++ b/frontend/src/views/system/logs/Index.vue @@ -0,0 +1,504 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + + + 重置 + + + + + + + + + 日志列表 + + + + + 批量删除 {{ selectedRowKeys.length > 0 ? `(${selectedRowKeys.length})` : '' }} + + + + 清理过期日志 + + + + + + + + + {{ record.user.nickname || record.user.username }} + + - + + + + {{ record.action }} + + + + + + + {{ record.ip || '-' }} + + + {{ formatDate(record.createTime) }} + + + + 详情 + + + + + + + + + + {{ currentLog.id }} + {{ formatDate(currentLog.createTime) }} + + {{ currentLog.user?.nickname || currentLog.user?.username || '-' }} + + {{ currentLog.userId || '-' }} + + {{ currentLog.action }} + + {{ currentLog.ip || '-' }} + + + + + + {{ formatContent(currentLog.content) }} + + + + + + + + + + + 天 + + + + + + + + + + + +
{{ formatContent(currentLog.content) }}