173 lines
5.6 KiB
TypeScript
173 lines
5.6 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/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: '/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: '/:pathMatch(.*)*',
|
|
component: () => import('@/components/ErrorMessage/404.vue')
|
|
}
|
|
]
|
|
}
|
|
]
|