From e93000b0c22f5149cb84bc9b6ea255eb2a3f5b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=98=9F?= <10947742+xu-xing9@user.noreply.gitee.com> Date: Tue, 31 Mar 2026 18:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0+2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/Sidebar.vue | 6 +- src/app/pages/Dashboard.vue | 140 +++++++++--------------- src/app/pages/DeviceDetail.vue | 2 +- src/app/pages/DeviceModelManagement.vue | 12 +- src/app/pages/FirmwareLibrary.vue | 2 +- src/app/pages/RepairOrderDetail.vue | 1 + src/app/pages/ScrapManagement.vue | 9 +- src/app/router.ts | 2 + 8 files changed, 71 insertions(+), 103 deletions(-) diff --git a/src/app/components/Sidebar.vue b/src/app/components/Sidebar.vue index 3af7078..d0c6898 100644 --- a/src/app/components/Sidebar.vue +++ b/src/app/components/Sidebar.vue @@ -15,7 +15,7 @@ + :style="{ color: route.path === item.path || (item.path !== '/' && route.path.startsWith(item.path)) ? '#fff' : 'rgba(255,255,255,0.65)', backgroundColor: route.path === item.path || (item.path !== '/' && route.path.startsWith(item.path)) ? '#1890FF' : 'transparent' }"> {{ item.label }} @@ -39,9 +39,9 @@ const toggleGroup = (title: string) => { const menuGroups = [ { title: '设备', items: [{ path: '/devices', label: '设备列表' }, { path: '/models', label: '型号管理' }] }, { title: '授权', items: [{ path: '/licenses', label: '授权管理' }, { path: '/activation', label: '激活管理' }] }, - { title: '固件', items: [{ path: '/firmware', label: '固件库' }, { path: '/firmware-upgrade', label: '升级任务' }] }, + { title: '固件', items: [{ path: '/firmware', label: '固件库' }] }, { title: '配置', items: [{ path: '/config-files', label: '配置管理' }] }, - { title: '校准', items: [{ path: '/calibration', label: '校准管理' }] }, + { title: '校准', items: [{ path: '/calibration', label: '校准记录' }] }, { title: '维修', items: [{ path: '/repair', label: '维修工单' }, { path: '/repair/stats', label: '维修统计' }, { path: '/scrap', label: '报废回收' }] }, ] diff --git a/src/app/pages/Dashboard.vue b/src/app/pages/Dashboard.vue index 3600d6d..e9a8549 100644 --- a/src/app/pages/Dashboard.vue +++ b/src/app/pages/Dashboard.vue @@ -1,112 +1,74 @@ - 首页 设备管理数据总览 - + - {{ metric.label }} {{ metric.value }} - + {{ metric.trendValue }} - + - + - + 设备状态分布 - - - {{ item.name }} - + + {{ item.name }} - - - - {{ item.value }} + + {{ item.value }} - + - 通知 + 待处理任务 - + {{ group.title }} - - {{ group.count }} - + {{ group.count }} - + {{ task.deviceSN }} {{ task.description }} {{ task.time }} - 处理 + 处理 - + 查看全部 {{ group.count }} 项 - + @@ -115,28 +77,17 @@
设备管理数据总览