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