routes.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  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: "/login",
  14. name: "Login",
  15. component: () => import("@/views/login.vue"),
  16. meta: {
  17. title: "登录",
  18. noCache: true
  19. }
  20. },
  21. {
  22. path: "/yzy/callback",
  23. name: "YzyCallback",
  24. component: () => import("@/components/YzyCallback/index.vue")
  25. },
  26. {
  27. path: "/warningSituation",
  28. name: "WarningSituation",
  29. component: () => import("@/views/disasterRiskMonitor/warningSituation.vue"),
  30. meta: {
  31. title: "预警态势",
  32. noCache: true
  33. }
  34. },
  35. {
  36. path: "/galeDisaster",
  37. name: "GaleDisaster",
  38. component: () => import("@/views/disasterRiskMonitor/galeDisaster.vue"),
  39. meta: {
  40. title: "大风灾害形势感知",
  41. noCache: true
  42. }
  43. },
  44. {
  45. path: "/forestFireWarn",
  46. name: "ForestFireWarn",
  47. component: () => import("@/views/disasterRiskMonitor/forestFireWarn.vue"),
  48. meta: {
  49. title: "森林火灾监测预警",
  50. noCache: true
  51. }
  52. },
  53. {
  54. path: "/typhoonPath",
  55. name: "TyphoonPath",
  56. component: () => import("@/views/disasterRiskMonitor/typhoonPath.vue"),
  57. meta: {
  58. title: "台风实况与预报",
  59. noCache: true
  60. }
  61. },
  62. {
  63. path: "/reservoirMonitor",
  64. name: "ReservoirMonitor",
  65. component: () => import("@/views/disasterRiskMonitor/reservoirMonitor.vue"),
  66. meta: {
  67. title: "水库监测",
  68. noCache: true
  69. }
  70. },
  71. {
  72. path: "/riverMonitor",
  73. name: "RiverMonitor",
  74. component: () => import("@/views/disasterRiskMonitor/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: () =>
  93. import("@/views/disasterRiskMonitor/cityEmergencyEvent.vue"),
  94. meta: {
  95. title: "城市应急事件专题",
  96. noCache: true
  97. }
  98. },
  99. {
  100. path: "/forestFirePrevention",
  101. name: "ForestFirePrevention",
  102. component: () =>
  103. import("@/views/disasterRiskMonitor/forestFirePrevention.vue"),
  104. meta: {
  105. title: "森林防火应急专题",
  106. noCache: true
  107. }
  108. },
  109. {
  110. path: "/windAndFloodPrevention",
  111. name: "WindAndFloodPrevention",
  112. component: () =>
  113. import("@/views/disasterRiskMonitor/windAndFloodPrevention.vue"),
  114. meta: {
  115. title: "防风防汛应急专题"
  116. }
  117. },
  118. {
  119. path: "/geologicalDisaster",
  120. name: "GeologicalDisaster",
  121. component: () =>
  122. import("@/views/disasterRiskMonitor/geologicalDisaster.vue"),
  123. meta: {
  124. title: "地质灾害应急专题"
  125. }
  126. },
  127. {
  128. path: "/hazardousChemicals",
  129. name: "HazardousChemicals",
  130. component: () =>
  131. import("@/views/disasterRiskMonitor/hazardousChemicals.vue"),
  132. meta: {
  133. title: "危化品事故专题"
  134. }
  135. },
  136. {
  137. path: "/infoDetails",
  138. name: "InfoDetails",
  139. component: () => import("@/views/InformationReception/infoDetails.vue"),
  140. meta: {
  141. title: "智慧应急消息通知详情",
  142. noCache: true
  143. }
  144. },
  145. {
  146. path: "/onlineRollCall",
  147. name: "OnlineRollCall",
  148. component: () => import("@/views/onlineRollCall/index.vue"),
  149. meta: {
  150. title: "在线点名",
  151. noCache: true
  152. }
  153. },
  154. {
  155. path: "/districtCountyRollCall",
  156. name: "DistrictCountyRollCall",
  157. component: () =>
  158. import("@/views/onlineRollCall/districtCountyRollCall.vue"),
  159. meta: {
  160. title: "分区县点名",
  161. noCache: true
  162. }
  163. },
  164. {
  165. path: "/spotCheckUnits",
  166. name: "SpotCheckUnits",
  167. component: () => import("@/views/onlineRollCall/spotCheckUnits.vue"),
  168. meta: {
  169. title: "选择抽查单位",
  170. noCache: true
  171. }
  172. },
  173. {
  174. path: "/rollCallRecord",
  175. name: "RollCallRecord",
  176. component: () => import("@/views/onlineRollCall/rollCallRecord.vue"),
  177. meta: {
  178. title: "在线点名记录",
  179. noCache: true
  180. }
  181. },
  182. {
  183. path: "/event/index",
  184. name: "EventList",
  185. component: () => import("@/views/event/index.vue"),
  186. meta: {
  187. title: "事件列表"
  188. }
  189. },
  190. {
  191. path: "/event/detail",
  192. name: "EventDetail",
  193. component: () => import("@/views/event/detail.vue"),
  194. meta: {
  195. title: "事件详情页",
  196. noCache: true
  197. }
  198. },
  199. {
  200. path: "/event/add",
  201. name: "EventAdd",
  202. component: () => import("@/views/event/add.vue"),
  203. meta: {
  204. title: "事件报送",
  205. noCache: true
  206. }
  207. },
  208. {
  209. path: "/event/emergencyNotify",
  210. name: "EventAdd",
  211. component: () => import("@/views/event/EmergencyNotify.vue"),
  212. meta: {
  213. title: "预案响应通知",
  214. noCache: true
  215. }
  216. },
  217. {
  218. path: "/event/emergencyNotify",
  219. name: "EventAdd",
  220. component: () => import("@/views/event/EmergencyNotify.vue"),
  221. meta: {
  222. title: "预案响应通知",
  223. noCache: true
  224. }
  225. },
  226. {
  227. path: "/signPage",
  228. name: "signPage",
  229. component: () => import("@/views/signPage/index.vue"),
  230. meta: {
  231. title: "签到签退"
  232. }
  233. },
  234. {
  235. path: "/signOK",
  236. name: "signOK",
  237. component: () => import("@/views/signPage/signok.vue"),
  238. meta: {
  239. title: "签到签退成功"
  240. }
  241. },
  242. {
  243. path: "/InformationReception",
  244. name: "InformationReception",
  245. component: () => import("@/views/InformationReception/index.vue"),
  246. meta: {
  247. title: "消息中心"
  248. }
  249. },
  250. {
  251. path: "/patorlTaskResultAdd",
  252. name: "patorlTaskResultAdd",
  253. component: () =>
  254. import("@/views/worker/inspectionWork/patorlTaskResultAdd.vue"),
  255. meta: {
  256. title: "巡查上报"
  257. }
  258. },
  259. {
  260. path: "/patorlTaskResultList",
  261. name: "patorlTaskResultList",
  262. component: () =>
  263. import("@/views/worker/inspectionWork/patorlTaskResultList.vue"),
  264. meta: {
  265. title: "巡查结果"
  266. }
  267. },
  268. {
  269. path: "/InvestigationResultAdd",
  270. name: "InvestigationResultAdd",
  271. component: () =>
  272. import("@/views/worker/riskManagement/InvestigationResultAdd.vue"),
  273. meta: {
  274. title: "上报"
  275. }
  276. },
  277. {
  278. path: "/InvestigationResultList",
  279. name: "InvestigationResultList",
  280. component: () =>
  281. import("@/views/worker/riskManagement/InvestigationResultList.vue"),
  282. meta: {
  283. title: "排查结果"
  284. }
  285. },
  286. {
  287. path: "/rescueGatherResultAdd",
  288. name: "rescueGatherResultAdd",
  289. component: () =>
  290. import("@/views/worker/rescueManagement/rescueGatherResultAdd.vue"),
  291. meta: {
  292. title: "上报"
  293. }
  294. },
  295. {
  296. path: "/rescueGatherResultList",
  297. name: "rescueGatherResultList",
  298. component: () =>
  299. import("@/views/worker/rescueManagement/rescueGatherResultList.vue"),
  300. meta: {
  301. title: "采集结果"
  302. }
  303. },
  304. {
  305. path: "/taskFeebackDetail",
  306. name: "taskFeebackDetail",
  307. component: () =>
  308. import("@/views/worker/eventManagement/taskFeebackDetail.vue"),
  309. meta: {
  310. title: "任务详情"
  311. }
  312. },
  313. {
  314. path: "/workApproval/index",
  315. name: "workApprovalIndex",
  316. component: () => import("@/views/workApproval/index.vue"),
  317. meta: {
  318. title: "工作审批"
  319. }
  320. },
  321. {
  322. path: "/workApproval/detail",
  323. name: "workApprovalDetail",
  324. component: () => import("@/views/workApproval/detail.vue"),
  325. meta: {
  326. title: "审批详情"
  327. }
  328. },
  329. {
  330. path: "/workApproval/redirect",
  331. name: "workApprovalRedirect",
  332. component: () => import("@/views/workApproval/approvalRedirect.vue"),
  333. meta: {
  334. title: "转交"
  335. }
  336. },
  337. {
  338. path: "/rollCallDetails",
  339. name: "RollCallDetails",
  340. component: () => import("@/views/onlineRollCall/rollCallDetails.vue"),
  341. meta: {
  342. title: "选择抽查单位",
  343. noCache: true
  344. }
  345. },
  346. {
  347. path: "/rollCallRecord2",
  348. name: "rollCallRecord2",
  349. component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
  350. meta: {
  351. title: "点名记录",
  352. noCache: true
  353. }
  354. },
  355. {
  356. path: "/event/EmergencyPersonSubmitted",
  357. name: "EmergencyPersonSubmitted",
  358. component: () => import("@/views/event/EmergencyPersonSubmitted.vue"),
  359. meta: {
  360. title: "响应人员报送",
  361. noCache: true
  362. }
  363. },
  364. {
  365. path: "/taskProgressUpdate",
  366. name: "TaskProgressUpdate",
  367. component: () => import("@/views/mobileControl/TaskProgressUpdate.vue"),
  368. meta: {
  369. title: "任务进度更新",
  370. noCache: true
  371. }
  372. },
  373. {
  374. path: "/workRequest",
  375. name: "WorkRequest",
  376. component: () => import("@/views/mobileControl/WorkRequest.vue"),
  377. meta: {
  378. title: "工作请示",
  379. noCache: true
  380. }
  381. },
  382. {
  383. path: "/taskRegistration",
  384. name: "TaskRegistration",
  385. component: () => import("@/views/mobileControl/TaskRegistration.vue"),
  386. meta: {
  387. title: "任务消息详情",
  388. noCache: true
  389. }
  390. }
  391. ];
  392. // 领导端动态菜单
  393. export const leaderRoute: Array<RouteRecordRaw> = [
  394. {
  395. path: "/leader",
  396. name: "Leader",
  397. component: Layout,
  398. children: [
  399. {
  400. path: "index",
  401. name: "LeaderIndex",
  402. component: () => import("@/views/leader/index.vue"),
  403. meta: {
  404. title: "首页",
  405. noCache: true
  406. }
  407. },
  408. {
  409. path: "mobile_control",
  410. name: "MobileControl",
  411. component: () => import("@/views/mobileControl/index.vue"),
  412. meta: {
  413. title: "移动指挥",
  414. noCache: true
  415. }
  416. },
  417. {
  418. path: "three_prevention_responsible_person",
  419. name: "ThreePreventionResponsiblePerson",
  420. component: () =>
  421. import("@/views/threePreventionResponsiblePerson/index.vue"),
  422. meta: {
  423. title: "三防责任人",
  424. noCache: true
  425. }
  426. },
  427. {
  428. path: "address_book",
  429. name: "AddressBook",
  430. component: () => import("@/views/addressBook/index.vue"),
  431. meta: {
  432. title: "通讯录",
  433. noCache: true
  434. }
  435. },
  436. {
  437. path: "emergency_response",
  438. name: "EmergencyResponse",
  439. component: () =>
  440. import("@/views/disasterRiskMonitor/emergencyResponse/index.vue"),
  441. meta: {
  442. title: "应急响应",
  443. noCache: true
  444. }
  445. },
  446. {
  447. path: "satellite_cloud_chart",
  448. name: "SatelliteCloudchart",
  449. component: () =>
  450. import("@/views/disasterRiskMonitor/satelliteCloudChart.vue"),
  451. meta: {
  452. title: "卫星云图",
  453. noCache: true
  454. }
  455. },
  456. {
  457. path: "rainfall",
  458. name: "Rainfall",
  459. component: () => import("@/views/disasterRiskMonitor/rainfall.vue"),
  460. meta: {
  461. title: "强降水",
  462. noCache: true
  463. }
  464. },
  465. {
  466. path: "radar_echo_map",
  467. name: "RadarEchoMap",
  468. component: () => import("@/views/disasterRiskMonitor/radarEchoMap.vue"),
  469. meta: {
  470. title: "雷达回波图",
  471. noCache: true
  472. }
  473. },
  474. {
  475. path: "temperatur_and_precipitation",
  476. name: "TemperatureAndPrecipitation",
  477. component: () =>
  478. import("@/views/disasterRiskMonitor/temperatureAndPrecipitation.vue"),
  479. meta: {
  480. title: "气温降水实况",
  481. noCache: true
  482. }
  483. },
  484. {
  485. path: "weather_forecast",
  486. name: "WeatherForecast",
  487. component: () =>
  488. import("@/views/disasterRiskMonitor/weatherForecast.vue"),
  489. meta: {
  490. title: "天气预报",
  491. noCache: true
  492. }
  493. },
  494. {
  495. path: "easy_to_flood_point",
  496. name: "EasyToFloodPoint",
  497. component: () =>
  498. import("@/views/disasterRiskMonitor/easyToFloodPoint.vue"),
  499. meta: {
  500. title: "易涝点视频",
  501. noCache: true
  502. }
  503. },
  504. {
  505. path: "person_information",
  506. name: "PersonInformation",
  507. component: () =>
  508. import(
  509. "@/views/threePreventionResponsiblePerson/personInformation.vue"
  510. ),
  511. meta: {
  512. title: "个人信息",
  513. noCache: true
  514. }
  515. },
  516. {
  517. path: "editPersonInformation",
  518. name: "EditPersonInformation",
  519. component: () =>
  520. import(
  521. "@/views/threePreventionResponsiblePerson/editPersonInformation.vue"
  522. ),
  523. meta: {
  524. title: "责任信息",
  525. noCache: true
  526. }
  527. },
  528. {
  529. path: "earthquakeRapidReport",
  530. name: "EarthquakeRapidReport",
  531. component: () => import("@/views/disasterRiskMonitor/earthquakeRapidReport/index.vue"),
  532. meta: {
  533. title: "地震速报",
  534. noCache: true
  535. }
  536. },
  537. {
  538. path: "EarthquakeRapidReportDetails",
  539. name: "EarthquakeRapidReportDetails",
  540. component: () => import("@/views/disasterRiskMonitor/earthquakeRapidReport/earthquakeRapidReportDetail.vue"),
  541. meta: {
  542. title: "地震速报",
  543. noCache: true
  544. }
  545. },
  546. {
  547. path: "expertdatabase",
  548. name: "ExpertDatabase",
  549. component: () =>
  550. import("@/views/disasterRiskMonitor/expertDatabase.vue"),
  551. meta: {
  552. title: "专家库",
  553. noCache: true
  554. }
  555. },
  556. {
  557. path: "expertinformation",
  558. name: "Expertinformation",
  559. component: () =>
  560. import("@/views/disasterRiskMonitor/expertinformation.vue"),
  561. meta: {
  562. title: "专家个人信息",
  563. noCache: true
  564. }
  565. }
  566. ]
  567. }
  568. ];
  569. export const workerRoute = [
  570. {
  571. path: "/worker",
  572. name: "Worker",
  573. component: Layout,
  574. redirect: "Index",
  575. children: [
  576. {
  577. path: "index",
  578. name: "WorkerIndex",
  579. component: () => import("@/views/worker/index.vue"),
  580. meta: {
  581. title: "首页",
  582. noCache: true
  583. }
  584. },
  585. {
  586. path: "mobile_control",
  587. name: "MobileControl",
  588. component: () => import("@/views/mobileControl/index.vue"),
  589. meta: {
  590. title: "移动指挥",
  591. noCache: true
  592. }
  593. },
  594. {
  595. path: "event",
  596. name: "workerEvent",
  597. component: () => import("@/views/worker/eventManagement/index.vue"),
  598. meta: {
  599. title: "事件管理",
  600. noCache: true
  601. }
  602. },
  603. {
  604. path: "inspectionWork",
  605. name: "inspectionWork",
  606. component: () => import("@/views/worker/inspectionWork/index.vue"),
  607. meta: {
  608. title: "巡查工作",
  609. noCache: true
  610. }
  611. },
  612. {
  613. path: "riskManagement",
  614. name: "riskManagement",
  615. component: () => import("@/views/worker/riskManagement/index.vue"),
  616. meta: {
  617. title: "风险防控"
  618. }
  619. },
  620. {
  621. path: "rescueManagement",
  622. name: "rescueManagement",
  623. component: () => import("@/views/worker/rescueManagement/index.vue"),
  624. meta: {
  625. title: "数据管理"
  626. }
  627. },
  628. {
  629. path: "duty",
  630. name: "Duty",
  631. component: () => import("@/views/duty/index.vue"),
  632. meta: {
  633. title: "值班管理",
  634. noCache: true
  635. }
  636. },
  637. {
  638. path: "rollCallRecord2",
  639. name: "rollCallRecord2",
  640. component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
  641. meta: {
  642. title: "点名记录",
  643. noCache: true
  644. }
  645. },
  646. {
  647. path: "my",
  648. name: "My",
  649. component: () => import("@/views/about/index.vue"),
  650. meta: {
  651. title: "我",
  652. noCache: true
  653. }
  654. }
  655. ]
  656. }
  657. ];