Files
CN_Tool_client/frontend/src/routers/modules/staticRouter.ts
yexb 81f90ce0f2 feat(auth): 优化权限模块菜单数据处理逻辑
- 添加showMenuList、flatMenuList和breadcrumbList状态字段
- 修改getter方法直接返回缓存的状态数据
- 新增refreshDerivedMenus方法统一处理菜单衍生数据计算
- 在重置授权存储时清理新增的菜单相关状态
- 避免每次路由跳转时重复深拷贝整个菜单树结构

feat(checksquare): 完善校验功能组件和业务逻辑

- 新增测量点对话框组件用于显示监测点详细信息
- 添加校验台账工具函数解析测量点详情
- 实现任务表格删除功能包括确认提示和数据刷新
- 更新任务表格将缺失率字段替换为数据完整性字段
- 重构详情面板使用标签页展示不同类型的校验详情
- 优化摘要表格样式包括紧凑布局和危险颜色标识
- 统一详情对话框尺寸样式保持界面一致性
- 实现数据完整性字段的百分比单位去除处理

refactor(influxdb): 简化数据库启动流程移除命令行包装器

- 直接通过influxd.exe启动InfluxDB服务
- 移除对cmd.exe包装器的依赖和进程ID记录
- 保持进程管理和停止功能的完整性
2026-06-12 08:44:07 +08:00

238 lines
8.1 KiB
TypeScript

import { type RouteRecordRaw } from 'vue-router'
import { HOME_URL, LOGIN_URL } from '@/config'
export const Layout = () => import('@/layouts/index.vue')
export const staticRouter: RouteRecordRaw[] = [
{
path: '/',
redirect: HOME_URL
},
{
path: LOGIN_URL,
name: 'login',
component: () => import('@/views/login/index.vue'),
meta: {
title: 'Login'
}
},
{
path: '/layout',
name: 'layout',
component: Layout,
children: [
{
path: HOME_URL,
name: 'home',
component: () => import('@/views/home/index.vue'),
meta: {
cacheName: 'HomeWorkbench',
title: '首页',
icon: 'HomeFilled',
isHide: false,
isFull: false,
isAffix: true,
isKeepAlive: false
}
},
{
path: '/tools',
name: 'tools',
component: () => import('@/views/tools/index.vue'),
meta: {
cacheName: 'ToolsView',
title: '工具中心'
}
},
{
path: '/tools/waveform',
name: 'toolWaveform',
component: () => import('@/views/tools/waveform/index.vue'),
meta: {
cacheName: 'WaveformView',
title: '波形查看'
}
},
{
path: '/tools/mmsMapping',
name: 'toolMmsMapping',
alias: ['/tools/mmsmapping', '/tools/mms-mapping'],
component: () => import('@/views/tools/mmsMapping/index.vue'),
meta: {
cacheName: 'MmsMappingView',
title: 'MMS 映射'
}
},
{
path: '/tools/mmsMapping/deviceTypes',
name: 'toolMmsMappingDeviceTypes',
alias: ['/tools/mmsmapping/deviceTypes', '/tools/mms-mapping/device-types'],
component: () => import('@/views/tools/mmsMapping/deviceTypes/index.vue'),
meta: {
cacheName: 'MmsDeviceTypesView',
title: '设备类型校验'
}
},
{
path: '/tools/addData',
name: 'toolAddData',
component: () => import('@/views/tools/addData/index.vue'),
meta: {
cacheName: 'AddDataView',
title: '模拟数据'
}
},
{
path: '/tools/addLedger',
name: 'toolAddLedger',
component: () => import('@/views/tools/addLedger/index.vue'),
meta: {
cacheName: 'AddLedgerView',
title: '数据台账'
}
},
{
path: '/eventList/index',
name: 'eventList',
alias: [
'/eventList',
'/eventlist',
'/eventlist/index',
'/event/eventList',
'/event/eventList/index',
'/event/event-list',
'/event/event-list/index'
],
component: () => import('@/views/event/eventList/index.vue'),
meta: {
cacheName: 'EventListView',
title: '事件列表'
}
},
{
path: '/steadyDataView/index',
name: 'steadyDataView',
alias: [
'/steadyDataView',
'/steadydataView',
'/steadydataView/index',
'/steady/steadyDataView',
'/steady/steadyDataView/index',
'/steady/steady-data-view',
'/steady/steady-data-view/index'
],
component: () => import('@/views/steady/steadyDataView/index.vue'),
meta: {
cacheName: 'SteadyDataView',
title: '稳态数据'
}
},
{
path: '/steadyTrend/index',
name: 'steadyTrend',
alias: [
'/steadyTrend',
'/steadytrend',
'/steadytrend/index',
'/steady/steadyTrend',
'/steady/steadyTrend/index',
'/steady/steady-trend',
'/steady/steady-trend/index'
],
component: () => import('@/views/steady/steadyTrend/index.vue'),
meta: {
cacheName: 'SteadyTrend',
title: '\u7a33\u6001\u8d8b\u52bf'
}
},
{
path: '/checksquare/index',
name: 'checksquare',
alias: [
'/checksquare',
'/checksquare/index',
'/steady/checksquare',
'/steady/checksquare/index',
'/steady/check-square',
'/steady/check-square/index'
],
component: () => import('@/views/steady/checksquare/index.vue'),
meta: {
cacheName: 'ChecksquareView',
title: '数据验证入库'
}
},
{
path: '/403',
name: '403',
component: () => import('@/components/ErrorMessage/403.vue'),
meta: {
title: '403'
}
},
{
path: '/404',
name: '404',
component: () => import('@/components/ErrorMessage/404.vue'),
meta: {
title: '404'
}
},
{
path: '/500',
name: '500',
component: () => import('@/components/ErrorMessage/500.vue'),
meta: {
title: '500'
}
},
{
path: '/systemMonitor',
name: 'systemMonitor',
component: () => import('@/views/systemMonitor/index.vue'),
meta: {
cacheName: 'SystemMonitorPage',
title: '系统监控'
}
},
{
path: '/systemMonitor/diskMonitor',
name: 'diskMonitor',
component: () => import('@/views/systemMonitor/diskMonitor/index.vue'),
meta: {
cacheName: 'DiskMonitorPage',
// 磁盘监控页复用系统监控主标签
activeMenu: '/systemMonitor',
hideTab: true,
parentPath: '/systemMonitor',
title: '磁盘监控'
}
},
{
path: '/system-ops/dbms',
name: 'systemOpsDbms',
alias: [
'/systemMonitor/dbms',
'/systemMonitor/dbms/index',
'/systemMonitor/databaseMonitor',
'/systemMonitor/databaseMonitor/index',
'/systemMonitor/database-monitor',
'/systemMonitor/database-monitor/index',
'/system-ops/dbms/index',
'/system-ops/database-monitor',
'/system-ops/database-monitor/index'
],
component: () => import('@/views/system-ops/dbms/index.vue'),
meta: {
cacheName: 'DbmsView',
title: '数据库运维'
}
},
{
path: '/:pathMatch(.*)*',
component: () => import('@/components/ErrorMessage/404.vue')
}
]
}
]