diff --git a/vue/src/api/iot/device.js b/vue/src/api/iot/device.js index 633608e4..309236ee 100644 --- a/vue/src/api/iot/device.js +++ b/vue/src/api/iot/device.js @@ -34,6 +34,7 @@ export function listAllDeviceShort() { method: 'get', }) } + // 查询设备详细 export function getDevice(deviceId) { return request({ @@ -42,6 +43,14 @@ export function getDevice(deviceId) { }) } +// 查询设备统计信息 +export function getDeviceStatistic() { + return request({ + url: '/iot/device/statistic', + method: 'get' + }) +} + // 查询设备运行状态详细 export function getDeviceRunningStatus(deviceId) { return request({ diff --git a/vue/src/assets/icons/svg/event-a.svg b/vue/src/assets/icons/svg/event-a.svg new file mode 100644 index 00000000..7faf66a0 --- /dev/null +++ b/vue/src/assets/icons/svg/event-a.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/vue/src/assets/icons/svg/log-a.svg b/vue/src/assets/icons/svg/log-a.svg new file mode 100644 index 00000000..6cdd85d7 --- /dev/null +++ b/vue/src/assets/icons/svg/log-a.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/vue/src/assets/icons/svg/monitor-a.svg b/vue/src/assets/icons/svg/monitor-a.svg new file mode 100644 index 00000000..07a4cf1d --- /dev/null +++ b/vue/src/assets/icons/svg/monitor-a.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/vue/src/views/index.vue b/vue/src/views/index.vue index 5a478241..8a28e235 100644 --- a/vue/src/views/index.vue +++ b/vue/src/views/index.vue @@ -66,72 +66,72 @@
设备数量
- +
- + +
+
+
+ 监测数据 +
+ +
+
+
+ +
+
+
产品数量
- -
-
-
- -
-
- -
-
-
- 上报数据 -
- +
- +
- 下发数据 + 功能操作
- +
- -
-
-
- 操作次数 -
- -
-
-
- -
-
- 触发事件 + 告警数量
- + +
+
+
+ +
+
+ +
+
+
+ 上报事件 +
+
@@ -155,7 +155,7 @@ - +

Mqtt 统计指标

@@ -350,6 +350,9 @@