index.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. import Home from '../views/Home/Home.vue'
  3. const routes = [{
  4. path: '/',
  5. redirect: '/monitor/home'
  6. },
  7. {
  8. path: '/monitor/home', // 驾驶舱
  9. name: 'Home',
  10. component: Home,
  11. },
  12. {
  13. path: '/monitor/about',
  14. name: 'About',
  15. component: () =>
  16. import ( /* webpackChunkName: "about" */ '../views/About.vue'),
  17. },
  18. {
  19. path: '/monitor/demo',
  20. name: 'Demo',
  21. component: () =>
  22. import ( /* webpackChunkName: "Demo" */ '../views/Demo.vue'),
  23. },
  24. {
  25. path: '/monitor/status', // 状态监视
  26. name: 'Status',
  27. component: () =>
  28. import ( /* webpackChunkName: "status" */ '../views/Status/Status.vue'),
  29. },
  30. {
  31. path: '/monitor/agc', // AGC 监视
  32. name: 'Agc',
  33. component: () =>
  34. import ( /* webpackChunkName: "agc" */ '../views/Agc/Agc.vue'),
  35. },
  36. {
  37. path: '/monitor/windsite',
  38. name: 'WindSite',
  39. component: () =>
  40. import ( /* webpackChunkName: "windsite" */ '../views/WindSite/WindSite.vue'),
  41. children: [{
  42. path: 'home/:wpId', // 场站监视
  43. component: () =>
  44. import ( /* webpackChunkName: "windsitehome" */ '../views/WindSite/pages/Home/Home.vue'),
  45. }, {
  46. path: 'draughtfanlist/:wpId', // 风机列表
  47. component: () =>
  48. import ( /* webpackChunkName: "windsitedraughtfanlist" */ '../views/WindSite/pages/DraughtFanList.vue'),
  49. }, {
  50. path: 'matrix/:wpId', // 风场矩阵
  51. component: () =>
  52. import ( /* webpackChunkName: "windsitematrix" */ '../views/WindSite/pages/Matrix.vue'),
  53. }, {
  54. path: 'lightmatrix/:wpId',
  55. component: () =>
  56. import ( /* webpackChunkName: "windsitelightmatrix" */ '../views/WindSite/pages/LightMatrix.vue'),
  57. }, {
  58. path: 'box/:wpId',
  59. component: () =>
  60. import ( /* webpackChunkName: "windsitebox" */ '../views/WindSite/pages/Box.vue'),
  61. }, {
  62. path: 'info/:wpId/:wtId', // 单机状态监视
  63. component: () =>
  64. import ( /* webpackChunkName: "info" */ '../views/WindSite/pages/Info/Info.vue'),
  65. }, {
  66. path: 'tower/:wpId', // 测风塔
  67. component: () =>
  68. import ( /* webpackChunkName: "windsitetower" */ '../views/WindSite/pages/Tower.vue'),
  69. }, {
  70. path: 'inverter-info/:wpId',
  71. component: () =>
  72. import ( /* webpackChunkName: "inverter-info" */ '../views/WindSite/pages/Inverter-Info.vue'),
  73. }, {
  74. path: 'map/:wpId',
  75. component: () =>
  76. import ( /* webpackChunkName: "windsitemap" */ '../views/WindSite/pages/Map.vue'),
  77. }, {
  78. path: 'map1/:wpId',
  79. component: () =>
  80. import ( /* webpackChunkName: "windsitemap1" */ '../views/WindSite/pages/Map1.vue'),
  81. },
  82. {
  83. path: 'boosterstation/:wpId', // 升压站
  84. component: () =>
  85. import ( /* webpackChunkName: "boosterstation" */ '../views/WindSite/pages/BoosterStation.vue'),
  86. },
  87. {
  88. path: "generalappearance/:wpId", // 总样貌
  89. component: () =>
  90. import ( /* webpackChunkName: "generalappearance" */ "../views/WindSite/pages/GeneralAppearance.vue"),
  91. },
  92. ]
  93. },
  94. {
  95. path: '/monitor/lightmatrix', // 光伏明细矩阵
  96. name: 'LightMatrix',
  97. component: () =>
  98. import ( /* webpackChunkName: "lightmatrix" */ '../views/LightMatrix/LightMatrix.vue'),
  99. },
  100. {
  101. path: '/monitor/lightmatrix1', // 基础矩阵
  102. name: 'LightMatrix1',
  103. component: () =>
  104. import ( /* webpackChunkName: "lightmatrix1" */ '../views/LightMatrix1/LightMatrix1.vue'),
  105. },
  106. {
  107. path: '/monitor/lightmatrix2', // 欠发矩阵
  108. name: 'LightMatrix2',
  109. component: () =>
  110. import ( /* webpackChunkName: "lightmatrix2" */ '../views/LightMatrix2/LightMatrix2.vue'),
  111. }, {
  112. path: '/monitor/lightmatrix3', // 明细矩阵
  113. name: 'LightMatrix3',
  114. component: () =>
  115. import ( /* webpackChunkName: "lightmatrix3" */ '../views/LightMatrix3/LightMatrix3.vue'),
  116. }, {
  117. path: '/decision/decision1', //风机绩效榜
  118. name: 'decision1',
  119. component: () =>
  120. import ( /* webpackChunkName: "decision1" */ '../views/Decision/Decision1.vue'),
  121. },
  122. {
  123. path: '/decision/decision1Mx', //风机绩效榜明细
  124. name: 'decision1Mx',
  125. component: () =>
  126. import ( /* webpackChunkName: "decision1Mx" */ '../views/Decision/Decision1Mx.vue'),
  127. },
  128. {
  129. path: '/decision/decision2', //五项损失率
  130. name: 'decision2',
  131. component: () =>
  132. import ( /* webpackChunkName: "decision2" */ '../views/Decision/Decision2.vue'),
  133. },
  134. {
  135. path: '/decision/decision2Cndb', //场内对标
  136. name: 'decision2Cndb',
  137. component: () =>
  138. import ( /* webpackChunkName: "decision2Cndb" */ '../views/Decision/Decision2Cndb.vue'),
  139. },
  140. {
  141. path: '/decision/decision2Cjdb', //场际对标
  142. name: 'decision2Cjdb',
  143. component: () =>
  144. import ( /* webpackChunkName: "decision2Cjdb" */ '../views/Decision/Decision2Cjdb.vue'),
  145. },
  146. {
  147. path: '/decision/decision2Xmdb', //项目对标
  148. name: 'decision2Xmdb',
  149. component: () =>
  150. import ( /* webpackChunkName: "decision2Xmdb" */ '../views/Decision/Decision2Xmdb.vue'),
  151. },
  152. {
  153. path: '/decision/decision2Xldb', //线路对标
  154. name: 'decision2Xldb',
  155. component: () =>
  156. import ( /* webpackChunkName: "decision2Xldb" */ '../views/Decision/Decision2Xldb.vue'),
  157. },
  158. {
  159. path: '/decision/decision3', //性能对标
  160. name: 'decision3',
  161. component: () =>
  162. import ( /* webpackChunkName: "decision3" */ '../views/Decision/Decision3.vue'),
  163. },
  164. {
  165. path: '/decision/decision4', //值际对标
  166. name: 'decision4',
  167. component: () =>
  168. import ( /* webpackChunkName: "decision4" */ '../views/Decision/Decision4.vue'),
  169. },
  170. {
  171. path: '/decision/decision4czzl', //操作指令统计
  172. name: 'decision4czzl',
  173. component: () =>
  174. import ( /* webpackChunkName: "decision4czzl" */ '../views/Decision/Decision4Czzl.vue'),
  175. },
  176. {
  177. path: '/health',
  178. name: 'health',
  179. component: () =>
  180. import ('../views/HealthControl/Health.vue'),
  181. },
  182. {
  183. path: '/health/healthDay', //风机 日 信息量化评级管理
  184. name: 'healthDay',
  185. component: () =>
  186. import ('../views/HealthControl/HealthDay.vue'),
  187. },
  188. {
  189. path: '/health/healthMonth', //风机 月 信息量化评级管理
  190. name: 'healthMonth',
  191. component: () =>
  192. import ('../views/HealthControl/HealthMonth.vue'),
  193. },
  194. {
  195. path: '/health/healthYear', //风机 年 信息量化评级管理
  196. name: 'healthYear',
  197. component: () =>
  198. import ('../views/HealthControl/HealthYear.vue'),
  199. },
  200. {
  201. path: '/health/health1',
  202. name: 'health1',
  203. component: () =>
  204. import ('../views/HealthControl/Health1.vue'),
  205. },
  206. {
  207. path: '/health/health2', // 健康管理首页
  208. name: 'health2',
  209. component: () =>
  210. import ('../views/HealthControl/Health2.vue'),
  211. },
  212. {
  213. path: '/health/health3/:wpId', // 场站健康管理
  214. name: 'health3',
  215. component: () =>
  216. import ('../views/HealthControl/Health3.vue'),
  217. },
  218. {
  219. path: '/health/health4',
  220. name: 'health4',
  221. children: [{
  222. path: "/health/health0/:wpId/:wtId",
  223. name: "health0",
  224. component: () =>
  225. import ("../views/HealthControl/Health0.vue"),
  226. }, {
  227. path: "/health/health10/:wtId",
  228. name: "health10",
  229. component: () =>
  230. import ( /* webpackChunkName: "health8" */ "../views/HealthControl/Health10.vue"),
  231. }, {
  232. path: 'healthLineChart/:wtId', // 风机健康趋势
  233. component: () =>
  234. import ( /* webpackChunkName: "healthLineChart" */ '../views/HealthControl/healthLineChart.vue'),
  235. },
  236. {
  237. path: 'healthLineChart2/:wtId', // 健康趋势
  238. component: () =>
  239. import ( /* webpackChunkName: "healthLineChart2" */ '../views/HealthControl/healthLineChart2.vue'),
  240. }
  241. ],
  242. component: () =>
  243. import ('../views/HealthControl/Health4.vue'),
  244. },
  245. {
  246. path: '/health/health5/',
  247. name: 'health5',
  248. component: () =>
  249. import ('../views/HealthControl/Health5.vue'),
  250. },
  251. {
  252. path: '/health/health6', // 健康总览
  253. name: 'health6',
  254. component: () =>
  255. import ('../views/HealthControl/Health6.vue'),
  256. },
  257. {
  258. path: '/cutAnalyse', // 切入切出分析
  259. name: 'cutAnalyse',
  260. component: () =>
  261. import ('../views/cutAnalyse/index.vue'),
  262. },
  263. {
  264. path: '/cutAnalyse', // 切入切出分析
  265. name: 'cutAnalyse',
  266. component: () =>
  267. import ('../views/cutAnalyse/index.vue'),
  268. },
  269. {
  270. path: '/wtSaturability', // 单机饱和度
  271. name: 'wtSaturability',
  272. component: () =>
  273. import ('../views/wtSaturability/index.vue'),
  274. },
  275. {
  276. path: '/windAnalysis', // 风资源分析
  277. name: 'windAnalysis',
  278. component: () =>
  279. import ('../views/windAnalysis/index.vue'),
  280. },
  281. {
  282. path: '/powerRank', // 发电效率排行
  283. name: 'powerRank',
  284. component: () =>
  285. import ('../views/powerRank/index.vue'),
  286. },
  287. {
  288. path: '/totalPowerRank', // 总发电效率排行
  289. name: 'totalPowerRank',
  290. component: () =>
  291. import ('../views/totalPowerRank/index.vue'),
  292. },
  293. {
  294. path: '/warningRank', // 报警排行
  295. name: 'warningRank',
  296. component: () =>
  297. import ('../views/warningRank/index.vue'),
  298. },
  299. {
  300. path: '/realSearch', // 测点数据查询
  301. name: 'realSearch',
  302. component: () =>
  303. import ('../views/realSearch/index.vue'),
  304. },
  305. {
  306. path: '/singleAnalysis', // 单机月度分析
  307. name: 'singleAnalysis',
  308. component: () =>
  309. import ('../views/singleAnalysis/index.vue'),
  310. },
  311. // {
  312. // path: '/performanceAnalysis', // 单机性能分析
  313. // name: 'performanceAnalysis',
  314. // component: () => import('../views/performanceAnalysis/index.vue'),
  315. // children: [{
  316. // path: "detail/:wpId",
  317. // name: "performanceAnalysisDetail",
  318. // component: () => import("../views/performanceAnalysis/detail/index.vue"),
  319. // }]
  320. // },
  321. {
  322. path: '/historySearch', // 测点历史数据查询
  323. name: 'historySearch',
  324. component: () =>
  325. import ('../views/historySearch/index.vue'),
  326. },
  327. {
  328. path: '/knowledge', //故障知识列表
  329. name: 'knowledge1',
  330. component: () =>
  331. import ('../views/Knowledge/Knowledge1.vue'),
  332. },
  333. {
  334. path: '/knowledge2', //安全措施知识
  335. name: 'knowledge2',
  336. component: () =>
  337. import ('../views/Knowledge/Knowledge2.vue'),
  338. },
  339. {
  340. path: '/knowledge3', //风险辨识知识
  341. name: 'knowledge3',
  342. component: () =>
  343. import ('../views/Knowledge/Knowledge3.vue'),
  344. },
  345. {
  346. path: '/knowledge4', //作业指导知识
  347. name: 'knowledge4',
  348. component: () =>
  349. import ('../views/Knowledge/Knowledge4.vue'),
  350. },
  351. {
  352. path: '/knowledge5', //特征参数
  353. name: 'knowledge5',
  354. component: () =>
  355. import ('../views/Knowledge/Knowledge5.vue'),
  356. },
  357. {
  358. path: '/knowledge6', //排查检修方案
  359. name: 'knowledge6',
  360. component: () =>
  361. import ('../views/Knowledge/Knowledge6.vue'),
  362. },
  363. {
  364. path: '/knowledge7', //预警知识
  365. name: 'knowledge7',
  366. component: () =>
  367. import ('../views/Knowledge/Knowledge7.vue'),
  368. },
  369. {
  370. path: "/health/health8",
  371. name: "health8",
  372. component: () =>
  373. import ( /* webpackChunkName: "health8" */ "../views/HealthControl/Health8.vue"),
  374. },
  375. {
  376. path: "/monitor/sandtable",
  377. name: "sandtable",
  378. component: () =>
  379. import ( /* webpackChunkName: "sandtable" */ "../views/SandTable/SandTable.vue"),
  380. },
  381. {
  382. path: "/performanceAnalysis", // 单机性能分析
  383. name: "performanceAnalysis",
  384. component: () =>
  385. import ( /* webpackChunkName: "dj1" */ "../views/NewPages/dj1.vue"),
  386. },
  387. {
  388. path: "/new/pf1",
  389. name: "pf1",
  390. component: () =>
  391. import ( /* webpackChunkName: "pf1" */ "../views/NewPages/power-forecast-1.vue"),
  392. },
  393. {
  394. path: "/new/fs",
  395. name: "fs",
  396. component: () =>
  397. import ( /* webpackChunkName: "fs" */ "../views/NewPages/forecast-system.vue"),
  398. },
  399. {
  400. path: '/new/ztfx',
  401. name: 'ztfx',
  402. component: () =>
  403. import ( /* webpackChunkName: "ztfx" */ '../views/NewPages/ztfx.vue'),
  404. },
  405. {
  406. path: '/new/fdlyl',
  407. name: 'fdlyl',
  408. component: () => import( /* webpackChunkName: "ztfx" */ '../views/NewPages/fdlyl.vue'),
  409. },
  410. {
  411. path: '/new/intelligentalarmcenter',
  412. name: 'intelligentalarmcenter',
  413. component: () =>
  414. import ( /* webpackChunkName: "intelligentalarmcenter" */ '../views/NewPages/intelligent-alarm-center.vue'),
  415. },
  416. {
  417. path: '/new/personnel',
  418. name: 'personnel',
  419. component: () =>
  420. import ( /* webpackChunkName: "personnel" */ '../views/NewPages/personnel.vue'),
  421. },
  422. {
  423. path: '/new/znzhfx',
  424. name: 'znzhfx',
  425. component: () =>
  426. import ( /* webpackChunkName: "ztfx" */ '../views/NewPages/znzhfx.vue'),
  427. },
  428. {
  429. path: '/new/alarmcenter',
  430. name: 'alarmcenter',
  431. component: () =>
  432. import ( /* webpackChunkName: "personnel" */ '../views/NewPages/alarm-center.vue'),
  433. },
  434. {
  435. path: '/new/knowledgebase',
  436. name: 'knowledgebase',
  437. component: () =>
  438. import ( /* webpackChunkName: "knowledgebase" */ '../views/NewPages/knowledge-base.vue'),
  439. },
  440. {
  441. path: "/new/dj",
  442. name: "dj",
  443. component: () =>
  444. import ( /* webpackChunkName: "dj" */ "../views/NewPages/dj.vue"),
  445. },
  446. {
  447. path: "/new/dj2",
  448. name: "dj2",
  449. component: () =>
  450. import ( /* webpackChunkName: "dj2" */ "../views/NewPages/dj2.vue"),
  451. },
  452. {
  453. path: "/new/dialog",
  454. name: "dialog",
  455. component: () =>
  456. import ( /* webpackChunkName: "dj2" */ "../views/NewPages/dialogs.vue"),
  457. }, // 三率管理/复位及时率
  458. {
  459. path: '/fwjsl',
  460. name: 'fwjsl',
  461. component: () =>
  462. import ('../views/Decision/slgl/fwjsl.vue')
  463. },
  464. // 三率管理/状态转换率
  465. {
  466. path: '/ztzhl',
  467. name: 'ztzhl',
  468. component: () =>
  469. import ('../views/Decision/slgl/ztzhl.vue')
  470. },
  471. // 三率管理/消缺及时率
  472. {
  473. path: '/xqjsl',
  474. name: 'xqjsl',
  475. component: () =>
  476. import ('../views/Decision/slgl/xqjsl.vue')
  477. }
  478. ]
  479. const router = createRouter({
  480. history: createWebHashHistory(),
  481. base: '/zhfx/',
  482. routes
  483. })
  484. router.beforeEach((to, from, next) => {
  485. next()
  486. })
  487. export default router