index.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959
  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: "historysearch" */ "../views/report/nhycfsdl.vue"),
  363. },
  364. {
  365. path: "/decision/xzycfsdl",
  366. name: "xzycfsdl",
  367. component: () =>
  368. import( /* webpackChunkName: "historysearch" */ "../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/gzzd/malfunctionDiagnose", // 故障诊断
  397. name: "malfunctionDiagnose",
  398. component: () => import("../views/malfunctionDiagnose/index.vue")
  399. },
  400. {
  401. path: "/health/gzzd/malfunctionRecall", // 故障回溯
  402. name: "malfunctionRecall",
  403. component: () =>
  404. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionRecall/index.vue"),
  405. },
  406. {
  407. path: "/health/gzzd/gzfl", // 故障分类
  408. name: "gzfl",
  409. component: () =>
  410. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionDiagnose/gzfl.vue"),
  411. },
  412. {
  413. path: "/health/frist",
  414. name: "health",
  415. component: () =>
  416. import("../views/HealthControl/Health.vue"),
  417. },
  418. {
  419. path: "/health/health1",
  420. name: "health1",
  421. component: () =>
  422. import("../views/HealthControl/Health1.vue"),
  423. },
  424. {
  425. path: "/health/health2", // 健康管理首页
  426. name: "health2",
  427. component: () =>
  428. import("../views/HealthControl/Health2.vue"),
  429. },
  430. {
  431. path: "/health/health3/:wpId", // 场站健康管理
  432. name: "health3",
  433. component: () =>
  434. import("../views/HealthControl/Health3.vue"),
  435. },
  436. {
  437. path: "/health/healthLineChart/:wpId/:wtId", // 劣化状态分析
  438. component: () => import( /* webpackChunkName: "healthLineChart" */
  439. "../views/HealthControl/healthLineChart.vue"),
  440. },
  441. {
  442. path: "/health/health4",
  443. name: "health4",
  444. children: [{
  445. path: "/health/health0/:wpId/:wtId",
  446. name: "health0",
  447. component: () =>
  448. import("../views/HealthControl/Health0.vue"),
  449. }, {
  450. path: "/health/health10/:wpId/:wtId",
  451. name: "health10",
  452. component: () =>
  453. import( /* webpackChunkName: "health8" */ "../views/HealthControl/Health10.vue"),
  454. }, {
  455. path: "healthLineChart2/:wpId/:wtId", // 健康趋势
  456. component: () =>
  457. import( /* webpackChunkName: "healthLineChart2" */
  458. "../views/HealthControl/healthLineChart2.vue"),
  459. }],
  460. component: () =>
  461. import("../views/HealthControl/Health4.vue"),
  462. },
  463. {
  464. path: "/health/health5/",
  465. name: "health5",
  466. component: () =>
  467. import("../views/HealthControl/Health5.vue"),
  468. },
  469. {
  470. path: "/health/health6", // 健康总览
  471. name: "health6",
  472. component: () =>
  473. import("../views/HealthControl/Health6.vue"),
  474. },
  475. {
  476. path: "/health/health8",
  477. name: "health8",
  478. component: () =>
  479. import( /* webpackChunkName: "health8" */ "../views/HealthControl/Health8.vue"),
  480. },
  481. {
  482. path: "/health/allLifeManage", // 全生命周期管理
  483. name: "allLifeManage",
  484. component: () =>
  485. import("../views/allLifeManage/index.vue"),
  486. },
  487. {
  488. path: "/health/nxfx/powerCurve", // 功率曲线拟合
  489. name: "powerCurve",
  490. component: () => import( /* webpackChunkName: "powerCurve" */ "../views/powerCurve/index.vue"),
  491. },
  492. {
  493. path: "/health/nxfx/phdffx", // 偏航对风分析
  494. name: "phdffx",
  495. component: () => import( /* webpackChunkName: "malfunctionStatistics" */ "../views/windAnalysis/phdffx.vue"),
  496. },
  497. {
  498. path: "/health/nxfx/cutAnalyse", // 切入切出分析
  499. name: "cutAnalyse",
  500. component: () =>
  501. import("../views/cutAnalyse/index.vue"),
  502. },
  503. // 曲线排行榜
  504. {
  505. path: "/health/nxfx/qxpclfx",
  506. name: "qxpclfx",
  507. component: () => import("../views/nxfx/qxpclfx.vue")
  508. },
  509. {
  510. path: "/health/nxfx/wtSaturability", // 单机饱和度
  511. name: "wtSaturability",
  512. component: () =>
  513. import("../views/wtSaturability/index.vue"),
  514. },
  515. {
  516. path: "/health/kkxfx/alarmcenter1",
  517. name: "alarmcenter1",
  518. component: () => import( /* webpackChunkName: "alarmcenter1" */ "../views/NewPages/alarm-center-1.vue"),
  519. },
  520. {
  521. path: "/health/kkxfx/alarmcenter2",
  522. name: "alarmcenter2",
  523. component: () =>
  524. import( /* webpackChunkName: "alarmcenter2" */ "../views/NewPages/alarm-center-2.vue"),
  525. },
  526. {
  527. path: "/health/kkxfx/warnStatistics", // 预警评判分析
  528. name: "warnStatistics",
  529. component: () =>
  530. import( /* webpackChunkName: "warnStatistics" */ "../views/warnStatistics/index.vue"),
  531. },
  532. {
  533. path: "/health/kkxfx/malfunctionStatistics", // 故障评判分析
  534. name: "malfunctionStatistics",
  535. component: () =>
  536. import( /* webpackChunkName: "malfunctionStatistics" */ "../views/malfunctionStatistics/index.vue"),
  537. }, {
  538. path: "/health/kkxfx/bjgltjb",
  539. name: "bjgltjb",
  540. component: () =>
  541. import( /* webpackChunkName: "historysearch" */ "../views/report/bjgltjb.vue"),
  542. },
  543. {
  544. path: "/health/fzyfx/windAnalysis", // 风资源分析
  545. name: "windAnalysis",
  546. component: () =>
  547. import("../views/windAnalysis/index.vue"),
  548. },
  549. {
  550. path: "/health/fzyfx/windAnalysis/fx", // 风向
  551. name: "fxzstmain",
  552. component: () => import("../views/windAnalysis/fxzstmain.vue"),
  553. },
  554. {
  555. path: "/health/MalfunctionWarning/", //故障预警 无监督学习
  556. name: "MalfunctionWarning",
  557. component: () => import("../views/MalfunctionWarning/MalfunctionWarning.vue")
  558. },
  559. {
  560. path: "/health/MalfunctionWarning/Supervised", //有监督学习
  561. name: "Supervised",
  562. component: () => import("../views/MalfunctionWarning/supervised.vue")
  563. },
  564. /***********************************************************智慧检修************************************************************* */
  565. /***********************************************************安全管控************************************************************* */
  566. {
  567. path: "/save",
  568. name: "save",
  569. component: () =>
  570. import( /* webpackChunkName: "personnel" */ "../views/NewPages/iframe4.vue"),
  571. },
  572. {
  573. path: "/save/personnel",
  574. name: "personnel",
  575. component: () =>
  576. import( /* webpackChunkName: "personnel" */ "../views/NewPages/personnel.vue"),
  577. },
  578. {
  579. path: "/globalMonitor", // 全局监视
  580. name: "globalMonitor",
  581. component: () =>
  582. import( /* webpackChunkName: "globalMonitor" */ "../views/Others/index.vue"),
  583. }
  584. /***********************************************************安全管控************************************************************* */
  585. , {
  586. path: '/others', // 其他
  587. name: 'others',
  588. component: () =>
  589. import('../views/Others/index.vue'),
  590. },
  591. {
  592. path: "/others/reportPandect", // 报表总览
  593. name: "reportPandect",
  594. component: () =>
  595. import( /* webpackChunkName: "reportPandect" */ "../views/reportPandect/index.vue"),
  596. }, {
  597. path: "/others/tjfx",
  598. name: "tjfx",
  599. component: () =>
  600. import( /* webpackChunkName: "historysearch" */ "../views/report/tjfx.vue"),
  601. },
  602. {
  603. path: "/others/bdzcx",
  604. name: "bdzcx",
  605. component: () =>
  606. import( /* webpackChunkName: "historysearch" */ "../views/report/bdzcx.vue"),
  607. },
  608. {
  609. path: "/others/oafd",
  610. name: "oafd",
  611. component: () =>
  612. import( /* webpackChunkName: "historysearch" */ "../views/report/oafd.vue"),
  613. },
  614. {
  615. path: "/others/oagf",
  616. name: "oagf",
  617. component: () =>
  618. import( /* webpackChunkName: "historysearch" */ "../views/report/oagf.vue"),
  619. },
  620. {
  621. path: "/others/missfdrb",
  622. name: "missfdrb",
  623. component: () =>
  624. import( /* webpackChunkName: "historysearch" */ "../views/report/missfdrb.vue"),
  625. },
  626. {
  627. path: "/others/missgfrb",
  628. name: "missgfrb",
  629. component: () =>
  630. import( /* webpackChunkName: "historysearch" */ "../views/report/missgfrb.vue"),
  631. },
  632. {
  633. path: "/others/xnyfdscyb",
  634. name: "xnyfdscyb",
  635. component: () =>
  636. import( /* webpackChunkName: "historysearch" */ "../views/report/xnyfdscyb.vue"),
  637. },
  638. {
  639. path: "/others/mhsscyb",
  640. name: "mhsscyb",
  641. component: () =>
  642. import( /* webpackChunkName: "historysearch" */ "../views/report/mhsscyb.vue"),
  643. },
  644. {
  645. path: "/others/nssscyb",
  646. name: "nssscyb",
  647. component: () =>
  648. import( /* webpackChunkName: "historysearch" */ "../views/report/nssscyb.vue"),
  649. },
  650. {
  651. path: "/others/qsscyb",
  652. name: "qsscyb",
  653. component: () =>
  654. import( /* webpackChunkName: "historysearch" */ "../views/report/qsscyb.vue"),
  655. },
  656. {
  657. path: "/others/sbqscyb",
  658. name: "sbqscyb",
  659. component: () =>
  660. import( /* webpackChunkName: "historysearch" */ "../views/report/sbqscyb.vue"),
  661. },
  662. {
  663. path: "/others/xsscyb",
  664. name: "xsscyb",
  665. component: () =>
  666. import( /* webpackChunkName: "historysearch" */ "../views/report/xsscyb.vue"),
  667. },
  668. {
  669. path: "/others/xnygfscyb",
  670. name: "xnygfscyb",
  671. component: () =>
  672. import( /* webpackChunkName: "historysearch" */ "../views/report/xnygfscyb.vue"),
  673. },
  674. {
  675. path: "/others/dwkscyb",
  676. name: "dwkscyb",
  677. component: () =>
  678. import( /* webpackChunkName: "historysearch" */ "../views/report/dwkscyb.vue"),
  679. },
  680. {
  681. path: "/others/plscyb",
  682. name: "plscyb",
  683. component: () =>
  684. import( /* webpackChunkName: "historysearch" */ "../views/report/plscyb.vue"),
  685. },
  686. {
  687. path: "/others/xhscyb",
  688. name: "xhscyb",
  689. component: () =>
  690. import( /* webpackChunkName: "historysearch" */ "../views/report/xhscyb.vue"),
  691. },
  692. {
  693. path: "/others/fdczzdy",
  694. name: "fdczzdy",
  695. component: () =>
  696. import( /* webpackChunkName: "historysearch" */ "../views/report/fdczzdy.vue"),
  697. },
  698. {
  699. path: "/others/fdxmzdy",
  700. name: "fdxmzdy",
  701. component: () =>
  702. import( /* webpackChunkName: "historysearch" */ "../views/report/fdxmzdy.vue"),
  703. },
  704. {
  705. path: "/others/gfczzdy",
  706. name: "gfczzdy",
  707. component: () =>
  708. import( /* webpackChunkName: "historysearch" */ "../views/report/gfczzdy.vue"),
  709. },
  710. {
  711. path: "/others/gfxmzdy",
  712. name: "gfxmzdy",
  713. component: () =>
  714. import( /* webpackChunkName: "historysearch" */ "../views/report/gfxmzdy.vue"),
  715. },
  716. {
  717. path: "/others/xnyrb",
  718. name: "xnyrb",
  719. component: () =>
  720. import( /* webpackChunkName: "historysearch" */ "../views/report/xnyrb.vue"),
  721. },
  722. {
  723. path: "/others/weather",
  724. name: "weather",
  725. component: () => import("../views/report/weather.vue"),
  726. },
  727. {
  728. path: "/others/ExportExcel",
  729. name: "ExportExcel",
  730. component: () => import("../views/report/ExportExcel.vue"),
  731. },
  732. {
  733. path: '/others/realSearch', // 测点数据查询
  734. name: 'realSearch',
  735. component: () =>
  736. import('../views/realSearch/index.vue'),
  737. },
  738. {
  739. path: "/others/historysearch",
  740. name: "historysearch",
  741. component: () => import( /* webpackChunkName: "historysearch" */ "../views/NewPages/history-search.vue"),
  742. },
  743. {
  744. path: '/others/historySearch', // 测点历史数据查询
  745. name: 'historySearch',
  746. component: () =>
  747. import('../views/historySearch/index.vue'),
  748. },
  749. {
  750. path: '/others/alarmCenter/alarmcenter',
  751. name: 'alarmcenter',
  752. component: () =>
  753. import( /* webpackChunkName: "personnel" */ '../views/NewPages/alarm-center.vue'),
  754. },
  755. {
  756. path: "/others/alarmCenter/tjsj",
  757. name: "tjsj",
  758. component: () =>
  759. import( /* webpackChunkName: "tjsj" */ "../views/warn/tjsj.vue"),
  760. },
  761. {
  762. path: "/others/alarmCenter/xdgl",
  763. name: "xdgl",
  764. component: () =>
  765. import( /* webpackChunkName: "xdgl" */ "../views/warn/xdgl.vue"),
  766. }, // 报警中心-升压站报警
  767. {
  768. path: "/others/alarmCenter/ztzhjl",
  769. name: "ztzhjl",
  770. component: () =>
  771. import( /* webpackChunkName: "ztzhjl" */ "../views/warn/ztzhjl.vue"),
  772. },
  773. {
  774. path: "/others/alarmCenter/czjl",
  775. name: "czjl",
  776. component: () =>
  777. import( /* webpackChunkName: "czjl" */ "../views/warn/czjl.vue"),
  778. },
  779. {//光伏告警
  780. path: "/others/alarmCenter/gfgj",
  781. name: "gfgj",
  782. component: () =>
  783. import( /* webpackChunkName: "gfgj" */ "../views/warn/gfgj.vue"),
  784. },
  785. {
  786. path: "/others/alarmCenter/boosterAlarm",
  787. name: "boosterAlarm",
  788. component: () => import("../views/alarmCenter/boosterAlarm.vue")
  789. },
  790. //故障样本库
  791. {
  792. path: "/others/fault",
  793. name: "fault",
  794. component: () => import("../views/sampleDatabase/fault/index.vue")
  795. },
  796. //性能样本库
  797. {
  798. path: "/others/performance",
  799. name: "performance",
  800. component: () => import("../views/sampleDatabase/performance/index.vue")
  801. },
  802. //预警样本库
  803. {
  804. path: "/others/warning",
  805. name: "warning",
  806. component: () => import("../views/sampleDatabase/warning/index.vue")
  807. },
  808. //性能预警综合分析
  809. {
  810. path: "/others/analysis",
  811. name: "analysis",
  812. component: () => import("../views/sampleDatabase/analysis/index.vue")
  813. },
  814. //智能营销样本库
  815. {
  816. path: "/others/market",
  817. name: "market",
  818. component: () => import("../views/sampleDatabase/market/index.vue")
  819. },
  820. // 报警中心-SCADA报警
  821. {
  822. path: "/others/alarmCenter/scadaAlarm",
  823. name: "scadaAlarm",
  824. component: () => import("../views/alarmCenter/scadaAlarm.vue")
  825. },
  826. // 报警中心-自定义报警
  827. {
  828. path: "/others/alarmCenter/customAlarm",
  829. name: "customAlarm",
  830. component: () => import("../views/alarmCenter/customAlarm.vue")
  831. },
  832. // 报警中心-自定义报警统计
  833. {
  834. path: "/others/alarmCenter/customStatistics",
  835. name: "customStatistics",
  836. component: () => import("../views/alarmCenter/customStatistics.vue")
  837. },
  838. {
  839. path: '/others/knowledge/knowledge', //故障知识列表
  840. name: 'knowledge1',
  841. component: () =>
  842. import('../views/Knowledge/Knowledge1.vue'),
  843. },
  844. {
  845. path: '/others/knowledge/knowledge2', //安全措施知识
  846. name: 'knowledge2',
  847. component: () =>
  848. import('../views/Knowledge/Knowledge2.vue'),
  849. },
  850. {
  851. path: '/others/knowledge/knowledge3', //风险辨识知识
  852. name: 'knowledge3',
  853. component: () =>
  854. import('../views/Knowledge/Knowledge3.vue'),
  855. },
  856. {
  857. path: '/others/knowledge/knowledge4', //作业指导知识
  858. name: 'knowledge4',
  859. component: () =>
  860. import('../views/Knowledge/Knowledge4.vue'),
  861. },
  862. {
  863. path: '/others/knowledge/knowledge5', //特征参数
  864. name: 'knowledge5',
  865. component: () =>
  866. import('../views/Knowledge/Knowledge5.vue'),
  867. },
  868. {
  869. path: '/others/knowledge/knowledge6', //排查检修方案
  870. name: 'knowledge6',
  871. component: () =>
  872. import('../views/Knowledge/Knowledge6.vue'),
  873. },
  874. {
  875. path: '/others/knowledge/knowledge7', //预警知识
  876. name: 'knowledge7',
  877. component: () =>
  878. import('../views/Knowledge/Knowledge7.vue'),
  879. },
  880. {
  881. path: '/device/device', //设备管理
  882. name: 'device',
  883. component: () =>
  884. import('../views/device/device.vue'),
  885. }
  886. /***********************************************************其他************************************************************ */
  887. ,
  888. {
  889. path: "/planPower",
  890. name: "planPower",
  891. component: () =>
  892. import( /* webpackChunkName: "planPower" */ "../views/planPower/index.vue"),
  893. },
  894. {
  895. path: '/new/intelligentalarmcenter',
  896. name: 'intelligentalarmcenter',
  897. component: () =>
  898. import( /* webpackChunkName: "intelligentalarmcenter" */
  899. '../views/NewPages/intelligent-alarm-center.vue'),
  900. },
  901. {
  902. path: '/new/knowledgebase',
  903. name: 'knowledgebase',
  904. component: () =>
  905. import( /* webpackChunkName: "knowledgebase" */ '../views/NewPages/knowledge-base.vue'),
  906. },
  907. {
  908. path: "/new/dj",
  909. name: "dj",
  910. component: () =>
  911. import( /* webpackChunkName: "dj" */ "../views/NewPages/dj.vue"),
  912. },
  913. {
  914. path: "/new/dj2",
  915. name: "dj2",
  916. component: () =>
  917. import( /* webpackChunkName: "dj2" */ "../views/NewPages/dj2.vue"),
  918. },
  919. {
  920. path: "/new/dialog",
  921. name: "dialog",
  922. component: () =>
  923. import( /* webpackChunkName: "dj2" */ "../views/NewPages/dialogs.vue"),
  924. },
  925. {
  926. path: "/new/powerforecast2",
  927. name: "powerforecast2",
  928. component: () => import( /* webpackChunkName: "powerforecast2" */ "../views/NewPages/power-forecast-2.vue"),
  929. },
  930. ]
  931. const router = createRouter({
  932. history: createWebHashHistory(),
  933. base: "/zhfx/",
  934. routes
  935. });
  936. router.beforeEach((to, from, next) => {
  937. next();
  938. });
  939. // router.beforeEach((to, from, next) => {
  940. // if (to.path === '/login') {
  941. // next()
  942. // } else {
  943. // let authToken = localStorage.getItem('authToken')
  944. // console.log('authToken:', authToken)
  945. // if (authToken === null || authToken === "") {
  946. // next({ path: '/login' })
  947. // } else {
  948. // next()
  949. // }
  950. // }
  951. // })
  952. export default router;