routes.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. import type { RouteRecordRaw } from "vue-router";
  2. const routes: RouteRecordRaw[] = [
  3. {
  4. path: "/",
  5. redirect: "home",
  6. children: [
  7. {
  8. path: "home",
  9. name: "Homoe",
  10. meta: {
  11. title: "首页",
  12. },
  13. component: () => import("@/pages/home/index.vue"),
  14. },
  15. {
  16. path: "handleCenter",
  17. name: "HandleCenter",
  18. meta: {
  19. title: "办件中心",
  20. },
  21. component: () => import("@/pages/handleCenter/index.vue"),
  22. },
  23. {
  24. path: "notice",
  25. name: "Notice",
  26. meta: {
  27. title: "通知公告",
  28. },
  29. component: () => import("@/pages/notice/index.vue"),
  30. },
  31. {
  32. path: "notice/detail",
  33. name: "NoticeDetail",
  34. meta: {
  35. title: "通知公告详情",
  36. },
  37. component: () => import("@/pages/notice/details/index.vue"),
  38. },
  39. {
  40. path: "leave",
  41. name: "Leave",
  42. meta: {
  43. title: "请假",
  44. },
  45. component: () => import("@/pages/leave/index.vue"),
  46. },
  47. {
  48. path: "recruit",
  49. name: "Recruit",
  50. meta: {
  51. title: "招聘需求",
  52. },
  53. component: () => import("@/pages/recruit/index.vue"),
  54. },
  55. {
  56. path: "interview",
  57. name: "Interview",
  58. meta: {
  59. title: "录用审批",
  60. },
  61. component: () => import("@/pages/interview/index.vue"),
  62. },
  63. {
  64. path: "asset",
  65. name: "asset",
  66. meta: {
  67. title: "我的资产",
  68. },
  69. component: () => import("@/pages/asset/index.vue"),
  70. },
  71. {
  72. path: "staff",
  73. name: "staff",
  74. meta: {
  75. title: "入职申请",
  76. },
  77. component: () => import("@/pages/staff/index.vue"),
  78. },
  79. {
  80. path: "regular",
  81. name: "regular",
  82. meta: {
  83. title: "转正申请",
  84. },
  85. component: () => import("@/pages/regular/index.vue"),
  86. },
  87. {
  88. path: "loan",
  89. name: "loan",
  90. meta: {
  91. title: "借款申请",
  92. },
  93. component: () => import("@/pages/loan/index.vue"),
  94. },
  95. {
  96. path: "usemoney",
  97. name: "usemoney",
  98. meta: {
  99. title: "用款申请",
  100. },
  101. component: () => import("@/pages/usemoney/index.vue"),
  102. },
  103. {
  104. path: "usemoney/indexAgent",
  105. name: "usemoneyAgent",
  106. meta: {
  107. title: "用款申请(代办)",
  108. },
  109. component: () => import("@/pages/usemoney/indexAgent.vue"),
  110. },
  111. {
  112. path: "transfer",
  113. name: "transfer",
  114. meta: {
  115. title: "调岗申请",
  116. },
  117. component: () => import("@/pages/transfer/index.vue"),
  118. },
  119. {
  120. path: "resign",
  121. name: "resign",
  122. meta: {
  123. title: "离职申请",
  124. },
  125. component: () => import("@/pages/resign/index.vue"),
  126. },
  127. {
  128. path: "daily",
  129. name: "Daily",
  130. meta: {
  131. title: "日志",
  132. },
  133. component: () => import("@/pages/myLogs/Daily/index.vue"),
  134. },
  135. {
  136. path: "weekly",
  137. name: "Weekly",
  138. meta: {
  139. title: "周报",
  140. },
  141. component: () => import("@/pages/myLogs/Weekly/index.vue"),
  142. },
  143. ] as RouteRecordRaw[],
  144. },
  145. ] as RouteRecordRaw[];
  146. export default routes;