From b72768ab4f2605a96fac0789a9ad6e971061d4f8 Mon Sep 17 00:00:00 2001 From: alwayssuper <191763414@qq.com> Date: Thu, 27 Feb 2025 09:29:46 +0800 Subject: [PATCH] feat: home 1 --- src/api/iot/statistics/index.ts | 10 + .../device/detail/DeviceDetailConfig.vue | 2 +- src/views/iot/device/device/detail/index.vue | 4 +- src/views/iot/home/index.vue | 402 ++++++++++++++++++ 4 files changed, 415 insertions(+), 3 deletions(-) create mode 100644 src/api/iot/statistics/index.ts create mode 100644 src/views/iot/home/index.vue diff --git a/src/api/iot/statistics/index.ts b/src/api/iot/statistics/index.ts new file mode 100644 index 00000000..2f9c7024 --- /dev/null +++ b/src/api/iot/statistics/index.ts @@ -0,0 +1,10 @@ +import request from '@/config/axios' + +// IoT 数据统计 API +export const ProductCategoryApi = { + // 查询首页所需数据统计信息 + getIotMainStats: async () => { + return await request.get({ url: `/iot/statistics/main`}) + } + +} \ No newline at end of file diff --git a/src/views/iot/device/device/detail/DeviceDetailConfig.vue b/src/views/iot/device/device/detail/DeviceDetailConfig.vue index 4980c69f..18067ebb 100644 --- a/src/views/iot/device/device/detail/DeviceDetailConfig.vue +++ b/src/views/iot/device/device/detail/DeviceDetailConfig.vue @@ -39,7 +39,7 @@ + +