index.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. import {
  2. createWebHistory,
  3. createWebHashHistory,
  4. createMemoryHistory,
  5. createRouter,
  6. } from "vue-router";
  7. import Login from "../views/index/Login.vue";
  8. import VoyageList from "../views/voyage/voyageList.vue";
  9. const router = createRouter({
  10. history: createWebHashHistory(),
  11. routes: [
  12. {
  13. path: "/login",
  14. name: "login",
  15. meta: {
  16. title: "登录",
  17. },
  18. component: Login,
  19. },
  20. {
  21. path: "/voyage/voyageDetail",
  22. name: "voyageDetail",
  23. meta: {
  24. title: "航次详情",
  25. code: "VOYAGEDETAIL",
  26. },
  27. component: () => import("../views/voyage/voyageDetail.vue"),
  28. },
  29. {
  30. path: "/voyage/voyageList",
  31. name: "voyageList",
  32. meta: {
  33. title: "航次列表",
  34. code: "VOYAGELIST",
  35. },
  36. component: VoyageList,
  37. },
  38. {
  39. path: "/accountManage/subAccountList",
  40. name: "subAccountList",
  41. meta: {
  42. title: "员工列表",
  43. code: "ACCOUNTLIST",
  44. },
  45. component: () => import("../views/accountManage/subAccountList.vue"),
  46. },
  47. {
  48. path: "/agencyManage/agencyCompanyList",
  49. name: "agencyCompanyList",
  50. meta: {
  51. title: "代理公司列表",
  52. code: "PROXYLIST",
  53. },
  54. component: () => import("../views/agencyManage/agencyCompanyList.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: "ADDUPDATEROLE",
  80. },
  81. component: () => import("../views/authManage/addRole.vue"),
  82. },
  83. {
  84. path: "/cargoManage/cargoList",
  85. name: "cargoList",
  86. meta: {
  87. title: "货种列表",
  88. code: "CARGOLIST",
  89. },
  90. component: () => import("../views/cargoManage/cargoList.vue"),
  91. },
  92. {
  93. path: "/accountManage/clientList",
  94. name: "clientList",
  95. meta: {
  96. title: "客户列表",
  97. code: "CLIENTLIST",
  98. },
  99. component: () => import("../views/accountManage/clientList.vue"),
  100. },
  101. {
  102. path: "/shipOwnerManage/shipOwnerList",
  103. name: "shipOwnerList",
  104. meta: {
  105. title: "船东列表",
  106. code: "SHIPOWNERLIST",
  107. },
  108. component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
  109. },
  110. {
  111. path: "/voyage/dailyList",
  112. name: "dailyList",
  113. meta: {
  114. title: "日报列表",
  115. code: "DAYREPORTLIST",
  116. },
  117. component: () => import("../views/voyage/dailyList.vue"),
  118. },
  119. {
  120. path: "/voyage/dailyDetail",
  121. name: "dailyDetail",
  122. meta: {
  123. title: "日报列表",
  124. code: "DAYREPORTDETAIL",
  125. },
  126. component: () => import("../views/voyage/dailyDetail.vue"),
  127. },
  128. {
  129. path: "/voyage/billList",
  130. name: "billList",
  131. meta: {
  132. title: "单据列表",
  133. code: "BILLLIST",
  134. },
  135. component: () => import("../views/voyage/billList.vue"),
  136. },
  137. {
  138. path: "/voyage/billDetail",
  139. name: "billDetail",
  140. meta: {
  141. title: "单据列表",
  142. code: "BILLDETAIL",
  143. },
  144. component: () => import("../views/voyage/billDetail.vue"),
  145. },
  146. {
  147. path: "/voyage/portDeclarationList",
  148. name: "portDeclarationList",
  149. meta: {
  150. title: "报岗",
  151. code: "DECLARELIST",
  152. },
  153. component: () => import("../views/voyage/portDeclarationList.vue"),
  154. },
  155. {
  156. path: "/voyage/portDeclarationDetail",
  157. name: "portDeclarationDetail",
  158. meta: {
  159. title: "申请报港",
  160. code: "DECLAREDETAIL",
  161. },
  162. component: () => import("../views/voyage/portDeclarationDetail.vue"),
  163. },
  164. ],
  165. });
  166. export const asyncRouterList = [
  167. {
  168. path: "/accountManage/subAccountList",
  169. name: "subAccountList",
  170. meta: {
  171. title: "员工列表",
  172. code: "ACCOUNTLIST",
  173. },
  174. component: () => import("../views/accountManage/subAccountList.vue"),
  175. },
  176. {
  177. path: "/agencyManage/agencyCompanyList",
  178. name: "agencyCompanyList",
  179. meta: {
  180. title: "代理公司列表",
  181. code: "PROXYLIST",
  182. },
  183. component: () => import("../views/agencyManage/agencyCompanyList.vue"),
  184. },
  185. {
  186. path: "/authManage/roleList",
  187. name: "roleList",
  188. meta: {
  189. title: "职位列表",
  190. code: "ROLELIST",
  191. },
  192. component: () => import("../views/authManage/roleList.vue"),
  193. },
  194. {
  195. path: "/authManage/addRole",
  196. name: "addRole",
  197. meta: {
  198. title: "新增职位",
  199. code: "ADDUPDATEROLE",
  200. },
  201. component: () => import("../views/authManage/addRole.vue"),
  202. },
  203. {
  204. path: "/shipOwnerManage/shipOwnerList",
  205. name: "shipOwnerList",
  206. meta: {
  207. title: "船东列表",
  208. code: "SHIPOWNERLIST",
  209. },
  210. component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
  211. },
  212. {
  213. path: "/cargoManage/cargoList",
  214. name: "cargoList",
  215. meta: {
  216. title: "货种列表",
  217. code: "CARGOLIST",
  218. },
  219. component: () => import("../views/cargoManage/cargoList.vue"),
  220. },
  221. ];
  222. export default router;