routes.js 11 KB

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