研发图纸文件管理系统-前端项目
longyvfengyun
2022-07-14 4af440d9f6d7877e090cf3c86fc7c542020c8ef6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
// import PageView from '@/layouts/PageView'
 
// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'workplace',
          name: '工作台',
          meta: {
            icon: 'home',
            page: {
              closable: false
            }
          },
          component: () => import('@/pages/workplace'),
        },
        {
          path: 'draw',
          name: '图纸管理',
          meta: {
            icon: 'dashboard'
          },
          component: BlankView,
          children: [
            {
              path: 'center',
              name: '图纸中心',
              component: () => import('@/pages/drawManage/drawCenter'),
            },
            {
              path: 'analysis',
              name: '图纸审批',
              component: () => import('@/pages/dashboard/analysis'),
            }
          ]
        },
        {
          path: 'user',
          name: '用户',
          meta: {
            icon: 'user',
            page: {
              cacheAble: false
            }
          },
          component: BlankView,
          children: [
            {
              path: 'list',
              name: '用户信息',
              component: () => import('@/pages/user'),
            },
            // {
            //   path: 'power',
            //   name: '角色管理',
            //   component: () => import('@/pages/user/power'),
            // }
          ]
        },
      ]
    },
  ]
}
 
export default options