|
@@ -31,6 +31,7 @@ import team from './views/team/index.vue'
|
|
|
|
|
|
// 系统设置
|
|
|
import timetype from './views/settings/timetype.vue';
|
|
|
+import role from './views/role/role';
|
|
|
|
|
|
import finance from './views/project/finance';
|
|
|
import Market from './views/market/list';
|
|
@@ -88,36 +89,7 @@ export const fixedRouter = [
|
|
|
},
|
|
|
|
|
|
];
|
|
|
-export const projectManageRouter = [
|
|
|
- //项目管理
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '项目管理',
|
|
|
- iconCls: 'iconfont firerock-iconxiangmu',
|
|
|
- leaf: true,
|
|
|
- children: [
|
|
|
- { path: '/list', component: list, name: '项目管理' },
|
|
|
- { path: '/projectInside/:id', component: projectInside, name: '项目查看' },
|
|
|
- ]
|
|
|
- }
|
|
|
-];
|
|
|
-export const expenseRouter = [
|
|
|
- // 费用报销模块
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '费用报销',
|
|
|
- iconCls: 'iconfont firerock-iconbaoxiao',
|
|
|
- leaf: true,
|
|
|
- children: [
|
|
|
- { path: '/expense', component: expense, name: '费用报销' }
|
|
|
- ]
|
|
|
- }
|
|
|
-];
|
|
|
-
|
|
|
-export const manageRouter = [
|
|
|
-
|
|
|
+export const allRouters = [//组织架构
|
|
|
//工时报告
|
|
|
{
|
|
|
path: '/',
|
|
@@ -150,18 +122,7 @@ export const manageRouter = [
|
|
|
{ path: '/review', component: review, name: '报告审核' },
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
- // {
|
|
|
- // path: '/',
|
|
|
- // component: Home,
|
|
|
- // name: '费用报销',
|
|
|
- // iconCls: 'iconfont firerock-iconbaoxiao',
|
|
|
- // leaf: true,
|
|
|
- // children: [
|
|
|
- // { path: '/expense', component: expense, name: '费用报销' }
|
|
|
- // ]
|
|
|
- // },
|
|
|
-
|
|
|
+
|
|
|
//成本统计
|
|
|
{
|
|
|
path: '/',
|
|
@@ -186,9 +147,6 @@ export const manageRouter = [
|
|
|
{ path: '/finance', component: finance, name: '财务核算成本' },
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//项目管理
|
|
|
{
|
|
|
path: '/',
|
|
@@ -198,101 +156,50 @@ export const manageRouter = [
|
|
|
leaf: true,
|
|
|
children: [
|
|
|
{ path: '/list', component: list, name: '项目管理' },
|
|
|
- { path: '/projectInside/:id', component: projectInside, name: '项目查看' },
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
- path: '/404',
|
|
|
- component: NotFound,
|
|
|
- name: '',
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- {
|
|
|
- path: '*',
|
|
|
- hidden: true,
|
|
|
- redirect: { path: '/404' }
|
|
|
- }
|
|
|
-];
|
|
|
-
|
|
|
-export const staffRouter = [
|
|
|
- //工时报告
|
|
|
+ // 费用报销模块
|
|
|
{
|
|
|
path: '/',
|
|
|
component: Home,
|
|
|
- name: '工时报告',
|
|
|
- iconCls: 'fa fa-sticky-note',
|
|
|
+ name: '费用报销',
|
|
|
+ iconCls: 'iconfont firerock-iconbaoxiao',
|
|
|
leaf: true,
|
|
|
children: [
|
|
|
- { path: '/daily', component: daily, name: '工时报告' },
|
|
|
+ { path: '/expense', component: expense, name: '费用报销' }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
path: '/',
|
|
|
component: Home,
|
|
|
- name: '自动计时',
|
|
|
- iconCls: 'iconfont firerock-iconmiaobiao',
|
|
|
- leaf: true,
|
|
|
+ name: '组织架构',
|
|
|
+ iconCls: 'fa fa-users',
|
|
|
+ leaf: true,//只有一个节点
|
|
|
children: [
|
|
|
- { path: '/timer', component: timer, name: '自动计时' },
|
|
|
+ { path: '/team', component: team, name: '组织架构' },
|
|
|
]
|
|
|
},
|
|
|
+ // {
|
|
|
+ // path: '/',
|
|
|
+ // component: Home,
|
|
|
+ // name: '',
|
|
|
+ // iconCls: 'iconfont firerock-iconquanxian',
|
|
|
+ // leaf: true,//只有一个节点
|
|
|
+ // children: [
|
|
|
+ // { path: '/role', component: role, name: '角色权限' },
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
|
|
|
+ //设置时间类型
|
|
|
{
|
|
|
- path: '/404',
|
|
|
- component: NotFound,
|
|
|
- name: '',
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- {
|
|
|
- path: '*',
|
|
|
- hidden: true,
|
|
|
- redirect: { path: '/404' }
|
|
|
- }
|
|
|
-];
|
|
|
-//项目经理的权限,填报和审核
|
|
|
-export const leaderRouter = [
|
|
|
- //工时报告
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '工时报告',
|
|
|
- iconCls: 'fa fa-sticky-note',
|
|
|
- leaf: true,
|
|
|
- children: [
|
|
|
- { path: '/daily', component: daily, name: '工时报告' },
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '自动计时',
|
|
|
- iconCls: 'iconfont firerock-iconmiaobiao',
|
|
|
- leaf: true,
|
|
|
- children: [
|
|
|
- { path: '/timer', component: timer, name: '自动计时' },
|
|
|
- ]
|
|
|
- },
|
|
|
- //工时审核
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '报告审核',
|
|
|
- iconCls: 'iconfont firerock-iconshenhe',
|
|
|
- leaf: true,
|
|
|
- children: [
|
|
|
- { path: '/review', component: review, name: '报告审核' },
|
|
|
- ]
|
|
|
- },
|
|
|
- //项目管理
|
|
|
- {
|
|
|
+
|
|
|
path: '/',
|
|
|
component: Home,
|
|
|
- name: '项目管理',
|
|
|
- iconCls: 'iconfont firerock-iconxiangmu',
|
|
|
- leaf: true,
|
|
|
+ name: '',
|
|
|
+ iconCls: 'iconfont firerock-iconsetting',
|
|
|
+ leaf: true,//只有一个节点
|
|
|
children: [
|
|
|
- { path: '/list', component: list, name: '项目管理' },
|
|
|
+ { path: '/timetype', component: timetype, name: '系统基础设置' },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -306,31 +213,7 @@ export const leaderRouter = [
|
|
|
hidden: true,
|
|
|
redirect: { path: '/404' }
|
|
|
}
|
|
|
-];
|
|
|
-
|
|
|
-export const sysManageRouter = [//组织架构
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '',
|
|
|
- iconCls: 'fa fa-users',
|
|
|
- leaf: true,//只有一个节点
|
|
|
- children: [
|
|
|
- { path: '/team', component: team, name: '组织架构' },
|
|
|
- ]
|
|
|
- },
|
|
|
- //设置时间类型
|
|
|
- {
|
|
|
-
|
|
|
- path: '/',
|
|
|
- component: Home,
|
|
|
- name: '',
|
|
|
- iconCls: 'iconfont firerock-iconsetting',
|
|
|
- leaf: true,//只有一个节点
|
|
|
- children: [
|
|
|
- { path: '/timetype', component: timetype, name: '系统基础设置' },
|
|
|
- ]
|
|
|
- },]
|
|
|
+]
|
|
|
|
|
|
export default new Router({
|
|
|
routes: fixedRouter
|