|
@@ -21,6 +21,7 @@ import Layout from '@/layout' |
|
@@ -21,6 +21,7 @@ import Layout from '@/layout' |
|
21
|
title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
21
|
title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
|
22
|
icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
22
|
icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
|
23
|
breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
23
|
breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
|
|
|
24
|
+ activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。
|
|
24
|
}
|
25
|
}
|
|
25
|
*/
|
26
|
*/
|
|
26
|
|
27
|
|
|
@@ -80,7 +81,7 @@ export const constantRoutes = [ |
|
@@ -80,7 +81,7 @@ export const constantRoutes = [ |
|
80
|
]
|
81
|
]
|
|
81
|
},
|
82
|
},
|
|
82
|
{
|
83
|
{
|
|
83
|
- path: '/auth',
|
84
|
+ path: '/system/user-auth',
|
|
84
|
component: Layout,
|
85
|
component: Layout,
|
|
85
|
hidden: true,
|
86
|
hidden: true,
|
|
86
|
children: [
|
87
|
children: [
|
|
@@ -88,12 +89,12 @@ export const constantRoutes = [ |
|
@@ -88,12 +89,12 @@ export const constantRoutes = [ |
|
88
|
path: 'role/:userId(\\d+)',
|
89
|
path: 'role/:userId(\\d+)',
|
|
89
|
component: (resolve) => require(['@/views/system/user/authRole'], resolve),
|
90
|
component: (resolve) => require(['@/views/system/user/authRole'], resolve),
|
|
90
|
name: 'AuthRole',
|
91
|
name: 'AuthRole',
|
|
91
|
- meta: { title: '分配角色'}
|
92
|
+ meta: { title: '分配角色', activeMenu: '/system/user'}
|
|
92
|
}
|
93
|
}
|
|
93
|
]
|
94
|
]
|
|
94
|
},
|
95
|
},
|
|
95
|
{
|
96
|
{
|
|
96
|
- path: '/auth',
|
97
|
+ path: '/system/role-auth',
|
|
97
|
component: Layout,
|
98
|
component: Layout,
|
|
98
|
hidden: true,
|
99
|
hidden: true,
|
|
99
|
children: [
|
100
|
children: [
|
|
@@ -101,46 +102,46 @@ export const constantRoutes = [ |
|
@@ -101,46 +102,46 @@ export const constantRoutes = [ |
|
101
|
path: 'user/:roleId(\\d+)',
|
102
|
path: 'user/:roleId(\\d+)',
|
|
102
|
component: (resolve) => require(['@/views/system/role/authUser'], resolve),
|
103
|
component: (resolve) => require(['@/views/system/role/authUser'], resolve),
|
|
103
|
name: 'AuthUser',
|
104
|
name: 'AuthUser',
|
|
104
|
- meta: { title: '分配用户'}
|
105
|
+ meta: { title: '分配用户', activeMenu: '/system/role'}
|
|
105
|
}
|
106
|
}
|
|
106
|
]
|
107
|
]
|
|
107
|
},
|
108
|
},
|
|
108
|
{
|
109
|
{
|
|
109
|
- path: '/dict',
|
110
|
+ path: '/system/dict-data',
|
|
110
|
component: Layout,
|
111
|
component: Layout,
|
|
111
|
hidden: true,
|
112
|
hidden: true,
|
|
112
|
children: [
|
113
|
children: [
|
|
113
|
{
|
114
|
{
|
|
114
|
- path: 'type/data/:dictId(\\d+)',
|
115
|
+ path: 'index/:dictId(\\d+)',
|
|
115
|
component: (resolve) => require(['@/views/system/dict/data'], resolve),
|
116
|
component: (resolve) => require(['@/views/system/dict/data'], resolve),
|
|
116
|
name: 'Data',
|
117
|
name: 'Data',
|
|
117
|
- meta: { title: '字典数据', icon: '' }
|
118
|
+ meta: { title: '字典数据', activeMenu: '/system/dict'}
|
|
118
|
}
|
119
|
}
|
|
119
|
]
|
120
|
]
|
|
120
|
},
|
121
|
},
|
|
121
|
{
|
122
|
{
|
|
122
|
- path: '/job',
|
123
|
+ path: '/monitor/job-log',
|
|
123
|
component: Layout,
|
124
|
component: Layout,
|
|
124
|
hidden: true,
|
125
|
hidden: true,
|
|
125
|
children: [
|
126
|
children: [
|
|
126
|
{
|
127
|
{
|
|
127
|
- path: 'log',
|
128
|
+ path: 'index',
|
|
128
|
component: (resolve) => require(['@/views/monitor/job/log'], resolve),
|
129
|
component: (resolve) => require(['@/views/monitor/job/log'], resolve),
|
|
129
|
name: 'JobLog',
|
130
|
name: 'JobLog',
|
|
130
|
- meta: { title: '调度日志' }
|
131
|
+ meta: { title: '调度日志', activeMenu: '/monitor/job'}
|
|
131
|
}
|
132
|
}
|
|
132
|
]
|
133
|
]
|
|
133
|
},
|
134
|
},
|
|
134
|
{
|
135
|
{
|
|
135
|
- path: '/gen',
|
136
|
+ path: '/tool/gen-edit',
|
|
136
|
component: Layout,
|
137
|
component: Layout,
|
|
137
|
hidden: true,
|
138
|
hidden: true,
|
|
138
|
children: [
|
139
|
children: [
|
|
139
|
{
|
140
|
{
|
|
140
|
- path: 'edit/:tableId(\\d+)',
|
141
|
+ path: 'index/:tableId(\\d+)',
|
|
141
|
component: (resolve) => require(['@/views/tool/gen/editTable'], resolve),
|
142
|
component: (resolve) => require(['@/views/tool/gen/editTable'], resolve),
|
|
142
|
name: 'GenEdit',
|
143
|
name: 'GenEdit',
|
|
143
|
- meta: { title: '修改生成配置' }
|
144
|
+ meta: { title: '修改生成配置', activeMenu: '/tool/gen'}
|
|
144
|
}
|
145
|
}
|
|
145
|
]
|
146
|
]
|
|
146
|
}
|
147
|
}
|