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 @@
设备管理数据总览