diff --git a/.gitignore b/.gitignore
index 8ee54e8..f60e138 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
-# Logs
-logs
+
*.log
npm-debug.log*
yarn-debug.log*
diff --git a/src/api/system/systemLog.ts b/src/api/system/systemLog.ts
new file mode 100644
index 0000000..b6bed4e
--- /dev/null
+++ b/src/api/system/systemLog.ts
@@ -0,0 +1,19 @@
+import { get, post } from '@/api/request';
+
+const env = import.meta.env;
+const PREFIX = env.VITE_API_PREFIX_SYSTEM;
+
+// 列表
+export const pageApi = (params: any) => {
+ return post(`${PREFIX}systemLog/page`, params);
+};
+// 获取某天每小时在线用户统计
+export const getHourlyOnlineStatisticsApi = (params: any) => {
+ return get(`${PREFIX}systemLog/getHourlyOnlineStatistics`, params);
+};
+
+// 统计某时间段(天)的用户登录数
+export const getUserLoginStatisticsApi = (params: any) => {
+ return get(`${PREFIX}systemLog/getUserLoginStatistics`, params);
+};
+
diff --git a/src/components/common/echartCard/index.vue b/src/components/common/echartCard/index.vue
index 283fe8d..145cd03 100644
--- a/src/components/common/echartCard/index.vue
+++ b/src/components/common/echartCard/index.vue
@@ -103,7 +103,7 @@ align-items: center;
left: 0;
right: 0;
bottom: 0;
- z-index: 9999;
+ z-index: 999;
height: 100vh;
width: 100vm;
}
diff --git a/src/router/routerData.ts b/src/router/routerData.ts
index 75aa0b5..717dfeb 100644
--- a/src/router/routerData.ts
+++ b/src/router/routerData.ts
@@ -311,6 +311,12 @@ export default [
name: 'systemApplication',
component: () => import('@/views/system/application/index.vue'),
},
+ {
+ title: '日志管理',
+ path: '/system/logs',
+ name: 'systemLogs',
+ component: () => import('@/views/system/logs/index.vue'),
+ },
{
title: '动态表格',
path: '/system/dynamicTable',
diff --git a/src/utils/i18n/en.ts b/src/utils/i18n/en.ts
index 356feaa..ec548b8 100644
--- a/src/utils/i18n/en.ts
+++ b/src/utils/i18n/en.ts
@@ -76,6 +76,7 @@ const lang = {
配置管理: 'Configuration Management',
用户组管理: 'User Group Management',
应用管理: 'Application Management',
+ 日志管理: 'Log Management',
动态表格: 'Dynamic Table',
工作负载: 'Work Load',
},
diff --git a/src/utils/i18n/zh.ts b/src/utils/i18n/zh.ts
index 3209db7..2962547 100644
--- a/src/utils/i18n/zh.ts
+++ b/src/utils/i18n/zh.ts
@@ -76,6 +76,7 @@ const lang = {
配置管理: '配置管理',
用户组管理: '用户组管理',
应用管理: '应用管理',
+ 日志管理: '日志管理',
动态表格: '动态表格',
工作负载: '工作负载',
},
diff --git a/src/views/system/logs/components/lineChart.vue b/src/views/system/logs/components/lineChart.vue
new file mode 100644
index 0000000..c8dff90
--- /dev/null
+++ b/src/views/system/logs/components/lineChart.vue
@@ -0,0 +1,305 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/logs/index.vue b/src/views/system/logs/index.vue
new file mode 100644
index 0000000..ef8ba89
--- /dev/null
+++ b/src/views/system/logs/index.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+ 正常
+ 异常
+
+
+
+
+
+
+
+
+
+
+
+