Menu.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209
  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: "节能减排KPI",
  312. icon: "svg-wind-site",
  313. path: "/decision/zbtjfx",
  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/dlyc",
  343. children: [
  344. {
  345. text: "预测拟合风速电量",
  346. icon: "svg-wind-sitenhycfsdl",
  347. path: "/decision/nhdl",
  348. },
  349. {
  350. text: "修正预测风速电量",
  351. icon: "svg-wind-site",
  352. path: "/decision/xzdl",
  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. text: "齿轮箱故障诊断",
  569. icon: "svg-wind-site",
  570. path: "/health/MalfunctionWarning/diagnose",
  571. },
  572. ],
  573. },
  574. ],
  575. },
  576. {
  577. id: "save",
  578. text: "安全管控",
  579. data: [
  580. {
  581. text: "安全管控",
  582. icon: "svg-安全管控",
  583. path: "/save/personnel",
  584. children: [
  585. {
  586. text: "人员矩阵",
  587. icon: "svg-wind-site",
  588. path: "/save/personnel",
  589. },
  590. {
  591. text: "全局监视",
  592. icon: "svg-wind-site",
  593. path: "/globalMonitor",
  594. },
  595. ],
  596. },
  597. ],
  598. },
  599. // {
  600. // id: "znbb",
  601. // text: "智能报表",
  602. // data: [
  603. // {
  604. // text: '报表首页',
  605. // icon: 'svg-wind-site',
  606. // path: '/znbb/reportPandect'
  607. // },// 统计分析
  608. // {
  609. // text: "统计分析",
  610. // icon: "svg-matrix",
  611. // path: "/tjfx",
  612. // children: [
  613. // {
  614. // text: "统计分析",
  615. // icon: "svg-matrix",
  616. // path: "/tjfx",
  617. // },
  618. // {
  619. // text: "表底值查询",
  620. // icon: "svg-matrix",
  621. // path: "/bdzcx",
  622. // },
  623. // ],
  624. // },
  625. // {
  626. // text: "报表管理",
  627. // icon: "svg-matrix",
  628. // path: "/bdzcx",
  629. // children: [
  630. // {
  631. // text: "OA日报",
  632. // icon: "svg-matrix",
  633. // path: "/oafd",
  634. // },
  635. // {
  636. // text: "OA日报(光伏)",
  637. // icon: "svg-matrix",
  638. // path: "/oagf",
  639. // },
  640. // {
  641. // text: "新能源日报",
  642. // icon: "svg-matrix",
  643. // path: "/xnyrb",
  644. // },
  645. // {
  646. // text: "国电电力MISS日报(风电)",
  647. // icon: "svg-matrix",
  648. // path: "/missfdrb",
  649. // },
  650. // {
  651. // text: "国电电力MISS日报(光伏)",
  652. // icon: "svg-matrix",
  653. // path: "/missgfrb",
  654. // },
  655. // {
  656. // text: "新能源风电生产月报",
  657. // icon: "svg-matrix",
  658. // path: "/xnyfdscyb",
  659. // },
  660. // {
  661. // text: "麻黄山生产月报",
  662. // icon: "svg-matrix",
  663. // path: "/mhsscyb",
  664. // },
  665. // {
  666. // text: "牛首山生产月报",
  667. // icon: "svg-matrix",
  668. // path: "/nssscyb",
  669. // },
  670. // {
  671. // text: "青山生产月报",
  672. // icon: "svg-matrix",
  673. // path: "/qsscyb",
  674. // },
  675. // {
  676. // text: "石板泉生产月报",
  677. // icon: "svg-matrix",
  678. // path: "/sbqscyb",
  679. // },
  680. // {
  681. // text: "香山生产月报",
  682. // icon: "svg-matrix",
  683. // path: "/xsscyb",
  684. // },
  685. // {
  686. // text: "新能源光伏生产月报",
  687. // icon: "svg-matrix",
  688. // path: "/xnygfscyb",
  689. // },
  690. // {
  691. // text: "大武口生产月报",
  692. // icon: "svg-matrix",
  693. // path: "/dwkscyb",
  694. // },
  695. // {
  696. // text: "平罗生产月报",
  697. // icon: "svg-matrix",
  698. // path: "/plscyb",
  699. // },
  700. // {
  701. // text: "宣和生产月报",
  702. // icon: "svg-matrix",
  703. // path: "/xhscyb",
  704. // },
  705. // ],
  706. // },
  707. // {
  708. // text: "自定制报表管理",
  709. // icon: "svg-matrix",
  710. // path: "/fdczzdy",
  711. // children: [
  712. // {
  713. // text: "风电场站自定义",
  714. // icon: "svg-matrix",
  715. // path: "/fdczzdy",
  716. // },
  717. // {
  718. // text: "风电项目自定义",
  719. // icon: "svg-matrix",
  720. // path: "/fdxmzdy",
  721. // },
  722. // {
  723. // text: "光伏场站自定义",
  724. // icon: "svg-matrix",
  725. // path: "/gfczzdy",
  726. // },
  727. // {
  728. // text: "光伏项目自定义",
  729. // icon: "svg-matrix",
  730. // path: "/gfxmzdy",
  731. // },
  732. // ],
  733. // },
  734. // ],
  735. // },
  736. {
  737. id: "others",
  738. text: "其他",
  739. data: [
  740. {
  741. text: "统计分析",
  742. icon: "svg-统计分析",
  743. path: "/others/tjfx",
  744. children: [
  745. {
  746. text: "统计分析",
  747. icon: "svg-matrix",
  748. path: "/others/tjfx",
  749. },
  750. // {
  751. // text: "表底值查询",
  752. // icon: "svg-matrix",
  753. // path: "/others/bdzcx",
  754. // },
  755. ],
  756. },
  757. // {
  758. // text: "报表管理",
  759. // icon: "svg-报表管理",
  760. // path: "/others/oafd",
  761. // children: [
  762. // {
  763. // text: "OA日报",
  764. // icon: "svg-matrix",
  765. // path: "/others/oafd",
  766. // },
  767. // {
  768. // text: "OA日报(光伏)",
  769. // icon: "svg-matrix",
  770. // path: "/others/oagf",
  771. // },
  772. // {
  773. // text: "新能源日报",
  774. // icon: "svg-matrix",
  775. // path: "/others/xnyrb",
  776. // },
  777. // {
  778. // text: "国电MIS日报(风电)",
  779. // icon: "svg-matrix",
  780. // path: "/others/missfdrb",
  781. // },
  782. // {
  783. // text: "国电MIS日报(光伏)",
  784. // icon: "svg-matrix",
  785. // path: "/others/missgfrb",
  786. // },
  787. // {
  788. // text: "新能源风电生产月报",
  789. // icon: "svg-matrix",
  790. // path: "/others/xnyfdscyb",
  791. // },
  792. // {
  793. // text: "麻黄山生产月报",
  794. // icon: "svg-matrix",
  795. // path: "/others/mhsscyb",
  796. // },
  797. // {
  798. // text: "牛首山生产月报",
  799. // icon: "svg-matrix",
  800. // path: "/others/nssscyb",
  801. // },
  802. // {
  803. // text: "青山生产月报",
  804. // icon: "svg-matrix",
  805. // path: "/others/qsscyb",
  806. // },
  807. // {
  808. // text: "石板泉生产月报",
  809. // icon: "svg-matrix",
  810. // path: "/others/sbqscyb",
  811. // },
  812. // {
  813. // text: "香山生产月报",
  814. // icon: "svg-matrix",
  815. // path: "/others/xsscyb",
  816. // },
  817. // {
  818. // text: "新能源光伏生产月报",
  819. // icon: "svg-matrix",
  820. // path: "/others/xnygfscyb",
  821. // },
  822. // {
  823. // text: "大武口生产月报",
  824. // icon: "svg-matrix",
  825. // path: "/others/dwkscyb",
  826. // },
  827. // {
  828. // text: "平罗生产月报",
  829. // icon: "svg-matrix",
  830. // path: "/others/plscyb",
  831. // },
  832. // {
  833. // text: "宣和生产月报",
  834. // icon: "svg-matrix",
  835. // path: "/others/xhscyb",
  836. // },
  837. // ],
  838. // },
  839. {
  840. text: "自定制报表管理",
  841. icon: "svg-自定制报表管理",
  842. path: "/others/fdczzdy",
  843. children: [
  844. {
  845. text: "风电场站自定义",
  846. icon: "svg-matrix",
  847. path: "/others/fdczzdy",
  848. },
  849. {
  850. text: "风电项目自定义",
  851. icon: "svg-matrix",
  852. path: "/others/fdxmzdy",
  853. },
  854. {
  855. text: "光伏场站自定义",
  856. icon: "svg-matrix",
  857. path: "/others/gfczzdy",
  858. },
  859. {
  860. text: "光伏项目自定义",
  861. icon: "svg-matrix",
  862. path: "/others/gfxmzdy",
  863. },
  864. ],
  865. },
  866. {
  867. text: "原始数据查询",
  868. icon: "svg-报表首页",
  869. path: "/others/realSearch",
  870. children: [
  871. {
  872. text: "测点数据查询",
  873. icon: "svg-wind-site",
  874. path: "/others/realSearch",
  875. },
  876. {
  877. text: "测点历史数据查询",
  878. icon: "svg-wind-site",
  879. path: "/others/historySearch",
  880. },
  881. {
  882. text: "气象历史数据",
  883. icon: "svg-wind-site",
  884. path: "/others/weather",
  885. },
  886. {
  887. text: "数据导出",
  888. icon: "svg-wind-site",
  889. path: "/others/ExportExcel",
  890. },
  891. {
  892. text: "设备管理",
  893. icon: "svg-wind-site",
  894. path: "/device/device",
  895. },
  896. ],
  897. },
  898. {
  899. text: "预警记录",
  900. icon: "svg-预警记录",
  901. path: "/others/alarmCenter/alarmcenter",
  902. children: [
  903. {
  904. text: "预警管理",
  905. icon: "svg-wind-site",
  906. path: "/others/alarmCenter/alarmcenter",
  907. },
  908. {
  909. text: "停机事件管理",
  910. icon: "svg-wind-site",
  911. path: "/others/alarmCenter/tjsj",
  912. },
  913. {
  914. text: "限电管理",
  915. icon: "svg-wind-site",
  916. path: "/others/alarmCenter/xdgl",
  917. },
  918. {
  919. text: "升压站报警",
  920. icon: "svg-wind-site",
  921. path: "/others/alarmCenter/boosterAlarm",
  922. },
  923. {
  924. text: "SCADA报警",
  925. icon: "svg-wind-site",
  926. path: "/others/alarmCenter/scadaAlarm",
  927. },
  928. {
  929. text: "自定义报警",
  930. icon: "svg-wind-site",
  931. path: "/others/alarmCenter/customAlarm",
  932. },
  933. {
  934. text: "自定义报警统计",
  935. icon: "svg-wind-site",
  936. path: "/others/alarmCenter/customStatistics",
  937. },
  938. ],
  939. },
  940. {
  941. text: "专家知识",
  942. icon: "svg-专家知识",
  943. path: "/others/knowledge/knowledge",
  944. children: [
  945. {
  946. text: "故障知识列表",
  947. icon: "svg-matrix",
  948. path: "/others/knowledge/knowledge",
  949. },
  950. {
  951. text: "安全措施知识",
  952. icon: "svg-matrix",
  953. path: "/others/knowledge/knowledge2",
  954. },
  955. {
  956. text: "排查检修方案",
  957. icon: "svg-matrix",
  958. path: "/others/knowledge/knowledge6",
  959. },
  960. {
  961. text: "预警知识",
  962. icon: "svg-matrix",
  963. path: "/others/knowledge/knowledge7",
  964. },
  965. {
  966. text: "特征参数",
  967. icon: "svg-matrix",
  968. path: "/others/knowledge/knowledge5",
  969. },
  970. {
  971. text: "风险辨识知识",
  972. icon: "svg-matrix",
  973. path: "/others/knowledge/knowledge3",
  974. },
  975. {
  976. text: "作业指导知识",
  977. icon: "svg-matrix",
  978. path: "/others/knowledge/knowledge4",
  979. },
  980. ],
  981. },
  982. {
  983. text: "样本库",
  984. icon: "svg-报表管理",
  985. path: "/others/fault",
  986. children: [
  987. {
  988. text: "故障训练样本库",
  989. icon: "svg-matrix",
  990. path: "/others/fault",
  991. },
  992. {
  993. text: "性能下降样本库",
  994. icon: "svg-matrix",
  995. path: "/others/performance",
  996. },
  997. {
  998. text: "预警分析样本库",
  999. icon: "svg-matrix",
  1000. path: "/others/warning",
  1001. },
  1002. {
  1003. text: "性能预警综合分析",
  1004. icon: "svg-matrix",
  1005. path: "/others/analysis",
  1006. },
  1007. // {
  1008. // text: "功率曲线综合分析",
  1009. // icon: "svg-matrix",
  1010. // path: "/others/powerline/analysis",
  1011. // },
  1012. {
  1013. text: "知识库",
  1014. icon: "svg-matrix",
  1015. path: "/others/knowledgeBase",
  1016. },
  1017. // {
  1018. // text: "发电能力分析",
  1019. // icon: "svg-matrix",
  1020. // path: "/others/abilityAnalysis",
  1021. // },
  1022. // {
  1023. // text: "风电营销样本库",
  1024. // icon: "svg-matrix",
  1025. // path: "/others/market",
  1026. // }
  1027. {
  1028. text: "风机检修规则",
  1029. icon: "svg-matrix",
  1030. path: "/others/overhaulRule",
  1031. },
  1032. ],
  1033. },
  1034. ],
  1035. },
  1036. ],
  1037. activeIndex: 0,
  1038. isShowSubMenu: false,
  1039. parentIndex: null,
  1040. subMenu: [],
  1041. subIndex: null,
  1042. };
  1043. },
  1044. methods: {
  1045. click(index) {
  1046. this.activeIndex = index;
  1047. this.subIndex = null;
  1048. },
  1049. subMenuShow(children, index) {
  1050. if (children) {
  1051. this.isShowSubMenu = true;
  1052. this.parentIndex = index;
  1053. } else {
  1054. this.isShowSubMenu = false;
  1055. this.parentIndex = null;
  1056. }
  1057. this.subMenu = children;
  1058. },
  1059. subMenuHide() {
  1060. this.isShowSubMenu = false;
  1061. this.parentIndex = null;
  1062. // this.subMenu = [];
  1063. },
  1064. subclick(index) {
  1065. this.activeIndex = this.parentIndex;
  1066. this.subIndex = index;
  1067. },
  1068. },
  1069. computed: {
  1070. currentMenu() {
  1071. let data = this.menuData.filter((t) => {
  1072. return t.id == this.currRoot;
  1073. })[0].data;
  1074. this.$store.dispatch("changeMenuData", data);
  1075. return data;
  1076. },
  1077. },
  1078. watch: {
  1079. // 监听路由
  1080. $route: {
  1081. handler: function (val, oldVal) {
  1082. this.menuData.some((element, index) => {
  1083. if (val.path.includes(element.id)) {
  1084. this.$nextTick(() => {
  1085. this.currRoot = element.id;
  1086. this.$nextTick(() => {
  1087. this.currentMenu.some((element, index) => {
  1088. if (val.path == element.path) {
  1089. this.activeIndex = index;
  1090. }
  1091. });
  1092. });
  1093. });
  1094. return true;
  1095. }
  1096. });
  1097. },
  1098. //深度观察监听
  1099. deep: true,
  1100. },
  1101. },
  1102. };
  1103. </script>
  1104. <style lang="less">
  1105. .menu {
  1106. padding-top: 1.481vh;
  1107. .menu-list {
  1108. margin: 0;
  1109. padding: 0;
  1110. list-style: none;
  1111. .menu-item {
  1112. padding: 1.481vh 0;
  1113. text-align: center;
  1114. .menu-icon {
  1115. display: flex;
  1116. justify-content: center;
  1117. }
  1118. &.active i {
  1119. color: #05bb4c;
  1120. transition: color 1s;
  1121. }
  1122. }
  1123. }
  1124. i {
  1125. font-size: 2.222vh;
  1126. color: rgba(255, 255, 255, 50%);
  1127. }
  1128. }
  1129. .sub-menu {
  1130. position: absolute;
  1131. top: 0;
  1132. left: 5.3704vh;
  1133. width: 158px;
  1134. height: 100%;
  1135. padding-top: 1.481vh;
  1136. background: fade(#192a26, 75);
  1137. border-right: 1px solid fade(@green, 50);
  1138. box-shadow: inset 11px 0px 20px 0px fade(#021412, 60);
  1139. .menu-list {
  1140. margin: 0;
  1141. padding: 0;
  1142. list-style: none;
  1143. .menu-item {
  1144. display: flex;
  1145. text-align: center;
  1146. line-height: 1.5;
  1147. padding: 8px 0;
  1148. background: #121d1c;
  1149. a {
  1150. display: flex;
  1151. width: 100%;
  1152. height: 100%;
  1153. padding: 0 1.4815vh;
  1154. font-size: @fontsize-s;
  1155. text-decoration: unset;
  1156. .menu-icon {
  1157. display: flex;
  1158. align-items: center;
  1159. svg {
  1160. width: 14px;
  1161. height: 14px;
  1162. use {
  1163. fill: fade(@green, 75);
  1164. }
  1165. }
  1166. }
  1167. }
  1168. &.active {
  1169. background: #323e70;
  1170. .menu-icon {
  1171. display: flex;
  1172. svg use {
  1173. fill: fade(@white, 75);
  1174. }
  1175. }
  1176. }
  1177. .sub-menu-text {
  1178. margin-left: 1.1111vh;
  1179. color: @gray-l;
  1180. }
  1181. & + .menu-item {
  1182. border-top: 1px solid fade(@darkgray, 40);
  1183. }
  1184. }
  1185. }
  1186. i {
  1187. font-size: 2.222vh;
  1188. color: rgba(255, 255, 255, 50%);
  1189. }
  1190. }
  1191. </style>