routes.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. name: '登录',
  8. path: '/user/login',
  9. component: './user/Login',
  10. },
  11. {
  12. name: '注册',
  13. path: '/user/register',
  14. component: './user/Register',
  15. },
  16. {
  17. component: './404',
  18. },
  19. ],
  20. },
  21. {
  22. path: '/account',
  23. routes: [
  24. {
  25. name: '个人中心',
  26. path: '/account/center',
  27. component: './user/Info',
  28. },
  29. {
  30. name: '个人中心',
  31. path: '/account/password',
  32. component: './user/Password',
  33. },
  34. {
  35. component: './404',
  36. },
  37. ],
  38. },
  39. {
  40. path: '/welcome',
  41. name: '欢迎',
  42. icon: 'HomeOutlined',
  43. component: './Welcome',
  44. },
  45. {
  46. path: '/paperManager',
  47. name: '问卷管理',
  48. icon: 'ProfileOutlined',
  49. access: 'canAccessPaper',
  50. component: './paperM/List',
  51. },
  52. {
  53. path: '/report',
  54. name: '报告管理',
  55. icon: 'LineChartOutlined',
  56. access: 'canAccessReport',
  57. component: './report/List',
  58. },
  59. {
  60. path: '/question',
  61. icon: 'ProfileOutlined',
  62. access: 'canAccessPaper',
  63. parentKeys: ['/paperManager'],
  64. component: './paperM/ListQuestion',
  65. },
  66. {
  67. path: '/paper360',
  68. icon: 'ProfileOutlined',
  69. access: 'canAccessPaper',
  70. parentKeys: ['/paperManager'],
  71. component: './paperM/ListPaper360',
  72. },
  73. {
  74. path: '/paperResult',
  75. icon: 'ProfileOutlined',
  76. access: 'canAccessPaper',
  77. parentKeys: ['/paperManager'],
  78. component: './paperM/PaperResult',
  79. },
  80. {
  81. path: '/tag',
  82. name: '标签管理',
  83. icon: 'TagOutlined',
  84. component: './tag/List',
  85. access: 'canAccessTag',
  86. },
  87. {
  88. path: '/contact',
  89. name: '联系人管理',
  90. icon: 'WhatsAppOutlined',
  91. access: 'canAccessContact',
  92. component: './contact/List',
  93. },
  94. {
  95. path: '/institutionUsers',
  96. name: '企业用户',
  97. icon: 'UserOutlined',
  98. access: 'canAccessIUser',
  99. component: './user/IList',
  100. },
  101. {
  102. path: '/platformUsers',
  103. name: '平台用户',
  104. icon: 'UserSwitchOutlined',
  105. access: 'canAccessPUser',
  106. component: './user/PList',
  107. },
  108. {
  109. path: '/institution',
  110. name: '企业管理',
  111. access: 'canAccessInstitution',
  112. icon: 'ClusterOutlined',
  113. component: './institution/List',
  114. },
  115. {
  116. path: '/institutionInfo',
  117. name: '企业信息',
  118. access: 'canAccessInstitutionInfo',
  119. icon: 'ClusterOutlined',
  120. component: './institution/Edit',
  121. },
  122. {
  123. path: '/home',
  124. redirect: '/',
  125. },
  126. {
  127. path: '/',
  128. layout: false,
  129. hideInMenu: true,
  130. component: './Home',
  131. },
  132. {
  133. path: '/caseList',
  134. layout: false,
  135. hideInMenu: true,
  136. component: './homeX/CaseList',
  137. },
  138. {
  139. path: '/article/:id',
  140. layout: false,
  141. hideInMenu: true,
  142. component: './homeX/CaseDetail',
  143. },
  144. // {
  145. // path: '/partner',
  146. // layout: false,
  147. // hideInMenu: true,
  148. // component: './homeX/Partner',
  149. // },
  150. // {
  151. // path: '/contactUs',
  152. // layout: false,
  153. // hideInMenu: true,
  154. // component: './homeX/Contact',
  155. // },
  156. // {
  157. // path: '/privacy',
  158. // name: '隐私政策',
  159. // layout: false,
  160. // hideInMenu: true,
  161. // component: './Privacy',
  162. // },
  163. // {
  164. // path: '/about',
  165. // name: '关于我们',
  166. // layout: false,
  167. // hideInMenu: true,
  168. // component: './homeX/About',
  169. // },
  170. // {
  171. // path: '/agreement',
  172. // name: '用户协议',
  173. // layout: false,
  174. // hideInMenu: true,
  175. // component: './Agreement',
  176. // },
  177. // {
  178. // path: '/taskList',
  179. // name: '评价任务',
  180. // layout: false,
  181. // hideInMenu: true,
  182. // component: './TaskList',
  183. // },
  184. // {
  185. // path: '/enroll',
  186. // name: 'enroll',
  187. // layout: false,
  188. // hideInMenu: true,
  189. // routes: [
  190. // {
  191. // path: '/enroll/login',
  192. // name: '报名',
  193. // component: './enroll/mobile/Login',
  194. // },
  195. // {
  196. // path: '/enroll/detail',
  197. // name: '报名',
  198. // component: './enroll/mobile/Detail',
  199. // },
  200. // ],
  201. // },
  202. // {
  203. // path: '/paper',
  204. // name: 'paper',
  205. // layout: false,
  206. // hideInMenu: true,
  207. // routes: [
  208. // {
  209. // path: '/paper/login',
  210. // name: '登录',
  211. // component: './paper/mobile/Login',
  212. // },
  213. // {
  214. // path: '/paper/mobile/detail',
  215. // name: '问卷',
  216. // component: './paper/mobile/Detail',
  217. // },
  218. // {
  219. // path: '/paper/mobile/question',
  220. // name: '问卷',
  221. // component: './paper/mobile/Question',
  222. // },
  223. // {
  224. // path: '/paper/detail',
  225. // name: '问卷',
  226. // component: './paper/pc/Detail',
  227. // },
  228. // {
  229. // path: '/paper/result',
  230. // name: '问卷',
  231. // component: './paper/Result',
  232. // },
  233. // {
  234. // component: './404',
  235. // },
  236. // ],
  237. // },
  238. {
  239. component: './404',
  240. },
  241. ];