system.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. import { logicConfig } from "@/logicConfig";
  2. import layoutMain from "@/Main.vue";
  3. //登录页
  4. import login from "@/components/frame/login.vue";
  5. //系统图
  6. import systemGraph from "@/components/systemGraph";
  7. //系统图编辑页面
  8. import systemGraphEdit from "@/components/systemGraph/edit";
  9. import facilityLedger from "@/components/old-adm/ledger/facility/index";
  10. import deviceDetails from "@/components/old-adm/ledger/facility/details/index";
  11. import deviceadd from '@/components/old-adm/ledger/facility/addfacility'
  12. // 系统台账
  13. import systemLedger from '@/components/old-adm/ledger/system/index';
  14. import systemadd from '@/components/old-adm/ledger/system/addsystem'
  15. import batchPointAssets from '@/components/old-adm/ledger/facility/batchPoint' //批量维护设备位置
  16. import buildFloor from '@/components/old-adm/ready/buildfloor/index'
  17. import repetitionGraphy from '@/components/old-adm/ready/buildfloor/repetitionGraphy'
  18. // 全部关系总览
  19. import overView from '@/components/old-adm/relation/overview'
  20. //cad核查图纸管理
  21. import cadDrawingManage from '@/components/cadDrawingManage'
  22. // 项目信息管理
  23. import projectManage from '@/components/project-manage/index'
  24. export default [
  25. {
  26. path: logicConfig.routerNameConfig.loginRouteName,
  27. name: "登录页",
  28. component: login,
  29. },
  30. {
  31. path: "/",
  32. name: "首页",
  33. component: layoutMain,
  34. },
  35. {
  36. path: logicConfig.routerNameConfig.systemGraphName,
  37. name: "系统图",
  38. component: layoutMain,
  39. children: [
  40. {
  41. path: "/",
  42. component: systemGraph,
  43. },
  44. {
  45. path: '/ready/buildfloor',
  46. name: 'buildFloor',
  47. component: buildFloor,
  48. meta: {keepAlive: false, breadcrumbs: [{label: '建筑楼层管理'}]}
  49. },
  50. {
  51. path: 'repetitionGraphy',
  52. name: 'repetitionGraphy',
  53. component: repetitionGraphy,
  54. meta: {keepAlive: false, breadcrumbs: [{label: '建筑楼层管理', path: '/ready/buildfloor'}, {label: '平面图维护'}]}
  55. },
  56. {
  57. path: "/ledger/facility",
  58. name: "facilityLedger",
  59. component: facilityLedger,
  60. meta: {keepAlive: true, isBack: false, breadcrumbs: [{label: '台账管理', path: '/ledger/facility'}, {label: '设备台账'}]}
  61. },
  62. {
  63. path: '/ledger/batchPointAssets',
  64. name: 'BatchPointAssets',
  65. component: batchPointAssets,
  66. meta: {keepAlive: false,
  67. breadcrumbs: [{label: '台账管理', path: '/ledger/facility'}, {
  68. label: '设备台账',
  69. path: '/ledger/facility'
  70. }, {label: '批量维护设备位置'}]
  71. }
  72. },
  73. {
  74. path: '/ledger/deviceadd',
  75. name: 'deviceadd',
  76. component: deviceadd,
  77. meta: {
  78. keepAlive: false,
  79. breadcrumbs: [{label: '台账管理', path: '/ledger/facility'}, {
  80. label: '设备台账',
  81. path: '/ledger/facility'
  82. }, {label: '添加设备'}]
  83. }
  84. },
  85. {
  86. path: '/ledger/deviceDetails',
  87. name: 'deviceDetails',
  88. component: deviceDetails,
  89. meta: {
  90. keepAlive: false,
  91. breadcrumbs: [
  92. {label: '台账管理', path: '/ledger/facility'},
  93. {label: '设备台账', path: '/ledger/facility'},
  94. {label: '台账详情'}
  95. ]
  96. }
  97. },
  98. {
  99. path: "/project/manage",
  100. name: "项目信息管理",
  101. component: projectManage,
  102. },
  103. {
  104. path: "/ledger/list",
  105. name: "系统台账",
  106. component: systemLedger,
  107. },
  108. {
  109. path: '/ledger/systemadd',
  110. name: 'systemadd',
  111. component: systemadd,
  112. meta: {
  113. keepAlive: false,
  114. breadcrumbs: [{label: '台账管理', path: '/ledger/facility'}, {
  115. label: '系统台账',
  116. path: '/ledger/list'
  117. }, {label: '添加系统'}]
  118. }
  119. },
  120. {
  121. path: '/relation/overview',
  122. name: "全部关系总览",
  123. component: overView,
  124. },
  125. ],
  126. },
  127. {
  128. path: logicConfig.routerNameConfig.systemGraphEditName,
  129. name: "系统图编辑器",
  130. component: systemGraphEdit,
  131. },
  132. {
  133. path: '/deliveryTools',
  134. name: '现场交付工具',
  135. component: layoutMain,
  136. children: [
  137. {
  138. path: logicConfig.routerNameConfig.cadDrawingManageRoute,
  139. name: 'CAD核查图纸管理',
  140. component: cadDrawingManage
  141. }
  142. ]
  143. }
  144. ];