From c3d3d524dede762c4bfcb9be8808231a4792cf64 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Sat, 4 Jun 2022 17:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=A1=E6=81=AF=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/api/iot/device.js | 8 - vue/src/views/index.vue | 387 +++++++++++++++++++++++++++----------- 2 files changed, 281 insertions(+), 114 deletions(-) diff --git a/vue/src/api/iot/device.js b/vue/src/api/iot/device.js index 0dbb8a09..4ca47c8c 100644 --- a/vue/src/api/iot/device.js +++ b/vue/src/api/iot/device.js @@ -25,14 +25,6 @@ export function listAllDeviceShort() { method: 'get', }) } -// 查询所有设备简短列表 -export function listAllDeviceShort2(query) { - return request({ - url: '/iot/device/all', - method: 'get', - params: query - }) -} // 查询设备详细 export function getDevice(deviceId) { return request({ diff --git a/vue/src/views/index.vue b/vue/src/views/index.vue index 4b713048..0e1059a1 100644 --- a/vue/src/views/index.vue +++ b/vue/src/views/index.vue @@ -46,7 +46,7 @@ - +
@@ -54,12 +54,115 @@
- -

Mqtt 统计指标

+ +

设备统计

-
+
+ +
+
+
+ 设备数量 +
+ +
+
+ + +
+
+ +
+
+
+ 产品数量 +
+ +
+
+
+ +
+
+ +
+
+
+ 上报数据 +
+ +
+
+
+ +
+
+ +
+
+
+ 下发数据 +
+ +
+
+
+ +
+
+ +
+
+
+ 操作次数 +
+ +
+
+
+ +
+
+ +
+
+
+ 触发事件 +
+ +
+
+
+ + + + +

信息栏

+
+
+
+ 公告 + 信息 + {{item.noticeTitle}} +
+
{{ parseTime(item.createTime, '{y}-{m}-{d}') }}
+
+
+
+ + + + + + + +

Mqtt 统计指标

+ + +
+
@@ -72,7 +175,7 @@
-
+
@@ -85,7 +188,7 @@
-
+
@@ -98,7 +201,7 @@
-
+
@@ -111,7 +214,7 @@
-
+
@@ -124,7 +227,7 @@
-
+
@@ -137,97 +240,115 @@ - + + +
- -
-

服务器状态

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
服务器名称: {{server.sys.computerName}}
服务器IP: {{server.sys.computerIp}}
操作系统: {{server.sys.osName}}
系统架构: {{server.sys.osArch}}
CPU核心: {{server.cpu.cpuNum}}
总内存: {{server.mem.total}}
-
-
- - -
-
-
- - -
-
-
- - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Java名称: {{server.jvm.name}}
启动时间: {{server.jvm.startTime}}
Java版本: {{server.jvm.version}}
运行时长: {{server.jvm.runTime}}
占用内存: {{server.jvm.used}}
JVM总内存: {{server.jvm.total}}
-
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
服务器名称: {{server.sys.computerName}}
服务器IP: {{server.sys.computerIp}}
操作系统: {{server.sys.osName}}
系统架构: {{server.sys.osArch}}
CPU核心: {{server.cpu.cpuNum}}
总内存: {{server.mem.total}}
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Java名称: {{server.jvm.name}}
启动时间: {{server.jvm.startTime}}
Java版本: {{server.jvm.version}}
运行时长: {{server.jvm.runTime}}
占用内存: {{server.jvm.used}}
JVM总内存: {{server.jvm.total}}
+
+
+
+ + + +
+ 公告 + 信息 + {{notice.createTime}} +
+
+
+
+ +