loulijun2021
2022-06-15 8e51e2713e358aade30db570b0cb8a4877022cf9
src/router/index.js
@@ -57,6 +57,7 @@
    path: '/',
    component: Layout,
    redirect: '/index',
    name: '系统首页',
    children: [{
      path: 'index',
      name: 'index',
@@ -68,29 +69,69 @@
    path: '/jcsz',
    component: Layout,
    redirect: '/jcsz/zzjg',
    name: 'jcsz',
    name: '基础设置',
    meta: { title: '基础设置', icon: 'el-icon-setting' },
    children: [
      {
        path: 'zzjg',
        name: 'Table',
        name: '组织架构',
        component: () => import('@/views/jcsz/zzjg'),
        meta: { title: '组织架构', icon: '' }
      }, {
        path: 'jsqd',
        name: 'jsqd',
        name: '角色清单',
        component: () => import('@/views/jcsz/jsqd'),
        meta: { title: '角色清单', icon: '' }
      }, {
        path: 'yhqd',
        name: 'yhqd',
        name: '用户清单',
        component: () => import('@/views/jcsz/yhqd'),
        meta: { title: '用户清单', icon: '' }
      }, {
        path: 'wldw',
        name: 'wldw',
        name: '往来单位',
        component: () => import('@/views/jcsz/wldw'),
        meta: { title: '往来单位', icon: '' }
      }
    ]
  }, {
    path: '/sbgl',
    component: Layout,
    redirect: '/sbgl/sbqd',
    name: '设备管理',
    meta: { title: '设备管理', icon: 'el-icon-setting' },
    children: [
      {
        path: 'sbqd',
        name: '设备清单',
        component: () => import('@/views/sbgl/sbqd'),
        meta: { title: '设备清单', icon: '' }
      }
      // {
      //   path: 'sblxsz',
      //   name: '角色清单',
      //   component: () => import('@/views/jcsz/jsqd'),
      //   meta: { title: '角色清单', icon: '' }
      // },
    ]
  }, {
    path: '/wlgl',
    component: Layout,
    redirect: '/wlgl/ckdy',
    name: '物料管理',
    meta: { title: '物料管理', icon: 'el-icon-setting' },
    children: [
      {
        path: 'ckdy',
        name: '仓库定义',
        component: () => import('@/views/wlgl/ckdy'),
        meta: { title: '仓库定义', icon: '' }
      },
      {
        path: 'kwdy',
        name: '库位定义',
        component: () => import('@/views/wlgl/kwdy'),
        meta: { title: '库位定义', icon: '' }
      }
    ]
  },
@@ -98,23 +139,35 @@
    path: '/zzmx',
    component: Layout,
    redirect: '/zzmx/gylx',
    name: 'zzmx',
    name: '制造模型',
    meta: { title: '制造模型', icon: 'el-icon-s-help' },
    children: [
      {
        path: 'gylx',
        name: 'gylx',
        name: '公益路线',
        component: () => import('@/views/zzmx/gylx'),
        meta: { title: '公益路线', icon: 'table' }
        meta: { title: '公益路线', icon: '' }
      },
      {
        path: 'jpgj',
        name: 'jpgj',
        name: '节拍工价',
        component: () => import('@/views/zzmx/jpgj'),
        meta: { title: '节拍工价', icon: 'tree' }
        meta: { title: '节拍工价', icon: '' }
      }, {
        path: 'wllx',
        name: '物料类型',
        component: () => import('@/views/zzmx/wllx'),
        meta: { title: '物料类型', icon: '' }
      },
      {
        path: 'chda',
        name: '存货档案',
        component: () => import('@/views/zzmx/chda'),
        meta: { title: '存货档案', icon: '' }
      }
    ]
  }
  },
  { path: '*', redirect: '/404', hidden: true }
]
// export const constantRoutesxxxxxx = [
@@ -207,8 +260,8 @@
//     ]
//   },
//
//   // 404 page must be placed at the end !!!
//   { path: '*', redirect: '/404', hidden: true }
// 404 page must be placed at the end !!!
// , {path: '*', redirect: '/404', hidden: true}
// ]
const createRouter = () => new Router({