菜单栏整理
This commit is contained in:
+99
-159
@@ -1,3 +1,5 @@
|
||||
import Layout from '@/layouts'
|
||||
|
||||
const data = [
|
||||
{
|
||||
path: '/',
|
||||
@@ -41,6 +43,40 @@ const data = [
|
||||
component: '@/views/personnelManagement/menuManagement/index',
|
||||
meta: { title: '海外标准法规', badge: 'New' },
|
||||
},
|
||||
{
|
||||
path: 'foreignRegulationsDatabase',
|
||||
name: 'ForeignRegulationsDatabase',
|
||||
component:
|
||||
'@/views/personnelManagement/foreignRegulationsDatabase/index',
|
||||
meta: { title: '国内外政策' },
|
||||
},
|
||||
{
|
||||
path: 'enterpriseStandardDatabase',
|
||||
name: 'EnterpriseStandardDatabase',
|
||||
component:
|
||||
'@/views/personnelManagement/enterpriseStandardDatabase/index',
|
||||
meta: { title: '企业标准' },
|
||||
},
|
||||
{
|
||||
path: 'accessStandardsAndRegulations',
|
||||
name: 'AccessStandardsAndRegulations',
|
||||
component:
|
||||
'@/views/personnelManagement/accessStandardsAndRegulations/index',
|
||||
meta: { title: '标准法规清单' },
|
||||
},
|
||||
{
|
||||
path: 'localProductsOrProjectLibrary',
|
||||
name: 'LocalProductsOrProjectLibrary',
|
||||
component:
|
||||
'@/views/personnelManagement/localProductsOrProjectLibrary/index',
|
||||
meta: { title: '车型项目库' },
|
||||
},
|
||||
{
|
||||
path: 'nonConfomity',
|
||||
name: 'NonConfomity',
|
||||
component: '@/views/personnelManagement/nonConfomity/index',
|
||||
meta: { title: '未符合项整改' },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -49,187 +85,91 @@ const data = [
|
||||
redirect: 'noRedirect',
|
||||
name: 'Vab',
|
||||
alwaysShow: true,
|
||||
meta: { title: '组件', icon: 'cloud' },
|
||||
meta: { title: '工作台', icon: 'cloud' },
|
||||
children: [
|
||||
{
|
||||
path: 'permissions',
|
||||
name: 'Permission',
|
||||
component: '@/views/vab/permissions/index',
|
||||
meta: {
|
||||
title: '权限控制',
|
||||
title: '流程中心',
|
||||
permissions: ['admin', 'editor'],
|
||||
badge: 'New',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'icon',
|
||||
component: 'EmptyLayout',
|
||||
redirect: 'noRedirect',
|
||||
name: 'Icon',
|
||||
meta: {
|
||||
title: '图标',
|
||||
permissions: ['admin'],
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'awesomeIcon',
|
||||
name: 'AwesomeIcon',
|
||||
component: '@/views/vab/icon/index',
|
||||
meta: { title: '常规图标' },
|
||||
},
|
||||
{
|
||||
path: 'remixIcon',
|
||||
name: 'RemixIcon',
|
||||
component: '@/views/vab/icon/remixIcon',
|
||||
meta: { title: '小清新图标' },
|
||||
},
|
||||
{
|
||||
path: 'colorfulIcon',
|
||||
name: 'ColorfulIcon',
|
||||
component: '@/views/vab/icon/colorfulIcon',
|
||||
meta: { title: '多彩图标' },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'table',
|
||||
component: '@/views/vab/table/index',
|
||||
name: 'Table',
|
||||
meta: {
|
||||
title: '表格',
|
||||
title: '发起流程',
|
||||
permissions: ['admin'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/standardWarning',
|
||||
component: 'Layout',
|
||||
redirect: 'noRedirect',
|
||||
children: [
|
||||
{
|
||||
path: 'map',
|
||||
name: 'Map',
|
||||
component: '@/views/vab/map/index',
|
||||
meta: { title: '地图', permissions: ['admin'], badge: 'Pro' },
|
||||
},
|
||||
{
|
||||
path: 'webSocket',
|
||||
name: 'WebSocket',
|
||||
component: '@/views/vab/webSocket/index',
|
||||
meta: { title: 'webSocket', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'form',
|
||||
name: 'Form',
|
||||
component: '@/views/vab/form/index',
|
||||
meta: { title: '表单', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'element',
|
||||
name: 'Element',
|
||||
component: '@/views/vab/element/index',
|
||||
meta: { title: '常用组件', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'tree',
|
||||
name: 'Tree',
|
||||
component: '@/views/vab/tree/index',
|
||||
meta: { title: '树', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'verify',
|
||||
name: 'Verify',
|
||||
component: '@/views/vab/verify/index',
|
||||
meta: { title: '验证码', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'menu1',
|
||||
component: '@/views/vab/nested/menu1/index',
|
||||
name: 'Menu1',
|
||||
alwaysShow: true,
|
||||
path: 'standardWarning',
|
||||
name: 'StandardWarning',
|
||||
component: '@/views/standardWarning/index',
|
||||
meta: {
|
||||
title: '嵌套路由 1',
|
||||
permissions: ['admin'],
|
||||
title: '标准预警',
|
||||
icon: 'home',
|
||||
affix: true,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'menu1-1',
|
||||
name: 'Menu1-1',
|
||||
alwaysShow: true,
|
||||
meta: { title: '嵌套路由 1-1' },
|
||||
component: '@/views/vab/nested/menu1/menu1-1/index',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/localTool',
|
||||
component: 'Layout',
|
||||
redirect: 'noRedirect',
|
||||
name: 'LocalTool',
|
||||
meta: {
|
||||
title: '本地工具',
|
||||
icon: 'shopping-cart',
|
||||
permissions: ['admin'],
|
||||
},
|
||||
|
||||
children: [
|
||||
{
|
||||
path: 'menu1-1-1',
|
||||
name: 'Menu1-1-1',
|
||||
meta: { title: '嵌套路由 1-1-1' },
|
||||
component: '@/views/vab/nested/menu1/menu1-1/menu1-1-1/index',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
children: [
|
||||
{
|
||||
path: 'standardRecognition',
|
||||
name: 'StandardRecognition',
|
||||
component: '@/views/localTool/standardRecognition/index',
|
||||
meta: {
|
||||
title: '本地内容自动识别',
|
||||
noKeepAlive: true,
|
||||
},
|
||||
children: null,
|
||||
},
|
||||
{
|
||||
path: 'magnifier',
|
||||
name: 'Magnifier',
|
||||
component: '@/views/vab/magnifier/index',
|
||||
meta: { title: '放大镜', permissions: ['admin'] },
|
||||
path: 'standAutoSplit',
|
||||
name: 'StandAutoSplit',
|
||||
component: '@/views/localTool/standAutoSplit/index',
|
||||
meta: {
|
||||
title: '标准拆分',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'loading',
|
||||
name: 'Loading',
|
||||
component: '@/views/vab/loading/index',
|
||||
meta: { title: 'loading', permissions: ['admin'] },
|
||||
path: 'standContrast',
|
||||
name: 'StandContrast',
|
||||
component: '@/views/localTool/standContrast/index',
|
||||
meta: {
|
||||
title: '标准比对',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'player',
|
||||
name: 'Player',
|
||||
component: '@/views/vab/player/index',
|
||||
meta: { title: '视频播放器', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'markdownEditor',
|
||||
name: 'MarkdownEditor',
|
||||
component: '@/views/vab/markdownEditor/index',
|
||||
meta: { title: 'markdown编辑器', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'editor',
|
||||
name: 'Editor',
|
||||
component: '@/views/vab/editor/index',
|
||||
meta: { title: '富文本编辑器', permissions: ['admin'], badge: 'New' },
|
||||
},
|
||||
{
|
||||
path: 'backToTop',
|
||||
name: 'BackToTop',
|
||||
component: '@/views/vab/backToTop/index',
|
||||
meta: { title: '返回顶部', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'lodash',
|
||||
name: 'Lodash',
|
||||
component: '@/views/vab/lodash/index',
|
||||
meta: { title: 'lodash', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'smallComponents',
|
||||
name: 'SmallComponents',
|
||||
component: '@/views/vab/smallComponents/index',
|
||||
meta: { title: '小组件', permissions: ['admin'] },
|
||||
},
|
||||
|
||||
{
|
||||
path: 'upload',
|
||||
name: 'Upload',
|
||||
component: '@/views/vab/upload/index',
|
||||
meta: { title: '上传', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'log',
|
||||
name: 'Log',
|
||||
component: '@/views/vab/errorLog/index',
|
||||
meta: { title: '错误日志模拟', permissions: ['admin'] },
|
||||
},
|
||||
{
|
||||
path: 'more',
|
||||
name: 'More',
|
||||
component: '@/views/vab/more/index',
|
||||
meta: { title: '关于', permissions: ['admin'] },
|
||||
path: 'standardComparisonLibrary',
|
||||
name: 'StandardComparisonLibrary',
|
||||
component: '@/views/localTool/standardComparisonLibrary/index',
|
||||
meta: {
|
||||
title: '标准比对库',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -239,7 +179,7 @@ const data = [
|
||||
redirect: 'noRedirect',
|
||||
name: 'Mall',
|
||||
meta: {
|
||||
title: '商城',
|
||||
title: '配置管理',
|
||||
icon: 'shopping-cart',
|
||||
permissions: ['admin'],
|
||||
},
|
||||
@@ -250,7 +190,7 @@ const data = [
|
||||
name: 'Pay',
|
||||
component: '@/views/mall/pay/index',
|
||||
meta: {
|
||||
title: '支付',
|
||||
title: '角色管理',
|
||||
noKeepAlive: true,
|
||||
},
|
||||
children: null,
|
||||
@@ -260,7 +200,7 @@ const data = [
|
||||
name: 'GoodsList',
|
||||
component: '@/views/mall/goodsList/index',
|
||||
meta: {
|
||||
title: '商品列表',
|
||||
title: '用户管理',
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -270,19 +210,19 @@ const data = [
|
||||
component: 'EmptyLayout',
|
||||
redirect: 'noRedirect',
|
||||
name: 'Error',
|
||||
meta: { title: '错误页', icon: 'bug' },
|
||||
meta: { title: '个人中心', icon: 'bug' },
|
||||
children: [
|
||||
{
|
||||
path: '401',
|
||||
name: 'Error401',
|
||||
component: '@/views/401',
|
||||
meta: { title: '401' },
|
||||
meta: { title: '我的消息' },
|
||||
},
|
||||
{
|
||||
path: '404',
|
||||
name: 'Error404',
|
||||
component: '@/views/404',
|
||||
meta: { title: '404' },
|
||||
meta: { title: '我的问答' },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user