routes.ts 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. import Layout from "@/layout/index.vue";
  2. import type { RouteRecordRaw } from "vue-router";
  3. export const constantRoutes: Array<RouteRecordRaw> = [
  4. {
  5. path: "/",
  6. name: "RoleSelect",
  7. component: () => import("@/views/index.vue"),
  8. meta: {
  9. title: '角色选择'
  10. }
  11. },
  12. {
  13. path: "/yzy/callback",
  14. name: "YzyCallback",
  15. component: () => import("@/components/YzyCallback/index.vue")
  16. },
  17. {
  18. path: "/warningSituation",
  19. name: "WarningSituation",
  20. component: () => import("@/views/disasterRiskMonitor/warningSituation.vue"),
  21. meta: {
  22. title: "预警态势",
  23. noCache: true
  24. }
  25. },
  26. {
  27. path: "/galeDisaster",
  28. name: "GaleDisaster",
  29. component: () => import("@/views/disasterRiskMonitor/galeDisaster.vue"),
  30. meta: {
  31. title: "大风灾害形势感知",
  32. noCache: true
  33. }
  34. },
  35. {
  36. path: "/forestFireWarn",
  37. name: "ForestFireWarn",
  38. component: () => import("@/views/disasterRiskMonitor/forestFireWarn.vue"),
  39. meta: {
  40. title: "森林火灾监测预警",
  41. noCache: true
  42. }
  43. },
  44. {
  45. path: "/typhoonPath",
  46. name: "TyphoonPath",
  47. component: () => import("@/views/disasterRiskMonitor/typhoonPath.vue"),
  48. meta: {
  49. title: "台风实况与预报",
  50. noCache: true
  51. }
  52. },
  53. {
  54. path: "/hydrologicalMonitor",
  55. name: "HydrologicalMonitor",
  56. component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/index.vue"),
  57. meta: {
  58. title: "水文监测",
  59. noCache: true
  60. }
  61. },
  62. {
  63. path: "/reservoirMonitor",
  64. name: "ReservoirMonitor",
  65. component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/reservoirMonitor.vue"),
  66. meta: {
  67. title: "水库监测",
  68. noCache: true
  69. }
  70. },
  71. {
  72. path: "/riverMonitor",
  73. name: "RiverMonitor",
  74. component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/riverMonitor.vue"),
  75. meta: {
  76. title: "河道监测",
  77. noCache: true
  78. }
  79. },
  80. {
  81. path: "/cityEmergencyEvent",
  82. name: "CityEmergencyEvent",
  83. component: () => import("@/views/disasterRiskMonitor/cityEmergencyEvent.vue"),
  84. meta: {
  85. title: "城市应急事件专题",
  86. noCache: true
  87. }
  88. },
  89. {
  90. path: "/infoReception",
  91. name: "InfoReception",
  92. component: Layout,
  93. children: [
  94. {
  95. path: "infoDetails",
  96. name: "InfoDetails",
  97. component: () => import("@/views/InformationReception/infoDetails.vue"),
  98. meta: {
  99. title: "智慧应急消息通知详情",
  100. noCache: true
  101. }
  102. }
  103. ]
  104. },
  105. {
  106. path: "/onlineRollCall",
  107. name: "OnlineRollCall",
  108. component: () => import("@/views/onlineRollCall/index.vue"),
  109. meta: {
  110. title: "在线点名",
  111. noCache: true
  112. }
  113. },
  114. {
  115. path: "/districtCountyRollCall",
  116. name: "DistrictCountyRollCall",
  117. component: () =>
  118. import("@/views/onlineRollCall/districtCountyRollCall.vue"),
  119. meta: {
  120. title: "分区县点名",
  121. noCache: true
  122. }
  123. },
  124. {
  125. path: "/spotCheckUnits",
  126. name: "SpotCheckUnits",
  127. component: () => import("@/views/onlineRollCall/spotCheckUnits.vue"),
  128. meta: {
  129. title: "选择抽查单位",
  130. noCache: true
  131. }
  132. },
  133. {
  134. path: "/rollCallRecord",
  135. name: "RollCallRecord",
  136. component: () => import("@/views/onlineRollCall/rollCallRecord.vue"),
  137. meta: {
  138. title: "在线点名记录",
  139. noCache: true
  140. }
  141. },
  142. {
  143. path: "/event/index",
  144. name: "EventList",
  145. component: () => import("@/views/event/index.vue"),
  146. meta: {
  147. title: "事件列表"
  148. }
  149. },
  150. {
  151. path: "/event/detail",
  152. name: "EventDetail",
  153. component: () => import("@/views/event/detail.vue"),
  154. meta: {
  155. title: "事件详情页",
  156. noCache: true
  157. }
  158. },
  159. {
  160. path: "/signPage",
  161. name: "signPage",
  162. component: () => import("@/views/signPage/index.vue"),
  163. meta: {
  164. title: "签到签退"
  165. }
  166. },
  167. {
  168. path: "/signOK",
  169. name: "signOK",
  170. component: () => import("@/views/signPage/signok.vue"),
  171. meta: {
  172. title: "签到签退成功"
  173. }
  174. },
  175. {
  176. path: "/InformationReception",
  177. name: "InformationReception",
  178. component: () => import("@/views/InformationReception/index.vue"),
  179. meta: {
  180. title: "信息发布"
  181. }
  182. },
  183. {
  184. path: "/riskManagement",
  185. name: "riskManagement",
  186. component: () => import("@/views/worker/riskManagement/index.vue"),
  187. meta: {
  188. title: "风险防控"
  189. }
  190. }
  191. ];
  192. // 领导端动态菜单
  193. export const leaderRoute: Array<RouteRecordRaw> = [
  194. {
  195. path: "/leader",
  196. name: "Leader",
  197. component: Layout,
  198. children: [
  199. {
  200. path: "index",
  201. name: "LeaderIndex",
  202. component: () => import("@/views/leader/index.vue"),
  203. meta: {
  204. title: "首页",
  205. noCache: true
  206. }
  207. },
  208. {
  209. path: "mobile_control",
  210. name: "MobileControl",
  211. component: () => import("@/views/mobileControl/index.vue"),
  212. meta: {
  213. title: "移动指挥(平时态)",
  214. noCache: true
  215. }
  216. },
  217. {
  218. path: "rollCallDetails",
  219. name: "RollCallDetails",
  220. component: () => import("@/views/onlineRollCall/rollCallDetails.vue"),
  221. meta: {
  222. title: "选择抽查单位",
  223. noCache: true
  224. }
  225. },
  226. {
  227. path: "rollCallRecord2",
  228. name: "rollCallRecord2",
  229. component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
  230. meta: {
  231. title: "点名记录",
  232. noCache: true
  233. }
  234. },
  235. {
  236. path: "address_book",
  237. name: "AddressBook",
  238. component: () => import("@/views/addressBook/index.vue"),
  239. meta: {
  240. title: "通讯录",
  241. noCache: true
  242. }
  243. },
  244. {
  245. path: "my",
  246. name: "My",
  247. component: () => import("@/views/about/index.vue"),
  248. meta: {
  249. title: "我",
  250. noCache: true
  251. }
  252. }
  253. ]
  254. }
  255. ];
  256. export const workerRoute = [
  257. {
  258. path: "/worker",
  259. name: 'Worker',
  260. component: Layout,
  261. redirect: 'Index',
  262. children: [
  263. {
  264. path: "index",
  265. name: "WorkerIndex",
  266. component: () => import("@/views/worker/index.vue"),
  267. meta: {
  268. title: "首页",
  269. noCache: true
  270. }
  271. },
  272. {
  273. path: "event",
  274. name: "Event2",
  275. component: () => import("@/views/event/detail.vue"),
  276. meta: {
  277. title: "事件管理",
  278. noCache: true
  279. }
  280. },
  281. {
  282. path: "inspectionWork",
  283. name: "inspectionWork",
  284. component: () => import("@/views/worker/inspectionWork/index.vue"),
  285. meta: {
  286. title: "巡查工作",
  287. noCache: true
  288. }
  289. },
  290. {
  291. path: "duty",
  292. name: "Duty",
  293. component: () => import("@/views/duty/index.vue"),
  294. meta: {
  295. title: "值班管理",
  296. noCache: true
  297. }
  298. }
  299. ]
  300. }
  301. ];