|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
|
|
|
export const defaultRouter = [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'dashboard',
|
|
|
|
redirect: '/station',
|
|
|
|
component: () => import('@/views/layout/index.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '首页',
|
|
|
|
isShow: true,
|
|
|
|
icon: 'i-mage:file-2',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/station',
|
|
|
|
name: 'station',
|
|
|
|
component: () => import('@/views/stationData/index.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '站点数据',
|
|
|
|
isShow: true,
|
|
|
|
icon: 'i-icon-park-outline:data',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/station/data-transfer',
|
|
|
|
name: 'data-transfer',
|
|
|
|
component: () => import('@/views/stationData/transfer/index.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '数据迁移',
|
|
|
|
isShow: false,
|
|
|
|
icon: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/station/topology',
|
|
|
|
name: 'data-topology',
|
|
|
|
component: () => import('@/views/stationData/topology/index.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '数据拓扑',
|
|
|
|
isShow: false,
|
|
|
|
icon: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 固件上传
|
|
|
|
{
|
|
|
|
path: '/firmware-upload',
|
|
|
|
name: 'firmware-upload',
|
|
|
|
component: () => import('@/views/firmwareUpload/index.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '固件上传',
|
|
|
|
isShow: true,
|
|
|
|
icon: 'i-mingcute:transfer-2-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/task',
|
|
|
|
name: 'task',
|
|
|
|
component: () => import('@/views/taskList/index.vue'),
|
|
|
|
meta: {
|
|
|
|
title: '任务列表',
|
|
|
|
isShow: true,
|
|
|
|
icon: 'i-mingcute:task-line',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// path: '/testG6',
|
|
|
|
// name: 'testG6',
|
|
|
|
// component: () => import('@/views/testG6/index.vue'),
|
|
|
|
// meta: {
|
|
|
|
// title: '测试G6',
|
|
|
|
// isShow: true,
|
|
|
|
// icon: 'i-mingcute:task-line',
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
|
routes: defaultRouter,
|
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|