From 69a0144ebd18481a64e9f12ba1f999b0f7ec72f6 Mon Sep 17 00:00:00 2001 From: Kven <2955163637@qq.com> Date: Tue, 25 Mar 2025 22:16:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(iot):=20=E5=AE=9E=E7=8E=B0=E5=9F=BA?= =?UTF-8?q?=E4=BA=8E=20Websocket=20=E7=9A=84=E8=AE=BE=E5=A4=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新系统标题为"基于MQTT的IOT设备管理系统" - 移除旧的SSE连接,改为使用WebSocket连接 - 新增设备状态、产品状态和报警状态的WebSocket连接及处理逻辑 - 更新面包屑导航和页面标题 - 修改用户编辑页面的标题 - 更新登录页面的标题 --- index.html | 2 +- src/api/product.ts | 9 +- src/components/navbar/index.vue | 2 +- src/router/routes/modules/system.ts | 2 +- src/views/dashboard/workplace/index.vue | 113 ++++++++++++------ src/views/iot/device/index.vue | 2 +- src/views/iot/deviceCard/index.vue | 2 +- .../iot/product/components/product-edit.vue | 4 +- src/views/login/index.vue | 2 +- src/views/login/locale/zh-CN.ts | 2 +- src/views/notification/notice/index.vue | 2 +- .../system/user/components/user-edit.vue | 2 +- src/views/system/user/index.vue | 2 +- 13 files changed, 91 insertions(+), 55 deletions(-) diff --git a/index.html b/index.html index b0e1006..15de931 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico" /> - 物联网网关系统 + 基于MQTT的IOT设备管理系统
diff --git a/src/api/product.ts b/src/api/product.ts index 365daff..8261e21 100644 --- a/src/api/product.ts +++ b/src/api/product.ts @@ -79,7 +79,8 @@ export function addAttachments(data: any) { }); } -// 删除附件 -export function deleteAttachment(id: string) { - return axios.delete(`/api/rest/attachment/delete/${id}`); -} + +// 删除设备预览图或图标 +export function deleteDeviceAttachment(id: string) { + return axios.delete(`/api/rest/device/attachment/${id}`); +} \ No newline at end of file diff --git a/src/components/navbar/index.vue b/src/components/navbar/index.vue index 4505689..cc2e01d 100644 --- a/src/components/navbar/index.vue +++ b/src/components/navbar/index.vue @@ -12,7 +12,7 @@ :heading="5" @click="$router.push({ name: 'Workplace' })" > - 物联网网关系统 + IOT设备管理系统 import('@/views/system/log/index.vue'), meta: { - title: '操作日志管理', + title: '操作日志', requiresAuth: true, permissions: ['system:menu'], }, diff --git a/src/views/dashboard/workplace/index.vue b/src/views/dashboard/workplace/index.vue index b5e1989..d63ac1e 100644 --- a/src/views/dashboard/workplace/index.vue +++ b/src/views/dashboard/workplace/index.vue @@ -3,7 +3,7 @@
- +
@@ -22,8 +22,7 @@