aqpt.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. import Layout from '@/layout/index'
  2. const aqptRouter = [
  3. {
  4. path: '/',
  5. component: Layout,
  6. name: 'AqptPanorama',
  7. redirect: '/goaf/info',
  8. groupId: [0],
  9. hidden: true
  10. },
  11. {
  12. path: '/goaf/alert',
  13. component: Layout,
  14. name: 'AlertCenter',
  15. redirect: '/goaf/alert/index',
  16. meta: { permit: 'aqpt_alert_center', title: '预警管理' },
  17. groupId: [1],
  18. children: [
  19. {
  20. path: 'index',
  21. component: () => import('@/views/goaf/alert/index'),
  22. name: 'aqpt_alert_review',
  23. meta: { title: '待评审', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' }
  24. },
  25. {
  26. path: 'rectify',
  27. component: () => import('@/views/goaf/alert/rectify'),
  28. name: 'aqpt_alert_rectify',
  29. meta: { title: '待整改', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' }
  30. },
  31. {
  32. path: 'accept',
  33. component: () => import('@/views/goaf/alert/accept'),
  34. name: 'aqpt_alert_accept',
  35. meta: { title: '待验收', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_alert_center' }
  36. }
  37. ]
  38. },
  39. {
  40. path: '/goaf/alert/checkList',
  41. component: Layout,
  42. name: 'AlertCheckList',
  43. redirect: '/goaf/alert/checkList/index',
  44. meta: { permit: 'aqpt_alert_center', title: '预警清单' },
  45. groupId: [1],
  46. children: [
  47. {
  48. path: 'index',
  49. component: () => import('@/views/goaf/alert/checkList.vue'),
  50. name: 'aqpt_alert_checkList_index',
  51. meta: { title: '预警清单', icon: 'el-icon-document', affix: true, permit: 'aqpt_alert_center' }
  52. },
  53. {
  54. path: 'rectify',
  55. component: () => import('@/views/goaf/alert/checkList_warning.vue'),
  56. name: 'aqpt_alert_checkList_rectify',
  57. meta: { title: '严重预警整改清单', icon: 'el-icon-document', affix: true, permit: 'aqpt_alert_center' }
  58. }
  59. ]
  60. },
  61. {
  62. path: '/task',
  63. component: Layout,
  64. name: 'TaskCenter',
  65. redirect: '/task/index',
  66. meta: { permit: 'aqpt_task_center' },
  67. groupId: [2],
  68. hidden: true,
  69. children: [
  70. {
  71. path: 'index',
  72. component: () => import('@/views/system/task/index'),
  73. name: 'aqpt_task_center',
  74. meta: { title: '工作台', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_task_center' }
  75. }
  76. ]
  77. },
  78. /** 采空区*/
  79. {
  80. path: '/goaf',
  81. component: Layout,
  82. name: 'goaf',
  83. redirect: '/goaf/info',
  84. meta: {
  85. title: '采空区管理',
  86. permit: 'aqpt_danger',
  87. icon: 'icon-common_riskmanagement'
  88. },
  89. groupId: [0],
  90. children: [
  91. {
  92. path: 'info',
  93. component: () => import('@/views/goaf/info/index'),
  94. name: 'goaf-info',
  95. meta: {
  96. title: '采空区信息配置',
  97. noCache: true,
  98. permit: 'aqpt_danger'
  99. }
  100. },
  101. {
  102. path: 'qrcode',
  103. component: () => import('@/views/goaf/qrcode/index'),
  104. name: 'goaf-qrcode',
  105. meta: {
  106. title: '二维码',
  107. noCache: true,
  108. permit: 'aqpt_danger'
  109. }
  110. },
  111. {
  112. path: 'map',
  113. component: () => import('@/views/goaf/map/index'),
  114. name: 'goaf-map',
  115. meta: {
  116. title: '可视化编辑',
  117. noCache: true,
  118. // icon: 'icon-common_equipment',
  119. permit: 'aqpt_danger'
  120. }
  121. }
  122. ]
  123. },
  124. {
  125. path: '/aqpt/scene',
  126. component: Layout,
  127. name: 'AqptScene',
  128. redirect: '/aqpt/scene/riskPoint',
  129. groupId: [0],
  130. meta: {
  131. title: '现场管理',
  132. icon: 'icon-common_overview',
  133. permit: 'aqpt_scene'
  134. },
  135. children: [
  136. {
  137. path: 'map',
  138. component: () => import('@/views/aqpt/map/index'),
  139. name: 'entMap',
  140. meta: { title: '地图', noCache: true, permit: 'aqpt_scene_map' }
  141. }
  142. ]
  143. },
  144. {
  145. path: '/goaf/checklist',
  146. component: Layout,
  147. name: 'goaf-checklist',
  148. redirect: '/goaf/checklist/index',
  149. meta: {
  150. title: '检查表',
  151. permit: 'aqpt_danger',
  152. icon: 'icon-common_file'
  153. },
  154. groupId: [0],
  155. children: [
  156. {
  157. path: 'index',
  158. component: () => import('@/views/goaf/checklist'),
  159. name: 'goaf-checklist-index',
  160. meta: {
  161. title: '检查表定义',
  162. noCache: true,
  163. icon: 'el-icon-document',
  164. permit: 'aqpt_danger'
  165. }
  166. },
  167. {
  168. path: 'config',
  169. component: () => import('@/views/goaf/checklist/config.vue'),
  170. name: 'goaf-checklist-config',
  171. meta: {
  172. title: '检查表配置',
  173. noCache: true,
  174. icon: 'el-icon-document',
  175. permit: 'aqpt_danger'
  176. }
  177. }
  178. ]
  179. },
  180. {
  181. path: '/goaf/check',
  182. component: Layout,
  183. name: 'goafCheck',
  184. redirect: '/aqpt/check/index',
  185. meta: {
  186. title: '人员巡检',
  187. icon: 'icon-common_task'
  188. },
  189. groupId: [5],
  190. children: [
  191. {
  192. path: 'plan',
  193. component: () => import('@/views/goaf/checkTask/plan/index'),
  194. name: 'aqpt_check_plan',
  195. meta: { title: '任务定义', noCache: true, permit: 'aqpt_check_plan' }
  196. },
  197. {
  198. path: 'index',
  199. component: () => import('@/views/goaf/checkTask/manage/index'),
  200. name: 'aqpt_check_manage',
  201. meta: { title: '任务列表', noCache: true, permit: 'aqpt_check_task' }
  202. },
  203. {
  204. path: 'record',
  205. component: () => import('@/views/goaf/checkTask/record/index'),
  206. name: 'aqpt_check_record',
  207. meta: { title: '检查记录', noCache: true, permit: 'aqpt_check_record' }
  208. }
  209. ]
  210. },
  211. {
  212. path: '/goaf/danger',
  213. component: Layout,
  214. name: 'GoafDanger',
  215. redirect: '/goaf/danger/index',
  216. meta: {
  217. title: '采空区预警管理',
  218. permit: 'aqpt_danger'
  219. },
  220. groupId: [5],
  221. children: [
  222. {
  223. path: 'index',
  224. component: () => import('@/views/goaf/danger/index'),
  225. name: 'goaf_danger_index',
  226. meta: { title: '采空区预警管理', noCache: true, icon: 'icon-common_riskmanagement', permit: 'aqpt_danger' }
  227. }
  228. ]
  229. },
  230. {
  231. path: '/goaf/equipment',
  232. component: Layout,
  233. name: 'GoafEquipment',
  234. redirect: '/goaf/equipment/sensor',
  235. meta: {
  236. title: '传感器管理',
  237. icon: 'icon-common_equipment',
  238. permit: 'aqpt_equipment'
  239. },
  240. groupId: [4],
  241. children: [
  242. {
  243. path: 'sensor',
  244. component: () => import('@/views/goaf/sensor/index'),
  245. name: 'goaf-sensor',
  246. meta: {
  247. title: '传感器',
  248. noCache: true,
  249. permit: 'aqpt_danger'
  250. }
  251. },
  252. {
  253. path: 'camera',
  254. component: () => import('@/views/goaf/sensor/camera'),
  255. name: 'goaf-camera',
  256. meta: {
  257. title: '摄像头',
  258. noCache: true,
  259. permit: 'aqpt_danger'
  260. }
  261. }
  262. ]
  263. },
  264. {
  265. path: '/goaf/liveData',
  266. component: Layout,
  267. name: 'GoafLiveData',
  268. redirect: '/goaf/liveData/sensor',
  269. meta: {
  270. title: '实时数据',
  271. icon: 'icon-common_equipment',
  272. permit: 'aqpt_equipment'
  273. },
  274. groupId: [4],
  275. children: [
  276. {
  277. path: 'sensor',
  278. component: () => import('@/views/goaf/liveData/sensor'),
  279. name: 'liveData-sensor',
  280. meta: {
  281. title: '传感器',
  282. noCache: true,
  283. permit: 'aqpt_danger'
  284. }
  285. },
  286. {
  287. path: 'camera',
  288. component: () => import('@/views/goaf/liveData/camera'),
  289. name: 'liveData-camera',
  290. meta: {
  291. title: '摄像头',
  292. noCache: true,
  293. permit: 'aqpt_danger'
  294. }
  295. }
  296. ]
  297. },
  298. {
  299. path: '/aqpt/training',
  300. component: Layout,
  301. name: 'AqptTraining',
  302. meta: { title: '安全教育', permit: 'aqpt_training' },
  303. groupId: [6],
  304. redirect: '/aqpt/training/index',
  305. hidden: true,
  306. children: [
  307. {
  308. path: 'index',
  309. component: () => import('@/views/aqpt/training/index'),
  310. name: 'aqpt_training',
  311. meta: { title: '安全教育', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_training' }
  312. }
  313. ]
  314. },
  315. {
  316. path: '/aqpt/kpi/regulation',
  317. component: Layout,
  318. name: 'aqptKpiRegulation',
  319. meta: { title: '考核制度', permit: 'aqpt_kpi' },
  320. redirect: '/aqpt/kpi/regulation/index',
  321. groupId: [6],
  322. children: [
  323. {
  324. path: 'index',
  325. component: () => import('@/views/aqpt/kpi/regulation/index'),
  326. name: 'aqpt_kpi_index',
  327. meta: { title: '考核制度', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_regulation' }
  328. }
  329. ]
  330. },
  331. {
  332. path: '/aqpt/kpi/rule',
  333. component: Layout,
  334. name: 'aqptKpiRule',
  335. meta: { title: '考核办法', permit: 'aqpt_kpi_rule' },
  336. redirect: '/aqpt/kpi/rule/index',
  337. groupId: [6],
  338. children: [
  339. {
  340. path: 'index',
  341. component: () => import('@/views/aqpt/kpi/rule/index'),
  342. name: 'aqpt_kpi_rule',
  343. meta: { title: '考核办法', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_rule' }
  344. }
  345. ]
  346. },
  347. {
  348. path: '/aqpt/kpi/rank',
  349. component: Layout,
  350. name: 'aqptKpiRank',
  351. meta: {
  352. title: '考核结果',
  353. icon: 'icon-common_task',
  354. permit: 'aqpt_kpi_rank'
  355. },
  356. redirect: '/aqpt/kpi/rule/group',
  357. groupId: [6],
  358. children: [
  359. {
  360. path: 'group',
  361. component: () => import('@/views/aqpt/kpi/rank/group/index'),
  362. name: 'aqpt_kpi_rank_group',
  363. meta: { title: '部门排名', affix: true, permit: 'aqpt_kpi_rank_group' }
  364. },
  365. {
  366. path: 'member',
  367. component: () => import('@/views/aqpt/kpi/rank/member/index'),
  368. name: 'aqpt_kpi_rank_member',
  369. meta: { title: '部门排名', affix: true, permit: 'aqpt_kpi_rank_member' }
  370. }
  371. ]
  372. },
  373. {
  374. path: '/aqpt/kpi/report',
  375. component: Layout,
  376. name: 'aqptKpiReport',
  377. meta: { permit: 'aqpt_kpi_report' },
  378. redirect: '/aqpt/kpi/report/index',
  379. groupId: [6],
  380. children: [
  381. {
  382. path: 'index',
  383. component: () => import('@/views/aqpt/kpi/report/index'),
  384. name: 'aqpt_kpi_report',
  385. meta: { title: '考核报告', icon: 'icon-common_digitization', affix: true, permit: 'aqpt_kpi_report' }
  386. }
  387. ]
  388. },
  389. {
  390. path: '/aqpt/doc',
  391. component: Layout,
  392. name: 'AqptDoc',
  393. redirect: '/aqpt/doc/index',
  394. groupId: [8],
  395. // hidden: true,
  396. meta: {
  397. title: '文件中心',
  398. permit: 'aqpt_doc_center'
  399. },
  400. children: [
  401. {
  402. path: 'index',
  403. component: () => import('@/views/system/doc/index'),
  404. name: 'aqpt_doc_center',
  405. meta: { title: '文件中心', noCache: true, icon: 'icon-common_file', permit: 'aqpt_doc_center' }
  406. },
  407. {
  408. path: 'knowledge',
  409. component: () => import('@/views/system/art/index'),
  410. name: 'aqpt_art_center',
  411. meta: { title: '安全智库', noCache: true, icon: 'icon-common_knowledge', permit: 'aqpt_doc_center' }
  412. }
  413. ]
  414. },
  415. {
  416. path: '/aqpt',
  417. component: Layout,
  418. redirect: '/aqpt/account',
  419. name: 'aqpt',
  420. groupId: [9],
  421. meta: {
  422. title: '组织管理',
  423. icon: 'icon-common_digitization',
  424. permit: 'aqpt_ent'
  425. },
  426. children: [
  427. {
  428. path: 'profile',
  429. component: () => import('@/views/aqpt/profile/index'),
  430. name: 'aqpt_ent_profile',
  431. meta: { title: '企业信息', noCache: true, permit: 'aqpt_ent_profile' }
  432. },
  433. {
  434. path: 'account',
  435. component: () => import('@/views/system/group/index'),
  436. name: 'aqpt_ent_group_user',
  437. meta: { title: '帐号管理', noCache: true, permit: 'aqpt_ent_group_user' }
  438. }
  439. // {
  440. // path: 'position',
  441. // component: () => import('@/views/system/position/index'),
  442. // name: 'aqpt_ent_position',
  443. // meta: { title: '岗位管理', noCache: true, permit: 'aqpt_ent_position' }
  444. // }
  445. ]
  446. },
  447. {
  448. path: '/aqpt/setting',
  449. component: Layout,
  450. redirect: '/aqpt/setting/groupCat',
  451. name: 'aqptSetting',
  452. groupId: [9],
  453. meta: {
  454. title: '系统配置',
  455. icon: 'icon-common_configuration',
  456. isGroup: true,
  457. permit: 'aqpt_setting'
  458. },
  459. children: [
  460. // {
  461. // path: 'groupCat',
  462. // component: () => import('@/views/system/setting/groupCat/index'),
  463. // name: 'aqpt_setting_group_cat',
  464. // meta: { title: '群组类别', noCache: true, permit: 'aqpt_setting_group_cat' }
  465. // },
  466. // {
  467. // path: 'taskCat',
  468. // component: () => import('@/views/system/setting/taskCat/index'),
  469. // name: 'aqpt_setting_task_cat',
  470. // meta: { title: '任务类别', noCache: true, permit: 'aqpt_setting_task_cat' }
  471. // },
  472. // {
  473. // path: 'checklistCat',
  474. // component: () => import('@/views/system/setting/checklistCat/index'),
  475. // name: 'aqpt_setting_checklist_cat',
  476. // meta: { title: '清单类别', noCache: true, permit: 'aqpt_setting_checklist_cat' }
  477. // },
  478. // {
  479. // path: 'riskPointCat',
  480. // component: () => import('@/views/aqpt/setting/riskPointCat/index'),
  481. // name: 'aqpt_setting_riskpoint_cat',
  482. // meta: { title: '风险点类别', noCache: true, permit: 'aqpt_setting_riskpoint_cat' }
  483. // },
  484. // {
  485. // path: 'dangerCat',
  486. // component: () => import('@/views/aqpt/setting/dangerCat/index'),
  487. // name: 'aqpt_setting_danger_cat',
  488. // meta: { title: '预警类别', noCache: true, permit: 'aqpt_setting_danger_cat' }
  489. // },
  490. // {
  491. // path: 'equipmentCat',
  492. // component: () => import('@/views/aqpt/setting/equipmentCat/index'),
  493. // name: 'aqpt_setting_equipment_cat',
  494. // meta: { title: '设备类别', noCache: true, permit: 'aqpt_setting_equipment_cat' }
  495. // },
  496. {
  497. path: 'sensorCat',
  498. component: () => import('@/views/goaf/sensorCat/index'),
  499. name: 'aqpt_setting_sensor_cat',
  500. meta: { title: '传感器类别', noCache: true, permit: 'aqpt_setting_equipment_cat' }
  501. },
  502. {
  503. path: 'APP_download',
  504. component: () => import('@/views/system/app/download'),
  505. name: 'aqpt_setting_sensor_cat',
  506. meta: { title: 'APP升级', noCache: true, permit: 'aqpt_setting_equipment_cat' }
  507. }
  508. // {
  509. // path: 'checkCat',
  510. // component: () => import('@/views/aqpt/setting/checkCat/index'),
  511. // name: 'aqpt_setting_check_cat',
  512. // meta: { title: '检查类别', noCache: true, permit: 'aqpt_setting_check_cat' }
  513. // },
  514. // {
  515. // path: 'ctrlLevel',
  516. // component: () => import('@/views/aqpt/setting/ctrlLevel/index'),
  517. // name: 'aqpt_setting_ctrl_level',
  518. // meta: { title: '管控层级', noCache: true, permit: 'aqpt_setting_ctrl_level' }
  519. // },
  520. // {
  521. // path: 'measureType',
  522. // component: () => import('@/views/aqpt/setting/measureType/index'),
  523. // name: 'aqpt_setting_measure_type',
  524. // meta: { title: '控制措施类型', noCache: true, permit: 'aqpt_setting_measure_type' }
  525. // },
  526. // {
  527. // path: 'alertType',
  528. // component: () => import('@/views/aqpt/setting/alertType/index'),
  529. // name: 'aqpt_setting_alert_type',
  530. // meta: { title: '预警类型', noCache: true, permit: 'aqpt_setting_alert_type' }
  531. // }
  532. ]
  533. }
  534. ]
  535. export default aqptRouter