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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
| /*
| * @Author: lzhe lzhe@example.com
| * @Date: 2024-05-24 11:25:26
| * @LastEditors: lzhe lzhe@example.com
| * @LastEditTime: 2024-10-09 09:58:40
| * @FilePath: /src/config/route.js
| * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
| */
| // 静态路由配置
| // 书写格式与动态路由格式一致,全部经由框架统一转换
| // 比较动态路由在meta中多加入了role角色权限,为数组类型。一个菜单是否有权限显示,取决于它以及后代菜单是否有权限。
| // routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
| // 示例如下
|
| // const routes = [
| // {
| // name: "demo",
| // path: "/demo",
| // meta: {
| // icon: "el-icon-eleme-filled",
| // title: "演示",
| // role: ["SA"]
| // },
| // children: [{
| // name: "demopage",
| // path: "/demopage",
| // component: "test/autocode/index",
| // meta: {
| // icon: "el-icon-menu",
| // title: "演示页面",
| // role: ["SA"]
| // }
| // }]
| // }
| // ]
| const routes = [
| {
| name: "字段设置",
| path: "/configuration/custom/setField",
| component: "configuration/custom/setField",
| meta: {
| icon: "el-icon-menu",
| title: "字段设置",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "计划设置",
| path: "/configuration/custom/planSettings",
| component: "configuration/custom/planSettings",
| meta: {
| icon: "el-icon-menu",
| title: "计划设置",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "新建工艺路线",
| path: "/console/product-process/process-route/add-craft",
| component: "console/product-process/process-route/add-craft",
| meta: {
| icon: "el-icon-menu",
| title: "新建工艺路线",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "新建工艺路线版本",
| path: "/console/product-process/process-route/add-craft-version",
| component: "console/product-process/process-route/add-craft-version",
| meta: {
| icon: "el-icon-menu",
| title: "新建工艺路线版本",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "消息中心",
| path: "/notification/notice/newsmail",
| component: "notification/notice/newsmail",
| meta: {
| icon: "el-icon-menu",
| title: "消息中心",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "任务调度",
| path: "/myiframe/urlPath",
| component: "myiframe/urlPath",
| meta: {
| icon: "el-icon-menu",
| title: "任务调度",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "账号信息",
| path: "/userCenter/edituser",
| component: "userCenter/edituser",
| meta: {
| icon: "el-icon-menu",
| title: "账号信息",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "工时统计详情",
| path: "/mdc/first-workpiece-detail",
| component: "mdc/first-workpiece-detail",
| meta: {
| icon: "el-icon-menu",
| title: "工时统计详情",
| type: 'menu',
| hidden: true
| }
| },
| {
| name: "工时统计过程",
| path: "/mdc/first-workpiece-process",
| component: "mdc/first-workpiece-process",
| meta: {
| icon: "el-icon-menu",
| title: "过程分析",
| type: 'menu',
| hidden: true
| }
| }
| ]
|
| //const routes = []
|
| export default routes;
|
|