index.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  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. path: 'firstPlan_t/:newId(\\d+)',
  355. component: (resolve) => require(['@/views/training/bccnew/firstplan/index_t.vue'], resolve),
  356. name: 'firstPlanT',
  357. meta: { title: '导师带徒装置级培训计划' }
  358. },
  359. ]
  360. },
  361. {
  362. path: '/production',
  363. component: Layout,
  364. hidden: true,
  365. children: [
  366. {
  367. path: 'accident',
  368. component: (resolve) => require(['@/views/production/accident/index'], resolve),
  369. name: 'Accident',
  370. meta: { title: '隐患排查' }
  371. }
  372. ]
  373. },
  374. {
  375. path: '/document',
  376. component: Layout,
  377. hidden: true,
  378. children: [
  379. {
  380. path: 'publicdocmenu',
  381. component: (resolve) => require(['@/views/document/publicdocmenu/index'], resolve),
  382. name: 'PublicDocMenu',
  383. meta: { title: '公共文档目录管理' }
  384. }
  385. ]
  386. },
  387. {
  388. path: '/system',
  389. component: Layout,
  390. hidden: true,
  391. children: [
  392. {
  393. path: 'alarmprincipal/:tableId(\\d+)',
  394. component: (resolve) => require(['@/views/system/principal/index'], resolve),
  395. name: 'AlarmPrincipal',
  396. meta: { title: '预警管理负责人配置' }
  397. }
  398. ]
  399. },
  400. {
  401. path: '/ehs',
  402. component: Layout,
  403. hidden: true,
  404. children: [
  405. {
  406. path: 'rcauditmenu',
  407. component: (resolve) => require(['@/views/ehs/rcauditmenu/index'], resolve),
  408. name: 'RcauditMenu',
  409. meta: { title: 'RC审计助手目录管理' }
  410. }
  411. ]
  412. },
  413. {
  414. path: '/ehs',
  415. component: Layout,
  416. hidden: true,
  417. children: [
  418. {
  419. path: 'environapproval',
  420. component: (resolve) => require(['@/views/ehs/environapproval/index'], resolve),
  421. name: 'Environapproval',
  422. meta: { title: '环保批文清单' }
  423. }
  424. ]
  425. },
  426. {
  427. path: '/ehs',
  428. component: Layout,
  429. hidden: true,
  430. children: [
  431. {
  432. path: 'fireapproval',
  433. component: (resolve) => require(['@/views/ehs/fireapproval/index'], resolve),
  434. name: 'Fireapproval',
  435. meta: { title: '消防批文清单' }
  436. }
  437. ]
  438. },
  439. {
  440. path: '/ehs',
  441. component: Layout,
  442. hidden: true,
  443. children: [
  444. {
  445. path: 'safetyapproval',
  446. component: (resolve) => require(['@/views/ehs/safetyapproval/index'], resolve),
  447. name: 'Safetyapproval',
  448. meta: { title: '安全批文清单' }
  449. }
  450. ]
  451. },
  452. {
  453. path: '/ehs',
  454. component: Layout,
  455. hidden: true,
  456. children: [
  457. {
  458. path: 'msds',
  459. component: (resolve) => require(['@/views/ehs/msds/index'], resolve),
  460. name: 'Msds',
  461. meta: { title: 'MSDS管理' }
  462. }
  463. ]
  464. },
  465. {
  466. path: '/ehs',
  467. component: Layout,
  468. hidden: true,
  469. children: [
  470. {
  471. path: 'fireextinguisher',
  472. component: (resolve) => require(['@/views/ehs/fireextinguisher/index'], resolve),
  473. name: 'Fireextinguisher',
  474. meta: { title: '灭火器' }
  475. }
  476. ]
  477. },
  478. {
  479. path: '/ehs',
  480. component: Layout,
  481. hidden: true,
  482. children: [
  483. {
  484. path: 'eyewasher',
  485. component: (resolve) => require(['@/views/ehs/eyewasher/index'], resolve),
  486. name: 'Eyewasher',
  487. meta: { title: '洗眼器' }
  488. }
  489. ]
  490. },
  491. {
  492. path: '/ehs',
  493. component: Layout,
  494. hidden: true,
  495. children: [
  496. {
  497. path: 'firehose',
  498. component: (resolve) => require(['@/views/ehs/firehose/index'], resolve),
  499. name: 'Firehose',
  500. meta: { title: '消防水带箱' }
  501. }
  502. ]
  503. },
  504. {
  505. path: '/ehs',
  506. component: Layout,
  507. hidden: true,
  508. children: [
  509. {
  510. path: 'firehydrant',
  511. component: (resolve) => require(['@/views/ehs/firehydrant/index'], resolve),
  512. name: 'Firehydrant',
  513. meta: { title: '消防栓' }
  514. }
  515. ]
  516. },
  517. {
  518. path: '/ehs',
  519. component: Layout,
  520. hidden: true,
  521. children: [
  522. {
  523. path: 'highpresfire',
  524. component: (resolve) => require(['@/views/ehs/highpresfire/index'], resolve),
  525. name: 'Highpresfire',
  526. meta: { title: '高压消防炮' }
  527. }
  528. ]
  529. },
  530. {
  531. path: '/ehs',
  532. component: Layout,
  533. hidden: true,
  534. children: [
  535. {
  536. path: 'autosprinkler',
  537. component: (resolve) => require(['@/views/ehs/autosprinkler/index'], resolve),
  538. name: 'Autosprinkler',
  539. meta: { title: '自动喷淋系统' }
  540. }
  541. ]
  542. },
  543. {
  544. path: '/ehs',
  545. component: Layout,
  546. hidden: true,
  547. children: [
  548. {
  549. path: 'firestandpipe',
  550. component: (resolve) => require(['@/views/ehs/firestandpipe/index'], resolve),
  551. name: 'Firestandpipe',
  552. meta: { title: '消防竖管' }
  553. }
  554. ]
  555. },
  556. {
  557. path: '/document',
  558. component: Layout,
  559. hidden: true,
  560. children: [
  561. {
  562. path: 'plantproglist',
  563. component: (resolve) => require(['@/views/document/plantproglist/index'], resolve),
  564. name: 'Plantproglist',
  565. meta: { title: '装置程序清单' }
  566. }
  567. ]
  568. },
  569. {
  570. path: '/plant',
  571. component: Layout,
  572. hidden: true,
  573. children: [
  574. {
  575. path: 'confInfo',
  576. component: (resolve) => require(['@/views/plant/confInfo/index'], resolve),
  577. name: 'ConfInfo',
  578. meta: { title: '会议预约信息' }
  579. }
  580. ]
  581. },
  582. {
  583. path: '/affair',
  584. component: Layout,
  585. hidden: true,
  586. children: [
  587. {
  588. path: 'ppe',
  589. component: (resolve) => require(['@/views/affair/ppe/index'], resolve),
  590. name: 'Ppe',
  591. meta: { title: 'PPE发放登记' }
  592. }
  593. ]
  594. },
  595. {
  596. path: '/training',
  597. component: Layout,
  598. hidden: true,
  599. children: [
  600. {
  601. path: 'workcertificate',
  602. component: (resolve) => require(['@/views/training/workcertificate/index'], resolve),
  603. name: 'Workcertificate',
  604. meta: { title: '作业证书一览表' }
  605. }
  606. ]
  607. },
  608. {
  609. path: '/training',
  610. component: Layout,
  611. hidden: true,
  612. children: [
  613. {
  614. path: 'worklicense',
  615. component: (resolve) => require(['@/views/training/worklicense/index'], resolve),
  616. name: 'Worklicense',
  617. meta: { title: '上岗证一览表' }
  618. }
  619. ]
  620. },
  621. {
  622. path: '/training',
  623. component: Layout,
  624. hidden: true,
  625. children: [
  626. {
  627. path: 'deviceList/:id',
  628. component: (resolve) => require(['@/views/training/trainingbcc/deviceList'], resolve),
  629. name: 'deviceList',
  630. meta: { title: '装置培训详情' }
  631. }
  632. ]
  633. },
  634. {
  635. path: '/training/elearn',
  636. component: Layout,
  637. hidden: true,
  638. children: [
  639. {
  640. path: 'exam/prepare/:examId',
  641. component: () => import('@/views/training/elearn/paper/preview'),
  642. name: 'PreExam',
  643. meta: { title: '准备考试', noCache: true },
  644. hidden: true
  645. },{
  646. path: 'paper/:examId',
  647. component: () => import('@/views/training/elearn/paper/list'),
  648. name: 'paper',
  649. meta: { title: '在线考试', noCache: true },
  650. hidden: true
  651. },{
  652. path: 'exam/start/:paperId',
  653. component: () => import('@/views/training/elearn/paper/exam'),
  654. name: 'StartExam',
  655. meta: { title: '开始考试', noCache: true },
  656. hidden: true
  657. },
  658. {
  659. path: 'exam/result/:paperId',
  660. component: () => import('@/views/training/elearn/paper/result'),
  661. name: 'ShowExam',
  662. meta: { title: '考试结果', noCache: true },
  663. hidden: true
  664. },
  665. {
  666. path: 'userBook/training',
  667. component: () => import('@/views/training/elearn/userBook/train'),
  668. name: 'BookTraining',
  669. meta: { title: '错题训练', noCache: true },
  670. hidden: true
  671. },
  672. {
  673. path: 'repo/training/:repoId',
  674. component: () => import('@/views/training/elearn/userQu/train'),
  675. name: 'RepoTraining',
  676. meta: { title: '题库训练', noCache: true },
  677. hidden: true
  678. },
  679. {
  680. path: 'userQu/users/:examId',
  681. component: () => import('@/views/training/elearn/userExam/userList'),
  682. name: 'ListExamUser',
  683. meta: { title: '考试人员', noCache: true },
  684. hidden: true
  685. },
  686. ]
  687. },
  688. {
  689. path: '/reliability',
  690. component: Layout,
  691. hidden: true,
  692. children: [
  693. {
  694. path: 'safetyvavle',
  695. component: (resolve) => require(['@/views/reliability/safetyvavle/index'], resolve),
  696. name: 'Safetyvavle',
  697. meta: { title: '安全阀清单' }
  698. }
  699. ]
  700. },
  701. {
  702. path: '/reliability',
  703. component: Layout,
  704. hidden: true,
  705. children: [
  706. {
  707. path: 'pipe',
  708. component: (resolve) => require(['@/views/cui/pipe/index'], resolve),
  709. name: 'Pipe',
  710. meta: { title: '管线清单' }
  711. }
  712. ]
  713. },
  714. {
  715. path: '/list',
  716. component: Layout,
  717. hidden: true,
  718. children: [
  719. {
  720. path: 'list',
  721. component: (resolve) => require(['@/views/reliability/list/index'], resolve),
  722. name: 'List',
  723. meta: { title: '故障管理跟踪' }
  724. }
  725. ]
  726. },
  727. {
  728. path: '/safetyapproval',
  729. component: Layout,
  730. hidden: true,
  731. children: [
  732. {
  733. path: 'edit/:tableId(\\d+)',
  734. component: (resolve) => require(['@/views/ehs/safetyapprcont/index'], resolve),
  735. name: 'Safetyapprcont',
  736. meta: { title: '主要内容' }
  737. }
  738. ]
  739. },
  740. {
  741. path: '/environapproval',
  742. component: Layout,
  743. hidden: true,
  744. children: [
  745. {
  746. path: 'edit/:tableId(\\d+)',
  747. component: (resolve) => require(['@/views/ehs/environapprcont/index'], resolve),
  748. name: 'Environapprcont',
  749. meta: { title: '主要内容' }
  750. }
  751. ]
  752. },
  753. {
  754. path: '/hismeeting',
  755. component: Layout,
  756. hidden: true,
  757. children: [
  758. {
  759. path: 'edit/:tableId(\\d+)',
  760. component: (resolve) => require(['@/views/plant/weekmeeting/index'], resolve),
  761. name: 'hismeeting',
  762. meta: { title: '主要内容' }
  763. }
  764. ]
  765. },
  766. {
  767. path: '/notice',
  768. component: Layout,
  769. hidden: true,
  770. children: [
  771. {
  772. path: 'details',
  773. component: (resolve) => require(['@/views/system/notice/index.vue'], resolve),
  774. name: 'details',
  775. meta: { title: '通知公告' }
  776. }
  777. ]
  778. },
  779. {
  780. path: '/model',
  781. component: Layout,
  782. hidden: true,
  783. children: [
  784. {
  785. path: 'pfd',
  786. component: (resolve) => require(['@/views/monitor/pfd/index.vue'], resolve),
  787. name: 'pfd',
  788. meta: { title: 'pfd流程' }
  789. },
  790. {
  791. path: '/pfd/jlq',
  792. component: (resolve) => require(['@/views/monitor/pfd/JLQPage.vue'], resolve),
  793. name: 'jlq',
  794. meta: { title: '急冷区' }
  795. },
  796. {
  797. path: '/pfd/c2c3',
  798. component: (resolve) => require(['@/views/monitor/pfd/C2C3Page.vue'], resolve),
  799. name: 'c2c3',
  800. meta: { title: 'C2C3' }
  801. }
  802. ]
  803. },
  804. //生产运行子页面
  805. {
  806. path: '/materialChild1',
  807. component: (resolve) => require(['@/views/monitor/materialChild/materialChild1.vue'], resolve),
  808. name: 'materialChild1',
  809. hidden: true,
  810. meta: { title: '工艺流程图' }
  811. },
  812. {
  813. path: '/materialChild2',
  814. component: (resolve) => require(['@/views/monitor/materialChild/materialChild2.vue'], resolve),
  815. name: 'materialChild2',
  816. hidden: true,
  817. meta: { title: '工艺流程图' }
  818. },
  819. // 2023-02 首页重构
  820. {
  821. path: '/BCCdashboardNew',
  822. component: (resolve) => require(['@/views/monitor/bccHome'], resolve),
  823. hidden: true
  824. },
  825. ]
  826. export default new Router({
  827. base: '/cpms/',
  828. mode: 'hash', // 去掉url中的#
  829. scrollBehavior: () => ({ y: 0 }),
  830. routes: constantRoutes
  831. })