研发图纸文件管理系统-前端项目
he wei
2024-07-25 66b41779cf4090ed86509d9ed4b3522ded8e9049
src/router/config.js
@@ -1,6 +1,6 @@
import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
import PageView from '@/layouts/PageView'
// import PageView from '@/layouts/PageView'
// 路由配置
const options = {
@@ -27,222 +27,220 @@
      redirect: '/login',
      children: [
        {
          path: 'dashboard',
          name: 'Dashboard',
          path: 'workplace',
          name: '工作台',
          meta: {
            icon: 'dashboard'
          },
          component: BlankView,
          children: [
            {
              path: 'workplace',
              name: '工作台',
              meta: {
                page: {
                  closable: false
                }
              },
              component: () => import('@/pages/dashboard/workplace'),
            icon: 'home',
            page: {
              closable: false
            },
            {
              path: 'analysis',
              name: '分析页',
              component: () => import('@/pages/dashboard/analysis'),
            }
          ]
        },
        {
          path: 'form',
          name: '表单页',
          meta: {
            icon: 'form',
          },
          component: PageView,
          children: [
            {
              path: 'basic',
              name: '基础表单',
              component: () => import('@/pages/form/basic'),
            },
            {
              path: 'step',
              name: '分步表单',
              component: () => import('@/pages/form/step'),
            },
            {
              path: 'advance',
              name: '高级表单',
              component: () => import('@/pages/form/advance'),
            }
          ]
        },
        {
          path: 'list',
          name: '列表页',
          meta: {
            icon: 'table'
          },
          component: PageView,
          children: [
            {
              path: 'query',
              name: '查询表格',
              meta: {
                authority: 'queryForm',
              },
              component: () => import('@/pages/list/QueryList'),
            },
            {
              path: 'primary',
              name: '标准列表',
              component: () => import('@/pages/list/StandardList'),
            },
            {
              path: 'card',
              name: '卡片列表',
              component: () => import('@/pages/list/CardList'),
            },
            {
              path: 'search',
              name: '搜索列表',
              component: () => import('@/pages/list/search/SearchLayout'),
              children: [
                {
                  path: 'article',
                  name: '文章',
                  component: () => import('@/pages/list/search/ArticleList'),
                },
                {
                  path: 'application',
                  name: '应用',
                  component: () => import('@/pages/list/search/ApplicationList'),
                },
                {
                  path: 'project',
                  name: '项目',
                  component: () => import('@/pages/list/search/ProjectList'),
                }
              ]
            }
          ]
        },
        {
          path: 'details',
          name: '详情页',
          meta: {
            icon: 'profile'
          },
          component: BlankView,
          children: [
            {
              path: 'basic',
              name: '基础详情页',
              component: () => import('@/pages/detail/BasicDetail')
            },
            {
              path: 'advance',
              name: '高级详情页',
              component: () => import('@/pages/detail/AdvancedDetail')
            }
          ]
        },
        {
          path: 'result',
          name: '结果页',
          meta: {
            icon: 'check-circle-o',
          },
          component: PageView,
          children: [
            {
              path: 'success',
              name: '成功',
              component: () => import('@/pages/result/Success')
            },
            {
              path: 'error',
              name: '失败',
              component: () => import('@/pages/result/Error')
            }
          ]
        },
        {
          path: 'exception',
          name: '异常页',
          meta: {
            icon: 'warning',
          },
          component: BlankView,
          children: [
            {
              path: '404',
              name: 'Exp404',
              component: () => import('@/pages/exception/404')
            },
            {
              path: '403',
              name: 'Exp403',
              component: () => import('@/pages/exception/403')
            },
            {
              path: '500',
              name: 'Exp500',
              component: () => import('@/pages/exception/500')
            }
          ]
        },
        {
          path: 'components',
          name: '内置组件',
          meta: {
            icon: 'appstore-o'
          },
          component: PageView,
          children: [
            {
              path: 'taskCard',
              name: '任务卡片',
              component: () => import('@/pages/components/TaskCard')
            },
            {
              path: 'palette',
              name: '颜色复选框',
              component: () => import('@/pages/components/Palette')
            },
            {
              path: 'table',
              name: '高级表格',
              component: () => import('@/pages/components/table')
            }
          ]
        },
        {
          name: '验权表单',
          path: 'auth/form',
          meta: {
            icon: 'file-excel',
            authority: {
              permission: 'form'
              role: ['1001', '1002', '1003'],
            }
          },
          component: () => import('@/pages/form/basic')
          component: () => import('@/pages/workplace'),
        },
        {
          name: 'Ant Design Vue',
          path: 'antdv',
          path: 'workplaceList',
          name: '问题反馈查询',
          meta: {
            icon: 'ant-design',
            link: 'https://www.antdv.com/docs/vue/introduce-cn/'
          }
            icon: "message"
          },
          component: () => import('@/pages/workplace/workplaceList')
        },
        {
          name: '使用文档',
          path: 'document',
          path: 'resource',
          name: '资源管理',
          meta: {
            icon: 'file-word',
            link: 'https://iczer.gitee.io/vue-antd-admin-docs/'
          }
        }
            icon: 'dashboard',
            authority: {
              role: ['1001', '1002', '1003'],
            }
          },
          component: BlankView,
          children: [
            {
              path: 'materials',
              name: '物料中心',
              component: () => import('@/pages/resourceManage/materialsCenter'),
            },
            {
              path: 'material-history',
              name: '物料历史',
              meta: {
                invisible: true,
                highlight: '/resource/materials'
              },
              component: () => import('@/pages/resourceManage/materialsCenter/history'),
            },
            {
              path: 'product',
              name: '产品中心',
              component: () => import('@/pages/resourceManage/product'),
            },
            {
              path: 'product-details',
              name: '产品详情',
              meta: {
                invisible: true,
                highlight: '/resource/product'
              },
              component: () => import('@/pages/resourceManage/product/details'),
            },
            {
              path: 'product-diff',
              name: '产品差异',
              meta: {
                invisible: true,
                highlight: '/resource/product'
              },
              component: () => import('@/pages/resourceManage/product/prodDiff'),
            },
            // 0120详情
            {
              path: 'product-details-0120',
              name: '钣金件详情',
              meta: {
                invisible: true,
                highlight: '/resource/product'
              },
              component: () => import('@/pages/resourceManage/product/details'),
            },
            // 08|09二级产品详情
            {
              path: 'product-details-0809',
              name: '二级产品详情',
              meta: {
                invisible: true,
                highlight: '/resource/product'
              },
              component: () => import('@/pages/resourceManage/product/details'),
            },
            // 电源模块详情
            {
              path: 'product-details-0235',
              name: '电源模块详情',
              meta: {
                invisible: true,
                highlight: '/resource/product'
              },
              component: () => import('@/pages/resourceManage/product/details'),
            },
            {
              path: 'software',
              name: '软件中心',
              component: () => import('@/pages/resourceManage/software'),
            },
            {
              path: 'ecr',
              name: 'BOM变更记录',
              component: () => import('@/pages/resourceManage/ecr'),
            },
            // {
            //   path: 'flow-card',
            //   name: '流程卡',
            //   component:()=>import('@/pages/resourceManage/flowCard')
            // },
            {
              path: 'sop-file',
              name: 'SOP',
              component:()=>import('@/pages/resourceManage/sopFile')
            },
            {
              path: 'sop-history',
              name: 'sop历史版本',
              meta: {
                invisible: true,
                highlight: '/resource/sop-file'
              },
              component: () => import('@/pages/resourceManage/sopFile/sop-history'),
            },
            {
              path: 'specification',
              name: '技术规格书',
              component: () => import('@/pages/resourceManage/specification'),
            },
            {
              path: 'specification-history',
              name: '技术规格书历史版本',
              meta: {
                invisible: true,
                highlight: '/resource/specification'
              },
              component: () => import('@/pages/resourceManage/specification/history'),
            },
            {
              path: 'defective',
              name: '不良品管理',
              component: () => import('@/pages/resourceManage/defective'),
            },
          ]
        },
        {
          path: 'user',
          name: '用户',
          meta: {
            icon: 'user',
            page: {
              cacheAble: false
            },
            authority: {
              role: '1004',
            }
          },
          component: BlankView,
          children: [
            {
              path: 'list',
              name: '用户信息',
              component: () => import('@/pages/user'),
            },
            // {
            //   path: 'power',
            //   name: '角色管理',
            //   component: () => import('@/pages/user/power'),
            // }
          ]
        },
        {
          path: 'system',
          name: '系统',
          meta: {
            icon: 'profile',
            page: {
              cacheAble: false
            },
          },
          component: BlankView,
          children: [
            {
              path: 'logs',
              name: '操作日志',
              component: () => import('@/pages/system/logs'),
            }
          ]
        },
        {
          path: 'permission',
          name: '权限',
          meta: {
            icon: 'apartment',
            page: {
              cacheAble: false
            },
            authority: {
              role: '1004',
            }
          },
          component: BlankView,
          children: [
            {
              path: 'list',
              name: '权限管理',
              component: () => import('@/pages/permission'),
            }
          ]
        },
      ]
    },
  ]