router.config.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. /**
  2. * 路由配置
  3. * meta: {
  4. * title: { String|Number|Function } //页面名称
  5. * keepAlive: { Boolean } //是否缓存页面
  6. * hideTabBar: { Boolean } //是否隐藏底部导航
  7. * deep: { Number } //页面深度
  8. * }
  9. */
  10. export let routers = [
  11. {
  12. path: '/',
  13. redirect: '/login'
  14. },
  15. {
  16. path: '/login',
  17. component: () => import('@/views/login'),
  18. meta: {
  19. title: '登录',
  20. keepAlive: false
  21. }
  22. },
  23. {
  24. path: '/tokenlogin',
  25. component: () => import('@/views/tokenlogin'),
  26. meta: {
  27. title: '登录',
  28. keepAlive: false
  29. }
  30. },
  31. {
  32. path: '/consultInfo/:id',
  33. name: 'consultInfo',
  34. component: () => import('@/views/menu/monitoringCall/components/consultInfo'),
  35. meta: { title: '监控调阅', keepAlive: true }
  36. },
  37. {
  38. path: '/Addtraining/:id',
  39. name: 'Addtraining',
  40. component: () => import('@/views/menu/training/components/addTraining.vue'),
  41. meta: { title: '培训登记', keepAlive: false }
  42. },
  43. {
  44. path: '/addRehearsalTask/:id',
  45. name: 'addRehearsalTask',
  46. component: () => import('@/views/menu/rehearsalTask/components/addRehearsalTask.vue'),
  47. meta: { title: '演练登记', keepAlive: false }
  48. },
  49. {
  50. path: '/personnelSignature/:id',
  51. name: 'personnelSignature',
  52. component: () => import('@/views/menu/training/components/personnelSignature.vue'),
  53. meta: { title: '培训参与人员签名', keepAlive: false }
  54. },
  55. {
  56. path: '/personnelSigninfo/:id',
  57. name: 'personnelSigninfo',
  58. component: () => import('@/views/menu/training/components/personnelSignature.vue'),
  59. meta: { title: '教育培训记录详情', keepAlive: false }
  60. },
  61. {
  62. path: '/rehearsalTasinfo/:id',
  63. name: 'rehearsalTasinfo',
  64. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  65. meta: { title: '演练详情', keepAlive: false }
  66. },
  67. {
  68. path: '/rehearsalTaskSign/:id',
  69. name: 'rehearsalTaskSign',
  70. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  71. meta: { title: '演练参与人员签名', keepAlive: false }
  72. },
  73. {
  74. path: '/evaluate/:id',
  75. name: 'evaluate',
  76. component: () => import('@/views/menu/resumptionEvaluate/evaluate.vue'),
  77. meta: { title: '评价', keepAlive: false }
  78. },
  79. {
  80. path: '/commentSign/:id',
  81. name: 'commentSign',
  82. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  83. meta: { title: '演练详情', keepAlive: false }
  84. },
  85. {
  86. path: '/home',
  87. name: 'home',
  88. component: () => import('@/components/layouts/index'),
  89. redirect: to => {
  90. // 保留查询参数
  91. const params = { ...to.params };
  92. return { path: '/works', params };
  93. },
  94. meta: {
  95. title: '主页',
  96. keepAlive: false
  97. },
  98. children: [
  99. {
  100. path: '/cockpit',
  101. name: 'cockpit',
  102. component: () => import('@/views/menu/cockpit/index.vue'),
  103. meta: { title: '驾驶舱', keepAlive: false, hideTabBar: false }
  104. },
  105. {
  106. path: '/works',
  107. name: 'works',
  108. component: () => import('@/views/home/works'),
  109. meta: { title: '待办', keepAlive: false, deep: 0.5 }
  110. },
  111. {
  112. path: '/menu',
  113. name: 'menu',
  114. component: () => import('@/views/home/menu'),
  115. meta: { title: '菜单', keepAlive: false, deep: 0.5 }
  116. },
  117. {
  118. path: '/isMy',
  119. name: 'isMy',
  120. component: () => import('@/views/home/isMy'),
  121. meta: { title: '我的', keepAlive: true, deep: 0.5 }
  122. },
  123. {
  124. path: '/message',
  125. name: 'message',
  126. component: () => import('@/views/home/message/index'),
  127. meta: { title: '消息中心', keepAlive: true, deep: 0.5 }
  128. },
  129. {
  130. path: '/msgDetail',
  131. name: 'msgDetail',
  132. component: () => import('@/views/home/message/detail.vue'),
  133. meta: { title: '消息详情', keepAlive: false, deep: 0.5 }
  134. },
  135. {
  136. path: '/workTime',
  137. name: 'workTime',
  138. component: () => import('@/views/menu/workTime/index'),
  139. meta: { title: '作息管理', keepAlive: false }
  140. },
  141. {
  142. path: '/nfc',
  143. name: 'nfc',
  144. component: () => import('@/views/menu/NFCmanage/index'),
  145. meta: { title: 'NFC管理', keepAlive: false }
  146. },
  147. {
  148. path: '/nfcScan',
  149. name: 'nfcScan',
  150. component: () => import('@/views/menu/NFCScan/index'),
  151. meta: { title: 'NFC查询', keepAlive: false }
  152. },
  153. {
  154. path: '/iot/subsystem',
  155. name: 'iot_subsystem',
  156. component: () => import('@/views/menu/iot/subsystem/index'),
  157. meta: { title: '布撤防状态登记', keepAlive: false }
  158. },
  159. {
  160. path: '/iot/subsystem/detail',
  161. name: 'iot_subsystem_detail',
  162. component: () => import('@/views/menu/iot/subsystem/detail'),
  163. meta: { title: '控制器信息', keepAlive: false }
  164. },
  165. {
  166. path: '/iot/videoDiagnosis',
  167. name: 'iot_videoDiagnosis',
  168. component: () => import('@/views/menu/iot/videoDiagnosis/index'),
  169. meta: { title: '录像诊断信息', keepAlive: true, deep: 1 }
  170. },
  171. {
  172. path: '/iot/videoDiagnosis/detail',
  173. name: 'iot_videoDiagnosis_detail',
  174. component: () => import('@/views/menu/iot/videoDiagnosis/detail'),
  175. meta: { title: '录像诊断记录', keepAlive: false, deep: 2 }
  176. },
  177. {
  178. path: '/iot/smartOpration/videoCheck/detail',
  179. name: 'iot_smartOpration_videoCheck_detail',
  180. component: () => import('@/views/menu/iot/smartOpration/videocheckdetail'),
  181. meta: { title: '录像检测记录', keepAlive: false, deep: 2 }
  182. },
  183. {
  184. path: '/iot/smartOpration/videoDiagnosis/detail',
  185. name: 'iot_smartOpration_videoDiagnosis_detail',
  186. component: () => import('@/views/menu/iot/smartOpration/videodiagnosisdetail'),
  187. meta: { title: '视频质量诊断记录', keepAlive: false, deep: 2 }
  188. },
  189. {
  190. path: '/iot/dvrDisk',
  191. name: 'iot_dvrRecorder',
  192. component: () => import('@/views/menu/iot/dvrRecorder/index'),
  193. meta: { title: '硬盘诊断信息', keepAlive: false }
  194. },
  195. {
  196. path: '/iot/donghuan',
  197. name: 'iot_donghuan',
  198. component: () => import('@/views/menu/iot/donghuan/index'),
  199. meta: { title: '动环诊断信息', keepAlive: true , deep: 1}
  200. },
  201. {
  202. path: '/iot/donghuan/detail',
  203. name: 'iot_donghuan_detail',
  204. component: () => import('@/views/menu/iot/donghuan/detail'),
  205. meta: { title: '动环设备详情', keepAlive: false, deep: 2 }
  206. },
  207. {
  208. path: '/iot/alarmCenter',
  209. name: 'iot_alarmCenter',
  210. component: () => import('@/views/menu/iot/alarmCenter/index'),
  211. meta: { title: '告警中心', keepAlive: true , deep: 1}
  212. },
  213. {
  214. path: '/iot/alarmCenter/detail',
  215. name: 'iot_alarmCenter_detail',
  216. component: () => import('@/views/menu/iot/alarmCenter/detail'),
  217. meta: { title: '告警详情', keepAlive: false, deep: 2 }
  218. },
  219. {
  220. path: '/iot/alarmCenter/dealAlarm',
  221. name: 'iot_alarmCenter_dealAlarm',
  222. component: () => import('@/views/menu/iot/alarmCenter/dealAlarm'),
  223. meta: { title: '告警处置', keepAlive: false, deep: 2 }
  224. },
  225. {
  226. path: '/iot/fireWarning',
  227. name: 'iot_fireWarning',
  228. component: () => import('@/views/menu/iot/fireWarning/index'),
  229. meta: { title: '消防预警', keepAlive: true , deep: 1}
  230. },
  231. {
  232. path: '/iot/fireWarning/detail',
  233. name: 'iot_fireWarning_detail',
  234. component: () => import('@/views/menu/iot/fireWarning/detail'),
  235. meta: { title: '设备详情', keepAlive: false, deep: 2 }
  236. },
  237. {
  238. path: '/iot/fireWarning/alarmIndex',
  239. name: 'iot_fireWarning_alarmIndex',
  240. component: () => import('@/views/menu/iot/fireWarning/alarmIndex.vue'),
  241. meta: { title: '告警列表', keepAlive: false, deep: 2 }
  242. },
  243. {
  244. path: '/iot/envMonitor',
  245. name: 'iot_envMonitor',
  246. component: () => import('@/views/menu/iot/envMonitor/index'),
  247. meta: { title: '环境监测', keepAlive: true , deep: 1}
  248. },
  249. {
  250. path: '/iot/envMonitor/detail',
  251. name: 'iot_envMonitor_detail',
  252. component: () => import('@/views/menu/iot/envMonitor/detail'),
  253. meta: { title: '设备详情', keepAlive: false, deep: 2 }
  254. },
  255. {
  256. path: '/iot/envMonitor/alarmIndex',
  257. name: 'iot_envMonitor_alarmIndex',
  258. component: () => import('@/views/menu/iot/envMonitor/alarmIndex.vue'),
  259. meta: { title: '告警列表', keepAlive: false, deep: 2 }
  260. },
  261. {
  262. path: '/iot/ups',
  263. name: 'iot_ups',
  264. component: () => import('@/views/menu/iot/ups/index'),
  265. meta: { title: 'UPS诊断', keepAlive: true , deep: 1}
  266. },
  267. {
  268. path: '/iot/ups/detail',
  269. name: 'iot_ups_detail',
  270. component: () => import('@/views/menu/iot/ups/detail'),
  271. meta: { title: 'UPS诊断详情', keepAlive: false, deep: 2 }
  272. },
  273. {
  274. path: '/iot/airconditioner',
  275. name: 'iot_airconditioner',
  276. component: () => import('@/views/menu/iot/airConditioner/index'),
  277. meta: { title: '空调管理', keepAlive: true , deep: 1}
  278. },
  279. {
  280. path: '/iot/airconditioner/detail',
  281. name: 'iot_airconditioner_detail',
  282. component: () => import('@/views/menu/iot/airConditioner/detail'),
  283. meta: { title: '空调详情', keepAlive: false, deep: 2 }
  284. },
  285. {
  286. path: '/iot/board',
  287. name: 'iot_board',
  288. component: () => import('@/views/menu/iot/board'),
  289. meta: { title: '数据总览', keepAlive: false }
  290. },
  291. {
  292. path: '/iot/smartOpration',
  293. name: 'iot_smartOpration',
  294. component: () => import('@/views/menu/iot/smartOpration/index'),
  295. meta: { title: '智能运维', keepAlive: true, deep: 1 }
  296. },
  297. {
  298. path: '/monitoringCall',
  299. name: 'monitoringCall',
  300. component: () => import('@/views/menu/monitoringCall/index'),
  301. meta: { title: '监控调阅', keepAlive: false }
  302. },
  303. {
  304. path: '/resumptionEvaluate',
  305. name: 'resumptionEvaluate',
  306. component: () => import('@/views/menu/resumptionEvaluate/index'),
  307. meta: { title: '外包履职评价', keepAlive: false }
  308. },
  309. {
  310. path: '/rehearsalTask',
  311. name: 'rehearsalTask',
  312. component: () => import('@/views/menu/rehearsalTask/index'),
  313. meta: { title: '演练登记', keepAlive: false }
  314. },
  315. {
  316. path: '/rehearsaloptimal',
  317. name: 'rehearsaloptimal',
  318. component: () => import('@/views/menu/rehearsalTask/optimal'),
  319. meta: { title: '优秀案例管理', keepAlive: false }
  320. },
  321. // {
  322. // path: '/rehearsaloptimal2',
  323. // name: 'rehearsaloptimal2',
  324. // component: () => import('@/views/menu/rehearsalTask/optimal2'),
  325. // meta: { title: '优秀案例管理2', keepAlive: false }
  326. // },
  327. {
  328. path: '/training',
  329. name: 'training',
  330. component: () => import('@/views/menu/training/index'),
  331. meta: { title: '教育培训', keepAlive: false }
  332. },
  333. {
  334. path: '/rehearsallearning',
  335. name: 'rehearsallearning',
  336. component: () => import('@/views/menu/rehearsalTask/learning'),
  337. meta: { title: '优秀案例学习', keepAlive: false }
  338. },
  339. {
  340. path: '/educationStatistics',
  341. name: 'educationStatistics',
  342. component: () => import('@/views/menu/educationStatistics/index'),
  343. meta: { title: '培训情况表', keepAlive: false,hideTabBar: true,deep: 2}
  344. },
  345. {
  346. path: '/drillStatistics',
  347. name: 'drillStatistics',
  348. component: () => import('@/views/menu/drillStatistics/index'),
  349. meta: { title: '演练情况表', keepAlive: false,hideTabBar: true,deep: 2 }
  350. },
  351. {
  352. path: '/securityCheckRegister',
  353. name: 'securityCheckRegister',
  354. component: () => import('@/views/menu/securityCheckRegister/index'),
  355. meta: { title: '安全检查登记', keepAlive: true, deep: 1 }
  356. },
  357. {
  358. path: '/securityAdd',
  359. name: 'securityAdd',
  360. component: () => import('@/views/menu/securityCheckRegister/add'),
  361. meta: { title: '安全检查', keepAlive: false, hideTabBar: true, deep: 2 }
  362. },
  363. {
  364. path: '/securityDetail',
  365. name: 'securityDetail',
  366. component: () => import('@/views/menu/securityCheckRegister/detail'),
  367. meta: { title: '安全检查详情', keepAlive: false, hideTabBar: true, deep: 2 }
  368. },
  369. {
  370. path: '/addWorker',
  371. name: 'addWorker',
  372. component: () => import('@/views/menu/securityCheckRegister/addWorker'),
  373. meta: { title: '选择授权人员', keepAlive: false, hideTabBar: true }
  374. },
  375. {
  376. path: '/problemItem',
  377. name: 'problemItem',
  378. component: () => import('@/views/menu/problemItem/index'),
  379. meta: { title: '隐患问题清单', keepAlive: true, deep: 1 }
  380. },
  381. {
  382. path: '/problemDetail',
  383. name: 'problemDetail',
  384. component: () => import('@/views/menu/problemItem/detail'),
  385. meta: { title: '隐患问题详情', keepAlive: false, deep: 2 }
  386. },
  387. {
  388. path: '/resumption',
  389. name: 'resumption',
  390. component: () => import('@/views/menu/resumption/list.vue'),
  391. meta: { title: '履职登记', keepAlive: true, deep: 1 }
  392. },
  393. {
  394. path: '/resumption_detail',
  395. name: 'resumption_detail',
  396. component: () => import('@/views/menu/resumption/detail.vue'),
  397. meta: { title: '履职', keepAlive: false, hideTabBar: true, deep: 2 }
  398. },
  399. {
  400. path: '/safetyBook',
  401. name: 'safetyBook',
  402. component: () => import('@/views/menu/safetyBook/index.vue'),
  403. meta: { title: '安全责任书', keepAlive: true, hideTabBar: false, deep: 1 }
  404. },
  405. {
  406. path: '/safetyBookDetail',
  407. name: 'safetyBookDetail',
  408. component: () => import('@/views/menu/safetyBook/detail.vue'),
  409. meta: { title: '责任书详情', keepAlive: false, hideTabBar: true, deep: 2 }
  410. },
  411. {
  412. path: '/visitRegister',
  413. name: 'visitRegister',
  414. component: () => import('@/views/menu/visitRegister/index.vue'),
  415. meta: { title: '出入申请', keepAlive: true, hideTabBar: false, deep: 1 }
  416. },
  417. {
  418. path: '/visitAdd',
  419. name: 'visitAdd',
  420. component: () => import('@/views/menu/visitRegister/add.vue'),
  421. meta: { title: '录入介绍信', keepAlive: false, hideTabBar: true, deep: 2 }
  422. },
  423. {
  424. path: '/visitAddOutInRequset',
  425. name: 'visitAddOutInRequset',
  426. component: () => import('@/views/menu/visitRegister/addOutInRequest.vue'),
  427. meta: { title: '提交出入申请', keepAlive: false, hideTabBar: true, deep: 2 }
  428. },
  429. {
  430. path: '/visitDetail',
  431. name: 'visitDetail',
  432. component: () => import('@/views/menu/visitRegister/detail.vue'),
  433. meta: { title: '申请详情', keepAlive: false, hideTabBar: true, deep: 2 }
  434. },
  435. {
  436. path: '/visitCheck',
  437. name: 'visitCheck',
  438. component: () => import('@/views/menu/visitCheck/index.vue'),
  439. meta: { title: '出入审批', keepAlive: true, hideTabBar: false, deep: 1 }
  440. },
  441. {
  442. path: '/visitCheckDetail',
  443. name: 'visitCheckDetail',
  444. component: () => import('@/views/menu/visitCheck/detail.vue'),
  445. meta: { title: '审批详情', keepAlive: false, hideTabBar: true, deep: 2 }
  446. },
  447. {
  448. path: '/visitRecord',
  449. name: 'visitRecord',
  450. component: () => import('@/views/menu/visitRecord/index.vue'),
  451. meta: { title: '出入核验登记', keepAlive: true, hideTabBar: false, deep: 1 }
  452. },
  453. {
  454. path: '/visitRecordDetail',
  455. name: 'visitRecordDetail',
  456. component: () => import('@/views/menu/visitRecord/detail.vue'),
  457. meta: { title: '登记详情', keepAlive: false, hideTabBar: true, deep: 2 }
  458. },
  459. {
  460. path: '/visitUserRecord',
  461. name: 'visitUserRecord',
  462. component: () => import('@/views/menu/visitRecord/add.vue'),
  463. meta: { title: '人员登记', keepAlive: false, hideTabBar: true, deep: 2 }
  464. },
  465. {
  466. path: '/operate',
  467. name: 'operate',
  468. component: () => import('@/views/menu/operate/index.vue'),
  469. meta: { title: '操作手册', keepAlive: false, hideTabBar: true, deep: 2 }
  470. },
  471. {
  472. path: '/monitorStatistics',
  473. name: 'monitorStatistics',
  474. component: () => import('@/views/menu/monitorStatistics/index.vue'),
  475. meta: { title: '监控调阅情况表', keepAlive: false, hideTabBar: true, deep: 2 }
  476. },
  477. {
  478. path: '/resumptionStatistics',
  479. name: 'resumptionStatistics',
  480. component: () => import('@/views/menu/resumptionStatistics/index.vue'),
  481. meta: { title: '履职情况表', keepAlive: false, hideTabBar: true, deep: 2 }
  482. },
  483. {
  484. path: '/safeCheckStatistics',
  485. name: 'safeCheckStatistics',
  486. component: () => import('views/menu/safeCheckStatistics/index.vue'),
  487. meta: { title: '行社检查情况表', keepAlive: false, hideTabBar: true, deep: 2 }
  488. },
  489. {
  490. path: '/safeCheckSelfStatistics',
  491. name: 'safeCheckSelfStatistics',
  492. component: () => import('views/menu/safeCheckSelfStatistics/index.vue'),
  493. meta: { title: '网点自查情况表', keepAlive: false, hideTabBar: true, deep: 2 }
  494. }
  495. ,
  496. {
  497. path: '/work',
  498. name: 'work',
  499. component: () => import('views/menu/inspection/workInspection2.vue'),
  500. meta: { title: '一键上下班', keepAlive: false, hideTabBar: true, deep: 2 }
  501. },
  502. {
  503. path: '/workHistory',
  504. name: 'workHistory',
  505. component: () => import('@/views/menu/inspection/workHistory.vue'),
  506. meta: { title: '上下班记录', keepAlive: false }
  507. },
  508. {
  509. path: '/history',
  510. name: 'history',
  511. component: () => import('@/views/menu/inspection/history.vue'),
  512. meta: { title: '详情', keepAlive: false }
  513. }
  514. ,
  515. // {
  516. // path: '/addOrder',
  517. // name: 'addOrder',
  518. // component: () => import('@/views/menu/iot/add.vue'),
  519. // meta: { title: '生成运维单', keepAlive: false ,hideTabBar:true,deep: 2}
  520. // }
  521. ]
  522. }
  523. ]