aqpt.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. import Layout from '@/layout/index'
  2. const aqptRouter = [
  3. {
  4. path: '/',
  5. component: Layout,
  6. name: 'AqptPanorama',
  7. redirect: '/panorama',
  8. meta: { permit: 'aqpt_panorama' },
  9. groupId: [0],
  10. hidden: true,
  11. children: [
  12. {
  13. path: 'panorama',
  14. component: () => import('@/views/aqpt/panorama'),
  15. name: 'aqpt_panorama',
  16. meta: { title: '数字总览', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_panorama' }
  17. }
  18. ]
  19. },
  20. /** 不能跟路由1重复出现 */
  21. {
  22. path: '/',
  23. component: () => import('@/views/aqpt/visualEditor/index'),
  24. name: 'VisualEditor',
  25. meta: { title: '作业活动可视化配置', noCache: true, permit: 'jyprj_setting' }
  26. },
  27. {
  28. path: '/alert',
  29. component: Layout,
  30. name: 'AlertCenter',
  31. redirect: '/alert/index',
  32. meta: { permit: 'aqpt_alert_center' },
  33. groupId: [1],
  34. hidden: true,
  35. children: [
  36. {
  37. path: 'index',
  38. component: () => import('@/views/aqpt/alert/index'),
  39. name: 'aqpt_alert_center',
  40. meta: { title: '预警中心', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' }
  41. }
  42. ]
  43. },
  44. {
  45. path: '/task',
  46. component: Layout,
  47. name: 'TaskCenter',
  48. redirect: '/task/index',
  49. meta: { permit: 'aqpt_task_center' },
  50. groupId: [2],
  51. hidden: true,
  52. children: [
  53. {
  54. path: 'index',
  55. component: () => import('@/views/system/task/index'),
  56. name: 'aqpt_task_center',
  57. meta: { title: '工作台', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_task_center' }
  58. }
  59. ]
  60. },
  61. {
  62. path: '/aqpt/management',
  63. component: Layout,
  64. redirect: '/aqpt/management/leadingGroup',
  65. name: 'AqptManagement',
  66. meta: {
  67. title: '管理体系',
  68. icon: 'icon-common_organization',
  69. permit: 'aqpt_management'
  70. },
  71. groupId: [3],
  72. children: [
  73. {
  74. path: 'leadingGroup',
  75. component: () => import('@/views/system/leadingGroup/index'),
  76. name: 'aqpt_management_leading_group',
  77. meta: { title: '领导小组', noCache: true, permit: 'aqpt_management_leading_group' }
  78. }, {
  79. path: 'regulation',
  80. component: () => import('@/views/system/regulation/index'),
  81. name: 'aqpt_management_regulation',
  82. meta: { title: '管理制度', noCache: true, permit: 'aqpt_management_regulation' }
  83. },
  84. {
  85. path: 'hazard',
  86. component: () => import('@/views/aqpt/hazard/index'),
  87. name: 'aqpt_management_hazard',
  88. meta: { title: '危险源库', noCache: true, permit: 'aqpt_management_hazard' }
  89. },
  90. {
  91. path: 'checkList',
  92. component: () => import('@/views/system/checklist/index'),
  93. name: 'aqpt_management_checkList',
  94. meta: { title: '检查清单', noCache: true, permit: 'aqpt_management_checklist' }
  95. }
  96. ]
  97. },
  98. /** 采空区*/
  99. {
  100. path: '/goaf',
  101. component: Layout,
  102. name: 'goaf',
  103. redirect: '/goaf/info',
  104. meta: {
  105. title: '采空区管理',
  106. permit: 'aqpt_danger',
  107. icon: 'icon-common_riskmanagement'
  108. },
  109. groupId: [3],
  110. children: [
  111. {
  112. path: 'info',
  113. component: () => import('@/views/goaf/info/index'),
  114. name: 'goaf-info',
  115. meta: {
  116. title: '采空区信息配置',
  117. noCache: true,
  118. permit: 'aqpt_danger'
  119. }
  120. },
  121. {
  122. path: 'sensor',
  123. component: () => import('@/views/goaf/sensor/index'),
  124. name: 'goaf-sensor',
  125. meta: {
  126. title: '传感器配置',
  127. noCache: true,
  128. // icon: 'icon-common_equipment',
  129. permit: 'aqpt_danger'
  130. }
  131. },
  132. {
  133. path: 'map',
  134. component: () => import('@/views/goaf/map/index'),
  135. name: 'goaf-map',
  136. meta: {
  137. title: '可视化编辑',
  138. noCache: true,
  139. // icon: 'icon-common_equipment',
  140. permit: 'aqpt_danger'
  141. }
  142. },
  143. {
  144. path: 'checklist',
  145. component: () => import('@/views/goaf/checklist'),
  146. name: 'goaf-checklist',
  147. meta: {
  148. title: '检查表',
  149. noCache: true,
  150. // icon: 'icon-common_equipment',
  151. permit: 'aqpt_danger'
  152. }
  153. }
  154. ]
  155. },
  156. {
  157. path: '/aqpt/scene',
  158. component: Layout,
  159. name: 'AqptScene',
  160. redirect: '/aqpt/scene/riskPoint',
  161. groupId: [3],
  162. meta: {
  163. title: '现场管理',
  164. icon: 'icon-common_overview',
  165. permit: 'aqpt_scene'
  166. },
  167. children: [
  168. {
  169. path: 'map',
  170. component: () => import('@/views/aqpt/map/index'),
  171. name: 'entMap',
  172. meta: { title: '地图', noCache: true, permit: 'aqpt_scene_map' }
  173. },
  174. {
  175. path: 'manage',
  176. component: () => import('@/views/system/grid/index'),
  177. name: 'entGrid',
  178. meta: { title: '网格', noCache: true, permit: 'aqpt_scene_grid' }
  179. },
  180. {
  181. path: 'riskPoint',
  182. component: () => import('@/views/aqpt/riskpoint/index'),
  183. name: 'entRiskPoint',
  184. meta: { title: '风险点', noCache: true, permit: 'aqpt_scene_riskpoint' }
  185. },
  186. {
  187. path: 'projectWork',
  188. component: () => import('@/views/aqpt/projectWork/index'),
  189. name: 'projectWork',
  190. meta: { title: '工作项目管理', noCache: true, permit: 'aqpt_scene_riskpoint' }
  191. }
  192. ]
  193. },
  194. {
  195. path: '/aqpt/check',
  196. component: Layout,
  197. name: 'AqptCheck',
  198. redirect: '/aqpt/check/index',
  199. meta: {
  200. title: '隐患排查',
  201. icon: 'icon-common_task',
  202. permit: 'aqpt_check_manage'
  203. },
  204. groupId: [3],
  205. children: [
  206. {
  207. path: 'plan',
  208. component: () => import('@/views/aqpt/checkTask/plan/index'),
  209. name: 'aqpt_check_plan',
  210. meta: { title: '巡检计划', noCache: true, permit: 'aqpt_check_plan' }
  211. },
  212. {
  213. path: 'index',
  214. component: () => import('@/views/aqpt/checkTask/manage/index'),
  215. name: 'aqpt_check_manage',
  216. meta: { title: '巡检任务', noCache: true, permit: 'aqpt_check_task' }
  217. },
  218. {
  219. path: 'record',
  220. component: () => import('@/views/aqpt/checkTask/record/index'),
  221. name: 'aqpt_check_record',
  222. meta: { title: '巡检记录', noCache: true, permit: 'aqpt_check_record' }
  223. }
  224. ]
  225. },
  226. {
  227. path: '/aqpt/danger',
  228. component: Layout,
  229. name: 'AqptDanger',
  230. redirect: '/aqpt/danger/index',
  231. meta: {
  232. title: '隐患管理',
  233. permit: 'aqpt_danger'
  234. },
  235. groupId: [3],
  236. children: [
  237. {
  238. path: 'index',
  239. component: () => import('@/views/aqpt/danger/index'),
  240. name: 'aqpt_danger_index',
  241. meta: { title: '隐患管理', noCache: true, icon: 'icon-common_riskmanagement', permit: 'aqpt_danger' }
  242. }
  243. ]
  244. },
  245. {
  246. path: '/aqpt/report',
  247. component: Layout,
  248. name: 'AqptLedger',
  249. redirect: '/aqpt/report/index',
  250. meta: {
  251. title: '台帐清单',
  252. permit: 'aqpt_report'
  253. },
  254. groupId: [3],
  255. children: [
  256. {
  257. path: 'index',
  258. component: () => import('@/views/aqpt/report/index'),
  259. name: 'aqpt_report_index',
  260. meta: { title: '台帐中心', noCache: true, icon: 'icon-common_statistical', permit: 'aqpt_report' }
  261. }
  262. ]
  263. },
  264. {
  265. path: '/aqpt/equipment',
  266. component: Layout,
  267. name: 'AqptEquipment',
  268. redirect: '/aqpt/equipment/index',
  269. meta: {
  270. title: '设备管理',
  271. icon: 'icon-common_equipment',
  272. permit: 'aqpt_equipment'
  273. },
  274. groupId: [4],
  275. children: [
  276. {
  277. path: 'index',
  278. component: () => import('@/views/aqpt/equipment/index'),
  279. name: 'aqpt_equipment_index',
  280. meta: { title: '设备管理', noCache: true, permit: 'aqpt_equipment' }
  281. }
  282. ]
  283. },
  284. {
  285. path: '/aqpt/ticket',
  286. component: Layout,
  287. name: 'AqptTicket',
  288. meta: {
  289. title: '危险作业',
  290. icon: 'icon-common_satisfaction',
  291. permit: 'aqpt_ticket'
  292. },
  293. groupId: [5],
  294. redirect: '/aqpt/ticket/dz',
  295. children: [
  296. {
  297. path: 'dz',
  298. component: () => import('@/views/aqpt/ticket/dz/index'),
  299. name: 'aqpt_ticket_dz',
  300. meta: { title: '吊装作业', affix: true, permit: 'aqpt_ticket_dz' }
  301. },
  302. {
  303. path: 'dh',
  304. component: () => import('@/views/aqpt/ticket/dh/index'),
  305. name: 'aqpt_ticket_dh',
  306. meta: { title: '动火作业', affix: true, permit: 'aqpt_ticket_dh' }
  307. },
  308. {
  309. path: 'dt',
  310. component: () => import('@/views/aqpt/ticket/dt/index'),
  311. name: 'aqpt_ticket_dt',
  312. meta: { title: '动土作业', affix: true, permit: 'aqpt_ticket_dt' }
  313. },
  314. {
  315. path: 'dl',
  316. component: () => import('@/views/aqpt/ticket/dl/index'),
  317. name: 'aqpt_ticket_dl',
  318. meta: { title: '断路作业', affix: true, permit: 'aqpt_ticket_dl' }
  319. },
  320. {
  321. path: 'gk',
  322. component: () => import('@/views/aqpt/ticket/gk/index'),
  323. name: 'aqpt_ticket_gk',
  324. meta: { title: '高处作业', affix: true, permit: 'aqpt_ticket_gk' }
  325. },
  326. {
  327. path: 'sbjx',
  328. component: () => import('@/views/aqpt/ticket/sbjx/index'),
  329. name: 'aqpt_ticket_sbjx',
  330. meta: { title: '设备检修作业', affix: true, permit: 'aqpt_ticket_sbjx' }
  331. },
  332. {
  333. path: 'mbcd',
  334. component: () => import('@/views/aqpt/ticket/mbcd/index'),
  335. name: 'aqpt_ticket_mbcd',
  336. meta: { title: '盲板抽堵作业', affix: true, permit: 'aqpt_ticket_mbcd' }
  337. },
  338. {
  339. path: 'sxkj',
  340. component: () => import('@/views/aqpt/ticket/sxkj/index'),
  341. name: 'aqpt_ticket_sxkj',
  342. meta: { title: '受限空间作业', affix: true, permit: 'aqpt_ticket_sxkj' }
  343. }
  344. ]
  345. },
  346. {
  347. path: '/aqpt/training',
  348. component: Layout,
  349. name: 'AqptTraining',
  350. meta: { title: '安全教育', permit: 'aqpt_training' },
  351. groupId: [6],
  352. redirect: '/aqpt/training/index',
  353. hidden: true,
  354. children: [
  355. {
  356. path: 'index',
  357. component: () => import('@/views/aqpt/training/index'),
  358. name: 'aqpt_training',
  359. meta: { title: '安全教育', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_training' }
  360. }
  361. ]
  362. },
  363. {
  364. path: '/aqpt/kpi/regulation',
  365. component: Layout,
  366. name: 'aqptKpiRegulation',
  367. meta: { title: '考核制度', permit: 'aqpt_kpi' },
  368. redirect: '/aqpt/kpi/regulation/index',
  369. groupId: [6],
  370. children: [
  371. {
  372. path: 'index',
  373. component: () => import('@/views/aqpt/kpi/regulation/index'),
  374. name: 'aqpt_kpi_index',
  375. meta: { title: '考核制度', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_regulation' }
  376. }
  377. ]
  378. },
  379. {
  380. path: '/aqpt/kpi/rule',
  381. component: Layout,
  382. name: 'aqptKpiRule',
  383. meta: { title: '考核办法', permit: 'aqpt_kpi_rule' },
  384. redirect: '/aqpt/kpi/rule/index',
  385. groupId: [6],
  386. children: [
  387. {
  388. path: 'index',
  389. component: () => import('@/views/aqpt/kpi/rule/index'),
  390. name: 'aqpt_kpi_rule',
  391. meta: { title: '考核办法', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_rule' }
  392. }
  393. ]
  394. },
  395. {
  396. path: '/aqpt/kpi/rank',
  397. component: Layout,
  398. name: 'aqptKpiRank',
  399. meta: {
  400. title: '考核结果',
  401. icon: 'icon-common_task',
  402. permit: 'aqpt_kpi_rank'
  403. },
  404. redirect: '/aqpt/kpi/rule/group',
  405. groupId: [6],
  406. children: [
  407. {
  408. path: 'group',
  409. component: () => import('@/views/aqpt/kpi/rank/group/index'),
  410. name: 'aqpt_kpi_rank_group',
  411. meta: { title: '部门排名', affix: true, permit: 'aqpt_kpi_rank_group' }
  412. },
  413. {
  414. path: 'member',
  415. component: () => import('@/views/aqpt/kpi/rank/member/index'),
  416. name: 'aqpt_kpi_rank_member',
  417. meta: { title: '部门排名', affix: true, permit: 'aqpt_kpi_rank_member' }
  418. }
  419. ]
  420. },
  421. {
  422. path: '/aqpt/kpi/report',
  423. component: Layout,
  424. name: 'aqptKpiReport',
  425. meta: { permit: 'aqpt_kpi_report' },
  426. redirect: '/aqpt/kpi/report/index',
  427. groupId: [6],
  428. children: [
  429. {
  430. path: 'index',
  431. component: () => import('@/views/aqpt/kpi/report/index'),
  432. name: 'aqpt_kpi_report',
  433. meta: { title: '考核报告', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_report' }
  434. }
  435. ]
  436. },
  437. {
  438. path: '/aqpt/art',
  439. component: Layout,
  440. name: 'AqptArtCenter',
  441. redirect: '/aqpt/art/index',
  442. groupId: [7],
  443. hidden: true,
  444. meta: {
  445. title: '安全智库',
  446. permit: 'aqpt_art_center'
  447. },
  448. children: [
  449. {
  450. path: 'index',
  451. component: () => import('@/views/system/art/index'),
  452. name: 'aqpt_art_center',
  453. meta: { title: '安全智库', noCache: true, icon: 'icon-common_knowledge', permit: 'aqpt_art_center' }
  454. }
  455. ]
  456. },
  457. {
  458. path: '/aqpt/doc',
  459. component: Layout,
  460. name: 'AqptDoc',
  461. redirect: '/aqpt/doc/index',
  462. groupId: [8],
  463. hidden: true,
  464. meta: {
  465. title: '文件中心',
  466. permit: 'aqpt_doc_center'
  467. },
  468. children: [
  469. {
  470. path: 'index',
  471. component: () => import('@/views/system/doc/index'),
  472. name: 'aqpt_doc_center',
  473. meta: { title: '文件中心', noCache: true, icon: 'icon-common_file', permit: 'aqpt_doc_center' }
  474. }
  475. ]
  476. },
  477. {
  478. path: '/aqpt',
  479. component: Layout,
  480. redirect: '/aqpt/account',
  481. name: 'aqpt',
  482. groupId: [9],
  483. meta: {
  484. title: '组织管理',
  485. icon: 'icon-common_digitization',
  486. permit: 'aqpt_ent'
  487. },
  488. children: [
  489. {
  490. path: 'profile',
  491. component: () => import('@/views/aqpt/profile/index'),
  492. name: 'aqpt_ent_profile',
  493. meta: { title: '企业信息', noCache: true, permit: 'aqpt_ent_profile' }
  494. },
  495. {
  496. path: 'account',
  497. component: () => import('@/views/system/group/index'),
  498. name: 'aqpt_ent_group_user',
  499. meta: { title: '帐号管理', noCache: true, permit: 'aqpt_ent_group_user' }
  500. },
  501. {
  502. path: 'position',
  503. component: () => import('@/views/system/position/index'),
  504. name: 'aqpt_ent_position',
  505. meta: { title: '岗位管理', noCache: true, permit: 'aqpt_ent_position' }
  506. }
  507. ]
  508. },
  509. {
  510. path: '/aqpt/setting',
  511. component: Layout,
  512. redirect: '/aqpt/setting/groupCat',
  513. name: 'aqptSetting',
  514. groupId: [9],
  515. meta: {
  516. title: '系统配置',
  517. icon: 'icon-common_configuration',
  518. isGroup: true,
  519. permit: 'aqpt_setting'
  520. },
  521. children: [
  522. {
  523. path: 'groupCat',
  524. component: () => import('@/views/system/setting/groupCat/index'),
  525. name: 'aqpt_setting_group_cat',
  526. meta: { title: '群组类别', noCache: true, permit: 'aqpt_setting_group_cat' }
  527. },
  528. {
  529. path: 'taskCat',
  530. component: () => import('@/views/system/setting/taskCat/index'),
  531. name: 'aqpt_setting_task_cat',
  532. meta: { title: '任务类别', noCache: true, permit: 'aqpt_setting_task_cat' }
  533. },
  534. {
  535. path: 'checklistCat',
  536. component: () => import('@/views/system/setting/checklistCat/index'),
  537. name: 'aqpt_setting_checklist_cat',
  538. meta: { title: '清单类别', noCache: true, permit: 'aqpt_setting_checklist_cat' }
  539. },
  540. {
  541. path: 'riskPointCat',
  542. component: () => import('@/views/aqpt/setting/riskPointCat/index'),
  543. name: 'aqpt_setting_riskpoint_cat',
  544. meta: { title: '风险点类别', noCache: true, permit: 'aqpt_setting_riskpoint_cat' }
  545. },
  546. {
  547. path: 'dangerCat',
  548. component: () => import('@/views/aqpt/setting/dangerCat/index'),
  549. name: 'aqpt_setting_danger_cat',
  550. meta: { title: '隐患类别', noCache: true, permit: 'aqpt_setting_danger_cat' }
  551. },
  552. {
  553. path: 'equipmentCat',
  554. component: () => import('@/views/aqpt/setting/equipmentCat/index'),
  555. name: 'aqpt_setting_equipment_cat',
  556. meta: { title: '设备类别', noCache: true, permit: 'aqpt_setting_equipment_cat' }
  557. },
  558. {
  559. path: 'checkCat',
  560. component: () => import('@/views/aqpt/setting/checkCat/index'),
  561. name: 'aqpt_setting_check_cat',
  562. meta: { title: '检查类别', noCache: true, permit: 'aqpt_setting_check_cat' }
  563. },
  564. {
  565. path: 'ctrlLevel',
  566. component: () => import('@/views/aqpt/setting/ctrlLevel/index'),
  567. name: 'aqpt_setting_ctrl_level',
  568. meta: { title: '管控层级', noCache: true, permit: 'aqpt_setting_ctrl_level' }
  569. },
  570. {
  571. path: 'measureType',
  572. component: () => import('@/views/aqpt/setting/measureType/index'),
  573. name: 'aqpt_setting_measure_type',
  574. meta: { title: '控制措施类型', noCache: true, permit: 'aqpt_setting_measure_type' }
  575. },
  576. {
  577. path: 'alertType',
  578. component: () => import('@/views/aqpt/setting/alertType/index'),
  579. name: 'aqpt_setting_alert_type',
  580. meta: { title: '预警类型', noCache: true, permit: 'aqpt_setting_alert_type' }
  581. }
  582. ]
  583. }
  584. ]
  585. export default aqptRouter