123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import Login from './views/Login.vue'
- import Register from './views/Register.vue'
- import NotFound from './views/404.vue'
- import Home from './views/Home.vue'
- // new router
- // 今日桌面
- import desktop from './views/desktop'
- import desktopDetail from './views/desktop/detail.vue'
- import unusual from './views/desktop/unusual.vue'
- // 工作报告
- import statistics from './views/workReport/statistics.vue'
- import daily from './views/workReport/daily.vue'
- import review from './views/workReport/list.vue'
- import timer from './views/workReport/timer.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 task from './views/task/list.vue'
- import projectInside from './views/project/projectInside.vue'
- import info from './views/project/info.vue'
- // 团队管理
- import team from './views/team/index.vue'
- // 系统设置
- import timetype from './views/settings/timetype.vue';
- import finance from './views/project/finance';
- import Market from './views/market/list';
- import PdfView from './views/pdf/pdfview';
- Vue.use(Router)
- export const fixedRouter = [
- {
- path: '/login',
- component: Login,
- name: '',
- hidden: true
- },
- {
- path: '/register',
- component: Register,
- name: '',
- hidden: true
- },
- {
- path: '/market',
- component: Market,
- 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: '/files/:id', component: projectInside, name: '任务看板' },
- { path: '/info/:id', component: projectInside, name: '项目概览' },
- { path: '/summary/:id', component: projectInside, name: '数据统计' },
- { path: '/earning/:id', component: projectInside, name: '挣值分析' },
- ]
- },
- {
- path: '/viewonline',
- component: PdfView,
- name: '',
- hidden: true
- },
-
- ];
- 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 manageRouter = [
-
- //工时报告
- {
- 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-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 },
- ]
- },
- //每月财务成本
- {
- path: '/',
- component: Home,
- name: '财务核算成本',
- iconCls: 'iconfont firerock-iconcaiwu',
- leaf: true,
- children: [
- { path: '/finance', component: finance, name: '财务核算成本' },
- ]
- },
-
- //项目管理
- {
- path: '/',
- component: Home,
- name: '项目管理',
- iconCls: 'iconfont firerock-iconxiangmu',
- leaf: true,
- children: [
- { path: '/list', component: list, name: '项目管理' },
- { path: '/projectInside/:id', component: projectInside, name: '项目查看' },
- ]
- },
- //组织架构
- {
- 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: '系统基础设置' },
- ]
- },
- //智能监控
- // {
- // path: '/',
- // component: Home,
- // name: '智能监控',
- // iconCls: 'fa fa-desktop',
- // children: [
- // { path: '/desktop', component: desktop, name: '员工桌面' },
- // { path: '/desktop/:id/:date', component: desktopDetail, name: '员工桌面详情', hidden: true },
- // { path: '/unusual', component: unusual, name: '异常统计' },
- // { path: '/statistics', component: statistics, 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',
- 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: '/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,
- children: [
- { path: '/list', component: list, name: '项目管理' },
- ]
- },
- {
- path: '/404',
- component: NotFound,
- name: '',
- hidden: true
- },
- {
- path: '*',
- hidden: true,
- redirect: { path: '/404' }
- }
- ];
- export default new Router({
- routes: fixedRouter
- })
|