routes.ts 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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: "/nonCoalMine",
  82. name: "NonCoalMine",
  83. component: () => import("@/views/disasterRiskMonitor/nonCoalMine.vue"),
  84. meta: {
  85. title: "非煤矿山应急专题",
  86. noCache: true
  87. }
  88. },
  89. {
  90. path: "/cityEmergencyEvent",
  91. name: "CityEmergencyEvent",
  92. component: () => import("@/views/disasterRiskMonitor/cityEmergencyEvent.vue"),
  93. meta: {
  94. title: "城市应急事件专题",
  95. noCache: true
  96. }
  97. },
  98. {
  99. path: "/forestFirePrevention",
  100. name: "ForestFirePrevention",
  101. component: () => import("@/views/disasterRiskMonitor/forestFirePrevention.vue"),
  102. meta: {
  103. title: "森林防火应急专题",
  104. noCache: true
  105. }
  106. },
  107. {
  108. path: "/windAndFloodPrevention",
  109. name: "WindAndFloodPrevention",
  110. component: () => import("@/views/disasterRiskMonitor/windAndFloodPrevention.vue"),
  111. meta: {
  112. title: "防风防汛应急专题"
  113. }
  114. },
  115. {
  116. path: "/geologicalDisaster",
  117. name: "GeologicalDisaster",
  118. component: () => import("@/views/disasterRiskMonitor/geologicalDisaster.vue"),
  119. meta: {
  120. title: "地质灾害应急专题"
  121. }
  122. },
  123. {
  124. path: "/infoReception",
  125. name: "InfoReception",
  126. component: Layout,
  127. children: [
  128. {
  129. path: "infoDetails",
  130. name: "InfoDetails",
  131. component: () => import("@/views/InformationReception/infoDetails.vue"),
  132. meta: {
  133. title: "智慧应急消息通知详情",
  134. noCache: true
  135. }
  136. }
  137. ]
  138. },
  139. {
  140. path: "/onlineRollCall",
  141. name: "OnlineRollCall",
  142. component: () => import("@/views/onlineRollCall/index.vue"),
  143. meta: {
  144. title: "在线点名",
  145. noCache: true
  146. }
  147. },
  148. {
  149. path: "/districtCountyRollCall",
  150. name: "DistrictCountyRollCall",
  151. component: () =>
  152. import("@/views/onlineRollCall/districtCountyRollCall.vue"),
  153. meta: {
  154. title: "分区县点名",
  155. noCache: true
  156. }
  157. },
  158. {
  159. path: "/spotCheckUnits",
  160. name: "SpotCheckUnits",
  161. component: () => import("@/views/onlineRollCall/spotCheckUnits.vue"),
  162. meta: {
  163. title: "选择抽查单位",
  164. noCache: true
  165. }
  166. },
  167. {
  168. path: "/rollCallRecord",
  169. name: "RollCallRecord",
  170. component: () => import("@/views/onlineRollCall/rollCallRecord.vue"),
  171. meta: {
  172. title: "在线点名记录",
  173. noCache: true
  174. }
  175. },
  176. {
  177. path: "/event/index",
  178. name: "EventList",
  179. component: () => import("@/views/event/index.vue"),
  180. meta: {
  181. title: "事件列表"
  182. }
  183. },
  184. {
  185. path: "/event/detail",
  186. name: "EventDetail",
  187. component: () => import("@/views/event/detail.vue"),
  188. meta: {
  189. title: "事件详情页",
  190. noCache: true
  191. }
  192. },
  193. {
  194. path: "/signPage",
  195. name: "signPage",
  196. component: () => import("@/views/signPage/index.vue"),
  197. meta: {
  198. title: "签到签退"
  199. }
  200. },
  201. {
  202. path: "/signOK",
  203. name: "signOK",
  204. component: () => import("@/views/signPage/signok.vue"),
  205. meta: {
  206. title: "签到签退成功"
  207. }
  208. },
  209. {
  210. path: "/InformationReception",
  211. name: "InformationReception",
  212. component: () => import("@/views/InformationReception/index.vue"),
  213. meta: {
  214. title: "信息发布"
  215. }
  216. },
  217. {
  218. path: "/patorlTaskResultAdd",
  219. name: "patorlTaskResultAdd",
  220. component: () => import("@/views/worker/inspectionWork/patorlTaskResultAdd.vue"),
  221. meta: {
  222. title: "巡查上报"
  223. }
  224. }
  225. ,
  226. {
  227. path: "/patorlTaskResultList",
  228. name: "patorlTaskResultList",
  229. component: () => import("@/views/worker/inspectionWork/patorlTaskResultList.vue"),
  230. meta: {
  231. title: "巡查结果"
  232. }
  233. }
  234. ];
  235. // 领导端动态菜单
  236. export const leaderRoute: Array<RouteRecordRaw> = [
  237. {
  238. path: "/leader",
  239. name: "Leader",
  240. component: Layout,
  241. children: [
  242. {
  243. path: "index",
  244. name: "LeaderIndex",
  245. component: () => import("@/views/leader/index.vue"),
  246. meta: {
  247. title: "首页",
  248. noCache: true
  249. }
  250. },
  251. {
  252. path: "mobile_control",
  253. name: "MobileControl",
  254. component: () => import("@/views/mobileControl/index.vue"),
  255. meta: {
  256. title: "移动指挥(平时态)",
  257. noCache: true
  258. }
  259. },
  260. {
  261. path: "rollCallDetails",
  262. name: "RollCallDetails",
  263. component: () => import("@/views/onlineRollCall/rollCallDetails.vue"),
  264. meta: {
  265. title: "选择抽查单位",
  266. noCache: true
  267. }
  268. },
  269. {
  270. path: "rollCallRecord2",
  271. name: "rollCallRecord2",
  272. component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
  273. meta: {
  274. title: "点名记录",
  275. noCache: true
  276. }
  277. },
  278. {
  279. path: "address_book",
  280. name: "AddressBook",
  281. component: () => import("@/views/addressBook/index.vue"),
  282. meta: {
  283. title: "通讯录",
  284. noCache: true
  285. }
  286. },
  287. {
  288. path: "my",
  289. name: "My",
  290. component: () => import("@/views/about/index.vue"),
  291. meta: {
  292. title: "我",
  293. noCache: true
  294. }
  295. }
  296. ]
  297. }
  298. ];
  299. export const workerRoute = [
  300. {
  301. path: "/worker",
  302. name: 'Worker',
  303. component: Layout,
  304. redirect: 'Index',
  305. children: [
  306. {
  307. path: "index",
  308. name: "WorkerIndex",
  309. component: () => import("@/views/worker/index.vue"),
  310. meta: {
  311. title: "首页",
  312. noCache: true
  313. }
  314. },
  315. {
  316. path: "mobile_control",
  317. name: "MobileControl",
  318. component: () => import("@/views/mobileControl/index.vue"),
  319. meta: {
  320. title: "移动指挥(平时态)",
  321. noCache: true
  322. }
  323. },
  324. {
  325. path: "event",
  326. name: "workerEvent",
  327. component: () => import("@/views/worker/eventManagement/index.vue"),
  328. meta: {
  329. title: "事件管理",
  330. noCache: true
  331. }
  332. },
  333. {
  334. path: "inspectionWork",
  335. name: "inspectionWork",
  336. component: () => import("@/views/worker/inspectionWork/index.vue"),
  337. meta: {
  338. title: "巡查工作",
  339. noCache: true
  340. }
  341. },
  342. {
  343. path: "riskManagement",
  344. name: "riskManagement",
  345. component: () => import("@/views/worker/riskManagement/index.vue"),
  346. meta: {
  347. title: "风险防控"
  348. }
  349. },
  350. {
  351. path: "duty",
  352. name: "Duty",
  353. component: () => import("@/views/duty/index.vue"),
  354. meta: {
  355. title: "值班管理",
  356. noCache: true
  357. }
  358. },
  359. {
  360. path: "rollCallRecord2",
  361. name: "rollCallRecord2",
  362. component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
  363. meta: {
  364. title: "点名记录",
  365. noCache: true
  366. }
  367. },
  368. {
  369. path: "my",
  370. name: "My",
  371. component: () => import("@/views/about/index.vue"),
  372. meta: {
  373. title: "我",
  374. noCache: true
  375. }
  376. }
  377. ]
  378. }
  379. ];