index.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. import Home from '../views/Home/Home.vue'
  3. const routes = [
  4. {
  5. path: '/',
  6. redirect: '/monitor/home'
  7. },
  8. {
  9. path: '/monitor/home', // 驾驶舱
  10. name: 'Home',
  11. component: Home,
  12. },
  13. {
  14. path: '/monitor/about',
  15. name: 'About',
  16. component: () => import(/* webpackChunkName: "about" */ '../views/About.vue'),
  17. },
  18. {
  19. path: '/monitor/demo',
  20. name: 'Demo',
  21. component: () => import(/* webpackChunkName: "Demo" */ '../views/Demo.vue'),
  22. },
  23. {
  24. path: '/monitor/status', // 状态监视
  25. name: 'Status',
  26. component: () => import(/* webpackChunkName: "status" */ '../views/Status/Status.vue'),
  27. },
  28. {
  29. path: '/monitor/agc', // AGC 监视
  30. name: 'Agc',
  31. component: () => import(/* webpackChunkName: "agc" */ '../views/Agc/Agc.vue'),
  32. },
  33. {
  34. path: '/monitor/windsite',
  35. name: 'WindSite',
  36. component: () => import(/* webpackChunkName: "windsite" */ '../views/WindSite/WindSite.vue'),
  37. children: [{
  38. path: 'home/:wpId', // 场站监视
  39. component: () => import(/* webpackChunkName: "windsitehome" */ '../views/WindSite/pages/Home/Home.vue'),
  40. }, {
  41. path: 'draughtfanlist/:wpId', // 风机列表
  42. component: () => import(/* webpackChunkName: "windsitedraughtfanlist" */ '../views/WindSite/pages/DraughtFanList.vue'),
  43. }, {
  44. path: 'matrix/:wpId', // 风场矩阵
  45. component: () => import(/* webpackChunkName: "windsitematrix" */ '../views/WindSite/pages/Matrix.vue'),
  46. }, {
  47. path: 'lightmatrix/:wpId',
  48. component: () => import(/* webpackChunkName: "windsitelightmatrix" */ '../views/WindSite/pages/LightMatrix.vue'),
  49. }, {
  50. path: 'box/:wpId',
  51. component: () => import(/* webpackChunkName: "windsitebox" */ '../views/WindSite/pages/Box.vue'),
  52. }, {
  53. path: 'info/:wpId/:wtId', // 单机状态监视
  54. component: () => import(/* webpackChunkName: "info" */ '../views/WindSite/pages/Info/Info.vue'),
  55. }, {
  56. path: 'tower/:wpId', // 测风塔
  57. component: () => import(/* webpackChunkName: "windsitetower" */ '../views/WindSite/pages/Tower.vue'),
  58. }, {
  59. path: 'inverter-info/:wpId',
  60. component: () => import(/* webpackChunkName: "inverter-info" */ '../views/WindSite/pages/Inverter-Info.vue'),
  61. }, {
  62. path: 'map/:wpId',
  63. component: () => import(/* webpackChunkName: "windsitemap" */ '../views/WindSite/pages/Map.vue'),
  64. }, {
  65. path: 'map1/:wpId',
  66. component: () => import(/* webpackChunkName: "windsitemap1" */ '../views/WindSite/pages/Map1.vue'),
  67. },
  68. {
  69. path: 'boosterstation', // 升压站
  70. component: () => import(/* webpackChunkName: "boosterstation" */ '../views/WindSite/pages/BoosterStation.vue'),
  71. }]
  72. },
  73. {
  74. path: '/monitor/lightmatrix', // 光伏明细矩阵
  75. name: 'LightMatrix',
  76. component: () => import(/* webpackChunkName: "lightmatrix" */ '../views/LightMatrix/LightMatrix.vue'),
  77. },
  78. {
  79. path: '/monitor/lightmatrix1', // 基础矩阵
  80. name: 'LightMatrix1',
  81. component: () => import(/* webpackChunkName: "lightmatrix1" */ '../views/LightMatrix1/LightMatrix1.vue'),
  82. },
  83. {
  84. path: '/monitor/lightmatrix2', // 欠发矩阵
  85. name: 'LightMatrix2',
  86. component: () => import(/* webpackChunkName: "lightmatrix2" */ '../views/LightMatrix2/LightMatrix2.vue'),
  87. }, {
  88. path: '/monitor/lightmatrix3', // 明细矩阵
  89. name: 'LightMatrix3',
  90. component: () => import(/* webpackChunkName: "lightmatrix3" */ '../views/LightMatrix3/LightMatrix3.vue'),
  91. }, {
  92. path: '/decision/decision1',//风机绩效榜
  93. name: 'decision1',
  94. component: () => import(/* webpackChunkName: "decision1" */ '../views/Decision/Decision1.vue'),
  95. },
  96. {
  97. path: '/decision/decision1Mx',//风机绩效榜明细
  98. name: 'decision1Mx',
  99. component: () => import(/* webpackChunkName: "decision1Mx" */ '../views/Decision/Decision1Mx.vue'),
  100. },
  101. {
  102. path: '/decision/decision2',//五项损失率
  103. name: 'decision2',
  104. component: () => import(/* webpackChunkName: "decision2" */ '../views/Decision/Decision2.vue'),
  105. },
  106. {
  107. path: '/decision/decision2Cndb',//场内对标
  108. name: 'decision2Cndb',
  109. component: () => import(/* webpackChunkName: "decision2Cndb" */ '../views/Decision/Decision2Cndb.vue'),
  110. },
  111. {
  112. path: '/decision/decision2Cjdb',//场际对标
  113. name: 'decision2Cjdb',
  114. component: () => import(/* webpackChunkName: "decision2Cjdb" */ '../views/Decision/Decision2Cjdb.vue'),
  115. },
  116. {
  117. path: '/decision/decision2Xmdb',//项目对标
  118. name: 'decision2Xmdb',
  119. component: () => import(/* webpackChunkName: "decision2Xmdb" */ '../views/Decision/Decision2Xmdb.vue'),
  120. },
  121. {
  122. path: '/decision/decision2Xldb',//线路对标
  123. name: 'decision2Xldb',
  124. component: () => import(/* webpackChunkName: "decision2Xldb" */ '../views/Decision/Decision2Xldb.vue'),
  125. },
  126. {
  127. path: '/decision/decision3',//性能对标
  128. name: 'decision3',
  129. component: () => import(/* webpackChunkName: "decision3" */ '../views/Decision/Decision3.vue'),
  130. },
  131. {
  132. path: '/decision/decision4',//值际对标
  133. name: 'decision4',
  134. component: () => import(/* webpackChunkName: "decision4" */ '../views/Decision/Decision4.vue'),
  135. },
  136. {
  137. path: '/decision/decision4czzl',//操作指令统计
  138. name: 'decision4czzl',
  139. component: () => import(/* webpackChunkName: "decision4czzl" */ '../views/Decision/Decision4Czzl.vue'),
  140. },
  141. {
  142. path: '/health',
  143. name: 'health',
  144. component: () => import('../views/HealthControl/Health.vue'),
  145. },
  146. {
  147. path: '/health/healthDay',//风机 日 信息量化评级管理
  148. name: 'healthDay',
  149. component: () => import('../views/HealthControl/HealthDay.vue'),
  150. },
  151. {
  152. path: '/health/healthMonth',//风机 月 信息量化评级管理
  153. name: 'healthMonth',
  154. component: () => import('../views/HealthControl/HealthMonth.vue'),
  155. },
  156. {
  157. path: '/health/healthYear',//风机 年 信息量化评级管理
  158. name: 'healthYear',
  159. component: () => import('../views/HealthControl/HealthYear.vue'),
  160. },
  161. {
  162. path: '/health/health1',
  163. name: 'health1',
  164. component: () => import('../views/HealthControl/Health1.vue'),
  165. },
  166. {
  167. path: '/health/health2', // 健康管理首页
  168. name: 'health2',
  169. component: () => import('../views/HealthControl/Health2.vue'),
  170. },
  171. {
  172. path: '/health/health3/:wpId', // 场站健康管理
  173. name: 'health3',
  174. component: () => import('../views/HealthControl/Health3.vue'),
  175. },
  176. {
  177. path: '/health/health4',
  178. name: 'health4',
  179. children: [{
  180. path: 'healthLineChart/:wtId', // 风机健康趋势
  181. component: () => import(/* webpackChunkName: "healthLineChart" */ '../views/HealthControl/healthLineChart.vue'),
  182. },
  183. {
  184. path: 'healthLineChart2/:wtId', // 健康趋势
  185. component: () => import(/* webpackChunkName: "healthLineChart2" */ '../views/HealthControl/healthLineChart2.vue'),
  186. }],
  187. component: () => import('../views/HealthControl/Health4.vue'),
  188. },
  189. {
  190. path: '/health/health5/',
  191. name: 'health5',
  192. component: () => import('../views/HealthControl/Health5.vue'),
  193. },
  194. {
  195. path: '/health/health6', // 健康总览
  196. name: 'health6',
  197. component: () => import('../views/HealthControl/Health6.vue'),
  198. },
  199. {
  200. path: '/cutAnalyse', // 切入切出分析
  201. name: 'cutAnalyse',
  202. component: () => import('../views/cutAnalyse/index.vue'),
  203. },
  204. {
  205. path: '/cutAnalyse', // 切入切出分析
  206. name: 'cutAnalyse',
  207. component: () => import('../views/cutAnalyse/index.vue'),
  208. },
  209. {
  210. path: '/wtSaturability', // 单机饱和度
  211. name: 'wtSaturability',
  212. component: () => import('../views/wtSaturability/index.vue'),
  213. },
  214. {
  215. path: '/windAnalysis', // 风资源分析
  216. name: 'windAnalysis',
  217. component: () => import('../views/windAnalysis/index.vue'),
  218. },
  219. {
  220. path: '/powerRank', // 发电效率排行
  221. name: 'powerRank',
  222. component: () => import('../views/powerRank/index.vue'),
  223. },
  224. {
  225. path: '/totalPowerRank', // 总发电效率排行
  226. name: 'totalPowerRank',
  227. component: () => import('../views/totalPowerRank/index.vue'),
  228. },
  229. {
  230. path: '/knowledge', //故障知识列表
  231. name: 'knowledge1',
  232. component: () => import('../views/Knowledge/Knowledge1.vue'),
  233. },
  234. {
  235. path: '/knowledge2', //安全措施知识
  236. name: 'knowledge2',
  237. component: () => import('../views/Knowledge/Knowledge2.vue'),
  238. },
  239. {
  240. path: '/knowledge3', //风险辨识知识
  241. name: 'knowledge3',
  242. component: () => import('../views/Knowledge/Knowledge3.vue'),
  243. },
  244. {
  245. path: '/knowledge4', //作业指导知识
  246. name: 'knowledge4',
  247. component: () => import('../views/Knowledge/Knowledge4.vue'),
  248. },
  249. {
  250. path: '/knowledge5', //特征参数
  251. name: 'knowledge5',
  252. component: () => import('../views/Knowledge/Knowledge5.vue'),
  253. }
  254. ]
  255. const router = createRouter({
  256. history: createWebHashHistory(),
  257. base: '/zhfx/',
  258. routes
  259. })
  260. router.beforeEach((to, from, next) => {
  261. next()
  262. })
  263. export default router