routes.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Login from './views/Login.vue'
  4. import Register from './views/Register.vue'
  5. import NotFound from './views/404.vue'
  6. import Home from './views/Home.vue'
  7. import daily from './views/workReport/daily.vue'
  8. import reviewImport from './views/workReport/list_import.vue'
  9. // 项目管理
  10. import list from './views/project/list.vue'
  11. import projectInside from './views/project/projectInside.vue'
  12. import projectGantt from './views/project/project_gantt.vue'
  13. // 团队管理
  14. import team from './views/team/index.vue'
  15. // 系统设置
  16. import timetype from './views/settings/timetype.vue';
  17. import Market from './views/market/list';
  18. import PdfView from './views/pdf/pdfview';
  19. //客户管理
  20. import customer from './views/customer/list';
  21. //专业管理
  22. import profession from './views/profession/list';
  23. // 权限管理
  24. // import jurisdiction from './views/jurisdiction/jurisdiction'
  25. //简易工时统计表
  26. import simpleReport from './views/simplereport/list';
  27. // 研究中心
  28. // import research from './views/research/list';
  29. // 角色权限
  30. import quanx from './views/quanx/quanx'
  31. Vue.use(Router)
  32. export const fixedRouter = [
  33. {
  34. path: '/login',
  35. component: Login,
  36. name: '',
  37. hidden: true
  38. },
  39. {
  40. path: '/register',
  41. component: Register,
  42. name: '',
  43. hidden: true
  44. },
  45. {
  46. path: '/market',
  47. component: Market,
  48. name: '',
  49. hidden: true
  50. },
  51. //tab页签切换
  52. {
  53. path: '/',
  54. component: Home,
  55. name: '项目管理',
  56. iconCls: 'fa fa-sticky-note',
  57. hidden:true,
  58. leaf: true,
  59. children: [
  60. { path: '/projectInside/:id', component: projectInside, name: '任务看板' },
  61. { path: '/files/:id', component: projectInside, name: '任务看板' },
  62. { path: '/info/:id', component: projectInside, name: '项目概览' },
  63. { path: '/summary/:id', component: projectInside, name: '数据统计' },
  64. { path: '/earning/:id', component: projectInside, name: '挣值分析' },
  65. ]
  66. },
  67. {
  68. path: '/projectGantt',
  69. component: projectGantt,
  70. name: '项目甘特图',
  71. hidden: true
  72. },
  73. {
  74. path: '/viewonline',
  75. component: PdfView,
  76. name: '',
  77. hidden: true
  78. },
  79. ];
  80. export const allRouters = [//组织架构
  81. //工时报告
  82. {
  83. path: '/',
  84. component: Home,
  85. name: '工时报告',
  86. iconCls: 'iconfont firerock-icontianbao1',
  87. leaf: true,
  88. children: [
  89. { path: '/daily', component: daily, name: '企业跟踪' },
  90. ]
  91. },
  92. // {
  93. // path: '/',
  94. // component: Home,
  95. // name: '自动计时',
  96. // iconCls: 'iconfont firerock-iconmiaobiao',
  97. // leaf: true,
  98. // children: [
  99. // { path: '/timer', component: timer, name: '自动计时' },
  100. // ]
  101. // },
  102. //工时审核
  103. // {
  104. // path: '/',
  105. // component: Home,
  106. // name: '专业审核',
  107. // iconCls: 'iconfont firerock-iconshenhe',
  108. // leaf: true,
  109. // children: [
  110. // { path: '/reviewProfession', component: reviewProfession, name: '专业审核' },
  111. // ]
  112. // },
  113. // {
  114. // path: '/',
  115. // component: Home,
  116. // name: '部门审核',
  117. // iconCls: 'iconfont firerock-iconshenhe',
  118. // leaf: true,
  119. // children: [
  120. // { path: '/reviewDepartment', component: reviewDepartment, name: '部门审核' },
  121. // ]
  122. // },
  123. // {
  124. // path: '/',
  125. // component: Home,
  126. // name: '项目报告审核',
  127. // iconCls: 'iconfont firerock-iconshenhe',
  128. // leaf: true,
  129. // children: [
  130. // { path: '/review', component: review, name: '项目报告审核' },
  131. // ]
  132. // },
  133. {
  134. path: '/',
  135. component: Home,
  136. name: '导入日报审核',
  137. iconCls: 'iconfont firerock-iconshenhe',
  138. leaf: true,
  139. children: [
  140. { path: '/reviewImport', component: reviewImport, name: '操作记录' },
  141. ]
  142. },
  143. //成本统计
  144. // {
  145. // path: '/',
  146. // component: Home,
  147. // name: '工时成本统计',
  148. // iconCls: 'iconfont firerock-icontongji',
  149. // leaf: true,
  150. // children: [
  151. // { path: '/cost', component: cost, name: '工时成本统计' },
  152. // { path: '/cost/:id/:name', component: proDetail, name: '成本详情', hidden: true },
  153. // { path: '/costDep/:id/:name', component: depDetail, name: '成本详情', hidden: true },
  154. // ]
  155. // },
  156. //自定义数值统计
  157. // {
  158. // path: '/',
  159. // component: Home,
  160. // name: '自定义数值统计',
  161. // iconCls: 'iconfont firerock-icontongji',
  162. // leaf: true,
  163. // children: [
  164. // { path: '/customData', component: customData, name: '自定义数值统计' }
  165. // ]
  166. // },
  167. //每月财务成本
  168. // {
  169. // path: '/',
  170. // component: Home,
  171. // name: '财务核算成本',
  172. // iconCls: 'iconfont firerock-iconcaiwu',
  173. // leaf: true,
  174. // children: [
  175. // { path: '/finance', component: finance, name: '财务核算成本' },
  176. // ]
  177. // },
  178. // 任务管理
  179. // {
  180. // path: '/',
  181. // component: Home,
  182. // name: '待办任务',
  183. // iconCls: 'iconfont firerock-icondaibanshixiang',
  184. // leaf: true,
  185. // children: [
  186. // { path: '/task', component: tasks, name: '待办任务' },
  187. // ]
  188. // },
  189. //项目管理
  190. // {
  191. // path: '/',
  192. // component: Home,
  193. // name: '项目管理',
  194. // iconCls: 'iconfont firerock-iconxiangmu',
  195. // leaf: true,
  196. // children: [
  197. // { path: '/list', component: list, name: '功能维护' },
  198. // ]
  199. // },
  200. // {
  201. // path: '/',
  202. // component: Home,
  203. // name: '项目报表服务',
  204. // iconCls: 'iconfont firerock-iconbaobiao',
  205. // leaf: true,
  206. // children: [
  207. // { path: '/corpreport', component: corpReport, name: '项目报表服务' }
  208. // ]
  209. // },
  210. // {
  211. // path: '/',
  212. // component: Home,
  213. // name: '请假管理',
  214. // iconCls: 'iconfont firerock-iconwj-qjd',
  215. // leaf: true,
  216. // children: [
  217. // { path: '/leave', component: leave, name: '请假管理' }
  218. // ]
  219. // },
  220. // {
  221. // path: '/',
  222. // component: Home,
  223. // name: '出差管理',
  224. // iconCls: 'iconfont firerock-iconwj-qjd',
  225. // leaf: true,
  226. // children: [
  227. // { path: '/awayOffice', component: awayOffice, name: '出差管理' }
  228. // ]
  229. // },
  230. {
  231. path: '/',
  232. component: Home,
  233. name: '客户管理',
  234. iconCls: 'iconfont firerock-iconkehu',
  235. leaf: true,
  236. children: [
  237. { path: '/customer', component: customer, name: '企业管理' }
  238. ]
  239. },
  240. {
  241. path: '/',
  242. component: Home,
  243. name: '工程专业管理',
  244. iconCls: 'iconfont firerock-iconjianzhugongchenglei',
  245. leaf: true,
  246. children: [
  247. { path: '/profession', component: profession, name: '工程专业管理' }
  248. ]
  249. },
  250. // 费用报销模块
  251. // {
  252. // path: '/',
  253. // component: Home,
  254. // name: '费用报销',
  255. // iconCls: 'iconfont firerock-iconbaoxiao',
  256. // leaf: true,
  257. // children: [
  258. // { path: '/expense', component: expense, name: '费用报销' }
  259. // ]
  260. // },
  261. {
  262. path: '/',
  263. component: Home,
  264. name: '组织架构',
  265. iconCls: 'iconfont firerock-iconzuzhijiagou1',
  266. leaf: true,//只有一个节点
  267. children: [
  268. { path: '/team', component: team, name: '组织架构' },
  269. ]
  270. },
  271. // {
  272. // path: '/',
  273. // component: Home,
  274. // name: '审批流设置',
  275. // iconCls: 'iconfont firerock-iconliucheng',
  276. // leaf: true,//只有一个节点
  277. // children: [
  278. // { path: '/workflow', component: workflow, name: '审批流设置' },
  279. // ]
  280. // },
  281. //设置时间类型
  282. // {
  283. // path: '/',
  284. // component: Home,
  285. // name: '',
  286. // iconCls: 'iconfont firerock-iconsetting',
  287. // leaf: true,//只有一个节点
  288. // children: [
  289. // { path: '/timetype', component: timetype, name: '系统基础设置' },
  290. // ]
  291. // },
  292. // {
  293. // path: '/',
  294. // component: Home,
  295. // name: '基础数据管理',
  296. // iconCls: 'iconfont firerock-iconsetting',
  297. // leaf: false,//只有一个节点
  298. // children: [
  299. // { path: '/timetype', component: infrastructure, name: '系统基础设置', iconCls: 'iconfont firerock-iconsetting' },
  300. // { path: '/quanx', component: quanx, name: '角色权限管理', iconCls: 'iconfont firerock-iconsetting' }
  301. // ]
  302. // },
  303. {
  304. path: '/',
  305. component: Home,
  306. name: '基础数据管理',
  307. iconCls: 'iconfont firerock-iconsetting',
  308. leaf: false,//只有一个节点
  309. children: [
  310. { path: '/timetype', component: timetype, name: '系统基础设置', iconCls: 'iconfont firerock-iconxitong-'},
  311. { path: '/role', component: quanx, name: '角色权限管理', iconCls: 'iconfont firerock-iconquanxian1' }
  312. ]
  313. },
  314. {
  315. path: '/404',
  316. component: NotFound,
  317. name: '',
  318. hidden: true
  319. },
  320. {
  321. path: '*',
  322. hidden: true,
  323. redirect: { path: '/404' }
  324. }
  325. ]
  326. export const simpleRouters = [
  327. //工时统计表
  328. {
  329. path: '/',
  330. component: Home,
  331. name: '',
  332. iconCls: 'iconfont firerock-icontianbao1',
  333. leaf: true,
  334. children: [
  335. { path: '/simple', component: simpleReport, name: '工时统计表' },
  336. ]
  337. },
  338. {
  339. path: '/404',
  340. component: NotFound,
  341. name: '',
  342. hidden: true
  343. },
  344. {
  345. path: '*',
  346. hidden: true,
  347. redirect: { path: '/404' }
  348. }
  349. ]
  350. export default new Router({
  351. routes: fixedRouter
  352. })