newRouter.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. import Layout from '@/views/newLayout/layout.vue'
  2. const layout = [
  3. {
  4. path: '/workbench/person',
  5. name: '个人工作台',
  6. component: Layout,
  7. icon: 'person-workbench',
  8. redirect: '/workbench/person/personDetail',
  9. key: 'self_workbench',
  10. children: [
  11. {
  12. path: 'personDetail',
  13. name: '个人工作台详情',
  14. component: () => import('@/views/workbench/person/index.vue'),
  15. meta: { title: '个人工作台' }
  16. }
  17. ]
  18. },
  19. {
  20. path: '/workbench/team',
  21. name: '团队工作台',
  22. component: Layout,
  23. icon: 'team-workbench',
  24. redirect: '/workbench/team/teamDetail',
  25. key: 'team_workbench',
  26. children: [
  27. {
  28. path: 'teamDetail',
  29. name: '团队工作台详情',
  30. component: () => import('@/views/workbench/team/index.vue'),
  31. meta: { title: '团队工作台' }
  32. }
  33. ]
  34. },
  35. {
  36. path: '/business',
  37. name: '业务线',
  38. component: Layout,
  39. children: [
  40. {
  41. path: '/bizIdSelect',
  42. name: '业务线选择',
  43. component: () => import('@/views/business/bizIdSelect.vue'),
  44. meta: { title: '业务线' }
  45. }
  46. ]
  47. },
  48. {
  49. path: '/projectManage',
  50. name: '项目管理',
  51. component: Layout,
  52. icon: 'project-manage',
  53. redirect: '/projectManage/projectIndex',
  54. meta: { title: '项目管理' },
  55. key: 'project_management',
  56. children: [
  57. {
  58. path: 'projectIndex',
  59. name: '项目',
  60. icon: 'project',
  61. key: 'project',
  62. component: () => import('@/views/projectManage/projectList/projectIndex.vue'),
  63. meta: { title: '项目' }
  64. },
  65. {
  66. path: 'projectDetail',
  67. name: '项目详情',
  68. hidden: true,
  69. component: () => import('@/views/projectManage/projectList/projectViewDetails.vue'),
  70. meta: { title: '项目' }
  71. },
  72. {
  73. path: 'requirementIndex',
  74. name: '需求',
  75. icon: 'requirement',
  76. key: 'requirement',
  77. component: () => import('@/views/projectManage/requirement/list/index.vue'),
  78. meta: { title: '需求' }
  79. },
  80. {
  81. path: 'requirementDetails',
  82. name: '需求详情',
  83. hidden: true,
  84. component: () => import('@/views/projectManage/requirement/requirementDetail.vue'),
  85. meta: { title: '需求详情' }
  86. },
  87. {
  88. path: 'taskIndex',
  89. name: '任务',
  90. icon: 'task',
  91. key: 'task',
  92. component: () => import('@/views/projectManage/taskList/taskIndex'),
  93. meta: { title: '任务' }
  94. },
  95. {
  96. path: 'taskViewDetails',
  97. name: '任务详情',
  98. hidden: true,
  99. component: () => import('@/views/projectManage/taskList/taskViewDetail'),
  100. meta: { title: '任务详情' }
  101. },
  102. {
  103. path: 'childDetail',
  104. name: '子任务详情',
  105. hidden: true,
  106. component: () => import('@/views/projectManage/taskList/childrenTask/childDetail'),
  107. meta: { title: '子任务详情' }
  108. },
  109. {
  110. path: '/projectManage/bugList/bugindex',
  111. name: '缺陷',
  112. icon: 'bug',
  113. key: 'bug',
  114. component: () => import('@/views/projectManage/bugList/bugindex'),
  115. meta: { title: '缺陷' }
  116. },
  117. {
  118. path: 'bugDetails',
  119. name: '缺陷详情',
  120. hidden: true,
  121. component: () => import('@/views/projectManage/bugList/details/index.vue'),
  122. meta: { title: '缺陷详情' }
  123. },
  124. {
  125. path: 'reportManagement',
  126. name: '报告',
  127. icon: 'report',
  128. key: 'report',
  129. component: () => import('@/views/reportManagement/testPresentation'),
  130. meta: { title: '报告' }
  131. },
  132. {
  133. path: 'dailyDetails',
  134. name: '日报详情',
  135. hidden: true,
  136. component: () => import('@/views/reportManagement/daily/components/dailyDetails'),
  137. meta: { title: '报告详情' }
  138. },
  139. {
  140. path: 'releaseDetails',
  141. name: '准出详情',
  142. hidden: true,
  143. component: () => import('@/views/reportManagement/ReleaseReport/components/releaseDetails'),
  144. meta: { title: '报告详情' }
  145. },
  146. {
  147. path: 'deliverDetails',
  148. name: '提测详情',
  149. hidden: true,
  150. component: () => import('@/views/reportManagement/Testing/components/deliverDetails'),
  151. meta: { title: '报告详情' }
  152. },
  153. {
  154. path: 'acceptTheReport',
  155. name: '提测预览',
  156. hidden: true,
  157. component: () => import('@/views/Platform/presentation/acceptTheReport'),
  158. meta: { title: '提测预览' }
  159. },
  160. {
  161. path: 'testPresenyL',
  162. name: '日报预览',
  163. hidden: true,
  164. component: () => import('@/views/Platform/presentation/testPresenyL'),
  165. meta: { title: '日报预览' }
  166. },
  167. {
  168. path: 'ResultPageyL',
  169. name: '准出预览',
  170. hidden: true,
  171. component: () => import('@/views/Platform/presentation/ResultPageyL'),
  172. meta: { title: '准出预览' }
  173. },
  174. {
  175. path: 'iteration',
  176. name: '迭代',
  177. cutOff: true,
  178. icon: 'iteration',
  179. key: 'iteration',
  180. component: () => import('@/views/projectManage/iteration/index'),
  181. meta: { title: '迭代' }
  182. },
  183. {
  184. path: 'iterationDetails',
  185. name: '迭代详情',
  186. hidden: true,
  187. component: () => import('@/views/projectManage/iteration/details/iterationDetails.vue'),
  188. meta: { title: '迭代详情' }
  189. },
  190. {
  191. path: 'version',
  192. name: '版本',
  193. icon: 'version',
  194. key: 'version',
  195. component: () => import('@/views/projectManage/version/list/index.vue'),
  196. meta: { title: '版本' }
  197. },
  198. {
  199. path: 'versionsCalendar',
  200. name: '版本日历',
  201. hidden: true,
  202. component: () => import('@/views/projectManage/taskList/versionsCalendar'),
  203. meta: { title: '版本日历' }
  204. },
  205. // 文博 项目列表
  206. {
  207. path: 'onlineProblemIndex',
  208. name: '线上问题 ',
  209. icon: 'onlineProblem',
  210. cutOff: true,
  211. key: 'onlineProblem',
  212. component: () => import('@/views/projectManage/onlineproblem'),
  213. meta: { title: '线上问题 ' }
  214. },
  215. {
  216. path: 'onlineProblemCreate',
  217. name: '质惠新建线上问题',
  218. hidden: true,
  219. component: () => import('@/views/projectManage/onlineproblem/create'),
  220. meta: { title: '质惠新建线上问题' }
  221. },
  222. {
  223. path: 'onlineProblemDetails',
  224. name: '质惠线上问题详情',
  225. hidden: true,
  226. component: () => import('@/views/projectManage/onlineproblem/detial'),
  227. meta: { title: '质惠线上问题详情' }
  228. },
  229. // ---end---
  230. {
  231. path: 'useCasePage',
  232. name: '测试用例',
  233. icon: 'test-case',
  234. cutOff: true,
  235. key: 'usecase',
  236. component: () => import('@/views/useCase'),
  237. meta: { title: '测试用例' }
  238. },
  239. {
  240. path: 'createUse',
  241. name: '用例新增',
  242. hidden: true,
  243. component: () => import('@/views/Platform/useCase/createUse'),
  244. meta: { title: '用例新增' }
  245. },
  246. {
  247. path: 'queryUse',
  248. name: '用例查看',
  249. hidden: true,
  250. component: () => import('@/views/Platform/useCase/queryUse'),
  251. meta: { title: '用例查看' }
  252. },
  253. {
  254. path: 'testPage',
  255. name: '测试计划',
  256. icon: 'test-plain',
  257. key: 'testplain',
  258. component: () => import('@/views/Platform/testPage.vue'),
  259. meta: { title: '测试计划' }
  260. },
  261. {
  262. path: 'allStatistics',
  263. name: '统计分析',
  264. icon: 'statistics',
  265. cutOff: true,
  266. key: 'statistics',
  267. component: () => import('@/views/quality/allStatistics.vue'),
  268. meta: { title: '统计分析' }
  269. },
  270. {
  271. path: 'qualityMeasurement',
  272. name: '老版统计详情',
  273. hidden: true,
  274. component: () => import('@/views/quality/qualityMeasurement.vue'),
  275. meta: { title: '老版统计' }
  276. },
  277. {
  278. path: 'qualityProcess',
  279. name: '上线过程',
  280. hidden: true,
  281. component: () => import('@/views/quality/qualityProcess.vue'),
  282. meta: { title: '上线过程' }
  283. },
  284. {
  285. path: 'qualityDefectProcess',
  286. name: '缺陷过程',
  287. hidden: true,
  288. component: () => import('@/views/quality/qualityDefectProcess.vue'),
  289. meta: { title: '缺陷过程' }
  290. },
  291. {
  292. path: 'qualityHotpatchProcess',
  293. name: '热修复过程',
  294. hidden: true,
  295. component: (resolve) => require(['@/views/quality/qualityHotpatchProcess.vue'], resolve),
  296. meta: { title: '热修复过程' }
  297. },
  298. // {
  299. // path: 'problemList',
  300. // name: '线上问题',
  301. // hidden: true,
  302. // component: () =>
  303. // import('@/views/onlineProblem/problemList.vue'),
  304. // meta: { title: '线上问题' }
  305. // },
  306. {
  307. path: '/Platform/defectManagement/problemCreate',
  308. name: '新建线上问题',
  309. hidden: true,
  310. component: (resolve) => require(['@/views/onlineProblem/problemCreate'], resolve),
  311. meta: { title: '新建线上问题' }
  312. },
  313. {
  314. path: '/Platform/defectManagement/problemQuery',
  315. name: '查看线上问题',
  316. hidden: true,
  317. component: (resolve) => require(['@/views/onlineProblem/problemQuery'], resolve),
  318. meta: { title: '查看线上问题' }
  319. },
  320. {
  321. path: '/Platform/defectManagement/problemUpdate',
  322. name: '更新线上问题',
  323. hidden: true,
  324. component: (resolve) => require(['@/views/onlineProblem/problemUpdate'], resolve),
  325. meta: { title: '更新线上问题' }
  326. },
  327. {
  328. path: 'requireStatistics',
  329. name: '需求统计',
  330. hidden: true,
  331. component: () => import('@/views/quality/requireStatistics.vue'),
  332. meta: { title: '需求统计' }
  333. },
  334. {
  335. path: 'taskStatistics',
  336. name: '任务统计',
  337. hidden: true,
  338. component: () => import('@/views/quality/taskStatistics.vue'),
  339. meta: { title: '任务统计' }
  340. },
  341. {
  342. path: 'defectStatistics',
  343. name: '缺陷统计',
  344. hidden: true,
  345. component: () => import('@/views/quality/defectStatistics.vue'),
  346. meta: { title: '缺陷统计' }
  347. },
  348. {
  349. path: 'index',
  350. name: '配置中心',
  351. icon: 'config',
  352. key: 'config',
  353. component: () => import('@/views/ToConfigure/index'),
  354. meta: { title: '配置中心' }
  355. }
  356. ]
  357. }
  358. ]
  359. export default layout