index.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. import {
  2. createWebHistory,
  3. createWebHashHistory,
  4. createMemoryHistory,
  5. createRouter,
  6. } from "vue-router";
  7. const router = createRouter({
  8. history: createWebHashHistory(),
  9. routes: [
  10. {
  11. path: "/",
  12. name: "index",
  13. component: () => import("../views/index/Index.vue"),
  14. },
  15. {
  16. path: "/login",
  17. name: "login",
  18. meta: {
  19. title: "登录",
  20. },
  21. component: () => import("../views/index/Login.vue"),
  22. },
  23. {
  24. path: "/cargoOwnerManage/cargoOwnerCompanyDetail",
  25. name: "cargoOwnerCompanyDetail",
  26. meta: {
  27. title: "货主详情",
  28. },
  29. component: () =>
  30. import("../views/cargoOwnerManage/cargoOwnerCompanyDetail.vue"),
  31. },
  32. {
  33. path: "/cargoOwnerManage/cargoOwnerCompanyList",
  34. name: "cargoOwnerCompanyList",
  35. meta: {
  36. title: "货主列表",
  37. },
  38. component: () =>
  39. import("../views/cargoOwnerManage/cargoOwnerCompanyList.vue"),
  40. },
  41. {
  42. path: "/shipInfo/shipList",
  43. name: "shipList",
  44. meta: {
  45. title: "船舶列表",
  46. },
  47. component: () => import("../views/shipInfo/shipList.vue"),
  48. },
  49. {
  50. path: "/shipInfo/shipDetail",
  51. name: "shipDetail",
  52. meta: {
  53. title: "船舶详情",
  54. },
  55. component: () => import("../views/shipInfo/shipDetail.vue"),
  56. },
  57. {
  58. path: "/shipOwnerManage/shipOwnerDetail",
  59. name: "shipOwnerDetail",
  60. meta: {
  61. title: "船东详情",
  62. },
  63. component: () => import("../views/shipOwnerManage/shipOwnerDetail.vue"),
  64. },
  65. {
  66. path: "/shipOwnerManage/shipOwnerList",
  67. name: "shipOwnerList",
  68. meta: {
  69. title: "船东列表",
  70. },
  71. component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
  72. },
  73. {
  74. path: "/voyage/voyageAdd",
  75. name: "voyageAdd",
  76. meta: {
  77. title: "添加航次",
  78. },
  79. component: () => import("../views/voyage/voyageAdd.vue"),
  80. },
  81. {
  82. path: "/voyage/voyageDetail",
  83. name: "voyageDetail",
  84. meta: {
  85. title: "航次详情",
  86. },
  87. component: () => import("../views/voyage/voyageDetail.vue"),
  88. },
  89. {
  90. path: "/voyage/voyageList",
  91. name: "voyageList",
  92. meta: {
  93. title: "航次列表",
  94. },
  95. component: () => import("../views/voyage/voyageList.vue"),
  96. },
  97. {
  98. path: "/index/mediaCheck",
  99. name: "mediaCheck",
  100. meta: {
  101. title: "鉴图/视频",
  102. },
  103. component: () => import("../views/index/mediaCheck.vue"),
  104. },
  105. {
  106. path: "/agencyList",
  107. name: "agencyList",
  108. meta: {
  109. title: "代理列表",
  110. },
  111. component: () => import("../views/index/AgencyList.vue"),
  112. },
  113. {
  114. path: "/agencySubAccountList",
  115. name: "agencySubAccountList",
  116. meta: {
  117. title: "代理子账户列表",
  118. },
  119. component: () => import("../views/index/AgencySubAccountList.vue"),
  120. },
  121. {
  122. path: "/agencyManage/agencyCompanyList",
  123. name: "agencyCompanyList",
  124. meta: {
  125. title: "代理公司列表",
  126. },
  127. component: () => import("../views/agencyManage/agencyCompanyList.vue"),
  128. },
  129. {
  130. path: "/agencyManage/agencyCompanyDetail",
  131. name: "agencyCompanyDetail",
  132. meta: {
  133. title: "代理公司详情",
  134. },
  135. component: () => import("../views/agencyManage/agencyCompanyDetail.vue"),
  136. },
  137. {
  138. path: "/portsManage/portsList",
  139. name: "portsList",
  140. meta: {
  141. title: "港口列表",
  142. },
  143. component: () => import("../views/portsManage/portsList.vue"),
  144. },
  145. {
  146. path: "/portsManage/sailingSchedule",
  147. name: "sailingSchedule",
  148. meta: {
  149. title: "航期维护",
  150. },
  151. component: () => import("../views/portsManage/sailingSchedule.vue"),
  152. },
  153. {
  154. path: "/toolManage/blockChain",
  155. name: "blockChain",
  156. meta: {
  157. title: "汇很多科技区块链",
  158. },
  159. component: () => import("../views/toolManage/blockChain.vue"),
  160. },
  161. {
  162. path: "/toolManage/versions",
  163. name: "versions",
  164. meta: {
  165. title: "版本日志管理",
  166. },
  167. component: () => import("../views/toolManage/versions.vue"),
  168. },
  169. ],
  170. });
  171. export default router;