index.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981
  1. import {
  2. createRouter,
  3. createWebHashHistory
  4. } from "vue-router"
  5. import Home from "../views/Home/Home.vue"
  6. const routes = [{
  7. path: "/login",
  8. name: "Login",
  9. component: () =>
  10. import( /* webpackChunkName: "Login" */ "../views/layout/login-page.vue"),
  11. },
  12. {
  13. path: "/",
  14. redirect: "/monitor/home"
  15. },
  16. {
  17. path: "/monitor/home", // 驾驶舱
  18. name: "Home",
  19. component: Home,
  20. },
  21. {
  22. path: "/monitor/about",
  23. name: "About",
  24. component: () =>
  25. import( /* webpackChunkName: "about" */ "../views/About.vue"),
  26. },
  27. {
  28. path: "/monitor/demo",
  29. name: "Demo",
  30. component: () =>
  31. import( /* webpackChunkName: "Demo" */ "../views/Demo.vue"),
  32. },
  33. {
  34. path: "/sisView",
  35. name: "sisView",
  36. component: () =>
  37. import( /* webpackChunkName: "sisView" */ "../views/sisView/index.vue"),
  38. },
  39. {
  40. path: "/monitor/status", // 状态监视
  41. name: "Status",
  42. component: () =>
  43. import( /* webpackChunkName: "status" */ "../views/Status/Status.vue"),
  44. },
  45. {
  46. path: "/monitor/agc", // AGC 监视
  47. name: "Agc",
  48. component: () =>
  49. import( /* webpackChunkName: "agc" */ "../views/Agc/Agc.vue"),
  50. },
  51. {
  52. path: "/monitor/windsite",
  53. name: "WindSite",
  54. component: () =>
  55. import( /* webpackChunkName: "windsite" */ "../views/WindSite/WindSite.vue"),
  56. children: [{
  57. path: "home/:wpId", // 场站监视
  58. component: () =>
  59. import( /* webpackChunkName: "windsitehome" */ "../views/WindSite/pages/Home/Home.vue"),
  60. }, {
  61. path: "draughtfanlist/:wpId", // 风机列表
  62. component: () =>
  63. import( /* webpackChunkName: "windsitedraughtfanlist" */
  64. "../views/WindSite/pages/DraughtFanList.vue"),
  65. }, {
  66. path: "matrix/:wpId", // 风场矩阵
  67. component: () =>
  68. import( /* webpackChunkName: "windsitematrix" */ "../views/WindSite/pages/Matrix.vue"),
  69. }, {
  70. path: "lightmatrix/:wpId",
  71. component: () =>
  72. import( /* webpackChunkName: "windsitelightmatrix" */
  73. "../views/WindSite/pages/LightMatrix.vue"),
  74. }, {
  75. path: "box/:wpId",
  76. component: () =>
  77. import( /* webpackChunkName: "windsitebox" */ "../views/WindSite/pages/Box.vue"),
  78. }, {
  79. path: "info/:wpId/:wtId", // 单机状态监视
  80. component: () =>
  81. import( /* webpackChunkName: "info" */ "../views/WindSite/pages/Info/Info.vue"),
  82. }, {
  83. path: "tower/:wpId", // 测风塔
  84. component: () =>
  85. import( /* webpackChunkName: "windsitetower" */ "../views/WindSite/pages/Tower.vue"),
  86. }, {
  87. path: "inverter-info/:wpId/:wtId",
  88. component: () =>
  89. import( /* webpackChunkName: "inverter-info" */
  90. "../views/WindSite/pages/Inverter-Info.vue"),
  91. }, {
  92. path: "map/:wpId",
  93. component: () =>
  94. import( /* webpackChunkName: "windsitemap" */ "../views/WindSite/pages/Map.vue"),
  95. }, {
  96. path: "map1/:wpId",
  97. component: () =>
  98. import( /* webpackChunkName: "windsitemap1" */ "../views/WindSite/pages/Map1.vue"),
  99. },
  100. {
  101. path: "boosterstation/:wpId", // 升压站
  102. component: () =>
  103. import( /* webpackChunkName: "boosterstation" */
  104. "../views/WindSite/pages/BoosterStation.vue"),
  105. },
  106. {
  107. path: "generalappearance/:wpId", // 总样貌
  108. component: () =>
  109. import( /* webpackChunkName: "generalappearance" */
  110. "../views/WindSite/pages/GeneralAppearance.vue"),
  111. },
  112. ]
  113. },
  114. {
  115. path: "/monitor/lightmatrix", // 光伏明细矩阵
  116. name: "LightMatrix",
  117. component: () =>
  118. import( /* webpackChunkName: "lightmatrix" */ "../views/LightMatrix/LightMatrix.vue"),
  119. },
  120. {
  121. path: "/monitor/lightmatrix1", // 基础矩阵
  122. name: "LightMatrix1",
  123. component: () =>
  124. import( /* webpackChunkName: "lightmatrix1" */ "../views/LightMatrix1/LightMatrix1.vue"),
  125. },
  126. {
  127. path: "/monitor/lightmatrix2", // 欠发矩阵
  128. name: "LightMatrix2",
  129. component: () =>
  130. import( /* webpackChunkName: "lightmatrix2" */ "../views/LightMatrix2/LightMatrix2.vue"),
  131. }, {
  132. path: "/monitor/lightmatrix3", // 明细矩阵
  133. name: "LightMatrix3",
  134. component: () =>
  135. import( /* webpackChunkName: "lightmatrix3" */ "../views/LightMatrix3/LightMatrix3.vue"),
  136. }
  137. /***********************************************************驾驶舱************************************************************* */
  138. /***********************************************************经济运行************************************************************* */
  139. , {
  140. path: "/decision/pb",/***********************************************************驾驶舱************************************************************* */
  141. /***********************************************************经济运行************************************************************* */
  142. name: "pb",
  143. component: () => import( /* webpackChunkName: "powerbenchmarking" */ "../views/NewPages/power-benchmarking.vue"),
  144. }, {
  145. path: "/decision/decision1", //风机绩效榜
  146. name: "decision1",
  147. component: () =>
  148. import( /* webpackChunkName: "decision1" */ "../views/Decision/Decision1.vue"),
  149. },
  150. {
  151. path: "/decision/zbtjfx", // 节能减排KPI
  152. name: "decision1",
  153. component: () =>
  154. import( /* webpackChunkName: "decision1" */ "../views/Decision/zbtjfx.vue"),
  155. },
  156. {
  157. path: "/decision/decision1Mx", //风机绩效榜明细
  158. name: "decision1Mx",
  159. component: () =>
  160. import( /* webpackChunkName: "decision1Mx" */ "../views/Decision/Decision1Mx.vue"),
  161. },
  162. {
  163. path: "/decision/decision2", //五项损失率
  164. name: "decision2",
  165. component: () =>
  166. import( /* webpackChunkName: "decision2" */ "../views/Decision/Decision2.vue"),
  167. },
  168. {
  169. path: "/decision/decision2Cndb", //场内对标
  170. name: "decision2Cndb",
  171. component: () =>
  172. import( /* webpackChunkName: "decision2Cndb" */ "../views/Decision/Decision2Cndb.vue"),
  173. },
  174. {
  175. path: "/decision/decision2Cjdb", //场际对标
  176. name: "decision2Cjdb",
  177. component: () =>
  178. import( /* webpackChunkName: "decision2Cjdb" */ "../views/Decision/Decision2Cjdb.vue"),
  179. },
  180. {
  181. path: "/decision/decision2Xmdb", //项目对标
  182. name: "decision2Xmdb",
  183. component: () =>
  184. import( /* webpackChunkName: "decision2Xmdb" */ "../views/Decision/Decision2Xmdb.vue"),
  185. },
  186. {
  187. path: "/decision/decision2Xldb", //线路对标
  188. name: "decision2Xldb",
  189. component: () =>
  190. import( /* webpackChunkName: "decision2Xldb" */ "../views/Decision/Decision2Xldb.vue"),
  191. },
  192. {
  193. path: "/decision/decision3", //性能对标
  194. name: "decision3",
  195. component: () =>
  196. import( /* webpackChunkName: "decision3" */ "../views/Decision/Decision3.vue"),
  197. },
  198. {
  199. path: "/decision/decision4", //值际对标
  200. name: "decision4",
  201. component: () =>
  202. import( /* webpackChunkName: "decision4" */ "../views/Decision/Decision4.vue"),
  203. },
  204. {
  205. path: "/decision/decision4czzl", //操作指令统计
  206. name: "decision4czzl",
  207. component: () =>
  208. import( /* webpackChunkName: "decision4czzl" */ "../views/Decision/Decision4Czzl.vue"),
  209. },
  210. {
  211. path: "/decision/decision3db", //单机横向对比
  212. name: "decision3db",
  213. component: () => import( /* webpackChunkName: "decision3db" */
  214. "../views/Decision/Decision3Db.vue"),
  215. }, // 三率管理/复位及时率
  216. {
  217. path: "/decision/fwjsl",
  218. name: "fwjsl",
  219. component: () =>
  220. import("../views/Decision/slgl/fwjsl.vue")
  221. },
  222. // 三率管理/状态转换率
  223. {
  224. path: "/decision/ztzhl",
  225. name: "ztzhl",
  226. component: () =>
  227. import("../views/Decision/slgl/ztzhl.vue")
  228. },
  229. // 三率管理/消缺及时率
  230. {
  231. path: "/decision/xqjsl",
  232. name: "xqjsl",
  233. component: () =>
  234. import("../views/Decision/slgl/xqjsl.vue")
  235. },
  236. {
  237. path: "/decision/powerRank", // 发电效率排行
  238. name: "powerRank",
  239. component: () =>
  240. import("../views/powerRank/index.vue"),
  241. },
  242. {
  243. path: "/decision/totalPowerRank", // 总发电效率排行
  244. name: "totalPowerRank",
  245. component: () =>
  246. import("../views/totalPowerRank/index.vue"),
  247. },
  248. {
  249. path: "/decision/warningRank", // 报警排行
  250. name: "warningRank",
  251. component: () =>
  252. import("../views/warningRank/index.vue"),
  253. },
  254. {
  255. path: "/decision/ztfx", // 专题分析
  256. name: "ztfx",
  257. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/ztfx.vue"),
  258. },
  259. {
  260. path: "/decision/fnlyl", // 风能利用率
  261. name: "fnlyl",
  262. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/fnlyl.vue"),
  263. },
  264. {
  265. path: "/decision/whssl", // 维护损失率
  266. name: "whssl",
  267. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/whssl.vue"),
  268. },
  269. {
  270. path: "/decision/gzssl", // 故障损失率
  271. name: "gzssl",
  272. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/gzssl.vue"),
  273. },
  274. {
  275. path: "/decision/xdssl", // 限电损失率
  276. name: "xdssl",
  277. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/xdssl.vue"),
  278. },
  279. {
  280. path: "/decision/xnssl", // 性能损失率
  281. name: "xnssl",
  282. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/xnssl.vue"),
  283. },
  284. {
  285. path: "/decision/slssl", // 受累损失率
  286. name: "slssl",
  287. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/slssl.vue"),
  288. },
  289. {
  290. path: "/decision/mtbf", // mtbf
  291. name: "mtbf",
  292. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/mtbf.vue"),
  293. },
  294. {
  295. path: "/decision/mttr", // mttr
  296. name: "mttr",
  297. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/mttr.vue"),
  298. },
  299. {
  300. path: "/decision/zfwjsl", // 复位及时率
  301. name: "zfwjsl",
  302. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/fwjsl.vue"),
  303. },
  304. {
  305. path: "/decision/zztzhl", // 状态转换率
  306. name: "zztzhl",
  307. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/ztzhl.vue"),
  308. },
  309. {
  310. path: "/decision/zxqjsl", // 消缺及时率
  311. name: "zxqjsl",
  312. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/xqjsl.vue"),
  313. },
  314. {
  315. path: "/decision/zfdl", // 发电量分析
  316. name: "zfdl",
  317. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/fdl.vue"),
  318. },
  319. {
  320. path: "/decision/zzhcydl", // 综合场用电量
  321. name: "zzhcydl",
  322. component: () => import( /* webpackChunkName: "ztfx" */ "../views/specific/zhcydl.vue"),
  323. },
  324. {
  325. path: "/decision/performanceAnalysis", // 单机信息总览
  326. name: "performanceAnalysis",
  327. component: () => import("../views/performanceAnalysis/index.vue"),
  328. },
  329. {
  330. path: "/decision/performanceAnalysis/detail/:wpId/:wtId", // 单机信息总览详情
  331. name: "performanceAnalysisDetail",
  332. component: () => import( /* webpackChunkName: "performanceAnalysisDetail" */ "../views/NewPages/dj1.vue"),
  333. },
  334. {
  335. path: "/decision/znzhfx/:wtId/:year/:month",
  336. name: "znzhfx",
  337. component: () =>
  338. import( /* webpackChunkName: "ztfx" */ "../views/NewPages/znzhfx.vue"),
  339. },
  340. {
  341. path: "/decision/singleAnalysis", // 单机月度分析
  342. name: "singleAnalysis",
  343. component: () =>
  344. import("../views/singleAnalysis/index.vue"),
  345. },
  346. {
  347. path: "/decision/pf1",//电量分析 未绑定界面
  348. name: "pf1",
  349. component: () =>
  350. import( /* webpackChunkName: "pf1" */ "../views/NewPages/power-forecast-1.vue"),
  351. },
  352. {
  353. path: "/decision/fs",
  354. name: "fs",
  355. component: () =>
  356. import( /* webpackChunkName: "fs" */ "../views/NewPages/forecast-system.vue"),
  357. },
  358. {
  359. path: "/decision/nhycfsdl",
  360. name: "nhycfsdl",
  361. component: () =>
  362. import( /* webpackChunkName: "nhycfsdl" */ "../views/report/nhycfsdl.vue"),
  363. },
  364. {
  365. path: "/decision/xzycfsdl",
  366. name: "xzycfsdl",
  367. component: () =>
  368. import( /* webpackChunkName: "xzycfsdl" */ "../views/report/xzycfsdl.vue"),
  369. }
  370. /***********************************************************经济运行************************************************************* */
  371. /***********************************************************智慧检修************************************************************* */
  372. ,
  373. {
  374. path: "/health/sandtable",
  375. name: "sandtable",
  376. component: () =>
  377. import( /* webpackChunkName: "sandtable" */ "../views/SandTable/SandTable.vue"),
  378. },
  379. // 等级评估(单机等级评估管理-量化评级)
  380. {
  381. path: "/health/assess/index",
  382. name: "assessindex",
  383. component: () => import("../views/HealthControl/assess/assessindex.vue")
  384. },
  385. {
  386. path: "/health/assess/selfEvaluate", // 自组合评级
  387. name: "assessEvaluate",
  388. component: () => import("../views/HealthControl/assess/selfEvaluate.vue")
  389. },
  390. {
  391. path: "/health/assess/config",
  392. name: "assessconfig",
  393. component: () => import("../views/HealthControl/assess/assessconfig.vue")
  394. },
  395. {
  396. path: "/health/zhpj/yxpj",//运行评价
  397. name: "yxpj",
  398. component: () => import("../views/HealthControl/zhpj/yxpj.vue")
  399. },
  400. {
  401. path: "/health/zhpj/jxpj",//检修评价
  402. name: "jxpj",
  403. component: () => import("../views/HealthControl/zhpj/jxpj.vue")
  404. },
  405. {
  406. path: "/health/gzzd/malfunctionDiagnose", // 故障诊断
  407. name: "malfunctionDiagnose",
  408. component: () => import("../views/malfunctionDiagnose/index.vue")
  409. },
  410. {
  411. path: "/health/gzzd/malfunctionRecall", // 故障回溯
  412. name: "malfunctionRecall",
  413. component: () =>
  414. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionRecall/index.vue"),
  415. },
  416. {
  417. path: "/health/gzzd/gzfl", // 故障分类
  418. name: "gzfl",
  419. component: () =>
  420. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionDiagnose/gzfl.vue"),
  421. },
  422. {
  423. path: "/health/gzzd/yjfl", // 预警分类
  424. name: "yjfl",
  425. component: () =>
  426. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionDiagnose/yjfl.vue"),
  427. },
  428. {
  429. path: "/health/frist",
  430. name: "health",
  431. component: () =>
  432. import("../views/HealthControl/Health.vue"),
  433. },
  434. {
  435. path: "/health/health1",
  436. name: "health1",
  437. component: () =>
  438. import("../views/HealthControl/Health1.vue"),
  439. },
  440. {
  441. path: "/health/health2", // 健康管理首页
  442. name: "health2",
  443. component: () =>
  444. import("../views/HealthControl/Health2.vue"),
  445. },
  446. {
  447. path: "/health/health3/:wpId", // 场站健康管理
  448. name: "health3",
  449. component: () =>
  450. import("../views/HealthControl/Health3.vue"),
  451. },
  452. {
  453. path: "/health/healthLineChart/:wpId/:wtId", // 劣化状态分析
  454. component: () => import( /* webpackChunkName: "healthLineChart" */
  455. "../views/HealthControl/healthLineChart.vue"),
  456. },
  457. {
  458. path: "/health/health4",
  459. name: "health4",
  460. children: [{
  461. path: "/health/health0/:wpId/:wtId",
  462. name: "health0",
  463. component: () =>
  464. import("../views/HealthControl/Health0.vue"),
  465. }, {
  466. path: "/health/health10/:wpId/:wtId",
  467. name: "health10",
  468. component: () =>
  469. import( /* webpackChunkName: "health8" */ "../views/HealthControl/Health10.vue"),
  470. }, {
  471. path: "healthLineChart2/:wpId/:wtId", // 健康趋势
  472. component: () =>
  473. import( /* webpackChunkName: "healthLineChart2" */
  474. "../views/HealthControl/healthLineChart2.vue"),
  475. }],
  476. component: () =>
  477. import("../views/HealthControl/Health4.vue"),
  478. },
  479. {
  480. path: "/health/health5/",
  481. name: "health5",
  482. component: () =>
  483. import("../views/HealthControl/Health5.vue"),
  484. },
  485. {
  486. path: "/health/health6", // 健康总览
  487. name: "health6",
  488. component: () =>
  489. import("../views/HealthControl/Health6.vue"),
  490. },
  491. {
  492. path: "/health/health8",
  493. name: "health8",
  494. component: () =>
  495. import( /* webpackChunkName: "health8" */ "../views/HealthControl/Health8.vue"),
  496. },
  497. {
  498. path: "/health/allLifeManage", // 全生命周期管理
  499. name: "allLifeManage",
  500. component: () =>
  501. import("../views/allLifeManage/index.vue"),
  502. },
  503. {
  504. path: "/health/nxfx/powerCurve", // 功率曲线拟合
  505. name: "powerCurve",
  506. component: () => import( /* webpackChunkName: "powerCurve" */ "../views/powerCurve/index.vue"),
  507. },
  508. {
  509. path: "/health/nxfx/phdffx", // 偏航对风分析
  510. name: "phdffx",
  511. component: () => import( /* webpackChunkName: "malfunctionStatistics" */ "../views/windAnalysis/phdffx.vue"),
  512. },
  513. {
  514. path: "/health/nxfx/cutAnalyse", // 切入切出分析
  515. name: "cutAnalyse",
  516. component: () =>
  517. import("../views/cutAnalyse/index.vue"),
  518. },
  519. // 曲线排行榜
  520. {
  521. path: "/health/nxfx/qxpclfx",
  522. name: "qxpclfx",
  523. component: () => import("../views/nxfx/qxpclfx.vue")
  524. },
  525. {
  526. path: "/health/nxfx/wtSaturability", // 单机饱和度
  527. name: "wtSaturability",
  528. component: () =>
  529. import("../views/wtSaturability/index.vue"),
  530. },
  531. {
  532. path: "/health/kkxfx/alarmcenter1",
  533. name: "alarmcenter1",
  534. component: () => import( /* webpackChunkName: "alarmcenter1" */ "../views/NewPages/alarm-center-1.vue"),
  535. },
  536. {
  537. path: "/health/kkxfx/alarmcenter2",
  538. name: "alarmcenter2",
  539. component: () =>
  540. import( /* webpackChunkName: "alarmcenter2" */ "../views/NewPages/alarm-center-2.vue"),
  541. },
  542. {
  543. path: "/health/kkxfx/warnStatistics", // 预警评判分析
  544. name: "warnStatistics",
  545. component: () =>
  546. import( /* webpackChunkName: "warnStatistics" */ "../views/warnStatistics/index.vue"),
  547. },
  548. {
  549. path: "/health/kkxfx/malfunctionStatistics", // 故障评判分析
  550. name: "malfunctionStatistics",
  551. component: () =>
  552. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionStatistics/index.vue"),
  553. }, {
  554. path: "/health/kkxfx/bjgltjb",
  555. name: "bjgltjb",
  556. component: () =>
  557. import( /* webpackChunkName: "bjgltjb" */ "../views/report/bjgltjb.vue"),
  558. },
  559. {
  560. path: "/health/fzyfx/windAnalysis", // 风资源分析
  561. name: "windAnalysis",
  562. component: () =>
  563. import("../views/windAnalysis/index.vue"),
  564. },
  565. {
  566. path: "/health/fzyfx/windAnalysis/fx", // 风向
  567. name: "fxzstmain",
  568. component: () => import("../views/windAnalysis/fxzstmain.vue"),
  569. },
  570. {
  571. path: "/health/MalfunctionWarning/", //故障预警 无监督学习
  572. name: "MalfunctionWarning",
  573. component: () => import("../views/MalfunctionWarning/MalfunctionWarning.vue")
  574. },
  575. {
  576. path: "/health/MalfunctionWarning/Supervised", //有监督学习
  577. name: "Supervised",
  578. component: () => import("../views/MalfunctionWarning/supervised.vue")
  579. },
  580. /***********************************************************智慧检修************************************************************* */
  581. /***********************************************************安全管控************************************************************* */
  582. {
  583. path: "/save",
  584. name: "save",
  585. component: () =>
  586. import( /* webpackChunkName: "personnel" */ "../views/NewPages/iframe4.vue"),
  587. },
  588. {
  589. path: "/save/personnel",
  590. name: "personnel",
  591. component: () =>
  592. import( /* webpackChunkName: "personnel" */ "../views/NewPages/personnel.vue"),
  593. },
  594. {
  595. path: "/globalMonitor", // 全局监视
  596. name: "globalMonitor",
  597. component: () =>
  598. import( /* webpackChunkName: "globalMonitor" */ "../views/Others/index.vue"),
  599. }
  600. /***********************************************************安全管控************************************************************* */
  601. , {
  602. path: '/others', // 其他
  603. name: 'others',
  604. component: () =>
  605. import('../views/Others/index.vue'),
  606. },
  607. {
  608. path: "/others/reportPandect", // 报表总览
  609. name: "reportPandect",
  610. component: () =>
  611. import( /* webpackChunkName: "reportPandect" */ "../views/reportPandect/index.vue"),
  612. }, {
  613. path: "/others/tjfx",
  614. name: "tjfx",
  615. component: () =>
  616. import( /* webpackChunkName: "tjfx" */ "../views/report/tjfx.vue"),
  617. },
  618. {
  619. path: "/others/bdzcx",
  620. name: "bdzcx",
  621. component: () =>
  622. import( /* webpackChunkName: "bdzcx" */ "../views/report/bdzcx.vue"),
  623. },
  624. {
  625. path: "/others/oafd",
  626. name: "oafd",
  627. component: () =>
  628. import( /* webpackChunkName: "oafd" */ "../views/report/oafd.vue"),
  629. },
  630. {
  631. path: "/others/oagf",
  632. name: "oagf",
  633. component: () =>
  634. import( /* webpackChunkName: "oagf" */ "../views/report/oagf.vue"),
  635. },
  636. {
  637. path: "/others/missfdrb",
  638. name: "missfdrb",
  639. component: () =>
  640. import( /* webpackChunkName: "missfdrb" */ "../views/report/missfdrb.vue"),
  641. },
  642. {
  643. path: "/others/missgfrb",
  644. name: "missgfrb",
  645. component: () =>
  646. import( /* webpackChunkName: "missgfrb" */ "../views/report/missgfrb.vue"),
  647. },
  648. {
  649. path: "/others/xnyfdscyb",
  650. name: "xnyfdscyb",
  651. component: () =>
  652. import( /* webpackChunkName: "xnyfdscyb" */ "../views/report/xnyfdscyb.vue"),
  653. },
  654. {
  655. path: "/others/mhsscyb",
  656. name: "mhsscyb",
  657. component: () =>
  658. import( /* webpackChunkName: "mhsscyb" */ "../views/report/mhsscyb.vue"),
  659. },
  660. {
  661. path: "/others/nssscyb",
  662. name: "nssscyb",
  663. component: () =>
  664. import( /* webpackChunkName: "nssscyb" */ "../views/report/nssscyb.vue"),
  665. },
  666. {
  667. path: "/others/qsscyb",
  668. name: "qsscyb",
  669. component: () =>
  670. import( /* webpackChunkName: "qsscyb" */ "../views/report/qsscyb.vue"),
  671. },
  672. {
  673. path: "/others/sbqscyb",
  674. name: "sbqscyb",
  675. component: () =>
  676. import( /* webpackChunkName: "sbqscyb" */ "../views/report/sbqscyb.vue"),
  677. },
  678. {
  679. path: "/others/xsscyb",
  680. name: "xsscyb",
  681. component: () =>
  682. import( /* webpackChunkName: "xsscyb" */ "../views/report/xsscyb.vue"),
  683. },
  684. {
  685. path: "/others/xnygfscyb",
  686. name: "xnygfscyb",
  687. component: () =>
  688. import( /* webpackChunkName: "xnygfscyb" */ "../views/report/xnygfscyb.vue"),
  689. },
  690. {
  691. path: "/others/dwkscyb",
  692. name: "dwkscyb",
  693. component: () =>
  694. import( /* webpackChunkName: "dwkscyb" */ "../views/report/dwkscyb.vue"),
  695. },
  696. {
  697. path: "/others/plscyb",
  698. name: "plscyb",
  699. component: () =>
  700. import( /* webpackChunkName: "plscyb" */ "../views/report/plscyb.vue"),
  701. },
  702. {
  703. path: "/others/xhscyb",
  704. name: "xhscyb",
  705. component: () =>
  706. import( /* webpackChunkName: "xhscyb" */ "../views/report/xhscyb.vue"),
  707. },
  708. {
  709. path: "/others/fdczzdy",
  710. name: "fdczzdy",
  711. component: () =>
  712. import( /* webpackChunkName: "fdczzdy" */ "../views/report/fdczzdy.vue"),
  713. },
  714. {
  715. path: "/others/fdxmzdy",
  716. name: "fdxmzdy",
  717. component: () =>
  718. import( /* webpackChunkName: "fdxmzdy" */ "../views/report/fdxmzdy.vue"),
  719. },
  720. {
  721. path: "/others/gfczzdy",
  722. name: "gfczzdy",
  723. component: () =>
  724. import( /* webpackChunkName: "gfczzdy" */ "../views/report/gfczzdy.vue"),
  725. },
  726. {
  727. path: "/others/gfxmzdy",
  728. name: "gfxmzdy",
  729. component: () =>
  730. import( /* webpackChunkName: "gfxmzdy" */ "../views/report/gfxmzdy.vue"),
  731. },
  732. {
  733. path: "/others/xnyrb",
  734. name: "xnyrb",
  735. component: () =>
  736. import( /* webpackChunkName: "xnyrb" */ "../views/report/xnyrb.vue"),
  737. },
  738. {
  739. path: "/others/weather",
  740. name: "weather",
  741. component: () => import("../views/report/weather.vue"),
  742. },
  743. {
  744. path: "/others/ExportExcel",
  745. name: "ExportExcel",
  746. component: () => import("../views/report/ExportExcel.vue"),
  747. },
  748. {
  749. path: '/others/realSearch', // 测点数据查询
  750. name: 'realSearch',
  751. component: () =>
  752. import('../views/realSearch/index.vue'),
  753. },
  754. {
  755. path: "/others/historysearch",
  756. name: "historysearch",
  757. component: () => import( /* webpackChunkName: "historysearch" */ "../views/NewPages/history-search.vue"),
  758. },
  759. {
  760. path: '/others/historySearch', // 测点历史数据查询
  761. name: 'historySearch',
  762. component: () =>
  763. import('../views/historySearch/index.vue'),
  764. },
  765. {
  766. path: '/others/alarmCenter/alarmcenter',
  767. name: 'alarmcenter',
  768. component: () =>
  769. import( /* webpackChunkName: "personnel" */ '../views/NewPages/alarm-center.vue'),
  770. },
  771. {
  772. path: "/others/alarmCenter/tjsj",
  773. name: "tjsj",
  774. component: () =>
  775. import( /* webpackChunkName: "tjsj" */ "../views/warn/tjsj.vue"),
  776. },
  777. {
  778. path: "/others/alarmCenter/xdgl",
  779. name: "xdgl",
  780. component: () =>
  781. import( /* webpackChunkName: "xdgl" */ "../views/warn/xdgl.vue"),
  782. }, // 报警中心-升压站报警
  783. {
  784. path: "/others/alarmCenter/ztzhjl",
  785. name: "ztzhjl",
  786. component: () =>
  787. import( /* webpackChunkName: "ztzhjl" */ "../views/warn/ztzhjl.vue"),
  788. },
  789. {
  790. path: "/others/alarmCenter/czjl",
  791. name: "czjl",
  792. component: () =>
  793. import( /* webpackChunkName: "czjl" */ "../views/warn/czjl.vue"),
  794. },
  795. {//光伏告警
  796. path: "/others/alarmCenter/gfgj",
  797. name: "gfgj",
  798. component: () =>
  799. import( /* webpackChunkName: "gfgj" */ "../views/warn/gfgj.vue"),
  800. },
  801. {
  802. path: "/others/alarmCenter/boosterAlarm",
  803. name: "boosterAlarm",
  804. component: () => import("../views/alarmCenter/boosterAlarm.vue")
  805. },
  806. //故障样本库
  807. {
  808. path: "/others/fault",
  809. name: "fault",
  810. component: () => import("../views/sampleDatabase/fault/index.vue")
  811. },
  812. //性能样本库
  813. {
  814. path: "/others/performance",
  815. name: "performance",
  816. component: () => import("../views/sampleDatabase/performance/index.vue")
  817. },
  818. //预警样本库
  819. {
  820. path: "/others/warning",
  821. name: "warning",
  822. component: () => import("../views/sampleDatabase/warning/index.vue")
  823. },
  824. //性能预警综合分析
  825. {
  826. path: "/others/analysis",
  827. name: "analysis",
  828. component: () => import("../views/sampleDatabase/analysis/index.vue")
  829. },
  830. //知识库
  831. {
  832. path: "/others/knowledgeBase",
  833. name: "knowledgeBase",
  834. component: () => import("../views/sampleDatabase/knowledgeBase/index.vue")
  835. },
  836. //智能营销样本库
  837. {
  838. path: "/others/market",
  839. name: "market",
  840. component: () => import("../views/sampleDatabase/market/index.vue")
  841. },
  842. // 报警中心-SCADA报警
  843. {
  844. path: "/others/alarmCenter/scadaAlarm",
  845. name: "scadaAlarm",
  846. component: () => import("../views/alarmCenter/scadaAlarm.vue")
  847. },
  848. // 报警中心-自定义报警
  849. {
  850. path: "/others/alarmCenter/customAlarm",
  851. name: "customAlarm",
  852. component: () => import("../views/alarmCenter/customAlarm.vue")
  853. },
  854. // 报警中心-自定义报警统计
  855. {
  856. path: "/others/alarmCenter/customStatistics",
  857. name: "customStatistics",
  858. component: () => import("../views/alarmCenter/customStatistics.vue")
  859. },
  860. {
  861. path: '/others/knowledge/knowledge', //故障知识列表
  862. name: 'knowledge1',
  863. component: () =>
  864. import('../views/Knowledge/Knowledge1.vue'),
  865. },
  866. {
  867. path: '/others/knowledge/knowledge2', //安全措施知识
  868. name: 'knowledge2',
  869. component: () =>
  870. import('../views/Knowledge/Knowledge2.vue'),
  871. },
  872. {
  873. path: '/others/knowledge/knowledge3', //风险辨识知识
  874. name: 'knowledge3',
  875. component: () =>
  876. import('../views/Knowledge/Knowledge3.vue'),
  877. },
  878. {
  879. path: '/others/knowledge/knowledge4', //作业指导知识
  880. name: 'knowledge4',
  881. component: () =>
  882. import('../views/Knowledge/Knowledge4.vue'),
  883. },
  884. {
  885. path: '/others/knowledge/knowledge5', //特征参数
  886. name: 'knowledge5',
  887. component: () =>
  888. import('../views/Knowledge/Knowledge5.vue'),
  889. },
  890. {
  891. path: '/others/knowledge/knowledge6', //排查检修方案
  892. name: 'knowledge6',
  893. component: () =>
  894. import('../views/Knowledge/Knowledge6.vue'),
  895. },
  896. {
  897. path: '/others/knowledge/knowledge7', //预警知识
  898. name: 'knowledge7',
  899. component: () =>
  900. import('../views/Knowledge/Knowledge7.vue'),
  901. },
  902. {
  903. path: '/device/device', //设备管理
  904. name: 'device',
  905. component: () =>
  906. import('../views/device/device.vue'),
  907. }
  908. /***********************************************************其他************************************************************ */
  909. ,
  910. {
  911. path: "/planPower",
  912. name: "planPower",
  913. component: () =>
  914. import( /* webpackChunkName: "planPower" */ "../views/planPower/index.vue"),
  915. },
  916. {
  917. path: '/new/intelligentalarmcenter',
  918. name: 'intelligentalarmcenter',
  919. component: () =>
  920. import( /* webpackChunkName: "intelligentalarmcenter" */
  921. '../views/NewPages/intelligent-alarm-center.vue'),
  922. },
  923. {
  924. path: '/new/knowledgebase',
  925. name: 'knowledgebase',
  926. component: () =>
  927. import( /* webpackChunkName: "knowledgebase" */ '../views/NewPages/knowledge-base.vue'),
  928. },
  929. {
  930. path: "/new/dj",
  931. name: "dj",
  932. component: () =>
  933. import( /* webpackChunkName: "dj" */ "../views/NewPages/dj.vue"),
  934. },
  935. {
  936. path: "/new/dj2",
  937. name: "dj2",
  938. component: () =>
  939. import( /* webpackChunkName: "dj2" */ "../views/NewPages/dj2.vue"),
  940. },
  941. {
  942. path: "/new/dialog",
  943. name: "dialog",
  944. component: () =>
  945. import( /* webpackChunkName: "dj2" */ "../views/NewPages/dialogs.vue"),
  946. },
  947. {
  948. path: "/new/powerforecast2",
  949. name: "powerforecast2",
  950. component: () => import( /* webpackChunkName: "powerforecast2" */ "../views/NewPages/power-forecast-2.vue"),
  951. },
  952. ]
  953. const router = createRouter({
  954. history: createWebHashHistory(),
  955. base: "/zhfx/",
  956. routes
  957. });
  958. router.beforeEach((to, from, next) => {
  959. next();
  960. });
  961. // router.beforeEach((to, from, next) => {
  962. // if (to.path === '/login') {
  963. // next()
  964. // } else {
  965. // let authToken = localStorage.getItem('authToken')
  966. // console.log('authToken:', authToken)
  967. // if (authToken === null || authToken === "") {
  968. // next({ path: '/login' })
  969. // } else {
  970. // next()
  971. // }
  972. // }
  973. // })
  974. export default router;