This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>队列状态</span>
|
||||
<el-button size="small" @click="loadQueueStatus">刷新</el-button>
|
||||
<el-button size="small" @click="loadQueueStatus(true)">刷新</el-button>
|
||||
</div>
|
||||
</template>
|
||||
<el-table :data="queueStatusList" border stripe>
|
||||
@@ -102,7 +102,7 @@
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>任务统计(最近1小时)</span>
|
||||
<el-button size="small" @click="loadTaskStats">刷新</el-button>
|
||||
<el-button size="small" @click="loadTaskStats(true)">刷新</el-button>
|
||||
</div>
|
||||
</template>
|
||||
<el-table :data="taskStatsList" border stripe>
|
||||
@@ -134,7 +134,7 @@
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>初始化进度</span>
|
||||
<el-button size="small" @click="loadInitProgress">刷新</el-button>
|
||||
<el-button size="small" @click="loadInitProgress(true)">刷新</el-button>
|
||||
</div>
|
||||
</template>
|
||||
<div class="init-progress-content">
|
||||
@@ -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('加载初始化进度失败')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user