index.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. import {
  2. createWebHistory,
  3. createWebHashHistory,
  4. createMemoryHistory,
  5. createRouter,
  6. } from "vue-router";
  7. import Index from "../views/index/Index.vue";
  8. import Login from "../views/index/Login.vue";
  9. import VoyageList from "../views/voyage/voyageList.vue";
  10. const router = createRouter({
  11. history: createWebHashHistory(),
  12. routes: [
  13. {
  14. path: "/index",
  15. name: "index",
  16. meta: {
  17. title: "总台",
  18. },
  19. component: Index,
  20. },
  21. {
  22. path: "/login",
  23. name: "login",
  24. meta: {
  25. title: "登录",
  26. },
  27. component: Login,
  28. },
  29. {
  30. path: "/voyage/voyageDetail",
  31. name: "voyageDetail",
  32. meta: {
  33. title: "航次详情",
  34. code: "VOYAGEDETAIL",
  35. },
  36. component: () => import("../views/voyage/voyageDetail.vue"),
  37. },
  38. {
  39. path: "/voyage/voyageList",
  40. name: "voyageList",
  41. meta: {
  42. title: "航次列表",
  43. code: "VOYAGELIST",
  44. },
  45. component: VoyageList,
  46. },
  47. {
  48. path: "/accountManage/subAccountList",
  49. name: "subAccountList",
  50. meta: {
  51. title: "员工列表",
  52. code: "ACCOUNTLIST",
  53. },
  54. component: () => import("../views/accountManage/subAccountList.vue"),
  55. },
  56. {
  57. path: "/authManage/roleList",
  58. name: "roleList",
  59. meta: {
  60. title: "职位列表",
  61. code: "ROLELIST",
  62. },
  63. component: () => import("../views/authManage/roleList.vue"),
  64. },
  65. {
  66. path: "/authManage/departmentList",
  67. name: "departmentList",
  68. meta: {
  69. title: "部门列表",
  70. code: "DEPTLIST",
  71. },
  72. component: () => import("../views/authManage/departmentList.vue"),
  73. },
  74. {
  75. path: "/authManage/addRole",
  76. name: "addRole",
  77. meta: {
  78. title: "新增职位",
  79. code: "ADDROLELIST",
  80. },
  81. component: () => import("../views/authManage/addRole.vue"),
  82. },
  83. {
  84. path: "/shipOwnerManage/shipOwnerList",
  85. name: "shipOwnerList",
  86. meta: {
  87. title: "船东列表",
  88. code: "SHIPOWNERLIST",
  89. },
  90. component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
  91. },
  92. {
  93. path: "/voyage/dailyList",
  94. name: "dailyList",
  95. meta: {
  96. title: "日报列表",
  97. code: "DAYREPORTLIST",
  98. },
  99. component: () => import("../views/voyage/dailyList.vue"),
  100. },
  101. {
  102. path: "/voyage/dailyDetail",
  103. name: "dailyDetail",
  104. meta: {
  105. title: "日报详情",
  106. code: "DAYREPORTVIEW",
  107. },
  108. component: () => import("../views/voyage/dailyDetail.vue"),
  109. },
  110. {
  111. path: "/voyage/billList",
  112. name: "billList",
  113. meta: {
  114. title: "单据列表",
  115. code: "BILLLIST",
  116. },
  117. component: () => import("../views/voyage/billList.vue"),
  118. },
  119. {
  120. path: "/voyage/billDetail",
  121. name: "billDetail",
  122. meta: {
  123. title: "单据详情",
  124. code: "BILLLISTVIEW",
  125. },
  126. component: () => import("../views/voyage/billDetail.vue"),
  127. },
  128. {
  129. path: "/voyage/portDeclarationList",
  130. name: "portDeclarationList",
  131. meta: {
  132. title: "报港",
  133. code: "DECLARE",
  134. },
  135. component: () => import("../views/voyage/portDeclarationList.vue"),
  136. },
  137. {
  138. path: "/voyage/portDeclarationDetail",
  139. name: "portDeclarationDetail",
  140. meta: {
  141. title: "申请报港",
  142. code: "DECLAREDETAIL",
  143. },
  144. component: () => import("../views/voyage/portDeclarationDetail.vue"),
  145. },
  146. ],
  147. });
  148. export default router;