Menu.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178
  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 class="sub-menu" v-show="isShowSubMenu" @mouseleave="subMenuHide">
  39. <ul class="menu-list">
  40. <li
  41. class="menu-item"
  42. v-for="(menu, index) of subMenu"
  43. @click="subclick(index)"
  44. :key="menu"
  45. :class="{ active: subIndex == index }"
  46. >
  47. <router-link :to="menu.path">
  48. <div class="menu-icon svg-icon">
  49. <!-- <SvgIcon :svgid="menu.icon"></SvgIcon> -->
  50. </div>
  51. <div
  52. class="sub-menu-text"
  53. :class="subIndex == index ? 'green' : 'gray'"
  54. >
  55. {{ menu.text }}
  56. </div>
  57. </router-link>
  58. </li>
  59. </ul>
  60. </div>
  61. </template>
  62. <script>
  63. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  64. export default {
  65. components: {
  66. SvgIcon,
  67. },
  68. props: {},
  69. data() {
  70. return {
  71. currRoot: "monitor",
  72. menuData: [
  73. {
  74. id: "monitor",
  75. text: "驾驶舱",
  76. data: [
  77. // {
  78. // text: '驾驶舱',
  79. // icon: 'svg-lead-cockpit',
  80. // path: '/monitor/home'
  81. // },
  82. {
  83. text: "基础矩阵",
  84. icon: "svg-matrix",
  85. path: "/monitor/lightmatrix1",
  86. },
  87. {
  88. text: "明细矩阵",
  89. icon: "svg-mx-matrix",
  90. path: "/monitor/lightmatrix3",
  91. },
  92. {
  93. text: "欠发矩阵",
  94. icon: "svg-qf-matrix",
  95. path: "/monitor/lightmatrix2",
  96. },
  97. {
  98. text: "光伏矩阵",
  99. icon: "svg-gf-matrix",
  100. path: "/monitor/lightmatrix",
  101. },
  102. {
  103. text: "状态监视",
  104. icon: "svg-state-watch",
  105. path: "/monitor/status",
  106. },
  107. {
  108. text: "Agc",
  109. icon: "svg-agc",
  110. path: "/monitor/agc",
  111. },
  112. {
  113. text: "风场",
  114. icon: "svg-wind-site",
  115. path: "/monitor/windsite/home/MHS_FDC",
  116. },
  117. ],
  118. },
  119. {
  120. id: "decision",
  121. text: "经济运行",
  122. data: [
  123. // {
  124. // text: '经济运行首页',
  125. // icon: 'svg-wind-site',
  126. // // path: '/monitor/sandtable'
  127. // path: '/decision/pb'
  128. // },
  129. {
  130. text: "对标管理",
  131. icon: "svg-dbgl",
  132. path: "/decision/decision1",
  133. children: [
  134. {
  135. text: "风机绩效榜",
  136. icon: "svg-wind-site",
  137. path: "/decision/decision1",
  138. },
  139. {
  140. text: "五项损失率",
  141. icon: "svg-wind-site",
  142. path: "/decision/decision2",
  143. },
  144. {
  145. text: "场内对标",
  146. icon: "svg-wind-site",
  147. path: "/decision/decision2Cndb",
  148. },
  149. {
  150. text: "场际对标",
  151. icon: "svg-wind-site",
  152. path: "/decision/decision2Cjdb",
  153. },
  154. {
  155. text: "项目对标",
  156. icon: "svg-wind-site",
  157. path: "/decision/decision2Xmdb",
  158. },
  159. {
  160. text: "线路对标",
  161. icon: "svg-wind-site",
  162. path: "/decision/decision2Xldb",
  163. },
  164. {
  165. text: "性能对标",
  166. icon: "svg-wind-site",
  167. path: "/decision/decision3",
  168. },
  169. {
  170. text: "值际对标",
  171. icon: "svg-wind-site",
  172. path: "/decision/decision4",
  173. },
  174. {
  175. text: "单机横向对比",
  176. icon: "svg-matrix",
  177. path: "/decision/decision3db",
  178. },
  179. {
  180. text: "操作指令统计",
  181. icon: "svg-matrix",
  182. path: "/decision/decision4czzl",
  183. },
  184. ],
  185. },
  186. {
  187. text: "三率管理",
  188. icon: "svg-slgl",
  189. path: "/decision/fwjsl",
  190. children: [
  191. {
  192. text: "复位及时率",
  193. icon: "svg-wind-site",
  194. path: "/decision/fwjsl",
  195. },
  196. {
  197. text: "状态转换率",
  198. icon: "svg-wind-site",
  199. path: "/decision/ztzhl",
  200. },
  201. {
  202. text: "消缺及时率",
  203. icon: "svg-wind-site",
  204. path: "/decision/xqjsl",
  205. },
  206. ],
  207. },
  208. {
  209. text: "排行榜",
  210. icon: "svg-phb",
  211. path: "/decision/powerRank",
  212. children: [
  213. {
  214. text: "发电效率排行",
  215. icon: "svg-wind-site",
  216. path: "/decision/powerRank",
  217. },
  218. {
  219. text: "总发电效率排行",
  220. icon: "svg-wind-site",
  221. path: "/decision/totalPowerRank",
  222. },
  223. {
  224. text: "报警排行",
  225. icon: "svg-wind-site",
  226. path: "/decision/warningRank",
  227. },
  228. ],
  229. },
  230. {
  231. text: "专题分析",
  232. icon: "svg-ztfx",
  233. path: "/decision/ztfx",
  234. children: [
  235. {
  236. text: "综合分析",
  237. icon: "svg-wind-site",
  238. path: "/decision/ztfx",
  239. },
  240. {
  241. text: "风能利用率",
  242. icon: "svg-wind-site",
  243. path: "/decision/fnlyl",
  244. },
  245. {
  246. text: "维护损失率",
  247. icon: "svg-wind-site",
  248. path: "/decision/whssl",
  249. },
  250. {
  251. text: "故障损失率",
  252. icon: "svg-wind-site",
  253. path: "/decision/gzssl",
  254. },
  255. {
  256. text: "限电损失率",
  257. icon: "svg-wind-site",
  258. path: "/decision/xdssl",
  259. },
  260. {
  261. text: "性能损失率",
  262. icon: "svg-wind-site",
  263. path: "/decision/xnssl",
  264. },
  265. {
  266. text: "受累损失率",
  267. icon: "svg-wind-site",
  268. path: "/decision/slssl",
  269. },
  270. {
  271. text: "MTBF分析",
  272. icon: "svg-wind-site",
  273. path: "/decision/mtbf",
  274. },
  275. {
  276. text: "MTTR分析",
  277. icon: "svg-wind-site",
  278. path: "/decision/mttr",
  279. },
  280. {
  281. text: "复位分析",
  282. icon: "svg-wind-site",
  283. path: "/decision/zfwjsl",
  284. },
  285. {
  286. text: "状态分析",
  287. icon: "svg-wind-site",
  288. path: "/decision/zztzhl",
  289. },
  290. {
  291. text: "消缺分析",
  292. icon: "svg-wind-site",
  293. path: "/decision/zxqjsl",
  294. },
  295. {
  296. text: "发电量分析",
  297. icon: "svg-wind-site",
  298. path: "/decision/zfdl",
  299. },
  300. {
  301. text: "综合场用电量",
  302. icon: "svg-wind-site",
  303. path: "/decision/zzhcydl",
  304. },
  305. {
  306. text: "节能减排API",
  307. icon: "svg-wind-site",
  308. path: "/decision/zzhcydl",
  309. },
  310. ],
  311. },
  312. {
  313. text: "风机分析",
  314. icon: "svg-fjfx",
  315. path: "/decision/performanceAnalysis",
  316. children: [
  317. {
  318. text: "单机性能分析",
  319. icon: "svg-wind-site",
  320. path: "/decision/performanceAnalysis",
  321. },
  322. {
  323. text: "单机月度分析",
  324. icon: "svg-wind-site",
  325. path: "/decision/singleAnalysis",
  326. },
  327. ],
  328. },
  329. {
  330. text: "气象分析",
  331. icon: "svg-qxfx",
  332. path: "/decision/fs",
  333. },
  334. {
  335. text: "电量预测",
  336. icon: "svg-dlyc",
  337. path: "/decision/nhycfsdl",
  338. children: [
  339. {
  340. text: "预测拟合风速电量",
  341. icon: "svg-wind-sitenhycfsdl",
  342. path: "/decision/nhycfsdl",
  343. },
  344. {
  345. text: "修正预测风速电量",
  346. icon: "svg-wind-site",
  347. path: "/decision/xzycfsdl",
  348. },
  349. ],
  350. },
  351. // {
  352. // text: "单机分析",
  353. // icon: "svg-wind-site",
  354. // path: "/fgzyfx",
  355. // children: [
  356. // {
  357. // text: "单机分析详细",
  358. // icon: "svg-wind-site",
  359. // path: "/new/dj1",
  360. // },
  361. // {
  362. // text: "电量预测",
  363. // icon: "svg-wind-site",
  364. // path: "/new/pf1",
  365. // },
  366. // {
  367. // text: "气象预测",
  368. // icon: "svg-wind-site",
  369. // path: "/new/fs",
  370. // }
  371. // ]
  372. // }
  373. ],
  374. },
  375. {
  376. id: "health",
  377. text: "智慧检修",
  378. data: [
  379. // {
  380. // text: '沙盘',
  381. // icon: 'svg-沙盘',
  382. // // path: '/monitor/sandtable'
  383. // path: '/health/sandtable'
  384. // },
  385. {
  386. text: "等级评估",
  387. icon: "svg-等级评估",
  388. path: "/health/assess/index",
  389. children: [
  390. {
  391. text: "等级评估",
  392. icon: "svg-等级评估",
  393. path: "/health/assess/index",
  394. },
  395. {
  396. text: "自组合评级",
  397. icon: "svg-wind-site",
  398. path: "/health/assess/selfEvaluate",
  399. }
  400. ],
  401. },
  402. {
  403. text: "故障诊断",
  404. icon: "svg-故障诊断",
  405. path: "/health/gzzd/malfunctionDiagnose",
  406. children: [
  407. {
  408. text: "故障诊断",
  409. icon: "svg-wind-site",
  410. path: "/health/gzzd/malfunctionDiagnose",
  411. },
  412. {
  413. text: "故障回溯",
  414. icon: "svg-wind-site",
  415. path: "/health/gzzd/malfunctionRecall",
  416. },
  417. ],
  418. },
  419. {
  420. text: "健康管理",
  421. icon: "svg-健康管理",
  422. path: "/health/frist",
  423. children: [
  424. {
  425. text: "健康推荐",
  426. icon: "svg-wind-site",
  427. path: "/health/frist",
  428. },
  429. {
  430. text: "健康首页",
  431. icon: "svg-wind-site",
  432. path: "/health/health2",
  433. },
  434. {
  435. text: "健康总览",
  436. icon: "svg-wind-site",
  437. path: "/health/health6",
  438. },
  439. {
  440. text: "健康矩阵",
  441. icon: "svg-wind-site",
  442. path: "/health/health5",
  443. },
  444. // {
  445. // text: "健康列表",
  446. // icon: "svg-wind-site",
  447. // path: "/health/health6",
  448. // },
  449. {
  450. text: "健康列表",
  451. icon: "svg-wind-site",
  452. path: "/health/health8",
  453. },
  454. {
  455. text: "劣化状态分析",
  456. icon: "svg-q曲线",
  457. path: "/health/healthLineChart/MHS_FDC/MG01_01",
  458. },
  459. ],
  460. },
  461. {
  462. text: "全生命周期",
  463. icon: "svg-全生命周期",
  464. path: "/health/allLifeManage",
  465. },
  466. {
  467. text: "能效分析",
  468. icon: "svg-能效分析",
  469. path: "/health/nxfx/powerCurve",
  470. children: [
  471. {
  472. text: "功率曲线拟合",
  473. icon: "svg-wind-site",
  474. path: "/health/nxfx/powerCurve",
  475. },
  476. {
  477. text: "偏航对风分析",
  478. icon: "svg-wind-site",
  479. path: "/health/nxfx/phdffx",
  480. },
  481. {
  482. text: "切入切出分析",
  483. icon: "svg-wind-site",
  484. path: "/health/nxfx/cutAnalyse",
  485. },
  486. {
  487. text: "曲线偏差率分析",
  488. icon: "svg-wind-site",
  489. path: "/health/nxfx/qxpclfx",
  490. },
  491. {
  492. text: "单机饱和度",
  493. icon: "svg-wind-site",
  494. path: "/health/nxfx/wtSaturability",
  495. },
  496. ],
  497. },
  498. {
  499. text: "可靠性分析",
  500. icon: "svg-可靠性分析",
  501. path: "/health/kkxfx/alarmcenter1",
  502. children: [
  503. {
  504. text: "预警分析",
  505. icon: "svg-wind-site",
  506. path: "/health/kkxfx/alarmcenter1",
  507. },
  508. {
  509. text: "故障分析",
  510. icon: "svg-wind-site",
  511. path: "/health/kkxfx/alarmcenter2",
  512. },
  513. {
  514. text: "预警评判分析",
  515. icon: "svg-wind-site",
  516. path: "/health/kkxfx/warnStatistics",
  517. },
  518. {
  519. text: "故障评判分析",
  520. icon: "svg-wind-site",
  521. path: "/health/kkxfx/malfunctionStatistics",
  522. },
  523. {
  524. text: "部件评判分析",
  525. icon: "svg-wind-site",
  526. path: "/health/kkxfx/bjgltjb",
  527. },
  528. ],
  529. },
  530. {
  531. text: "风光资源分析",
  532. icon: "svg-风光资源分析",
  533. path: "/health/fzyfx/windAnalysis",
  534. children: [
  535. {
  536. text: "风资源散点",
  537. icon: "svg-wind-site",
  538. path: "/health/fzyfx/windAnalysis",
  539. },
  540. {
  541. text: "风资源风向",
  542. icon: "svg-wind-site",
  543. path: "/health/fzyfx/windAnalysis/fx",
  544. },
  545. ],
  546. },
  547. {
  548. text: "故障预警",
  549. icon: "svg-预警记录",
  550. path: "/health/MalfunctionWarning/",
  551. children: [
  552. {
  553. text: "无监督学习",
  554. icon: "svg-wind-site",
  555. path: "/health/MalfunctionWarning/",
  556. },
  557. {
  558. text: "有监督学习",
  559. icon: "svg-wind-site",
  560. path: "/health/MalfunctionWarning/Supervised",
  561. },
  562. {
  563. text: "性能预警综合分析",
  564. icon: "svg-matrix",
  565. path: "/others/analysis",
  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. },
  888. {
  889. text: "预警记录",
  890. icon: "svg-预警记录",
  891. path: "/others/alarmCenter/alarmcenter",
  892. children: [
  893. {
  894. text: "预警管理",
  895. icon: "svg-wind-site",
  896. path: "/others/alarmCenter/alarmcenter",
  897. },
  898. {
  899. text: "停机事件管理",
  900. icon: "svg-wind-site",
  901. path: "/others/alarmCenter/tjsj",
  902. },
  903. {
  904. text: "限电管理",
  905. icon: "svg-wind-site",
  906. path: "/others/alarmCenter/xdgl",
  907. },
  908. {
  909. text: "升压站报警",
  910. icon: "svg-wind-site",
  911. path: "/others/alarmCenter/boosterAlarm",
  912. },
  913. {
  914. text: "SCADA报警",
  915. icon: "svg-wind-site",
  916. path: "/others/alarmCenter/scadaAlarm",
  917. },
  918. {
  919. text: "自定义报警",
  920. icon: "svg-wind-site",
  921. path: "/others/alarmCenter/customAlarm",
  922. },
  923. {
  924. text: "自定义报警统计",
  925. icon: "svg-wind-site",
  926. path: "/others/alarmCenter/customStatistics",
  927. },
  928. ],
  929. },
  930. {
  931. text: "专家知识",
  932. icon: "svg-专家知识",
  933. path: "/others/knowledge/knowledge",
  934. children: [
  935. {
  936. text: "故障知识列表",
  937. icon: "svg-matrix",
  938. path: "/others/knowledge/knowledge",
  939. },
  940. {
  941. text: "安全措施知识",
  942. icon: "svg-matrix",
  943. path: "/others/knowledge/knowledge2",
  944. },
  945. {
  946. text: "排查检修方案",
  947. icon: "svg-matrix",
  948. path: "/others/knowledge/knowledge6",
  949. },
  950. {
  951. text: "预警知识",
  952. icon: "svg-matrix",
  953. path: "/others/knowledge/knowledge7",
  954. },
  955. {
  956. text: "特征参数",
  957. icon: "svg-matrix",
  958. path: "/others/knowledge/knowledge5",
  959. },
  960. {
  961. text: "风险辨识知识",
  962. icon: "svg-matrix",
  963. path: "/others/knowledge/knowledge3",
  964. },
  965. {
  966. text: "作业指导知识",
  967. icon: "svg-matrix",
  968. path: "/others/knowledge/knowledge4",
  969. },
  970. ],
  971. },
  972. {
  973. text: "样本库",
  974. icon: "svg-报表管理",
  975. path: "/others/fault",
  976. children: [
  977. {
  978. text: "故障训练样本库",
  979. icon: "svg-matrix",
  980. path: "/others/fault",
  981. },
  982. {
  983. text: "性能下降样本库",
  984. icon: "svg-matrix",
  985. path: "/others/performance",
  986. },
  987. {
  988. text: "预警分析样本库",
  989. icon: "svg-matrix",
  990. path: "/others/warning",
  991. },
  992. {
  993. text: "性能预警综合分析",
  994. icon: "svg-matrix",
  995. path: "/others/analysis",
  996. },
  997. // {
  998. // text: "风电营销样本库",
  999. // icon: "svg-matrix",
  1000. // path: "/others/market",
  1001. // }
  1002. ],
  1003. },
  1004. ],
  1005. },
  1006. ],
  1007. activeIndex: 0,
  1008. isShowSubMenu: false,
  1009. parentIndex: null,
  1010. subMenu: [],
  1011. subIndex: null,
  1012. };
  1013. },
  1014. methods: {
  1015. click(index) {
  1016. this.activeIndex = index;
  1017. this.subIndex = null;
  1018. },
  1019. subMenuShow(children, index) {
  1020. if (children) {
  1021. this.isShowSubMenu = true;
  1022. this.parentIndex = index;
  1023. } else {
  1024. this.isShowSubMenu = false;
  1025. this.parentIndex = null;
  1026. }
  1027. this.subMenu = children;
  1028. },
  1029. subMenuHide() {
  1030. this.isShowSubMenu = false;
  1031. this.parentIndex = null;
  1032. // this.subMenu = [];
  1033. },
  1034. subclick(index) {
  1035. this.activeIndex = this.parentIndex;
  1036. this.subIndex = index;
  1037. },
  1038. },
  1039. computed: {
  1040. currentMenu() {
  1041. let data = this.menuData.filter((t) => {
  1042. return t.id == this.currRoot;
  1043. })[0].data;
  1044. return data;
  1045. },
  1046. },
  1047. watch: {
  1048. // 监听路由
  1049. $route: {
  1050. handler: function (val, oldVal) {
  1051. this.menuData.some((element, index) => {
  1052. if (val.path.includes(element.id)) {
  1053. this.$nextTick(() => {
  1054. this.currRoot = element.id;
  1055. this.$nextTick(() => {
  1056. this.currentMenu.some((element, index) => {
  1057. if (val.path == element.path) {
  1058. this.activeIndex = index;
  1059. }
  1060. });
  1061. });
  1062. });
  1063. return true;
  1064. }
  1065. });
  1066. },
  1067. //深度观察监听
  1068. deep: true,
  1069. },
  1070. },
  1071. };
  1072. </script>
  1073. <style lang="less">
  1074. .menu {
  1075. padding-top: 1.481vh;
  1076. .menu-list {
  1077. margin: 0;
  1078. padding: 0;
  1079. list-style: none;
  1080. .menu-item {
  1081. padding: 1.481vh 0;
  1082. text-align: center;
  1083. .menu-icon {
  1084. display: flex;
  1085. justify-content: center;
  1086. }
  1087. &.active i {
  1088. color: #05bb4c;
  1089. transition: color 1s;
  1090. }
  1091. }
  1092. }
  1093. i {
  1094. font-size: 2.222vh;
  1095. color: rgba(255, 255, 255, 50%);
  1096. }
  1097. }
  1098. .sub-menu {
  1099. position: absolute;
  1100. top: 0;
  1101. left: 5.3704vh;
  1102. width: 158px;
  1103. height: 100%;
  1104. padding-top: 1.481vh;
  1105. background: fade(#192a26, 75);
  1106. border-right: 1px solid fade(@green, 50);
  1107. box-shadow: inset 11px 0px 20px 0px fade(#021412, 60);
  1108. .menu-list {
  1109. margin: 0;
  1110. padding: 0;
  1111. list-style: none;
  1112. .menu-item {
  1113. display: flex;
  1114. text-align: center;
  1115. line-height: 1.5;
  1116. padding: 8px 0;
  1117. background: #121d1c;
  1118. a {
  1119. display: flex;
  1120. width: 100%;
  1121. height: 100%;
  1122. padding: 0 1.4815vh;
  1123. font-size: @fontsize-s;
  1124. text-decoration: unset;
  1125. .menu-icon {
  1126. display: flex;
  1127. align-items: center;
  1128. svg {
  1129. width: 14px;
  1130. height: 14px;
  1131. use {
  1132. fill: fade(@green, 75);
  1133. }
  1134. }
  1135. }
  1136. }
  1137. &.active {
  1138. background: #323e70;
  1139. .menu-icon {
  1140. display: flex;
  1141. svg use {
  1142. fill: fade(@white, 75);
  1143. }
  1144. }
  1145. }
  1146. .sub-menu-text {
  1147. margin-left: 1.1111vh;
  1148. color: @gray-l;
  1149. }
  1150. & + .menu-item {
  1151. border-top: 1px solid fade(@darkgray, 40);
  1152. }
  1153. }
  1154. }
  1155. i {
  1156. font-size: 2.222vh;
  1157. color: rgba(255, 255, 255, 50%);
  1158. }
  1159. }
  1160. </style>