Menu.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199
  1. <template>
  2. <div class="menu">
  3. <ul class="menu-list">
  4. <li
  5. class="menu-item"
  6. v-for="(menu, index) of currentMenu"
  7. :key="menu"
  8. @click="click(index)"
  9. :class="{ active: activeIndex == index }"
  10. @mouseenter="subMenuShow(menu.children, index)"
  11. >
  12. <router-link :to="menu.path">
  13. <el-tooltip
  14. class="item"
  15. effect="dark"
  16. :content="menu.text"
  17. placement="bottom"
  18. :show-after="500"
  19. :enterable="false"
  20. hide-after="10"
  21. >
  22. <div
  23. class="menu-icon svg-icon"
  24. :class="activeIndex == index ? 'svg-icon-green' : 'svg-icon-gray'"
  25. >
  26. <SvgIcon :svgid="menu.icon"></SvgIcon>
  27. </div>
  28. </el-tooltip>
  29. </router-link>
  30. <!-- <div v-if="menu.children" class="sub-menu-item">
  31. <div class="menu-icon svg-icon" :class="activeIndex == index ? 'svg-icon-green' : 'svg-icon-gray'">
  32. <SvgIcon :svgid="menu.icon"></SvgIcon>
  33. </div>
  34. </div> -->
  35. </li>
  36. </ul>
  37. </div>
  38. <div
  39. class="sub-menu"
  40. v-show="isShowSubMenu"
  41. @mouseleave="subMenuHide"
  42. v-if="$store.state.themeName === 'dark'"
  43. >
  44. <ul class="menu-list">
  45. <li
  46. class="menu-item"
  47. v-for="(menu, index) of subMenu"
  48. @click="subclick(index)"
  49. :key="menu"
  50. :class="{ active: subIndex == index }"
  51. >
  52. <router-link :to="menu.path">
  53. <div class="menu-icon svg-icon">
  54. <!-- <SvgIcon :svgid="menu.icon"></SvgIcon> -->
  55. </div>
  56. <div
  57. class="sub-menu-text"
  58. :class="subIndex == index ? 'green' : 'gray'"
  59. >
  60. {{ menu.text }}
  61. </div>
  62. </router-link>
  63. </li>
  64. </ul>
  65. </div>
  66. </template>
  67. <script>
  68. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  69. export default {
  70. components: {
  71. SvgIcon,
  72. },
  73. props: {},
  74. data() {
  75. return {
  76. currRoot: "monitor",
  77. menuData: [
  78. {
  79. id: "monitor",
  80. text: "驾驶舱",
  81. data: [
  82. // {
  83. // text: '驾驶舱',
  84. // icon: 'svg-lead-cockpit',
  85. // path: '/monitor/home'
  86. // },
  87. {
  88. text: "基础矩阵",
  89. icon: "svg-matrix",
  90. path: "/monitor/lightmatrix1",
  91. },
  92. {
  93. text: "明细矩阵",
  94. icon: "svg-mx-matrix",
  95. path: "/monitor/lightmatrix3",
  96. },
  97. {
  98. text: "欠发矩阵",
  99. icon: "svg-qf-matrix",
  100. path: "/monitor/lightmatrix2",
  101. },
  102. {
  103. text: "光伏矩阵",
  104. icon: "svg-gf-matrix",
  105. path: "/monitor/lightmatrix",
  106. },
  107. {
  108. text: "状态监视",
  109. icon: "svg-state-watch",
  110. path: "/monitor/status",
  111. },
  112. {
  113. text: "Agc",
  114. icon: "svg-agc",
  115. path: "/monitor/agc",
  116. },
  117. {
  118. text: "风场",
  119. icon: "svg-wind-site",
  120. path: "/monitor/windsite/home/MHS_FDC",
  121. },
  122. ],
  123. },
  124. {
  125. id: "decision",
  126. text: "经济运行",
  127. data: [
  128. // {
  129. // text: '经济运行首页',
  130. // icon: 'svg-wind-site',
  131. // // path: '/monitor/sandtable'
  132. // path: '/decision/pb'
  133. // },
  134. {
  135. text: "对标管理",
  136. icon: "svg-dbgl",
  137. path: "/decision/decision1",
  138. children: [
  139. {
  140. text: "风机绩效榜",
  141. icon: "svg-wind-site",
  142. path: "/decision/decision1",
  143. },
  144. {
  145. text: "五项损失率",
  146. icon: "svg-wind-site",
  147. path: "/decision/decision2",
  148. },
  149. {
  150. text: "场内对标",
  151. icon: "svg-wind-site",
  152. path: "/decision/decision2Cndb",
  153. },
  154. {
  155. text: "场际对标",
  156. icon: "svg-wind-site",
  157. path: "/decision/decision2Cjdb",
  158. },
  159. {
  160. text: "项目对标",
  161. icon: "svg-wind-site",
  162. path: "/decision/decision2Xmdb",
  163. },
  164. {
  165. text: "线路对标",
  166. icon: "svg-wind-site",
  167. path: "/decision/decision2Xldb",
  168. },
  169. {
  170. text: "性能对标",
  171. icon: "svg-wind-site",
  172. path: "/decision/decision3",
  173. },
  174. {
  175. text: "值际对标",
  176. icon: "svg-wind-site",
  177. path: "/decision/decision4",
  178. },
  179. {
  180. text: "单机横向对比",
  181. icon: "svg-matrix",
  182. path: "/decision/decision3db",
  183. },
  184. {
  185. text: "操作指令统计",
  186. icon: "svg-matrix",
  187. path: "/decision/decision4czzl",
  188. },
  189. ],
  190. },
  191. {
  192. text: "三率管理",
  193. icon: "svg-slgl",
  194. path: "/decision/fwjsl",
  195. children: [
  196. {
  197. text: "复位及时率",
  198. icon: "svg-wind-site",
  199. path: "/decision/fwjsl",
  200. },
  201. {
  202. text: "状态转换率",
  203. icon: "svg-wind-site",
  204. path: "/decision/ztzhl",
  205. },
  206. {
  207. text: "消缺及时率",
  208. icon: "svg-wind-site",
  209. path: "/decision/xqjsl",
  210. },
  211. ],
  212. },
  213. {
  214. text: "排行榜",
  215. icon: "svg-phb",
  216. path: "/decision/powerRank",
  217. children: [
  218. {
  219. text: "发电效率排行",
  220. icon: "svg-wind-site",
  221. path: "/decision/powerRank",
  222. },
  223. {
  224. text: "总发电效率排行",
  225. icon: "svg-wind-site",
  226. path: "/decision/totalPowerRank",
  227. },
  228. {
  229. text: "报警排行",
  230. icon: "svg-wind-site",
  231. path: "/decision/warningRank",
  232. },
  233. ],
  234. },
  235. {
  236. text: "专题分析",
  237. icon: "svg-ztfx",
  238. path: "/decision/ztfx",
  239. children: [
  240. {
  241. text: "综合分析",
  242. icon: "svg-wind-site",
  243. path: "/decision/ztfx",
  244. },
  245. {
  246. text: "风能利用率",
  247. icon: "svg-wind-site",
  248. path: "/decision/fnlyl",
  249. },
  250. {
  251. text: "维护损失率",
  252. icon: "svg-wind-site",
  253. path: "/decision/whssl",
  254. },
  255. {
  256. text: "故障损失率",
  257. icon: "svg-wind-site",
  258. path: "/decision/gzssl",
  259. },
  260. {
  261. text: "限电损失率",
  262. icon: "svg-wind-site",
  263. path: "/decision/xdssl",
  264. },
  265. {
  266. text: "性能损失率",
  267. icon: "svg-wind-site",
  268. path: "/decision/xnssl",
  269. },
  270. {
  271. text: "受累损失率",
  272. icon: "svg-wind-site",
  273. path: "/decision/slssl",
  274. },
  275. {
  276. text: "MTBF分析",
  277. icon: "svg-wind-site",
  278. path: "/decision/mtbf",
  279. },
  280. {
  281. text: "MTTR分析",
  282. icon: "svg-wind-site",
  283. path: "/decision/mttr",
  284. },
  285. {
  286. text: "复位分析",
  287. icon: "svg-wind-site",
  288. path: "/decision/zfwjsl",
  289. },
  290. {
  291. text: "状态分析",
  292. icon: "svg-wind-site",
  293. path: "/decision/zztzhl",
  294. },
  295. {
  296. text: "消缺分析",
  297. icon: "svg-wind-site",
  298. path: "/decision/zxqjsl",
  299. },
  300. {
  301. text: "发电量分析",
  302. icon: "svg-wind-site",
  303. path: "/decision/zfdl",
  304. },
  305. {
  306. text: "综合场用电量",
  307. icon: "svg-wind-site",
  308. path: "/decision/zzhcydl",
  309. },
  310. {
  311. text: "节能减排API",
  312. icon: "svg-wind-site",
  313. path: "/decision/zzhcydl",
  314. },
  315. ],
  316. },
  317. {
  318. text: "风机分析",
  319. icon: "svg-fjfx",
  320. path: "/decision/performanceAnalysis",
  321. children: [
  322. {
  323. text: "单机性能分析",
  324. icon: "svg-wind-site",
  325. path: "/decision/performanceAnalysis",
  326. },
  327. {
  328. text: "单机月度分析",
  329. icon: "svg-wind-site",
  330. path: "/decision/singleAnalysis",
  331. },
  332. ],
  333. },
  334. {
  335. text: "气象分析",
  336. icon: "svg-qxfx",
  337. path: "/decision/fs",
  338. },
  339. {
  340. text: "电量预测",
  341. icon: "svg-dlyc",
  342. path: "/decision/nhycfsdl",
  343. children: [
  344. {
  345. text: "预测拟合风速电量",
  346. icon: "svg-wind-sitenhycfsdl",
  347. path: "/decision/nhycfsdl",
  348. },
  349. {
  350. text: "修正预测风速电量",
  351. icon: "svg-wind-site",
  352. path: "/decision/xzycfsdl",
  353. },
  354. ],
  355. },
  356. // {
  357. // text: "单机分析",
  358. // icon: "svg-wind-site",
  359. // path: "/fgzyfx",
  360. // children: [
  361. // {
  362. // text: "单机分析详细",
  363. // icon: "svg-wind-site",
  364. // path: "/new/dj1",
  365. // },
  366. // {
  367. // text: "电量预测",
  368. // icon: "svg-wind-site",
  369. // path: "/new/pf1",
  370. // },
  371. // {
  372. // text: "气象预测",
  373. // icon: "svg-wind-site",
  374. // path: "/new/fs",
  375. // }
  376. // ]
  377. // }
  378. ],
  379. },
  380. {
  381. id: "health",
  382. text: "智慧检修",
  383. data: [
  384. // {
  385. // text: '沙盘',
  386. // icon: 'svg-沙盘',
  387. // // path: '/monitor/sandtable'
  388. // path: '/health/sandtable'
  389. // },
  390. {
  391. text: "等级评估",
  392. icon: "svg-等级评估",
  393. path: "/health/assess/index",
  394. children: [
  395. {
  396. text: "等级评估",
  397. icon: "svg-等级评估",
  398. path: "/health/assess/index",
  399. },
  400. {
  401. text: "自组合评级",
  402. icon: "svg-wind-site",
  403. path: "/health/assess/selfEvaluate",
  404. },
  405. ],
  406. },
  407. {
  408. text: "故障诊断",
  409. icon: "svg-故障诊断",
  410. path: "/health/gzzd/malfunctionDiagnose",
  411. children: [
  412. {
  413. text: "故障诊断",
  414. icon: "svg-wind-site",
  415. path: "/health/gzzd/malfunctionDiagnose",
  416. },
  417. {
  418. text: "故障回溯",
  419. icon: "svg-wind-site",
  420. path: "/health/gzzd/malfunctionRecall",
  421. },
  422. ],
  423. },
  424. {
  425. text: "健康管理",
  426. icon: "svg-健康管理",
  427. path: "/health/frist",
  428. children: [
  429. {
  430. text: "健康推荐",
  431. icon: "svg-wind-site",
  432. path: "/health/frist",
  433. },
  434. {
  435. text: "健康首页",
  436. icon: "svg-wind-site",
  437. path: "/health/health2",
  438. },
  439. {
  440. text: "健康总览",
  441. icon: "svg-wind-site",
  442. path: "/health/health6",
  443. },
  444. {
  445. text: "健康矩阵",
  446. icon: "svg-wind-site",
  447. path: "/health/health5",
  448. },
  449. // {
  450. // text: "健康列表",
  451. // icon: "svg-wind-site",
  452. // path: "/health/health6",
  453. // },
  454. {
  455. text: "健康列表",
  456. icon: "svg-wind-site",
  457. path: "/health/health8",
  458. },
  459. {
  460. text: "劣化状态分析",
  461. icon: "svg-q曲线",
  462. path: "/health/healthLineChart/MHS_FDC/MG01_01",
  463. },
  464. ],
  465. },
  466. {
  467. text: "全生命周期",
  468. icon: "svg-全生命周期",
  469. path: "/health/allLifeManage",
  470. },
  471. {
  472. text: "能效分析",
  473. icon: "svg-能效分析",
  474. path: "/health/nxfx/powerCurve",
  475. children: [
  476. {
  477. text: "功率曲线拟合",
  478. icon: "svg-wind-site",
  479. path: "/health/nxfx/powerCurve",
  480. },
  481. {
  482. text: "偏航对风分析",
  483. icon: "svg-wind-site",
  484. path: "/health/nxfx/phdffx",
  485. },
  486. {
  487. text: "切入切出分析",
  488. icon: "svg-wind-site",
  489. path: "/health/nxfx/cutAnalyse",
  490. },
  491. {
  492. text: "曲线偏差率分析",
  493. icon: "svg-wind-site",
  494. path: "/health/nxfx/qxpclfx",
  495. },
  496. {
  497. text: "单机饱和度",
  498. icon: "svg-wind-site",
  499. path: "/health/nxfx/wtSaturability",
  500. },
  501. ],
  502. },
  503. {
  504. text: "可靠性分析",
  505. icon: "svg-可靠性分析",
  506. path: "/health/kkxfx/alarmcenter1",
  507. children: [
  508. {
  509. text: "预警分析",
  510. icon: "svg-wind-site",
  511. path: "/health/kkxfx/alarmcenter1",
  512. },
  513. {
  514. text: "故障分析",
  515. icon: "svg-wind-site",
  516. path: "/health/kkxfx/alarmcenter2",
  517. },
  518. {
  519. text: "预警评判分析",
  520. icon: "svg-wind-site",
  521. path: "/health/kkxfx/warnStatistics",
  522. },
  523. {
  524. text: "故障评判分析",
  525. icon: "svg-wind-site",
  526. path: "/health/kkxfx/malfunctionStatistics",
  527. },
  528. {
  529. text: "部件评判分析",
  530. icon: "svg-wind-site",
  531. path: "/health/kkxfx/bjgltjb",
  532. },
  533. ],
  534. },
  535. {
  536. text: "风光资源分析",
  537. icon: "svg-风光资源分析",
  538. path: "/health/fzyfx/windAnalysis",
  539. children: [
  540. {
  541. text: "风资源散点",
  542. icon: "svg-wind-site",
  543. path: "/health/fzyfx/windAnalysis",
  544. },
  545. {
  546. text: "风资源风向",
  547. icon: "svg-wind-site",
  548. path: "/health/fzyfx/windAnalysis/fx",
  549. },
  550. ],
  551. },
  552. {
  553. text: "故障预警",
  554. icon: "svg-预警记录",
  555. path: "/health/MalfunctionWarning/",
  556. children: [
  557. {
  558. text: "无监督学习",
  559. icon: "svg-wind-site",
  560. path: "/health/MalfunctionWarning/",
  561. },
  562. {
  563. text: "有监督学习",
  564. icon: "svg-wind-site",
  565. path: "/health/MalfunctionWarning/Supervised",
  566. },
  567. ],
  568. },
  569. ],
  570. },
  571. {
  572. id: "save",
  573. text: "安全管控",
  574. data: [
  575. {
  576. text: "安全管控",
  577. icon: "svg-安全管控",
  578. path: "/save/personnel",
  579. children: [
  580. {
  581. text: "人员矩阵",
  582. icon: "svg-wind-site",
  583. path: "/save/personnel",
  584. },
  585. {
  586. text: "全局监视",
  587. icon: "svg-wind-site",
  588. path: "/save/globalMonitor",
  589. },
  590. ],
  591. },
  592. ],
  593. },
  594. // {
  595. // id: "znbb",
  596. // text: "智能报表",
  597. // data: [
  598. // {
  599. // text: '报表首页',
  600. // icon: 'svg-wind-site',
  601. // path: '/znbb/reportPandect'
  602. // },// 统计分析
  603. // {
  604. // text: "统计分析",
  605. // icon: "svg-matrix",
  606. // path: "/tjfx",
  607. // children: [
  608. // {
  609. // text: "统计分析",
  610. // icon: "svg-matrix",
  611. // path: "/tjfx",
  612. // },
  613. // {
  614. // text: "表底值查询",
  615. // icon: "svg-matrix",
  616. // path: "/bdzcx",
  617. // },
  618. // ],
  619. // },
  620. // {
  621. // text: "报表管理",
  622. // icon: "svg-matrix",
  623. // path: "/bdzcx",
  624. // children: [
  625. // {
  626. // text: "OA日报",
  627. // icon: "svg-matrix",
  628. // path: "/oafd",
  629. // },
  630. // {
  631. // text: "OA日报(光伏)",
  632. // icon: "svg-matrix",
  633. // path: "/oagf",
  634. // },
  635. // {
  636. // text: "新能源日报",
  637. // icon: "svg-matrix",
  638. // path: "/xnyrb",
  639. // },
  640. // {
  641. // text: "国电电力MISS日报(风电)",
  642. // icon: "svg-matrix",
  643. // path: "/missfdrb",
  644. // },
  645. // {
  646. // text: "国电电力MISS日报(光伏)",
  647. // icon: "svg-matrix",
  648. // path: "/missgfrb",
  649. // },
  650. // {
  651. // text: "新能源风电生产月报",
  652. // icon: "svg-matrix",
  653. // path: "/xnyfdscyb",
  654. // },
  655. // {
  656. // text: "麻黄山生产月报",
  657. // icon: "svg-matrix",
  658. // path: "/mhsscyb",
  659. // },
  660. // {
  661. // text: "牛首山生产月报",
  662. // icon: "svg-matrix",
  663. // path: "/nssscyb",
  664. // },
  665. // {
  666. // text: "青山生产月报",
  667. // icon: "svg-matrix",
  668. // path: "/qsscyb",
  669. // },
  670. // {
  671. // text: "石板泉生产月报",
  672. // icon: "svg-matrix",
  673. // path: "/sbqscyb",
  674. // },
  675. // {
  676. // text: "香山生产月报",
  677. // icon: "svg-matrix",
  678. // path: "/xsscyb",
  679. // },
  680. // {
  681. // text: "新能源光伏生产月报",
  682. // icon: "svg-matrix",
  683. // path: "/xnygfscyb",
  684. // },
  685. // {
  686. // text: "大武口生产月报",
  687. // icon: "svg-matrix",
  688. // path: "/dwkscyb",
  689. // },
  690. // {
  691. // text: "平罗生产月报",
  692. // icon: "svg-matrix",
  693. // path: "/plscyb",
  694. // },
  695. // {
  696. // text: "宣和生产月报",
  697. // icon: "svg-matrix",
  698. // path: "/xhscyb",
  699. // },
  700. // ],
  701. // },
  702. // {
  703. // text: "自定制报表管理",
  704. // icon: "svg-matrix",
  705. // path: "/fdczzdy",
  706. // children: [
  707. // {
  708. // text: "风电场站自定义",
  709. // icon: "svg-matrix",
  710. // path: "/fdczzdy",
  711. // },
  712. // {
  713. // text: "风电项目自定义",
  714. // icon: "svg-matrix",
  715. // path: "/fdxmzdy",
  716. // },
  717. // {
  718. // text: "光伏场站自定义",
  719. // icon: "svg-matrix",
  720. // path: "/gfczzdy",
  721. // },
  722. // {
  723. // text: "光伏项目自定义",
  724. // icon: "svg-matrix",
  725. // path: "/gfxmzdy",
  726. // },
  727. // ],
  728. // },
  729. // ],
  730. // },
  731. {
  732. id: "others",
  733. text: "其他",
  734. data: [
  735. {
  736. text: "统计分析",
  737. icon: "svg-统计分析",
  738. path: "/others/tjfx",
  739. children: [
  740. {
  741. text: "统计分析",
  742. icon: "svg-matrix",
  743. path: "/others/tjfx",
  744. },
  745. {
  746. text: "表底值查询",
  747. icon: "svg-matrix",
  748. path: "/others/bdzcx",
  749. },
  750. ],
  751. },
  752. {
  753. text: "报表管理",
  754. icon: "svg-报表管理",
  755. path: "/others/oafd",
  756. children: [
  757. {
  758. text: "OA日报",
  759. icon: "svg-matrix",
  760. path: "/others/oafd",
  761. },
  762. {
  763. text: "OA日报(光伏)",
  764. icon: "svg-matrix",
  765. path: "/others/oagf",
  766. },
  767. {
  768. text: "新能源日报",
  769. icon: "svg-matrix",
  770. path: "/others/xnyrb",
  771. },
  772. {
  773. text: "国电MIS日报(风电)",
  774. icon: "svg-matrix",
  775. path: "/others/missfdrb",
  776. },
  777. {
  778. text: "国电MIS日报(光伏)",
  779. icon: "svg-matrix",
  780. path: "/others/missgfrb",
  781. },
  782. {
  783. text: "新能源风电生产月报",
  784. icon: "svg-matrix",
  785. path: "/others/xnyfdscyb",
  786. },
  787. {
  788. text: "麻黄山生产月报",
  789. icon: "svg-matrix",
  790. path: "/others/mhsscyb",
  791. },
  792. {
  793. text: "牛首山生产月报",
  794. icon: "svg-matrix",
  795. path: "/others/nssscyb",
  796. },
  797. {
  798. text: "青山生产月报",
  799. icon: "svg-matrix",
  800. path: "/others/qsscyb",
  801. },
  802. {
  803. text: "石板泉生产月报",
  804. icon: "svg-matrix",
  805. path: "/others/sbqscyb",
  806. },
  807. {
  808. text: "香山生产月报",
  809. icon: "svg-matrix",
  810. path: "/others/xsscyb",
  811. },
  812. {
  813. text: "新能源光伏生产月报",
  814. icon: "svg-matrix",
  815. path: "/others/xnygfscyb",
  816. },
  817. {
  818. text: "大武口生产月报",
  819. icon: "svg-matrix",
  820. path: "/others/dwkscyb",
  821. },
  822. {
  823. text: "平罗生产月报",
  824. icon: "svg-matrix",
  825. path: "/others/plscyb",
  826. },
  827. {
  828. text: "宣和生产月报",
  829. icon: "svg-matrix",
  830. path: "/others/xhscyb",
  831. },
  832. ],
  833. },
  834. {
  835. text: "自定制报表管理",
  836. icon: "svg-自定制报表管理",
  837. path: "/others/fdczzdy",
  838. children: [
  839. {
  840. text: "风电场站自定义",
  841. icon: "svg-matrix",
  842. path: "/others/fdczzdy",
  843. },
  844. {
  845. text: "风电项目自定义",
  846. icon: "svg-matrix",
  847. path: "/others/fdxmzdy",
  848. },
  849. {
  850. text: "光伏场站自定义",
  851. icon: "svg-matrix",
  852. path: "/others/gfczzdy",
  853. },
  854. {
  855. text: "光伏项目自定义",
  856. icon: "svg-matrix",
  857. path: "/others/gfxmzdy",
  858. },
  859. ],
  860. },
  861. {
  862. text: "原始数据查询",
  863. icon: "svg-报表首页",
  864. path: "/others/realSearch",
  865. children: [
  866. {
  867. text: "测点数据查询",
  868. icon: "svg-wind-site",
  869. path: "/others/realSearch",
  870. },
  871. {
  872. text: "测点历史数据查询",
  873. icon: "svg-wind-site",
  874. path: "/others/historySearch",
  875. },
  876. {
  877. text: "气象历史数据",
  878. icon: "svg-wind-site",
  879. path: "/others/weather",
  880. },
  881. {
  882. text: "数据导出",
  883. icon: "svg-wind-site",
  884. path: "/others/ExportExcel",
  885. },
  886. {
  887. text: "设备管理",
  888. icon: "svg-wind-site",
  889. path: "/device/device",
  890. },
  891. ],
  892. },
  893. {
  894. text: "预警记录",
  895. icon: "svg-预警记录",
  896. path: "/others/alarmCenter/alarmcenter",
  897. children: [
  898. {
  899. text: "预警管理",
  900. icon: "svg-wind-site",
  901. path: "/others/alarmCenter/alarmcenter",
  902. },
  903. {
  904. text: "停机事件管理",
  905. icon: "svg-wind-site",
  906. path: "/others/alarmCenter/tjsj",
  907. },
  908. {
  909. text: "限电管理",
  910. icon: "svg-wind-site",
  911. path: "/others/alarmCenter/xdgl",
  912. },
  913. {
  914. text: "升压站报警",
  915. icon: "svg-wind-site",
  916. path: "/others/alarmCenter/boosterAlarm",
  917. },
  918. {
  919. text: "SCADA报警",
  920. icon: "svg-wind-site",
  921. path: "/others/alarmCenter/scadaAlarm",
  922. },
  923. {
  924. text: "自定义报警",
  925. icon: "svg-wind-site",
  926. path: "/others/alarmCenter/customAlarm",
  927. },
  928. {
  929. text: "自定义报警统计",
  930. icon: "svg-wind-site",
  931. path: "/others/alarmCenter/customStatistics",
  932. },
  933. ],
  934. },
  935. {
  936. text: "专家知识",
  937. icon: "svg-专家知识",
  938. path: "/others/knowledge/knowledge",
  939. children: [
  940. {
  941. text: "故障知识列表",
  942. icon: "svg-matrix",
  943. path: "/others/knowledge/knowledge",
  944. },
  945. {
  946. text: "安全措施知识",
  947. icon: "svg-matrix",
  948. path: "/others/knowledge/knowledge2",
  949. },
  950. {
  951. text: "排查检修方案",
  952. icon: "svg-matrix",
  953. path: "/others/knowledge/knowledge6",
  954. },
  955. {
  956. text: "预警知识",
  957. icon: "svg-matrix",
  958. path: "/others/knowledge/knowledge7",
  959. },
  960. {
  961. text: "特征参数",
  962. icon: "svg-matrix",
  963. path: "/others/knowledge/knowledge5",
  964. },
  965. {
  966. text: "风险辨识知识",
  967. icon: "svg-matrix",
  968. path: "/others/knowledge/knowledge3",
  969. },
  970. {
  971. text: "作业指导知识",
  972. icon: "svg-matrix",
  973. path: "/others/knowledge/knowledge4",
  974. },
  975. ],
  976. },
  977. {
  978. text: "样本库",
  979. icon: "svg-报表管理",
  980. path: "/others/fault",
  981. children: [
  982. {
  983. text: "故障训练样本库",
  984. icon: "svg-matrix",
  985. path: "/others/fault",
  986. },
  987. {
  988. text: "性能下降样本库",
  989. icon: "svg-matrix",
  990. path: "/others/performance",
  991. },
  992. {
  993. text: "预警分析样本库",
  994. icon: "svg-matrix",
  995. path: "/others/warning",
  996. },
  997. {
  998. text: "性能预警综合分析",
  999. icon: "svg-matrix",
  1000. path: "/others/analysis",
  1001. },
  1002. {
  1003. text: "功率曲线综合分析",
  1004. icon: "svg-matrix",
  1005. path: "/others/powerline/analysis",
  1006. },
  1007. {
  1008. text: "知识库",
  1009. icon: "svg-matrix",
  1010. path: "/others/knowledgeBase",
  1011. },
  1012. // {
  1013. // text: "发电能力分析",
  1014. // icon: "svg-matrix",
  1015. // path: "/others/abilityAnalysis",
  1016. // },
  1017. // {
  1018. // text: "风电营销样本库",
  1019. // icon: "svg-matrix",
  1020. // path: "/others/market",
  1021. // }
  1022. ],
  1023. },
  1024. ],
  1025. },
  1026. ],
  1027. activeIndex: 0,
  1028. isShowSubMenu: false,
  1029. parentIndex: null,
  1030. subMenu: [],
  1031. subIndex: null,
  1032. };
  1033. },
  1034. methods: {
  1035. click(index) {
  1036. this.activeIndex = index;
  1037. this.subIndex = null;
  1038. },
  1039. subMenuShow(children, index) {
  1040. if (children) {
  1041. this.isShowSubMenu = true;
  1042. this.parentIndex = index;
  1043. } else {
  1044. this.isShowSubMenu = false;
  1045. this.parentIndex = null;
  1046. }
  1047. this.subMenu = children;
  1048. },
  1049. subMenuHide() {
  1050. this.isShowSubMenu = false;
  1051. this.parentIndex = null;
  1052. // this.subMenu = [];
  1053. },
  1054. subclick(index) {
  1055. this.activeIndex = this.parentIndex;
  1056. this.subIndex = index;
  1057. },
  1058. },
  1059. computed: {
  1060. currentMenu() {
  1061. let data = this.menuData.filter((t) => {
  1062. return t.id == this.currRoot;
  1063. })[0].data;
  1064. this.$store.dispatch("changeMenuData", data);
  1065. return data;
  1066. },
  1067. },
  1068. watch: {
  1069. // 监听路由
  1070. $route: {
  1071. handler: function (val, oldVal) {
  1072. this.menuData.some((element, index) => {
  1073. if (val.path.includes(element.id)) {
  1074. this.$nextTick(() => {
  1075. this.currRoot = element.id;
  1076. this.$nextTick(() => {
  1077. this.currentMenu.some((element, index) => {
  1078. if (val.path == element.path) {
  1079. this.activeIndex = index;
  1080. }
  1081. });
  1082. });
  1083. });
  1084. return true;
  1085. }
  1086. });
  1087. },
  1088. //深度观察监听
  1089. deep: true,
  1090. },
  1091. },
  1092. };
  1093. </script>
  1094. <style lang="less">
  1095. .menu {
  1096. padding-top: 1.481vh;
  1097. .menu-list {
  1098. margin: 0;
  1099. padding: 0;
  1100. list-style: none;
  1101. .menu-item {
  1102. padding: 1.481vh 0;
  1103. text-align: center;
  1104. .menu-icon {
  1105. display: flex;
  1106. justify-content: center;
  1107. }
  1108. &.active i {
  1109. color: #05bb4c;
  1110. transition: color 1s;
  1111. }
  1112. }
  1113. }
  1114. i {
  1115. font-size: 2.222vh;
  1116. color: rgba(255, 255, 255, 50%);
  1117. }
  1118. }
  1119. .sub-menu {
  1120. position: absolute;
  1121. top: 0;
  1122. left: 5.3704vh;
  1123. width: 158px;
  1124. height: 100%;
  1125. padding-top: 1.481vh;
  1126. background: fade(#192a26, 75);
  1127. border-right: 1px solid fade(@green, 50);
  1128. box-shadow: inset 11px 0px 20px 0px fade(#021412, 60);
  1129. .menu-list {
  1130. margin: 0;
  1131. padding: 0;
  1132. list-style: none;
  1133. .menu-item {
  1134. display: flex;
  1135. text-align: center;
  1136. line-height: 1.5;
  1137. padding: 8px 0;
  1138. background: #121d1c;
  1139. a {
  1140. display: flex;
  1141. width: 100%;
  1142. height: 100%;
  1143. padding: 0 1.4815vh;
  1144. font-size: @fontsize-s;
  1145. text-decoration: unset;
  1146. .menu-icon {
  1147. display: flex;
  1148. align-items: center;
  1149. svg {
  1150. width: 14px;
  1151. height: 14px;
  1152. use {
  1153. fill: fade(@green, 75);
  1154. }
  1155. }
  1156. }
  1157. }
  1158. &.active {
  1159. background: #323e70;
  1160. .menu-icon {
  1161. display: flex;
  1162. svg use {
  1163. fill: fade(@white, 75);
  1164. }
  1165. }
  1166. }
  1167. .sub-menu-text {
  1168. margin-left: 1.1111vh;
  1169. color: @gray-l;
  1170. }
  1171. & + .menu-item {
  1172. border-top: 1px solid fade(@darkgray, 40);
  1173. }
  1174. }
  1175. }
  1176. i {
  1177. font-size: 2.222vh;
  1178. color: rgba(255, 255, 255, 50%);
  1179. }
  1180. }
  1181. </style>