index.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. /* Layout */
  5. import Layout from '@/layout'
  6. /**
  7. * Note: 路由配置项
  8. *
  9. * hidden: true // 当设置 true 的时候该路由不会再侧边栏出现 如401,login等页面,或者如一些编辑页面/edit/1
  10. * alwaysShow: true // 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面
  11. * // 只有一个时,会将那个子路由当做根路由显示在侧边栏--如引导页面
  12. * // 若你想不管路由下面的 children 声明的个数都显示你的根路由
  13. * // 你可以设置 alwaysShow: true,这样它就会忽略之前定义的规则,一直显示根路由
  14. * redirect: noRedirect // 当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
  15. * name:'router-name' // 设定路由的名字,一定要填写不然使用<keep-alive>时会出现各种问题
  16. * meta : {
  17. noCache: true // 如果设置为true,则不会被 <keep-alive> 缓存(默认 false)
  18. title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
  19. icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
  20. breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
  21. }
  22. */
  23. // 公共路由
  24. export const constantRoutes = [
  25. {
  26. path: '*',
  27. component: (resolve) => require(['@/views/error/404.vue'], resolve)
  28. },
  29. {
  30. path: '/redirect',
  31. component: Layout,
  32. hidden: true,
  33. children: [
  34. {
  35. path: '/redirect/:path(.*)',
  36. component: (resolve) => require(['@/views/redirect'], resolve)
  37. }
  38. ]
  39. },
  40. {
  41. path: '/login',
  42. component: (resolve) => require(['@/views/login'], resolve),
  43. hidden: true
  44. },
  45. {
  46. path: '/socialLogin',
  47. component: (resolve) => require(['@/views/socialLogin'], resolve),
  48. hidden: true
  49. },
  50. {
  51. path: '/azureLogin',
  52. component: (resolve) => require(['@/views/azureLogin'], resolve),
  53. hidden: true
  54. },
  55. {
  56. path: '/404',
  57. component: (resolve) => require(['@/views/error/404'], resolve),
  58. hidden: true
  59. },
  60. {
  61. path: '/401',
  62. component: (resolve) => require(['@/views/error/401'], resolve),
  63. hidden: true
  64. },
  65. {
  66. path: '/BCCdashboard',
  67. component: (resolve) => require(['@/views/monitor/elec/index'], resolve),
  68. hidden: true
  69. },
  70. {
  71. path: '/pptyulan',
  72. name: 'pptyulan',
  73. component: (resolve) => require(['@/views/components/yulan/index'], resolve),
  74. hidden: true
  75. },
  76. {
  77. path: '/elecDashboard',
  78. component: (resolve) => require(['@/views/monitor/elec/elecindex'], resolve),
  79. hidden: true
  80. },
  81. {
  82. path: '',
  83. component: Layout,
  84. redirect: 'index',
  85. children: [
  86. {
  87. path: 'index',
  88. component: (resolve) => require(['@/views/index'], resolve),
  89. name: '首页',
  90. meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
  91. }
  92. ]
  93. },
  94. {
  95. path: '/user',
  96. component: Layout,
  97. hidden: true,
  98. redirect: 'noredirect',
  99. children: [
  100. {
  101. path: 'profile',
  102. component: (resolve) => require(['@/views/system/user/profile/index'], resolve),
  103. name: 'Profile',
  104. meta: { title: '个人中心', icon: 'user' }
  105. }
  106. ]
  107. },
  108. {
  109. path: '/system',
  110. component: Layout,
  111. hidden: true,
  112. redirect: 'noredirect',
  113. children: [
  114. {
  115. path: 'message',
  116. component: (resolve) => require(['@/views/system/message/index'], resolve),
  117. name: 'Profile',
  118. meta: { title: '系统消息', icon: '' }
  119. }
  120. ]
  121. },
  122. {
  123. path: '/process',
  124. component: Layout,
  125. hidden: true,
  126. redirect: 'noredirect',
  127. children: [
  128. {
  129. path: 'pfd',
  130. component: (resolve) => require(['@/views/process/pfd/index'], resolve),
  131. name: 'Profile',
  132. meta: { title: 'pfd', icon: '' }
  133. }
  134. ]
  135. },
  136. {
  137. path: '/dict',
  138. component: Layout,
  139. hidden: true,
  140. children: [
  141. {
  142. path: 'type/data/:dictId(\\d+)',
  143. component: (resolve) => require(['@/views/system/dict/data'], resolve),
  144. name: 'Data',
  145. meta: { title: '字典数据', icon: '' }
  146. }
  147. ]
  148. },
  149. {
  150. path: '/ehs',
  151. component: Layout,
  152. hidden: true,
  153. alwaysShow: true,
  154. children: [
  155. {
  156. path: 'rcaudit',
  157. component: (resolve) => require(['@/views/ehs/rcaudit/index'], resolve),
  158. name: 'Rcaudit',
  159. meta: {
  160. title: 'RC审计助手',
  161. keepAlive: true,
  162. scrollTop: 0,
  163. }
  164. }
  165. ]
  166. },
  167. {
  168. path: '/job',
  169. component: Layout,
  170. hidden: true,
  171. children: [
  172. {
  173. path: 'log',
  174. component: (resolve) => require(['@/views/monitor/job/log'], resolve),
  175. name: 'JobLog',
  176. meta: { title: '调度日志' }
  177. }
  178. ]
  179. },
  180. {
  181. path: '/gen',
  182. component: Layout,
  183. hidden: true,
  184. children: [
  185. {
  186. path: 'edit/:tableId(\\d+)',
  187. component: (resolve) => require(['@/views/tool/gen/editTable'], resolve),
  188. name: 'GenEdit',
  189. meta: { title: '修改生成配置' }
  190. }
  191. ]
  192. },
  193. {
  194. path: '/ehs',
  195. component: Layout,
  196. hidden: true,
  197. children: [
  198. {
  199. path: 'rcfile/:id(\\d+)',
  200. component: (resolve) => require(['@/views/ehs/rcfile'], resolve),
  201. name: 'rcfile',
  202. meta: { title: '附件' }
  203. }
  204. ]
  205. },
  206. {
  207. path: '/plant/meeting',
  208. component: Layout,
  209. hidden: true,
  210. children: [
  211. {
  212. path: 'detail/:id(\\d+)',
  213. component: (resolve) => require(['@/views/plant/dailyMeeting/detail'], resolve),
  214. name: 'dailyMeetingDetail',
  215. meta: { title: '调度会议详情'}
  216. },
  217. {
  218. path: 'dailyMeetingConfig',
  219. component: (resolve) => require(['@/views/plant/dailyMeetingConfig'], resolve),
  220. name: 'dailyMeetingConfig',
  221. meta: { title: '调度会议配置' }
  222. },
  223. {
  224. path: 'dailyMeetingEmail',
  225. component: (resolve) => require(['@/views/plant/dailyMeetingEmail'], resolve),
  226. name: 'dailyMeetingEmail',
  227. meta: { title: '邮件配置' }
  228. }
  229. ]
  230. },
  231. {
  232. path: '/plant',
  233. component: Layout,
  234. hidden: true,
  235. children: [
  236. {
  237. path: 'confInfoList',
  238. component: (resolve) => require(['@/views/plant/confInfo/list'], resolve),
  239. name: 'confInfoList',
  240. meta: { title: '会议预约记录'}
  241. },
  242. ]
  243. },
  244. {
  245. path: '/production',
  246. component: Layout,
  247. hidden: true,
  248. children: [
  249. {
  250. path: 'quality/report/:sampleDate',
  251. component: (resolve) => require(['@/views/production/quality/report'], resolve),
  252. name: 'report',
  253. meta: { title: '生成报告' }
  254. },
  255. {
  256. path: 'quality/history',
  257. component: (resolve) => require(['@/views/production/quality/history'], resolve),
  258. name: 'history',
  259. meta: { title: '历史报告查看' }
  260. },
  261. {
  262. path: 'matrix',
  263. component: (resolve) => require(['@/views/production/matrix'], resolve),
  264. name: 'matrix',
  265. meta: { title: 'PPE矩阵管理' }
  266. },
  267. {
  268. path: '/training/records',
  269. component: (resolve) => require(['@/views/training/records'], resolve),
  270. name: 'records',
  271. meta: { title: '装置级培训记录' }
  272. },
  273. {
  274. path: '/trainingbcc/records',
  275. component: (resolve) => require(['@/views/training/trainingbcc/record'], resolve),
  276. name: 'bccRecords',
  277. meta: { title: '装置培训记录' }
  278. },
  279. {
  280. path: '/trainingrecords/companyRecords',
  281. component: (resolve) => require(['@/views/training/trainingrecords/companyRecrods.vue'], resolve),
  282. name: 'companyRecords',
  283. meta: { title: '公司级培训记录' }
  284. }
  285. ]
  286. },
  287. {
  288. path: '/training/spec',
  289. component: Layout,
  290. hidden: true,
  291. children: [
  292. {
  293. path: 'successorPlan/:staffId(\\d+)',
  294. component: (resolve) => require(['@/views/training/spec/successor/successorPlan'], resolve),
  295. name: 'SuccessorPlan',
  296. meta: { title: '培训计划清单' }
  297. },
  298. {
  299. path: 'monthdata/:staffId(\\d+)',
  300. component: (resolve) => require(['@/views/training/spec/successor/monthdata'], resolve),
  301. name: 'monthdata',
  302. meta: { title: '月度数据' }
  303. },
  304. {
  305. path: 'seasondata/:staffId(\\d+)',
  306. component: (resolve) => require(['@/views/training/spec/successor/seasondata'], resolve),
  307. name: 'seasondata',
  308. meta: { title: '季度数据' }
  309. }
  310. ]
  311. },
  312. {
  313. path: '/training/spec',
  314. component: Layout,
  315. hidden: true,
  316. children: [
  317. {
  318. path: 'planItem/:yearId(\\d+)',
  319. component: (resolve) => require(['@/views/training/spec/plan/index'], resolve),
  320. name: 'PlanItem',
  321. meta: { title: '培训计划明细' }
  322. }
  323. ]
  324. },
  325. {
  326. path: '/training/newstaff',
  327. component: Layout,
  328. hidden: true,
  329. children: [
  330. {
  331. path: 'planList/:newId(\\d+)',
  332. component: (resolve) => require(['@/views/training/newstaff/planList'], resolve),
  333. name: 'planList',
  334. meta: { title: '新员工培训计划' }
  335. },
  336. ]
  337. },
  338. {
  339. path: '/training/bccnew',
  340. component: Layout,
  341. hidden: true,
  342. children: [
  343. {
  344. path: 'trainingPlan/:newId(\\d+)',
  345. component: (resolve) => require(['@/views/training/bccnew/tsnew/trainingPlan.vue'], resolve),
  346. name: 'trainingPlan',
  347. meta: { title: '导师带徒培训计划' }
  348. },{
  349. path: 'trainingPlan_s/:newId(\\d+)',
  350. component: (resolve) => require(['@/views/training/bccnew/tsnew/trainingPlan_student.vue'], resolve),
  351. name: 'trainingPlans',
  352. meta: { title: '导师带徒培训计划' }
  353. },
  354. ]
  355. },
  356. {
  357. path: '/production',
  358. component: Layout,
  359. hidden: true,
  360. children: [
  361. {
  362. path: 'accident',
  363. component: (resolve) => require(['@/views/production/accident/index'], resolve),
  364. name: 'Accident',
  365. meta: { title: '隐患排查' }
  366. }
  367. ]
  368. },
  369. {
  370. path: '/document',
  371. component: Layout,
  372. hidden: true,
  373. children: [
  374. {
  375. path: 'publicdocmenu',
  376. component: (resolve) => require(['@/views/document/publicdocmenu/index'], resolve),
  377. name: 'PublicDocMenu',
  378. meta: { title: '公共文档目录管理' }
  379. }
  380. ]
  381. },
  382. {
  383. path: '/system',
  384. component: Layout,
  385. hidden: true,
  386. children: [
  387. {
  388. path: 'alarmprincipal/:tableId(\\d+)',
  389. component: (resolve) => require(['@/views/system/principal/index'], resolve),
  390. name: 'AlarmPrincipal',
  391. meta: { title: '预警管理负责人配置' }
  392. }
  393. ]
  394. },
  395. {
  396. path: '/ehs',
  397. component: Layout,
  398. hidden: true,
  399. children: [
  400. {
  401. path: 'rcauditmenu',
  402. component: (resolve) => require(['@/views/ehs/rcauditmenu/index'], resolve),
  403. name: 'RcauditMenu',
  404. meta: { title: 'RC审计助手目录管理' }
  405. }
  406. ]
  407. },
  408. {
  409. path: '/ehs',
  410. component: Layout,
  411. hidden: true,
  412. children: [
  413. {
  414. path: 'environapproval',
  415. component: (resolve) => require(['@/views/ehs/environapproval/index'], resolve),
  416. name: 'Environapproval',
  417. meta: { title: '环保批文清单' }
  418. }
  419. ]
  420. },
  421. {
  422. path: '/ehs',
  423. component: Layout,
  424. hidden: true,
  425. children: [
  426. {
  427. path: 'fireapproval',
  428. component: (resolve) => require(['@/views/ehs/fireapproval/index'], resolve),
  429. name: 'Fireapproval',
  430. meta: { title: '消防批文清单' }
  431. }
  432. ]
  433. },
  434. {
  435. path: '/ehs',
  436. component: Layout,
  437. hidden: true,
  438. children: [
  439. {
  440. path: 'safetyapproval',
  441. component: (resolve) => require(['@/views/ehs/safetyapproval/index'], resolve),
  442. name: 'Safetyapproval',
  443. meta: { title: '安全批文清单' }
  444. }
  445. ]
  446. },
  447. {
  448. path: '/ehs',
  449. component: Layout,
  450. hidden: true,
  451. children: [
  452. {
  453. path: 'msds',
  454. component: (resolve) => require(['@/views/ehs/msds/index'], resolve),
  455. name: 'Msds',
  456. meta: { title: 'MSDS管理' }
  457. }
  458. ]
  459. },
  460. {
  461. path: '/ehs',
  462. component: Layout,
  463. hidden: true,
  464. children: [
  465. {
  466. path: 'fireextinguisher',
  467. component: (resolve) => require(['@/views/ehs/fireextinguisher/index'], resolve),
  468. name: 'Fireextinguisher',
  469. meta: { title: '灭火器' }
  470. }
  471. ]
  472. },
  473. {
  474. path: '/ehs',
  475. component: Layout,
  476. hidden: true,
  477. children: [
  478. {
  479. path: 'eyewasher',
  480. component: (resolve) => require(['@/views/ehs/eyewasher/index'], resolve),
  481. name: 'Eyewasher',
  482. meta: { title: '洗眼器' }
  483. }
  484. ]
  485. },
  486. {
  487. path: '/ehs',
  488. component: Layout,
  489. hidden: true,
  490. children: [
  491. {
  492. path: 'firehose',
  493. component: (resolve) => require(['@/views/ehs/firehose/index'], resolve),
  494. name: 'Firehose',
  495. meta: { title: '消防水带箱' }
  496. }
  497. ]
  498. },
  499. {
  500. path: '/ehs',
  501. component: Layout,
  502. hidden: true,
  503. children: [
  504. {
  505. path: 'firehydrant',
  506. component: (resolve) => require(['@/views/ehs/firehydrant/index'], resolve),
  507. name: 'Firehydrant',
  508. meta: { title: '消防栓' }
  509. }
  510. ]
  511. },
  512. {
  513. path: '/ehs',
  514. component: Layout,
  515. hidden: true,
  516. children: [
  517. {
  518. path: 'highpresfire',
  519. component: (resolve) => require(['@/views/ehs/highpresfire/index'], resolve),
  520. name: 'Highpresfire',
  521. meta: { title: '高压消防炮' }
  522. }
  523. ]
  524. },
  525. {
  526. path: '/ehs',
  527. component: Layout,
  528. hidden: true,
  529. children: [
  530. {
  531. path: 'autosprinkler',
  532. component: (resolve) => require(['@/views/ehs/autosprinkler/index'], resolve),
  533. name: 'Autosprinkler',
  534. meta: { title: '自动喷淋系统' }
  535. }
  536. ]
  537. },
  538. {
  539. path: '/ehs',
  540. component: Layout,
  541. hidden: true,
  542. children: [
  543. {
  544. path: 'firestandpipe',
  545. component: (resolve) => require(['@/views/ehs/firestandpipe/index'], resolve),
  546. name: 'Firestandpipe',
  547. meta: { title: '消防竖管' }
  548. }
  549. ]
  550. },
  551. {
  552. path: '/document',
  553. component: Layout,
  554. hidden: true,
  555. children: [
  556. {
  557. path: 'plantproglist',
  558. component: (resolve) => require(['@/views/document/plantproglist/index'], resolve),
  559. name: 'Plantproglist',
  560. meta: { title: '装置程序清单' }
  561. }
  562. ]
  563. },
  564. {
  565. path: '/plant',
  566. component: Layout,
  567. hidden: true,
  568. children: [
  569. {
  570. path: 'confInfo',
  571. component: (resolve) => require(['@/views/plant/confInfo/index'], resolve),
  572. name: 'ConfInfo',
  573. meta: { title: '会议预约信息' }
  574. }
  575. ]
  576. },
  577. {
  578. path: '/affair',
  579. component: Layout,
  580. hidden: true,
  581. children: [
  582. {
  583. path: 'ppe',
  584. component: (resolve) => require(['@/views/affair/ppe/index'], resolve),
  585. name: 'Ppe',
  586. meta: { title: 'PPE发放登记' }
  587. }
  588. ]
  589. },
  590. {
  591. path: '/training',
  592. component: Layout,
  593. hidden: true,
  594. children: [
  595. {
  596. path: 'workcertificate',
  597. component: (resolve) => require(['@/views/training/workcertificate/index'], resolve),
  598. name: 'Workcertificate',
  599. meta: { title: '作业证书一览表' }
  600. }
  601. ]
  602. },
  603. {
  604. path: '/training',
  605. component: Layout,
  606. hidden: true,
  607. children: [
  608. {
  609. path: 'worklicense',
  610. component: (resolve) => require(['@/views/training/worklicense/index'], resolve),
  611. name: 'Worklicense',
  612. meta: { title: '上岗证一览表' }
  613. }
  614. ]
  615. },
  616. {
  617. path: '/training',
  618. component: Layout,
  619. hidden: true,
  620. children: [
  621. {
  622. path: 'deviceList/:id',
  623. component: (resolve) => require(['@/views/training/trainingbcc/deviceList'], resolve),
  624. name: 'deviceList',
  625. meta: { title: '装置培训详情' }
  626. }
  627. ]
  628. },
  629. {
  630. path: '/training/elearn',
  631. component: Layout,
  632. hidden: true,
  633. children: [
  634. {
  635. path: 'exam/prepare/:examId',
  636. component: () => import('@/views/training/elearn/paper/preview'),
  637. name: 'PreExam',
  638. meta: { title: '准备考试', noCache: true },
  639. hidden: true
  640. },{
  641. path: 'paper/:examId',
  642. component: () => import('@/views/training/elearn/paper/list'),
  643. name: 'paper',
  644. meta: { title: '在线考试', noCache: true },
  645. hidden: true
  646. },{
  647. path: 'exam/start/:paperId',
  648. component: () => import('@/views/training/elearn/paper/exam'),
  649. name: 'StartExam',
  650. meta: { title: '开始考试', noCache: true },
  651. hidden: true
  652. },
  653. {
  654. path: 'exam/result/:paperId',
  655. component: () => import('@/views/training/elearn/paper/result'),
  656. name: 'ShowExam',
  657. meta: { title: '考试结果', noCache: true },
  658. hidden: true
  659. },
  660. {
  661. path: 'userBook/training',
  662. component: () => import('@/views/training/elearn/userBook/train'),
  663. name: 'BookTraining',
  664. meta: { title: '错题训练', noCache: true },
  665. hidden: true
  666. },
  667. {
  668. path: 'repo/training/:repoId',
  669. component: () => import('@/views/training/elearn/userQu/train'),
  670. name: 'RepoTraining',
  671. meta: { title: '题库训练', noCache: true },
  672. hidden: true
  673. },
  674. {
  675. path: 'userQu/users/:examId',
  676. component: () => import('@/views/training/elearn/userExam/userList'),
  677. name: 'ListExamUser',
  678. meta: { title: '考试人员', noCache: true },
  679. hidden: true
  680. },
  681. ]
  682. },
  683. {
  684. path: '/reliability',
  685. component: Layout,
  686. hidden: true,
  687. children: [
  688. {
  689. path: 'safetyvavle',
  690. component: (resolve) => require(['@/views/reliability/safetyvavle/index'], resolve),
  691. name: 'Safetyvavle',
  692. meta: { title: '安全阀清单' }
  693. }
  694. ]
  695. },
  696. {
  697. path: '/reliability',
  698. component: Layout,
  699. hidden: true,
  700. children: [
  701. {
  702. path: 'pipe',
  703. component: (resolve) => require(['@/views/cui/pipe/index'], resolve),
  704. name: 'Pipe',
  705. meta: { title: '管线清单' }
  706. }
  707. ]
  708. },
  709. {
  710. path: '/list',
  711. component: Layout,
  712. hidden: true,
  713. children: [
  714. {
  715. path: 'list',
  716. component: (resolve) => require(['@/views/reliability/list/index'], resolve),
  717. name: 'List',
  718. meta: { title: '故障管理跟踪' }
  719. }
  720. ]
  721. },
  722. {
  723. path: '/safetyapproval',
  724. component: Layout,
  725. hidden: true,
  726. children: [
  727. {
  728. path: 'edit/:tableId(\\d+)',
  729. component: (resolve) => require(['@/views/ehs/safetyapprcont/index'], resolve),
  730. name: 'Safetyapprcont',
  731. meta: { title: '主要内容' }
  732. }
  733. ]
  734. },
  735. {
  736. path: '/environapproval',
  737. component: Layout,
  738. hidden: true,
  739. children: [
  740. {
  741. path: 'edit/:tableId(\\d+)',
  742. component: (resolve) => require(['@/views/ehs/environapprcont/index'], resolve),
  743. name: 'Environapprcont',
  744. meta: { title: '主要内容' }
  745. }
  746. ]
  747. },
  748. {
  749. path: '/hismeeting',
  750. component: Layout,
  751. hidden: true,
  752. children: [
  753. {
  754. path: 'edit/:tableId(\\d+)',
  755. component: (resolve) => require(['@/views/plant/weekmeeting/index'], resolve),
  756. name: 'hismeeting',
  757. meta: { title: '主要内容' }
  758. }
  759. ]
  760. },
  761. {
  762. path: '/notice',
  763. component: Layout,
  764. hidden: true,
  765. children: [
  766. {
  767. path: 'details',
  768. component: (resolve) => require(['@/views/system/notice/index.vue'], resolve),
  769. name: 'details',
  770. meta: { title: '通知公告' }
  771. }
  772. ]
  773. },
  774. {
  775. path: '/model',
  776. component: Layout,
  777. hidden: true,
  778. children: [
  779. {
  780. path: 'pfd',
  781. component: (resolve) => require(['@/views/monitor/pfd/index.vue'], resolve),
  782. name: 'pfd',
  783. meta: { title: 'pfd流程' }
  784. },
  785. {
  786. path: '/pfd/jlq',
  787. component: (resolve) => require(['@/views/monitor/pfd/JLQPage.vue'], resolve),
  788. name: 'jlq',
  789. meta: { title: '急冷区' }
  790. },
  791. {
  792. path: '/pfd/c2c3',
  793. component: (resolve) => require(['@/views/monitor/pfd/C2C3Page.vue'], resolve),
  794. name: 'c2c3',
  795. meta: { title: 'C2C3' }
  796. }
  797. ]
  798. },
  799. //生产运行子页面
  800. {
  801. path: '/materialChild1',
  802. component: (resolve) => require(['@/views/monitor/materialChild/materialChild1.vue'], resolve),
  803. name: 'materialChild1',
  804. hidden: true,
  805. meta: { title: '工艺流程图' }
  806. },
  807. {
  808. path: '/materialChild2',
  809. component: (resolve) => require(['@/views/monitor/materialChild/materialChild2.vue'], resolve),
  810. name: 'materialChild2',
  811. hidden: true,
  812. meta: { title: '工艺流程图' }
  813. },
  814. // 2023-02 首页重构
  815. {
  816. path: '/BCCdashboardNew',
  817. component: (resolve) => require(['@/views/monitor/bccHome'], resolve),
  818. hidden: true
  819. },
  820. ]
  821. export default new Router({
  822. base: '/cpms/',
  823. mode: 'hash', // 去掉url中的#
  824. scrollBehavior: () => ({ y: 0 }),
  825. routes: constantRoutes
  826. })