From 36da079d59fc81dd5407bbe039d45742139fe518 Mon Sep 17 00:00:00 2001 From: sexygoat <1538832180@qq.com> Date: Mon, 30 Mar 2026 18:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=A6=E6=83=85404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/asyncRoutes.ts | 63 ++++++++++--------- .../polling-management/monitor/index.vue | 14 +++-- 2 files changed, 43 insertions(+), 34 deletions(-) diff --git a/src/router/routes/asyncRoutes.ts b/src/router/routes/asyncRoutes.ts index 694f7b1..63cfa69 100644 --- a/src/router/routes/asyncRoutes.ts +++ b/src/router/routes/asyncRoutes.ts @@ -1043,16 +1043,6 @@ export const asyncRoutes: AppRouteRecord[] = [ keepAlive: true } }, - { - path: 'asset-assign/detail/:id', - name: 'AssetAssignDetail', - component: RoutesAlias.AssetAssignDetail, - meta: { - title: 'menus.assetManagement.assetAssignDetail', - isHide: true, - keepAlive: false - } - }, { path: 'authorization-records', name: 'AuthorizationRecords', @@ -1061,19 +1051,31 @@ export const asyncRoutes: AppRouteRecord[] = [ title: 'menus.assetManagement.authorizationRecords', keepAlive: true } - }, - { - path: 'authorization-records/detail/:id', - name: 'AuthorizationRecordDetail', - component: RoutesAlias.AuthorizationRecordDetail, - meta: { - title: 'menus.assetManagement.authorizationRecordDetail', - isHide: true, - keepAlive: false - } } ] }, + // 分配记录详情(放在 asset-management 层级) + { + path: 'asset-assign/detail/:id', + name: 'AssetAssignDetail', + component: RoutesAlias.AssetAssignDetail, + meta: { + title: 'menus.assetManagement.assetAssignDetail', + isHide: true, + keepAlive: false + } + }, + // 授权记录详情(放在 asset-management 层级) + { + path: 'authorization-records/detail/:id', + name: 'AuthorizationRecordDetail', + component: RoutesAlias.AuthorizationRecordDetail, + meta: { + title: 'menus.assetManagement.authorizationRecordDetail', + isHide: true, + keepAlive: false + } + }, // 任务管理 { path: 'tasks', @@ -1101,18 +1103,19 @@ export const asyncRoutes: AppRouteRecord[] = [ title: 'menus.assetManagement.deviceTask', keepAlive: true } - }, - { - path: 'task-detail', - name: 'TaskDetail', - component: RoutesAlias.TaskDetail, - meta: { - title: 'menus.assetManagement.taskDetail', - isHide: true, - keepAlive: false - } } ] + }, + // 任务详情(放在 asset-management 层级) + { + path: 'task-detail', + name: 'TaskDetail', + component: RoutesAlias.TaskDetail, + meta: { + title: 'menus.assetManagement.taskDetail', + isHide: true, + keepAlive: false + } } ] }, diff --git a/src/views/polling-management/monitor/index.vue b/src/views/polling-management/monitor/index.vue index 324e816..7d02f82 100644 --- a/src/views/polling-management/monitor/index.vue +++ b/src/views/polling-management/monitor/index.vue @@ -81,7 +81,7 @@ @@ -102,7 +102,7 @@ @@ -134,7 +134,7 @@
@@ -199,12 +199,18 @@ const loadOverviewStats = async () => { } // 加载初始化进度 -const loadInitProgress = async () => { +const loadInitProgress = async (showMessage = false) => { try { const { data } = await PollingMonitorService.getInitProgress() initProgress.value = data + if (showMessage) { + ElMessage.success('初始化进度已刷新') + } } catch (error) { console.error('加载初始化进度失败', error) + if (showMessage) { + ElMessage.error('加载初始化进度失败') + } } }