gaoluyang
2025-02-12 f74ede07f8e84b3a8ab18f8c5e82bb542e233c45
src/router/index.js
@@ -93,6 +93,29 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  {
    // 原材料报检
    path: '/rawMaterialInspection',
    component: Layout,
    hidden: true,
  },
  {
    // 原材料下单
    path: '/materialOrder',
    component: Layout,
    hidden: true,
    permissions: ['business:order'],
    children: [
      {
        // 铜材料下单
        path: 'customsInspection',
        component: () => import('@/views/business/materialOrder/customsInspection'),
        name: 'customsInspection',
        meta: { title: '铜材料下单', activeMenu: '/business/materialOrder' }
      }
    ]
  },
  {
    // 用户管理
    path: '/system/user-auth',
    component: Layout,
    hidden: true,
@@ -107,32 +130,34 @@
    ]
  },
  {
    // 角色管理
    path: '/system/role-auth',
    component: Layout,
    hidden: true,
    permissions: ['system:role:edit'],
    children: [
      {
        path: 'user/:roleId(\\d+)',
        component: () => import('@/views/system/role/authUser'),
        name: 'AuthUser',
        meta: { title: '分配用户', activeMenu: '/system/role' }
      }
    ]
    // children: [
    //   {
    //     path: 'user/:roleId(\\d+)',
    //     component: () => import('@/views/system/role/authUser'),
    //     name: 'AuthUser',
    //     meta: { title: '分配用户', activeMenu: '/system/role' }
    //   }
    // ]
  },
  {
    // 数据字典
    path: '/system/dict-data',
    component: Layout,
    hidden: true,
    permissions: ['system:dict:list'],
    children: [
      {
        path: 'index/:dictId(\\d+)',
        component: () => import('@/views/system/dict/data'),
        name: 'Data',
        meta: { title: '字典数据', activeMenu: '/system/dict' }
      }
    ]
    // children: [
    //   {
    //     path: 'index/:dictId(\\d+)',
    //     component: () => import('@/views/system/dict/data'),
    //     name: 'Data',
    //     meta: { title: '字典数据', activeMenu: '/system/dict' }
    //   }
    // ]
  },
  {
    path: '/monitor/job-log',