From 2e1411009d091655384adebb4af9dfae09daf71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E7=A5=96=E6=9C=9B?= <573413756@qq.com> Date: Wed, 26 Oct 2022 10:52:19 +0800 Subject: [PATCH] add log Data --- xiuosiot-frontend/src/api/log/accessLog.js | 9 ++ xiuosiot-frontend/src/api/log/systemLog.js | 9 ++ .../src/views/log/accessLog/index.vue | 94 ++++--------- .../src/views/log/systemLog/index.vue | 129 +++++++----------- 4 files changed, 95 insertions(+), 146 deletions(-) create mode 100644 xiuosiot-frontend/src/api/log/accessLog.js create mode 100644 xiuosiot-frontend/src/api/log/systemLog.js diff --git a/xiuosiot-frontend/src/api/log/accessLog.js b/xiuosiot-frontend/src/api/log/accessLog.js new file mode 100644 index 0000000..266cd4b --- /dev/null +++ b/xiuosiot-frontend/src/api/log/accessLog.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function getList(data) { + return request({ + url: '/log/requestLog', + method: 'get', + data + }) +} diff --git a/xiuosiot-frontend/src/api/log/systemLog.js b/xiuosiot-frontend/src/api/log/systemLog.js new file mode 100644 index 0000000..caf0f9f --- /dev/null +++ b/xiuosiot-frontend/src/api/log/systemLog.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function getList(data) { + return request({ + url: '/log/deviceLog', + method: 'get', + data + }) +} diff --git a/xiuosiot-frontend/src/views/log/accessLog/index.vue b/xiuosiot-frontend/src/views/log/accessLog/index.vue index 8dcef5c..bd9c56f 100644 --- a/xiuosiot-frontend/src/views/log/accessLog/index.vue +++ b/xiuosiot-frontend/src/views/log/accessLog/index.vue @@ -12,14 +12,14 @@

访问IP

-

{{ item.ip }}

+

{{ item.requestip }}

请求耗时

-

{{ item.requestTime }}

+

{{ item.processtime+'ms' }}

请求路径

-

{{ item.path }}

+

{{ item.requesturl }}

请求时间

-

{{ item.time }}

+

{{ item.requesttime }}

@@ -55,40 +55,40 @@
URL
-
XXXXXXX
+
{{ current.requesturl }}
IP
-
XXXXX
+
{{ current.requestip }}
请求
方法
-
XXXXXXX
+
{{ current.requesttype }}
请求
时间
-
XXXXX
+
{{ current.requesttime }}
- 动作 + 请求
参数
-
XXXXXXX
+
{{ current.requestparam }}
请求
耗时
-
XXXXX
+
{{ current.processtime+'ms' }}
@@ -97,29 +97,29 @@
类名
-
XXXXXXX
+
{{ current.classname }}
方法
-
XXXXX
+
{{ current.methodname }}
请求
-
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+
{{ current.requestheader }}
请求
参数 + >返回
结果
-
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+
{{ current.requestresult }}
@@ -130,61 +130,13 @@