|
@@ -31,6 +31,15 @@ import Layout from '@/layout' |
|
|
* all roles can be accessed |
|
|
* all roles can be accessed |
|
|
*/ |
|
|
*/ |
|
|
export const constantRoutes = [{ |
|
|
export const constantRoutes = [{ |
|
|
|
|
|
path: '/redirect', |
|
|
|
|
|
component: Layout, |
|
|
|
|
|
hidden: true, |
|
|
|
|
|
children: [{ |
|
|
|
|
|
path: '/redirect/:path(.*)', |
|
|
|
|
|
component: () => import('@/views/redirect/index') |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
path: '/login', |
|
|
path: '/login', |
|
|
component: () => import('@/views/login/index'), |
|
|
component: () => import('@/views/login/index'), |
|
|
hidden: true |
|
|
hidden: true |
|
@@ -52,76 +61,76 @@ export const constantRoutes = [{ |
|
|
component: () => import('@/views/dashboard/index'), |
|
|
component: () => import('@/views/dashboard/index'), |
|
|
meta: { |
|
|
meta: { |
|
|
title: '首页', |
|
|
title: '首页', |
|
|
icon: 'dashboard' |
|
|
|
|
|
|
|
|
icon: 'dashboard', |
|
|
|
|
|
affix: true |
|
|
} |
|
|
} |
|
|
}] |
|
|
}] |
|
|
}, |
|
|
}, |
|
|
// 禁入区域管理 |
|
|
|
|
|
|
|
|
// 禁入区域管理 |
|
|
{ |
|
|
{ |
|
|
path: '/off-limits-manage', |
|
|
path: '/off-limits-manage', |
|
|
component: Layout, |
|
|
component: Layout, |
|
|
redirect: '/off-limits-manage/off-limits-type', |
|
|
redirect: '/off-limits-manage/off-limits-type', |
|
|
name: 'off-limits-manage', |
|
|
name: 'off-limits-manage', |
|
|
meta: { |
|
|
meta: { |
|
|
title: '禁入区域管理', |
|
|
|
|
|
icon: 'el-icon-s-help' |
|
|
|
|
|
|
|
|
title: '禁入区域管理', |
|
|
|
|
|
icon: 'el-icon-s-help' |
|
|
}, |
|
|
}, |
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'off-limits-type', |
|
|
|
|
|
name: 'off-limits-type', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/off-limits-main/off-limits-type/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '禁入类别', |
|
|
|
|
|
icon: 'el-icon-s-order' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'alarm-recognition', |
|
|
|
|
|
name: 'alarm-recognition', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/alarm-recognition/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '告警识别内容', |
|
|
|
|
|
icon: 'el-icon-s-management' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'common-exception', |
|
|
|
|
|
name: 'common-exception', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/common-exception/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '通用例外', |
|
|
|
|
|
icon: 'el-icon-warning' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'user-exception', |
|
|
|
|
|
name: 'user-exception', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/user-exception/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '用户例外', |
|
|
|
|
|
icon: 'el-icon-user-solid' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// todo 一期先不做这个功能 后面原型图确认了再做 |
|
|
|
|
|
/* { |
|
|
|
|
|
path: 'related-setting', |
|
|
|
|
|
name: 'related-setting', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/related-setting/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '相关设置', |
|
|
|
|
|
icon: 'el-icon-s-tools' |
|
|
|
|
|
} |
|
|
|
|
|
}, */ |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'alarm-query', |
|
|
|
|
|
name: 'alarm-query', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/alarm-query/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '告警查询', |
|
|
|
|
|
icon: 'el-icon-message-solid' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
children: [{ |
|
|
|
|
|
path: 'off-limits-type', |
|
|
|
|
|
name: 'off-limits-type', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/off-limits-main/off-limits-type/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '禁入类别', |
|
|
|
|
|
icon: 'el-icon-s-order' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'alarm-recognition', |
|
|
|
|
|
name: 'alarm-recognition', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/alarm-recognition/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '告警识别内容', |
|
|
|
|
|
icon: 'el-icon-s-management' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'common-exception', |
|
|
|
|
|
name: 'common-exception', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/common-exception/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '通用例外', |
|
|
|
|
|
icon: 'el-icon-warning' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'user-exception', |
|
|
|
|
|
name: 'user-exception', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/user-exception/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '用户例外', |
|
|
|
|
|
icon: 'el-icon-user-solid' |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// todo 一期先不做这个功能 后面原型图确认了再做 |
|
|
|
|
|
/* { |
|
|
|
|
|
path: 'related-setting', |
|
|
|
|
|
name: 'related-setting', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/related-setting/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '相关设置', |
|
|
|
|
|
icon: 'el-icon-s-tools' |
|
|
|
|
|
} |
|
|
|
|
|
}, */ |
|
|
|
|
|
{ |
|
|
|
|
|
path: 'alarm-query', |
|
|
|
|
|
name: 'alarm-query', |
|
|
|
|
|
component: () => import('@/views/off-limits-manage/alarm-query/index'), |
|
|
|
|
|
meta: { |
|
|
|
|
|
title: '告警查询', |
|
|
|
|
|
icon: 'el-icon-message-solid' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@@ -169,7 +178,7 @@ export const constantRoutes = [{ |
|
|
}] |
|
|
}] |
|
|
}, */ |
|
|
}, */ |
|
|
|
|
|
|
|
|
// 例子模板,可参考 |
|
|
|
|
|
|
|
|
// 例子模板,可参考 |
|
|
/* { |
|
|
/* { |
|
|
path: '/nested', |
|
|
path: '/nested', |
|
|
component: Layout, |
|
|
component: Layout, |
|
|