routes.js 11 KB

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