newRouter.js 9.8 KB

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