|
@@ -6,6 +6,18 @@ export const Layout = () => import('@/layout/index.vue')
|
|
|
|
|
|
// 参数说明: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
|
|
|
// 静态路由
|
|
|
+type RouteMeta = {
|
|
|
+ // 标题
|
|
|
+ title?: string
|
|
|
+ // 图标
|
|
|
+ icon?: string
|
|
|
+ // 是否固定
|
|
|
+ affix?: true
|
|
|
+ // 是否在菜单列表进行隐藏
|
|
|
+ hidden?: boolean
|
|
|
+ // // 类型
|
|
|
+ // type: string;
|
|
|
+}
|
|
|
export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
{
|
|
|
path: '/redirect',
|
|
@@ -33,6 +45,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
component: () => import('@/views/error-page/401.vue'),
|
|
|
meta: { hidden: true }
|
|
|
},
|
|
|
+ // 首页
|
|
|
{
|
|
|
path: '/',
|
|
|
component: Layout,
|
|
@@ -46,6 +59,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ // 组件示例
|
|
|
{
|
|
|
path: '/components',
|
|
|
component: Layout,
|
|
@@ -59,6 +73,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ // 表单示例
|
|
|
{
|
|
|
path: '/form',
|
|
|
component: Layout,
|
|
@@ -73,6 +88,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ // 列表示例
|
|
|
{
|
|
|
path: '/table',
|
|
|
component: Layout,
|
|
@@ -124,7 +140,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
]
|
|
|
},
|
|
|
// 仅用于研发测试 START
|
|
|
- {
|
|
|
+ /*{
|
|
|
path: '/test',
|
|
|
component: Layout,
|
|
|
// meta: {hidden: true, title: 'test', icon: 'system'},
|
|
@@ -144,58 +160,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
meta: { title: '组件通信方式' }
|
|
|
}
|
|
|
]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/flow',
|
|
|
- component: Layout,
|
|
|
- meta: { title: '流程管理', icon: 'guide' },
|
|
|
- redirect: '/flow/group',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'group1',
|
|
|
- component: () => import('@/views/flow/group/index1.vue'),
|
|
|
- name: 'group1',
|
|
|
- meta: { title: '流程组', icon: '' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'group',
|
|
|
- component: () => import('@/views/flow/group/index.vue'),
|
|
|
- name: 'group',
|
|
|
- meta: { title: '流程组 - ui调整', icon: '' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'form',
|
|
|
- component: () => import('@/views/flow/form/index.vue'),
|
|
|
- name: 'form',
|
|
|
- meta: { title: '流程表单', icon: '' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'create',
|
|
|
- component: () => import('@/views/flow/create/index.vue'),
|
|
|
- name: 'create',
|
|
|
- meta: { title: '创建流程', icon: '' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'task',
|
|
|
- component: () => import('@/views/flow/task/index.vue'),
|
|
|
- name: 'task',
|
|
|
- meta: { title: '流程任务', icon: '' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'instance',
|
|
|
- component: () => import('@/views/flow/instance/index.vue'),
|
|
|
- name: 'instance',
|
|
|
- meta: { title: '流程实例', icon: '' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'modal',
|
|
|
- component: () => import('@/views/flow/modal/index.vue'),
|
|
|
- name: 'modal',
|
|
|
- meta: { title: '流程模型', icon: '' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- // 仅用于研发测试 END
|
|
|
+ },*/
|
|
|
{
|
|
|
path: '/setting',
|
|
|
component: Layout,
|
|
@@ -257,9 +222,10 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
meta: { title: '菜单管理', icon: '' }
|
|
|
}
|
|
|
]
|
|
|
- },
|
|
|
+ }
|
|
|
+ // 仅用于研发测试 END
|
|
|
// 外部链接
|
|
|
- {
|
|
|
+ /*{
|
|
|
path: '/external-link',
|
|
|
component: Layout,
|
|
|
children: [
|
|
@@ -268,7 +234,7 @@ export const constantRoutes: Array<AppRouteRecordRaw> = [
|
|
|
meta: { title: '外部链接', icon: 'link' }
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ }*/
|
|
|
]
|
|
|
|
|
|
export const noFoundRouters = [
|
|
@@ -281,11 +247,11 @@ export const noFoundRouters = [
|
|
|
]
|
|
|
|
|
|
/**
|
|
|
- * devAllRouters: 每次有新的路由配置 请做好标注!!!
|
|
|
+ * local_permissionsRoutes: 本地存储带权限路由 每次有新的路由配置 请做好标注!!!
|
|
|
* 本地 dev 调试 默认使用本地路由数据
|
|
|
* (若想要调试 接口数据 请在 env.development.local 修改 VITE_APP_USE_LOCAL_ROUTES 不为 1即可)
|
|
|
*/
|
|
|
-export const devAllRouters: Array<AppRouteRecordRaw> = [
|
|
|
+export const local_permissionsRoutes: Array<AppRouteRecordRaw> = [
|
|
|
{
|
|
|
// demo演示
|
|
|
path: '/demo',
|
|
@@ -308,9 +274,67 @@ export const devAllRouters: Array<AppRouteRecordRaw> = [
|
|
|
meta: { title: 'demo_adminManage' }
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
-
|
|
|
+ },
|
|
|
// todo 请添加相关新路由描述
|
|
|
+ // 流程管理 权限
|
|
|
+ {
|
|
|
+ path: '/flow',
|
|
|
+ // component: Layout,
|
|
|
+ component: '',
|
|
|
+ meta: { title: '流程管理', icon: 'guide' },
|
|
|
+ redirect: '/flow/group',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'group1',
|
|
|
+ // component: () => import('@/views/flow/group/index1.vue'),
|
|
|
+ component: 'flow/group/index1',
|
|
|
+ name: 'flow_group1',
|
|
|
+ meta: { title: '流程组', icon: '' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'group',
|
|
|
+ // component: () => import('@/views/flow/group/index.vue'),
|
|
|
+ component: 'flow/group/index',
|
|
|
+ name: 'flow_group',
|
|
|
+ meta: { title: '流程组 - ui调整', icon: '' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'form',
|
|
|
+ // component: () => import('@/views/flow/form/index.vue'),
|
|
|
+ component: 'flow/form/index',
|
|
|
+ name: 'flow_form',
|
|
|
+ meta: { title: '流程表单', icon: '' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'create',
|
|
|
+ // component: () => import('@/views/flow/create/index.vue'),
|
|
|
+ component: 'flow/create/index',
|
|
|
+ name: 'flow_create',
|
|
|
+ meta: { title: '创建流程', icon: '' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'task',
|
|
|
+ // component: () => import('@/views/flow/task/index.vue'),
|
|
|
+ component: 'flow/task/index',
|
|
|
+ name: 'flow_task',
|
|
|
+ meta: { title: '流程任务', icon: '' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'instance',
|
|
|
+ // component: () => import('@/views/flow/instance/index.vue'),
|
|
|
+ component: 'flow/instance/index',
|
|
|
+ name: 'flow_instance',
|
|
|
+ meta: { title: '流程实例', icon: '' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'modal',
|
|
|
+ // component: () => import('@/views/flow/modal/index.vue'),
|
|
|
+ component: 'flow/modal/index',
|
|
|
+ name: 'flow_modal',
|
|
|
+ meta: { title: '流程模型', icon: '' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
// 创建路由
|