| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import Login from './views/Login.vue'
- import Expire from './views/Expire.vue'
- import Register from './views/Register.vue'
- import NotFound from './views/404.vue'
- import Home from './views/Home.vue'
- // 工作报告
- import daily from './views/workReport/daily.vue'
- // 项目管理
- import list from './views/project/list.vue'
- import cost from './views/project/cost.vue'
- import proDetail from './views/project/detail.vue'
- import depDetail from './views/project/detailDep.vue'
- import projectInside from './views/project/projectInside.vue'
- // 团队管理
- import team from './views/team/index.vue'
- // 系统设置
- import timetype from './views/settings/timetype.vue';
- //企业报表
- import corpReport from './views/corpreport/list';
- // 任务管理
- import tasks from './views/task/list';
- // 角色权限
- import quanx from './views/quanx/quanx'
- // 项目表单设置
- import projectForm from './views/project/projectForm'
- Vue.use(Router)
- export const fixedRouter = [
- {
- path: '/login',
- component: Login,
- name: '',
- hidden: true
- },
- {
- path: '/expire',
- component: Expire,
- name: '',
- hidden: true
- },
- {
- path: '/register',
- component: Register,
- name: '',
- hidden: true
- },
- //tab页签切换
- {
- path: '/',
- component: Home,
- name: '项目管理',
- iconCls: 'fa fa-sticky-note',
- hidden:true,
- leaf: true,
- children: [
- { path: 'projectInside/:id', component: projectInside, name: '任务看板' },
- { path: 'info/:id', component: projectInside, name: '项目概览' },
- ],
- // 其他信息
- meta: { text: 'navigation.projectManagement' }
- },
-
- ];
- export const allRouters = [//组织架构
- //工时报告
- {
- path: '/',
- component: Home,
- name: '工时报告',
- text: 'navigation.reports',
- iconCls: 'iconfont firerock-icontianbao1',
- leaf: true,
- children: [
- { path: '/daily', component: daily, name: '工时报告' },
- ],
- // 其他信息
- meta: { text: 'navigation.reports' }
- },
-
- //成本统计
- {
- path: '/',
- component: Home,
- name: '工时成本统计',
- iconCls: 'iconfont firerock-icontongji',
- leaf: true,
- children: [
- { path: '/cost', component: cost, name: '工时成本统计' },
- { path: '/cost/:id/:name', component: proDetail, name: '成本详情', hidden: true },
- { path: '/costDep/:id/:name', component: depDetail, name: '成本详情', hidden: true },
- ],
- // 其他信息
- meta: { text: 'navigation.laborCostStatistics' }
- },
-
-
- // 任务管理
- {
- path: '/',
- component: Home,
- name: '待办任务',
- iconCls: 'iconfont firerock-icondaibanshixiang',
- leaf: true,
- children: [
- { path: '/task', component: tasks, name: '待办任务' },
- ],
- // 其他信息
- meta: { text: 'navigation.upcomingTasks' }
- },
- //项目管理
- {
- path: '/',
- component: Home,
- name: '项目管理',
- iconCls: 'iconfont firerock-iconxiangmu',
- leaf: true,
- children: [
- { path: '/list', component: list, name: '项目管理' },
- ],
- // 其他信息
- meta: { text: 'navigation.projectManagement' }
- },
-
- {
- path: '/',
- component: Home,
- name: '项目报表服务',
- iconCls: 'iconfont firerock-iconbaobiao',
- leaf: true,
- children: [
- { path: '/corpreport', component: corpReport, name: '项目报表服务' }
- ],
- // 其他信息
- meta: { text: 'navigation.projectReportingService' }
- },
-
-
- {
- path: '/',
- component: Home,
- name: '组织架构',
- iconCls: 'iconfont firerock-iconzuzhijiagou1',
- leaf: true,//只有一个节点
- children: [
- { path: '/team', component: team, name: '组织架构' },
- ],
- // 其他信息
- meta: { text: 'navigation.organizationalStructure' }
- },
-
- {
- path: '/',
- component: Home,
- name: '基础数据管理',
- iconCls: 'iconfont firerock-iconsetting',
- leaf: false,//只有一个节点
- children: [
- { path: '/timetype', component: timetype, name: '系统基础设置', iconCls: 'iconfont firerock-iconxitong-', meta: { text: 'navigation.basicSystemSettings' }},
- { path: '/role', component: quanx, name: '角色权限管理', iconCls: 'iconfont firerock-iconquanxian1', meta: { text: 'navigation.roleRightsManagement' } },
- { path: '/projectForm', component: projectForm, name: '项目表单设置', iconCls: 'iconfont firerock-iconquanxian1', meta: { text: 'navigation.projectFormSettings' } },
- ],
- // 其他信息
- meta: { text: 'navigation.basicDataManagement' }
- },
- {
- path: '/404',
- component: NotFound,
- name: '',
- hidden: true
- },
- {
- path: '*',
- hidden: true,
- redirect: { path: '/404' }
- }
- ]
- export default new Router({
- routes: fixedRouter
- })
|