Menu.vue 32 KB

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