routes.ts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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: "travel",
  49. name: "Travel",
  50. meta: {
  51. title: "出差",
  52. },
  53. component: () => import("@/pages/travel/index.vue"),
  54. },
  55. {
  56. path: "attendanceNote",
  57. name: "AttendanceNote",
  58. meta: {
  59. title: "考勤说明条",
  60. },
  61. component: () => import("@/pages/attendanceNote/index.vue"),
  62. },
  63. {
  64. path: "travelCost",
  65. name: "TravelCost",
  66. meta: {
  67. title: "差旅报销",
  68. },
  69. component: () => import("@/pages/travelCost/index.vue"),
  70. },
  71. {
  72. path: "commonCost",
  73. name: "CommonCost",
  74. meta: {
  75. title: "普通报销",
  76. },
  77. component: () => import("@/pages/commonCost/index.vue"),
  78. },
  79. {
  80. path: "recruit",
  81. name: "Recruit",
  82. meta: {
  83. title: "招聘需求",
  84. },
  85. component: () => import("@/pages/recruit/index.vue"),
  86. },
  87. {
  88. path: "interview",
  89. name: "Interview",
  90. meta: {
  91. title: "录用审批",
  92. },
  93. component: () => import("@/pages/interview/index.vue"),
  94. },
  95. {
  96. path: "assetMy",
  97. name: "assetMy",
  98. meta: {
  99. title: "我的资产",
  100. },
  101. component: () => import("@/pages/assetMy/index.vue"),
  102. },
  103. {
  104. path: "staff",
  105. name: "staff",
  106. meta: {
  107. title: "入职申请",
  108. },
  109. component: () => import("@/pages/staff/index.vue"),
  110. },
  111. {
  112. path: "regular",
  113. name: "regular",
  114. meta: {
  115. title: "转正申请",
  116. },
  117. component: () => import("@/pages/regular/index.vue"),
  118. },
  119. {
  120. path: "loan",
  121. name: "loan",
  122. meta: {
  123. title: "借款申请",
  124. },
  125. component: () => import("@/pages/loan/index.vue"),
  126. },
  127. {
  128. path: "usemoney",
  129. name: "usemoney",
  130. meta: {
  131. title: "用款申请",
  132. },
  133. component: () => import("@/pages/usemoney/index.vue"),
  134. },
  135. {
  136. path: "usemoneyAgent",
  137. name: "usemoneyAgent",
  138. meta: {
  139. title: "用款申请(代办)",
  140. },
  141. component: () => import("@/pages/usemoneyAgent/index.vue"),
  142. },
  143. {
  144. path: "transfer",
  145. name: "transfer",
  146. meta: {
  147. title: "调岗申请",
  148. },
  149. component: () => import("@/pages/transfer/index.vue"),
  150. },
  151. {
  152. path: "resign",
  153. name: "resign",
  154. meta: {
  155. title: "离职申请",
  156. },
  157. component: () => import("@/pages/resign/index.vue"),
  158. },
  159. {
  160. path: "daily",
  161. name: "Daily",
  162. meta: {
  163. title: "日志",
  164. },
  165. component: () => import("@/pages/myLogs/Daily/index.vue"),
  166. },
  167. {
  168. path: "weekly",
  169. name: "Weekly",
  170. meta: {
  171. title: "周报",
  172. },
  173. component: () => import("@/pages/myLogs/Weekly/index.vue"),
  174. },
  175. {
  176. path: "logsDetail",
  177. name: "LogsDetail",
  178. meta: {
  179. title: "日志详情",
  180. },
  181. component: () => import("@/pages/myLogs/components/LogDetail.vue"),
  182. },
  183. {
  184. path: "myDailyLogs",
  185. name: "MyDailyLogs",
  186. meta: {
  187. title: "我的日志",
  188. },
  189. component: () => import("@/pages/myLogs/Daily/MyLogs.vue"),
  190. },
  191. {
  192. path: "myWeeklyLogs",
  193. name: "myWeeklyLogs",
  194. meta: {
  195. title: "我的周报",
  196. },
  197. component: () => import("@/pages/myLogs/Weekly/MyLogs.vue"),
  198. },
  199. {
  200. path: "myReceive",
  201. name: "myReceive",
  202. meta: {
  203. title: "我收到的",
  204. },
  205. component: () => import("@/pages/myLogs/Receive/index.vue"),
  206. },
  207. {
  208. path: "project",
  209. name: "project",
  210. meta: {
  211. title: "立项申请",
  212. },
  213. component: () => import("@/pages/project/index.vue"),
  214. },
  215. {
  216. path: "contract",
  217. name: "contract",
  218. meta: {
  219. title: "合同签订",
  220. },
  221. component: () => import("@/pages/contract/index.vue"),
  222. },
  223. {
  224. path: "contract-sub",
  225. name: "contract-sub",
  226. meta: {
  227. title: "分包申请",
  228. },
  229. component: () => import("@/pages/contract-sub/index.vue"),
  230. },
  231. {
  232. path: "subcontract-apply",
  233. name: "subcontract-apply",
  234. meta: {
  235. title: "分包合同签订",
  236. },
  237. component: () => import("@/pages/subcontract-apply/index.vue"),
  238. },
  239. {
  240. path: "contract-out",
  241. name: "contract-out",
  242. meta: {
  243. title: "外包申请",
  244. },
  245. component: () => import("@/pages/contract-out/index.vue"),
  246. },
  247. {
  248. path: "outsourcing-apply",
  249. name: "outsourcing-apply",
  250. meta: {
  251. title: "外包合同签订",
  252. },
  253. component: () => import("@/pages/outsourcing-apply/index.vue"),
  254. },
  255. {
  256. path: "contract-invoice",
  257. name: "contract-invoice",
  258. meta: {
  259. title: "开票申请",
  260. },
  261. component: () => import("@/pages/contract-invoice/index.vue"),
  262. },
  263. {
  264. path: "asset",
  265. name: "asset",
  266. meta: {
  267. title: "固定资产",
  268. },
  269. component: () => import("@/pages/asset/index.vue"),
  270. },
  271. {
  272. path: "assetAgent",
  273. name: "assetAgent",
  274. meta: {
  275. title: "固定资产(代办)",
  276. },
  277. component: () => import("@/pages/assetAgent/index.vue"),
  278. },
  279. {
  280. path: "outsource",
  281. name: "outsource",
  282. meta: {
  283. title: "外购存货",
  284. },
  285. component: () => import("@/pages/outsource/index.vue"),
  286. },
  287. {
  288. path: "projectstatus",
  289. name: "projectstatus",
  290. meta: {
  291. title: "项目验收",
  292. },
  293. component: () => import("@/pages/projectstatus/index.vue"),
  294. },
  295. {
  296. path: "supplier",
  297. name: "supplier",
  298. meta: {
  299. title: "供应商入库",
  300. },
  301. component: () => import("@/pages/supplier/index.vue"),
  302. },
  303. {
  304. path: "officialSealUse",
  305. name: "officialSealUse",
  306. meta: {
  307. title: "盖章申请",
  308. },
  309. component: () => import("@/pages/officialSealUse/index.vue"),
  310. },
  311. {
  312. path: "officialSealOuter",
  313. name: "officialSealOuter",
  314. meta: {
  315. title: "公章外借申请",
  316. },
  317. component: () => import("@/pages/officialSealOuter/index.vue"),
  318. },
  319. ] as RouteRecordRaw[],
  320. },
  321. ] as RouteRecordRaw[];
  322. export default routes;