239 lines
5.6 KiB
JavaScript
239 lines
5.6 KiB
JavaScript
import Layout from '@/layouts'
|
|
|
|
const data = [
|
|
{
|
|
path: '/',
|
|
component: 'Layout',
|
|
redirect: 'index',
|
|
children: [
|
|
{
|
|
path: 'index',
|
|
name: 'Index',
|
|
component: '@/views/index/index',
|
|
meta: {
|
|
title: '首页',
|
|
icon: 'home',
|
|
affix: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/personnelManagement',
|
|
component: 'Layout',
|
|
redirect: 'noRedirect',
|
|
name: 'PersonnelManagement',
|
|
meta: { title: '标准法规部', icon: 'users-cog', permissions: ['admin'] },
|
|
children: [
|
|
{
|
|
path: 'userManagement',
|
|
name: 'UserManagement',
|
|
component: '@/views/personnelManagement/userManagement/index',
|
|
meta: { title: '动态&资料' },
|
|
},
|
|
{
|
|
path: 'roleManagement',
|
|
name: 'RoleManagement',
|
|
component: '@/views/personnelManagement/roleManagement/index',
|
|
meta: { title: '国内标准法规' },
|
|
},
|
|
{
|
|
path: 'menuManagement',
|
|
name: 'MenuManagement',
|
|
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: '未符合项整改' },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/vab',
|
|
component: 'Layout',
|
|
redirect: 'noRedirect',
|
|
name: 'Vab',
|
|
alwaysShow: true,
|
|
meta: { title: '工作台', icon: 'cloud' },
|
|
children: [
|
|
{
|
|
path: 'permissions',
|
|
name: 'Permission',
|
|
component: '@/views/vab/permissions/index',
|
|
meta: {
|
|
title: '流程中心',
|
|
permissions: ['admin', 'editor'],
|
|
badge: 'New',
|
|
},
|
|
},
|
|
{
|
|
path: 'table',
|
|
component: '@/views/vab/table/index',
|
|
name: 'Table',
|
|
meta: {
|
|
title: '发起流程',
|
|
permissions: ['admin'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/standardWarning',
|
|
component: 'Layout',
|
|
redirect: 'noRedirect',
|
|
children: [
|
|
{
|
|
path: 'standardWarning',
|
|
name: 'StandardWarning',
|
|
component: '@/views/standardWarning/index',
|
|
meta: {
|
|
title: '标准预警',
|
|
icon: 'home',
|
|
affix: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/localTool',
|
|
component: 'Layout',
|
|
redirect: 'noRedirect',
|
|
name: 'LocalTool',
|
|
meta: {
|
|
title: '本地工具',
|
|
icon: 'shopping-cart',
|
|
permissions: ['admin'],
|
|
},
|
|
|
|
children: [
|
|
{
|
|
path: 'standardRecognition',
|
|
name: 'StandardRecognition',
|
|
component: '@/views/localTool/standardRecognition/index',
|
|
meta: {
|
|
title: '本地内容自动识别',
|
|
noKeepAlive: true,
|
|
},
|
|
children: null,
|
|
},
|
|
{
|
|
path: 'standAutoSplit',
|
|
name: 'StandAutoSplit',
|
|
component: '@/views/localTool/standAutoSplit/index',
|
|
meta: {
|
|
title: '标准拆分',
|
|
},
|
|
},
|
|
{
|
|
path: 'standContrast',
|
|
name: 'StandContrast',
|
|
component: '@/views/localTool/standContrast/index',
|
|
meta: {
|
|
title: '标准比对',
|
|
},
|
|
},
|
|
{
|
|
path: 'standardComparisonLibrary',
|
|
name: 'StandardComparisonLibrary',
|
|
component: '@/views/localTool/standardComparisonLibrary/index',
|
|
meta: {
|
|
title: '标准比对库',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/mall',
|
|
component: 'Layout',
|
|
redirect: 'noRedirect',
|
|
name: 'Mall',
|
|
meta: {
|
|
title: '配置管理',
|
|
icon: 'shopping-cart',
|
|
permissions: ['admin'],
|
|
},
|
|
|
|
children: [
|
|
{
|
|
path: 'pay',
|
|
name: 'Pay',
|
|
component: '@/views/mall/pay/index',
|
|
meta: {
|
|
title: '角色管理',
|
|
noKeepAlive: true,
|
|
},
|
|
children: null,
|
|
},
|
|
{
|
|
path: 'goodsList',
|
|
name: 'GoodsList',
|
|
component: '@/views/mall/goodsList/index',
|
|
meta: {
|
|
title: '用户管理',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/error',
|
|
component: 'EmptyLayout',
|
|
redirect: 'noRedirect',
|
|
name: 'Error',
|
|
meta: { title: '个人中心', icon: 'bug' },
|
|
children: [
|
|
{
|
|
path: '401',
|
|
name: 'Error401',
|
|
component: '@/views/401',
|
|
meta: { title: '我的消息' },
|
|
},
|
|
{
|
|
path: '404',
|
|
name: 'Error404',
|
|
component: '@/views/404',
|
|
meta: { title: '我的问答' },
|
|
},
|
|
],
|
|
},
|
|
]
|
|
module.exports = [
|
|
{
|
|
url: '/menu/navigate',
|
|
type: 'post',
|
|
response() {
|
|
return { code: 200, msg: 'success', data: data }
|
|
},
|
|
},
|
|
]
|