index.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. import {
  2. createWebHistory,
  3. createWebHashHistory,
  4. createMemoryHistory,
  5. createRouter,
  6. } from "vue-router";
  7. import Login from "../views/index/Login.vue";
  8. const router = createRouter({
  9. history: createWebHashHistory(),
  10. routes: [
  11. {
  12. path: "/index",
  13. name: "index",
  14. meta: {
  15. title: "海事总台",
  16. },
  17. component: () => import("../views/index/Index.vue"),
  18. },
  19. {
  20. path: "/login",
  21. name: "login",
  22. meta: {
  23. title: "登录",
  24. },
  25. component: Login,
  26. },
  27. {
  28. path: "/marineManage/marineNotice",
  29. name: "marineNotice",
  30. meta: {
  31. title: "海事公告",
  32. keepAlive: true,
  33. },
  34. component: () => import("../views/marineManage/marineNotice.vue"),
  35. },
  36. {
  37. path: "/shipManage/shipList",
  38. name: "shipList",
  39. meta: {
  40. title: "船舶列表",
  41. keepAlive: true,
  42. },
  43. component: () => import("../views/shipManage/shipList.vue"),
  44. },
  45. {
  46. path: "/shipManage/shipDetail",
  47. name: "shipDetail",
  48. meta: {
  49. title: "船舶详情",
  50. },
  51. component: () => import("../views/shipManage/shipDetail.vue"),
  52. },
  53. {
  54. path: "/shipOwnerManage/shipOwnerDetail",
  55. name: "shipOwnerDetail",
  56. meta: {
  57. title: "船东详情",
  58. },
  59. component: () => import("../views/shipOwnerManage/shipOwnerDetail.vue"),
  60. },
  61. {
  62. path: "/shipOwnerManage/shipOwnerList",
  63. name: "shipOwnerList",
  64. meta: {
  65. title: "船东列表",
  66. },
  67. component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
  68. },
  69. {
  70. path: "//workStation/certsManage",
  71. name: "certsManage",
  72. meta: {
  73. title: "证书管理",
  74. },
  75. component: () => import("../views/workStation/certsManage.vue"),
  76. },
  77. {
  78. path: "/workStation/insuranceManage",
  79. name: "insuranceManage",
  80. meta: {
  81. title: "保险管理",
  82. },
  83. component: () => import("../views/workStation/insuranceManage.vue"),
  84. },
  85. {
  86. path: "/shipSecurityManage/shipCheckTemplateDetail",
  87. name: "shipCheckTemplateDetail",
  88. meta: {
  89. title: "船舶安检模板",
  90. },
  91. component: () =>
  92. import("../views/shipSecurityManage/shipCheckTemplateDetail.vue"),
  93. },
  94. {
  95. path: "/shipSecurityManage/shipCheckTemplateList",
  96. name: "shipCheck",
  97. meta: {
  98. title: "船舶安检模板列表",
  99. },
  100. component: () =>
  101. import("../views/shipSecurityManage/shipCheckTemplateList.vue"),
  102. },
  103. {
  104. path: "/shipSecurityManage/checkShipList",
  105. name: "checkShipList",
  106. meta: {
  107. title: "船舶安检列表",
  108. },
  109. component: () => import("../views/shipSecurityManage/checkShipList.vue"),
  110. },
  111. {
  112. path: "/shipSecurityManage/checkShip",
  113. name: "checkShip",
  114. meta: {
  115. title: "发起船舶安检",
  116. },
  117. component: () => import("../views/shipSecurityManage/checkShip.vue"),
  118. },
  119. {
  120. path: "/shipSecurityManage/checkShipExamineList",
  121. name: "checkShipExamineList",
  122. meta: {
  123. title: "安检审核列表",
  124. },
  125. component: () =>
  126. import("../views/shipSecurityManage/checkShipExamineList.vue"),
  127. },
  128. {
  129. path: "/shipSecurityManage/checkShipExamine",
  130. name: "checkShipExamine",
  131. meta: {
  132. title: "船舶安检审核",
  133. },
  134. component: () =>
  135. import("../views/shipSecurityManage/checkShipExamine.vue"),
  136. },
  137. {
  138. path: "/shipSecurityManage/checkSingleShip",
  139. name: "checkSingleShip",
  140. meta: {
  141. title: "发起船舶安检审核",
  142. },
  143. component: () =>
  144. import("../views/shipSecurityManage/checkSingleShip.vue"),
  145. },
  146. {
  147. path: "/shipSecurityManage/shipCheckHistoryList",
  148. name: "shipCheckHistoryList",
  149. meta: {
  150. title: "历史船舶安检",
  151. },
  152. component: () =>
  153. import("../views/shipSecurityManage/shipCheckHistoryList.vue"),
  154. },
  155. {
  156. path: "/fireSafetyManage/fireSafetyTemplateList",
  157. name: "fireSafetyTemplateList",
  158. meta: {
  159. title: "消防模板列表",
  160. },
  161. component: () =>
  162. import("../views/fireSafetyManage/fireSafetyTemplateList.vue"),
  163. },
  164. {
  165. path: "/fireSafetyManage/fireSafetyTemplateDetail",
  166. name: "fireSafetyTemplateDetail",
  167. meta: {
  168. title: "消防安检模板详情",
  169. },
  170. component: () =>
  171. import("../views/fireSafetyManage/fireSafetyTemplateDetail.vue"),
  172. },
  173. {
  174. path: "/fireSafetyManage/checkFireSafetyExamineList",
  175. name: "checkFireSafetyExamineList",
  176. meta: {
  177. title: "消防安检审核列表",
  178. },
  179. component: () =>
  180. import("../views/fireSafetyManage/checkFireSafetyExamineList.vue"),
  181. },
  182. {
  183. path: "/fireSafetyManage/checkFireSafetyExamine",
  184. name: "checkFireSafetyExamine",
  185. meta: {
  186. title: "消防安检审核",
  187. },
  188. component: () =>
  189. import("../views/fireSafetyManage/checkFireSafetyExamine.vue"),
  190. },
  191. ],
  192. });
  193. export default router;