gaoluyang
2025-02-19 8b1bb50c8a5b14329253e202f6d4606cfd76598a
src/router/index.js
@@ -93,12 +93,6 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  {
    // 原材料报检
    path: '/rawMaterialInspection',
    component: Layout,
    hidden: true,
  },
  {
    // 原材料下单
    path: '/materialOrder',
    component: Layout,
@@ -106,12 +100,19 @@
    permissions: ['business:order'],
    children: [
      {
        // 铜材料下单
        // 原材料下单
        path: 'customsInspection',
        component: () => import('@/views/business/materialOrder/customsInspection'),
        name: 'customsInspection',
        meta: { title: '原材料下单详情', activeMenu: '/business/materialOrder' }
      },
      {
        // 铜材料下单
        path: 'copperOrder',
        component: () => import('@/views/business/materialOrder/copperOrder'),
        name: 'copperOrder',
        meta: { title: '铜材料下单', activeMenu: '/business/materialOrder' }
      }
      },
    ]
  },
  {
@@ -135,14 +136,14 @@
    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' }
      }
    ]
  },
  {
    // 数据字典
@@ -150,14 +151,14 @@
    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' }
      }
    ]
  },
  {
    // 数据字典