|
|
@ -3,61 +3,61 @@ import { createRouter, createWebHistory } from 'vue-router'; |
|
|
|
|
|
|
|
export const routes = [ |
|
|
|
{ |
|
|
|
path: '/network-config', |
|
|
|
path: '/corrosion/network-config', |
|
|
|
name: 'network-config', |
|
|
|
meta: { title: '网络参数配置', icon: 'el-icon-setting' }, |
|
|
|
component: () => import('@/views/network-config.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/function-config', |
|
|
|
path: '/corrosion/function-config', |
|
|
|
name: 'function-config', |
|
|
|
meta: { title: '功能参数配置', icon: 'el-icon-set-up' }, |
|
|
|
component: () => import('@/views/function-config.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/device-create', |
|
|
|
path: '/corrosion/device-create', |
|
|
|
name: 'device-create', |
|
|
|
meta: { title: '设备添加', icon: 'el-icon-plus' }, |
|
|
|
component: () => import('@/views/device-create.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/devices', |
|
|
|
path: '/corrosion/devices', |
|
|
|
name: 'devices', |
|
|
|
meta: { title: '设备管理', icon: 'el-icon-box' }, |
|
|
|
component: () => import('@/views/device-list.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/data-history', |
|
|
|
path: '/corrosion/data-history', |
|
|
|
name: 'data-history', |
|
|
|
meta: { title: '历史数据查看', icon: 'el-icon-document-copy' }, |
|
|
|
component: () => import('@/views/data-history.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/statistical-history', |
|
|
|
path: '/corrosion/statistical-history', |
|
|
|
name: 'statistical-history', |
|
|
|
meta: { title: '历史数据统计', icon: 'el-icon-data-line' }, |
|
|
|
component: () => import('@/views/statistical-history.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/statistical-realtime', |
|
|
|
path: '/corrosion/statistical-realtime', |
|
|
|
name: 'statistical-realtime', |
|
|
|
meta: { title: '实时数据统计', icon: 'el-icon-time' }, |
|
|
|
component: () => import('@/views/statistical-realtime.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/months', |
|
|
|
path: '/corrosion/months', |
|
|
|
name: 'months', |
|
|
|
meta: { title: '月累计数据分析', icon: 'el-icon-data-analysis' }, |
|
|
|
component: () => import('@/views/month-data.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/communication-log', |
|
|
|
path: '/corrosion/communication-log', |
|
|
|
name: 'communication-log', |
|
|
|
meta: { title: '通讯日志', icon: 'el-icon-phone-outline' }, |
|
|
|
component: () => import('@/views/communication-log.vue'), |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/access-log', |
|
|
|
path: '/corrosion/access-log', |
|
|
|
name: 'access-log', |
|
|
|
meta: { title: '访问日志', icon: 'el-icon-message' }, |
|
|
|
component: () => import('@/views/access-log.vue'), |
|
|
|