|
@@ -5,7 +5,12 @@ Vue.use(Router)
|
|
|
|
|
|
/* Layout */
|
|
/* Layout */
|
|
import Layout from '@/layout'
|
|
import Layout from '@/layout'
|
|
-import ParentView from '@/components/ParentView';
|
|
|
|
|
|
+import ParentView from '@/components/ParentView';
|
|
|
|
+
|
|
|
|
+import approval from '../views/workbench/approval';
|
|
|
|
+import handled from '../views/workbench/handled';
|
|
|
|
+import process from '../views/workbench/process';
|
|
|
|
+console.log(approval,handled,process,12)
|
|
|
|
|
|
/**
|
|
/**
|
|
* Note: 路由配置项
|
|
* Note: 路由配置项
|
|
@@ -64,83 +69,54 @@ export const constantRoutes = [
|
|
component: (resolve) => require(['@/views/index'], resolve),
|
|
component: (resolve) => require(['@/views/index'], resolve),
|
|
name: '首页',
|
|
name: '首页',
|
|
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
|
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'index1',
|
|
|
|
- name: '流程工作台',
|
|
|
|
- hidden: false,
|
|
|
|
- alwaysShow: true,
|
|
|
|
- meta: { title: '流程工作台', icon: 'spot', noCache: true },
|
|
|
|
- children: [{
|
|
|
|
- path: 'index1',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '待我审批',
|
|
|
|
- meta: { title: '待我审批', icon: '', noCache: false},
|
|
|
|
- },{
|
|
|
|
- path: 'index2',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '已办理',
|
|
|
|
- meta: { title: '已办理', icon: '', noCache: false},
|
|
|
|
- },{
|
|
|
|
- path: 'index3',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '已延时',
|
|
|
|
- meta: { title: '已延时', icon: '', noCache: false},
|
|
|
|
- },{
|
|
|
|
- path: 'index4',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '我的流程',
|
|
|
|
- meta: { title: '我的流程', icon: '', noCache: false},
|
|
|
|
- }]
|
|
|
|
- },{
|
|
|
|
- path: 'index2',
|
|
|
|
- name: '工作协助',
|
|
|
|
- hidden: false,
|
|
|
|
- alwaysShow: true,
|
|
|
|
- meta: { title: '工作协助', icon: 'spot', noCache: true },
|
|
|
|
- children: [{
|
|
|
|
- path: 'index1',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '批注',
|
|
|
|
- meta: { title: '批注', icon: '', noCache: false},
|
|
|
|
- },{
|
|
|
|
- path: 'index2',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '微邮',
|
|
|
|
- meta: { title: '微邮', icon: '', noCache: false},
|
|
|
|
- }]
|
|
|
|
- },{
|
|
|
|
- path: 'index3',
|
|
|
|
- name: '交办事项',
|
|
|
|
- hidden: false,
|
|
|
|
- alwaysShow: true,
|
|
|
|
- meta: { title: '交办事项', icon: 'spot', noCache: true },
|
|
|
|
- children: [{
|
|
|
|
- path: 'index1',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '待我处理',
|
|
|
|
- meta: { title: '待我处理', icon: '', noCache: false},
|
|
|
|
- },{
|
|
|
|
- path: 'index2',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '我的安排',
|
|
|
|
- meta: { title: '我的安排', icon: '', noCache: false },
|
|
|
|
- },{
|
|
|
|
- path: 'index3',
|
|
|
|
- hidden: false,
|
|
|
|
- component: (resolve) => require(['@/views/index'], resolve),
|
|
|
|
- name: '历史事务',
|
|
|
|
- meta: { title: '历史事务', icon: '', noCache: false},
|
|
|
|
- }]
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: 'index/approval',
|
|
|
|
+ hidden: false,
|
|
|
|
+ component: approval,
|
|
|
|
+ name: '待我审批',
|
|
|
|
+ meta: { title: '待我审批', icon: 'dashboard', noCache: false},
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: 'index/handled',
|
|
|
|
+ hidden: false,
|
|
|
|
+ component: handled,
|
|
|
|
+ name: '已办理',
|
|
|
|
+ meta: { title: '已办理', icon: 'dashboard', noCache: false},
|
|
|
|
+ },
|
|
|
|
+ // {
|
|
|
|
+ // path: 'index/process',
|
|
|
|
+ // hidden: false,
|
|
|
|
+ // component: process,
|
|
|
|
+ // name: '我的流程',
|
|
|
|
+ // meta: { title: '我的流程', icon: '', noCache: false},
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // path: '',
|
|
|
|
+ // name: '流程工作台',
|
|
|
|
+ // hidden: false,
|
|
|
|
+ // alwaysShow: true,
|
|
|
|
+ // meta: { title: '流程工作台', icon: 'spot', noCache: true },
|
|
|
|
+ // children: [{
|
|
|
|
+ // path: 'index/approval',
|
|
|
|
+ // hidden: false,
|
|
|
|
+ // component: approval,
|
|
|
|
+ // name: '待我审批',
|
|
|
|
+ // meta: { title: '待我审批', icon: '', noCache: false},
|
|
|
|
+ // },{
|
|
|
|
+ // path: 'index/handled',
|
|
|
|
+ // hidden: false,
|
|
|
|
+ // component: handled,
|
|
|
|
+ // name: '已办理',
|
|
|
|
+ // meta: { title: '已办理', icon: '', noCache: false},
|
|
|
|
+ // }, {
|
|
|
|
+ // path: 'index/process',
|
|
|
|
+ // hidden: false,
|
|
|
|
+ // component: process,
|
|
|
|
+ // name: '我的流程',
|
|
|
|
+ // meta: { title: '我的流程', icon: '', noCache: false},
|
|
|
|
+ // }]
|
|
|
|
+ // }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|