index.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588
  1. <template>
  2. <div class="parcel-box">
  3. <div class="form-wrapper">
  4. <el-select
  5. size="mini"
  6. :disabled="displayDetail"
  7. v-model="company"
  8. placeholder="请选择"
  9. @change="handleCompanyChange(company)"
  10. >
  11. <el-option
  12. v-for="item in companyOptions"
  13. :key="item.id"
  14. :label="item.aname"
  15. :value="item.id"
  16. >
  17. </el-option>
  18. </el-select>
  19. <div class="tabCut">
  20. <div
  21. @click="tabClick(val.id)"
  22. :class="[
  23. tabIndex === val.id ? 'active' : '',
  24. displayDetail ? 'disabled' : '',
  25. ]"
  26. v-for="val in tabOptions"
  27. :key="val.id"
  28. >
  29. <span>{{ val.name }}</span>
  30. </div>
  31. </div>
  32. <div class="station">
  33. 场站:
  34. <el-select
  35. size="mini"
  36. :disabled="displayDetail"
  37. v-model="stationObj"
  38. placeholder="请选择"
  39. @change="handleStationChange(stationObj)"
  40. clearable
  41. >
  42. <el-option
  43. v-for="item in stationList"
  44. :key="item.id"
  45. :label="item.name"
  46. :value="item.id"
  47. >
  48. </el-option>
  49. </el-select>
  50. </div>
  51. <div class="station">
  52. 开始日期
  53. <div class="search-input">
  54. <el-date-picker
  55. :disabled="displayDetail"
  56. v-model="starTime"
  57. type="date"
  58. value-format="YYYY-MM-DD"
  59. placeholder="选择日期"
  60. popper-class="date-select"
  61. >
  62. </el-date-picker>
  63. </div>
  64. </div>
  65. <div class="station">
  66. 结束日期
  67. <div class="search-input">
  68. <el-date-picker
  69. :disabled="displayDetail"
  70. v-model="endTime"
  71. type="date"
  72. value-format="YYYY-MM-DD"
  73. placeholder="选择日期"
  74. popper-class="date-select"
  75. >
  76. </el-date-picker>
  77. </div>
  78. </div>
  79. <div class="but">
  80. <el-button
  81. round
  82. size="mini"
  83. class="buttons"
  84. :disabled="displayDetail"
  85. @click="gerCndb"
  86. >搜索</el-button
  87. >
  88. <el-button
  89. round
  90. size="mini"
  91. class="buttons"
  92. @click="dbfx"
  93. :disabled="
  94. chooseList.length <= 5 && chooseList.length > 1 ? false : true
  95. "
  96. >对标分析</el-button
  97. >
  98. <el-button
  99. round
  100. size="mini"
  101. class="buttons"
  102. @click="goBack"
  103. v-if="displayDetail"
  104. >返回</el-button
  105. >
  106. <el-button round size="mini" class="buttons" @click="funthb"
  107. >同环比</el-button
  108. >
  109. </div>
  110. </div>
  111. <div class="bodys" v-if="!displayDetail">
  112. <div class="line">
  113. <div class="leftContent"><span>场内对标</span></div>
  114. </div>
  115. <div class="economicTable">
  116. <el-table
  117. :data="tableData"
  118. ref="multipleTable"
  119. size="mini"
  120. height="calc(100% - 40px)"
  121. :cell-style="{ padding: '4px' }"
  122. :row-style="{ height: '0' }"
  123. stripe
  124. @selection-change="handleCurrentChange"
  125. >
  126. <el-table-column type="selection" width="60" align="center">
  127. </el-table-column>
  128. <el-table-column
  129. align="center"
  130. prop="zhpm"
  131. show-overflow-tooltip
  132. label="综合排名"
  133. width="80"
  134. sortable
  135. >
  136. </el-table-column>
  137. <el-table-column
  138. align="center"
  139. show-overflow-tooltip
  140. prop="date"
  141. label="日期"
  142. sortable
  143. width="100"
  144. >
  145. </el-table-column>
  146. <el-table-column
  147. align="center"
  148. show-overflow-tooltip
  149. prop="fdlpm"
  150. label="发电量排名"
  151. sortable
  152. width="65"
  153. >
  154. </el-table-column>
  155. <el-table-column
  156. align="center"
  157. show-overflow-tooltip
  158. prop="fdl"
  159. label="发电量"
  160. sortable
  161. width="65"
  162. >
  163. </el-table-column>
  164. <el-table-column
  165. align="center"
  166. show-overflow-tooltip
  167. prop="gzssdlpm"
  168. label="故障损失排名"
  169. sortable
  170. width="65"
  171. >
  172. </el-table-column>
  173. <el-table-column
  174. align="center"
  175. show-overflow-tooltip
  176. prop="gzssdl"
  177. label="故障损失"
  178. sortable
  179. width="65"
  180. >
  181. </el-table-column>
  182. <el-table-column
  183. align="center"
  184. show-overflow-tooltip
  185. prop="jxssdlpm"
  186. label="检修损失排名"
  187. sortable
  188. width="65"
  189. >
  190. </el-table-column>
  191. <el-table-column
  192. align="center"
  193. show-overflow-tooltip
  194. prop="jxssdl"
  195. label="检修损失"
  196. sortable
  197. width="65"
  198. >
  199. </el-table-column>
  200. <el-table-column
  201. align="center"
  202. show-overflow-tooltip
  203. prop="xnssdlpm"
  204. label="性能损失排名"
  205. sortable
  206. width="65"
  207. >
  208. </el-table-column>
  209. <el-table-column
  210. align="center"
  211. show-overflow-tooltip
  212. prop="xnssdl"
  213. label="性能损失"
  214. sortable
  215. width="65"
  216. >
  217. </el-table-column>
  218. <el-table-column
  219. align="center"
  220. show-overflow-tooltip
  221. prop="xdssdlpm"
  222. label="限电损失排名"
  223. sortable
  224. width="65"
  225. >
  226. </el-table-column>
  227. <el-table-column
  228. align="center"
  229. show-overflow-tooltip
  230. prop="xdssdl"
  231. label="限电损失"
  232. sortable
  233. width="65"
  234. >
  235. </el-table-column>
  236. <el-table-column
  237. align="center"
  238. show-overflow-tooltip
  239. prop="slssdlpm"
  240. label="受累损失排名"
  241. sortable
  242. width="65"
  243. >
  244. </el-table-column>
  245. <el-table-column
  246. align="center"
  247. show-overflow-tooltip
  248. prop="slssdl"
  249. label="受累损失"
  250. sortable
  251. width="65"
  252. >
  253. </el-table-column>
  254. <el-table-column
  255. align="center"
  256. show-overflow-tooltip
  257. prop="fnlylpm"
  258. :label="(tabIndex === -1 ? '风能' : '光能') + '利用率排名'"
  259. sortable
  260. width="65"
  261. >
  262. </el-table-column>
  263. <el-table-column
  264. align="center"
  265. show-overflow-tooltip
  266. prop="fnlyl"
  267. :label="(tabIndex === -1 ? '风能' : '光能') + '利用率(%)'"
  268. sortable
  269. width="65"
  270. >
  271. </el-table-column>
  272. <el-table-column
  273. align="center"
  274. show-overflow-tooltip
  275. prop="gzsslpm"
  276. label="故障损失率排名"
  277. sortable
  278. width="65"
  279. >
  280. </el-table-column>
  281. <el-table-column
  282. align="center"
  283. prop="gzssl"
  284. show-overflow-tooltip
  285. label="故障损失率(%)"
  286. sortable
  287. width="65"
  288. >
  289. </el-table-column>
  290. <el-table-column
  291. align="center"
  292. prop="jxsslpm"
  293. show-overflow-tooltip
  294. label="检修损失率排名"
  295. sortable
  296. width="65"
  297. >
  298. </el-table-column>
  299. <el-table-column
  300. align="center"
  301. prop="jxssl"
  302. show-overflow-tooltip
  303. label="检修损失率(%)"
  304. sortable
  305. width="65"
  306. >
  307. </el-table-column>
  308. <el-table-column
  309. align="center"
  310. prop="qflpm"
  311. show-overflow-tooltip
  312. :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率排名'"
  313. sortable
  314. width="65"
  315. >
  316. </el-table-column>
  317. <el-table-column
  318. align="center"
  319. prop="qfl"
  320. show-overflow-tooltip
  321. :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率(%)'"
  322. sortable
  323. width="65"
  324. >
  325. </el-table-column>
  326. <el-table-column
  327. align="center"
  328. prop="xnsslpm"
  329. show-overflow-tooltip
  330. label="性能损失率排名"
  331. sortable
  332. width="65"
  333. >
  334. </el-table-column>
  335. <el-table-column
  336. align="center"
  337. prop="xnssl"
  338. show-overflow-tooltip
  339. label="性能损失率(%)"
  340. sortable
  341. width="65"
  342. >
  343. </el-table-column>
  344. <el-table-column
  345. align="center"
  346. prop="slsslpm"
  347. show-overflow-tooltip
  348. label="受累损失率排名"
  349. sortable
  350. width="65"
  351. >
  352. </el-table-column>
  353. <el-table-column
  354. align="center"
  355. prop="slssl"
  356. show-overflow-tooltip
  357. label="受累损失率(%)"
  358. sortable
  359. width="65"
  360. >
  361. </el-table-column>
  362. <el-table-column align="center" prop="" label="操作">
  363. <template v-slot="scope">
  364. <span
  365. @click="goDetail(scope.row)"
  366. style="cursor: pointer; color: #05bb4c"
  367. >详情</span
  368. >
  369. </template>
  370. </el-table-column>
  371. </el-table>
  372. <div class="pagination-class">
  373. <el-pagination
  374. @current-change="handlePageChange"
  375. :current-page="page.currentPage"
  376. :page-size="page.pagesize"
  377. layout="total, prev, pager, next, jumper"
  378. :total="page.total"
  379. >
  380. </el-pagination>
  381. </div>
  382. </div>
  383. </div>
  384. <div class="echarts" v-if="!displayDetail">
  385. <div class="pie-echarts">
  386. <div class="chart-name">
  387. <div class="point point-left bottom"></div>
  388. <div class="point point-right bottom"></div>
  389. 损失电量分析
  390. </div>
  391. <PieChart
  392. :lossPower="lossPower"
  393. width="100%"
  394. height="calc(100% - 39px)"
  395. :showLable="false"
  396. ></PieChart>
  397. </div>
  398. <div class="bar-echarts">
  399. <div class="chart-name">
  400. <div class="point point-left bottom"></div>
  401. <div class="point point-right bottom"></div>
  402. 五项损失
  403. </div>
  404. <BarCharts
  405. :list="barList"
  406. width="100%"
  407. height="calc(100% - 39px)"
  408. :showLegend="true"
  409. :xdate="false"
  410. :colorIndex="true"
  411. ></BarCharts>
  412. </div>
  413. </div>
  414. <div
  415. v-if="displayDetail"
  416. style="height: calc(100% - 43px - 35px); padding-bottom: 10px"
  417. >
  418. <el-table
  419. :data="detailTable"
  420. ref="multipleTable"
  421. size="mini"
  422. height="100%"
  423. :cell-style="{ padding: '0px' }"
  424. :row-style="{ height: '0' }"
  425. stripe
  426. @selection-change="handleCurrentChange"
  427. >
  428. <el-table-column type="selection" width="60" align="center">
  429. </el-table-column>
  430. <el-table-column
  431. show-overflow-tooltip
  432. align="center"
  433. prop="name"
  434. label="风机名称"
  435. width="150"
  436. sortable
  437. >
  438. </el-table-column>
  439. <el-table-column
  440. show-overflow-tooltip
  441. align="center"
  442. prop="zhpm"
  443. label="综合排名"
  444. sortable
  445. >
  446. </el-table-column>
  447. <el-table-column
  448. show-overflow-tooltip
  449. align="center"
  450. prop="gzssdl"
  451. label="故障损失"
  452. sortable
  453. >
  454. </el-table-column>
  455. <el-table-column
  456. show-overflow-tooltip
  457. align="center"
  458. prop="jxssdlpm"
  459. label="检修损失排名"
  460. sortable
  461. >
  462. </el-table-column>
  463. <el-table-column
  464. show-overflow-tooltip
  465. align="center"
  466. prop="jxssdl"
  467. label="检修损失"
  468. sortable
  469. >
  470. </el-table-column>
  471. <el-table-column
  472. show-overflow-tooltip
  473. align="center"
  474. prop="xnssdlpm"
  475. label="性能损失排名"
  476. sortable
  477. >
  478. </el-table-column>
  479. <el-table-column
  480. show-overflow-tooltip
  481. align="center"
  482. prop="xnssdl"
  483. label="性能损失"
  484. sortable
  485. >
  486. </el-table-column>
  487. <el-table-column
  488. show-overflow-tooltip
  489. align="center"
  490. prop="xdssdlpm"
  491. label="限电损失排名"
  492. sortable
  493. >
  494. </el-table-column>
  495. <el-table-column
  496. show-overflow-tooltip
  497. align="center"
  498. prop="xdssdl"
  499. label="限电损失"
  500. sortable
  501. >
  502. </el-table-column>
  503. <el-table-column
  504. show-overflow-tooltip
  505. align="center"
  506. prop="slssdlpm"
  507. label="受累损失排名"
  508. sortable
  509. >
  510. </el-table-column>
  511. <el-table-column
  512. show-overflow-tooltip
  513. align="center"
  514. prop="slssdl"
  515. label="受累损失"
  516. sortable
  517. >
  518. </el-table-column>
  519. <el-table-column
  520. show-overflow-tooltip
  521. align="center"
  522. prop="gzsslpm"
  523. label="故障损失率排名"
  524. sortable
  525. >
  526. </el-table-column>
  527. <el-table-column
  528. show-overflow-tooltip
  529. align="center"
  530. prop="gzssl"
  531. label="故障损失率(%)"
  532. sortable
  533. >
  534. </el-table-column>
  535. <el-table-column
  536. show-overflow-tooltip
  537. align="center"
  538. prop="jxsslpm"
  539. label="检修损失率排名"
  540. sortable
  541. >
  542. </el-table-column>
  543. <el-table-column
  544. show-overflow-tooltip
  545. align="center"
  546. prop="jxssl"
  547. label="检修损失率(%)"
  548. sortable
  549. >
  550. </el-table-column>
  551. <el-table-column
  552. show-overflow-tooltip
  553. align="center"
  554. prop="qflpm"
  555. :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率排名'"
  556. sortable
  557. >
  558. </el-table-column>
  559. <el-table-column
  560. show-overflow-tooltip
  561. align="center"
  562. prop="qfl"
  563. :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率(%)'"
  564. sortable
  565. >
  566. </el-table-column>
  567. <el-table-column
  568. show-overflow-tooltip
  569. align="center"
  570. prop="xnsslpm"
  571. label="性能损失率排名"
  572. sortable
  573. >
  574. </el-table-column>
  575. <el-table-column
  576. show-overflow-tooltip
  577. align="center"
  578. prop="xnssl"
  579. label="性能损失率(%)"
  580. sortable
  581. >
  582. </el-table-column>
  583. <el-table-column
  584. show-overflow-tooltip
  585. align="center"
  586. prop="slsslpm"
  587. label="受累损失率排名"
  588. sortable
  589. >
  590. </el-table-column>
  591. <el-table-column
  592. show-overflow-tooltip
  593. align="center"
  594. prop="slssl"
  595. label="受累损失率(%)"
  596. sortable
  597. >
  598. </el-table-column>
  599. </el-table>
  600. <div class="pagination-class">
  601. <el-pagination
  602. @current-change="handlePageDChange"
  603. :current-page="pageD.currentPage"
  604. :page-size="pageD.pagesize"
  605. layout="total, prev, pager, next, jumper"
  606. :total="pageD.total"
  607. >
  608. </el-pagination>
  609. </div>
  610. </div>
  611. <el-dialog
  612. class="dialogs"
  613. width="90%"
  614. top="40px"
  615. v-model="dialogVisible"
  616. :show-close="true"
  617. >
  618. <template #title>
  619. <div class="dialog-title">
  620. <div class="title">对标排名分析</div>
  621. </div>
  622. </template>
  623. <div class="dialog-body">
  624. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  625. <dayinfo
  626. :radarValue="radarValue"
  627. :title="[windNum, windNum2]"
  628. :windNum="windNum"
  629. :windNum2="windNum2"
  630. :windNum3="windNum3"
  631. :windNum4="windNum4"
  632. :windNum5="windNum5"
  633. :tabs="tabs"
  634. :analyisDialog="analyisDialog"
  635. />
  636. </div>
  637. </el-dialog>
  638. <el-dialog
  639. class="dialogs"
  640. width="94%"
  641. top="120px"
  642. v-model="thbVisible"
  643. :show-close="true"
  644. >
  645. <template #title>
  646. <div class="dialog-title">
  647. <div class="title">同环比分析</div>
  648. </div>
  649. </template>
  650. <div class="dialog-body">
  651. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  652. <div class="economicTable" style="height: 300px">
  653. <el-table
  654. :data="thbData"
  655. ref="multipleTable1"
  656. size="mini"
  657. height="100%"
  658. :cell-style="{ padding: '4px' }"
  659. :row-style="{ height: '0' }"
  660. stripe
  661. >
  662. <el-table-column
  663. show-overflow-tooltip
  664. align="center"
  665. label-class-name="s-tb-th"
  666. prop="zhpm"
  667. label="综合排名"
  668. minWidth="80"
  669. sortable
  670. >
  671. </el-table-column>
  672. <el-table-column
  673. show-overflow-tooltip
  674. align="center"
  675. label-class-name="s-tb-th"
  676. prop="name"
  677. label="类型"
  678. sortable
  679. minWidth="100"
  680. >
  681. </el-table-column>
  682. <el-table-column
  683. show-overflow-tooltip
  684. align="center"
  685. label-class-name="s-tb-th"
  686. prop="fdlpm"
  687. label="发电量排名"
  688. sortable
  689. minWidth="65"
  690. >
  691. </el-table-column>
  692. <el-table-column
  693. show-overflow-tooltip
  694. align="center"
  695. label-class-name="s-tb-th"
  696. prop="fdl"
  697. label="发电量"
  698. sortable
  699. minWidth="65"
  700. >
  701. </el-table-column>
  702. <el-table-column
  703. show-overflow-tooltip
  704. align="center"
  705. label-class-name="s-tb-th"
  706. prop="gzssdlpm"
  707. label="故障损失排名"
  708. sortable
  709. minWidth="65"
  710. >
  711. </el-table-column>
  712. <el-table-column
  713. show-overflow-tooltip
  714. align="center"
  715. label-class-name="s-tb-th"
  716. prop="gzssdl"
  717. label="故障损失"
  718. sortable
  719. minWidth="65"
  720. >
  721. </el-table-column>
  722. <el-table-column
  723. show-overflow-tooltip
  724. align="center"
  725. label-class-name="s-tb-th"
  726. prop="jxssdlpm"
  727. label="检修损失排名"
  728. sortable
  729. minWidth="65"
  730. >
  731. </el-table-column>
  732. <el-table-column
  733. show-overflow-tooltip
  734. align="center"
  735. label-class-name="s-tb-th"
  736. prop="jxssdl"
  737. label="检修损失"
  738. sortable
  739. minWidth="65"
  740. >
  741. </el-table-column>
  742. <el-table-column
  743. show-overflow-tooltip
  744. align="center"
  745. label-class-name="s-tb-th"
  746. prop="xnssdlpm"
  747. label="性能损失排名"
  748. sortable
  749. minWidth="65"
  750. >
  751. </el-table-column>
  752. <el-table-column
  753. show-overflow-tooltip
  754. align="center"
  755. label-class-name="s-tb-th"
  756. prop="xnssdl"
  757. label="性能损失"
  758. sortable
  759. minWidth="65"
  760. >
  761. </el-table-column>
  762. <el-table-column
  763. show-overflow-tooltip
  764. align="center"
  765. label-class-name="s-tb-th"
  766. prop="xdssdlpm"
  767. label="限电损失排名"
  768. sortable
  769. minWidth="65"
  770. >
  771. </el-table-column>
  772. <el-table-column
  773. show-overflow-tooltip
  774. align="center"
  775. label-class-name="s-tb-th"
  776. prop="xdssdl"
  777. label="限电损失"
  778. sortable
  779. minWidth="65"
  780. >
  781. </el-table-column>
  782. <el-table-column
  783. show-overflow-tooltip
  784. align="center"
  785. label-class-name="s-tb-th"
  786. prop="slssdlpm"
  787. label="受累损失排名"
  788. sortable
  789. minWidth="65"
  790. >
  791. </el-table-column>
  792. <el-table-column
  793. show-overflow-tooltip
  794. align="center"
  795. label-class-name="s-tb-th"
  796. prop="slssdl"
  797. label="受累损失"
  798. sortable
  799. minWidth="65"
  800. >
  801. </el-table-column>
  802. <el-table-column
  803. show-overflow-tooltip
  804. align="center"
  805. label-class-name="s-tb-th"
  806. prop="fnlylpm"
  807. :label="(tabIndex === -1 ? '风能' : '光能') + '利用率排名'"
  808. sortable
  809. minWidth="65"
  810. >
  811. </el-table-column>
  812. <el-table-column
  813. show-overflow-tooltip
  814. align="center"
  815. label-class-name="s-tb-th"
  816. prop="fnlyl"
  817. :label="(tabIndex === -1 ? '风能' : '光能') + '利用率(%)'"
  818. sortable
  819. minWidth="65"
  820. >
  821. </el-table-column>
  822. <el-table-column
  823. show-overflow-tooltip
  824. align="center"
  825. label-class-name="s-tb-th"
  826. prop="gzsslpm"
  827. label="故障损失率排名"
  828. sortable
  829. minWidth="65"
  830. >
  831. </el-table-column>
  832. <el-table-column
  833. show-overflow-tooltip
  834. align="center"
  835. label-class-name="s-tb-th"
  836. prop="gzssl"
  837. label="故障损失率(%)"
  838. sortable
  839. minWidth="65"
  840. >
  841. </el-table-column>
  842. <el-table-column
  843. show-overflow-tooltip
  844. align="center"
  845. label-class-name="s-tb-th"
  846. prop="jxsslpm"
  847. label="检修损失率排名"
  848. sortable
  849. minWidth="65"
  850. >
  851. </el-table-column>
  852. <el-table-column
  853. show-overflow-tooltip
  854. align="center"
  855. label-class-name="s-tb-th"
  856. prop="jxssl"
  857. label="检修损失率(%)"
  858. sortable
  859. minWidth="65"
  860. >
  861. </el-table-column>
  862. <el-table-column
  863. show-overflow-tooltip
  864. align="center"
  865. label-class-name="s-tb-th"
  866. prop="qflpm"
  867. :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率排名'"
  868. sortable
  869. minWidth="65"
  870. >
  871. </el-table-column>
  872. <el-table-column
  873. show-overflow-tooltip
  874. align="center"
  875. label-class-name="s-tb-th"
  876. prop="qfl"
  877. :label="'弃' + (tabIndex === -1 ? '风' : '光') + '率(%)'"
  878. sortable
  879. minWidth="65"
  880. >
  881. </el-table-column>
  882. <el-table-column
  883. show-overflow-tooltip
  884. align="center"
  885. label-class-name="s-tb-th"
  886. prop="xnsslpm"
  887. label="性能损失率排名"
  888. sortable
  889. minWidth="65"
  890. >
  891. </el-table-column>
  892. <el-table-column
  893. show-overflow-tooltip
  894. align="center"
  895. label-class-name="s-tb-th"
  896. prop="xnssl"
  897. label="性能损失率(%)"
  898. sortable
  899. minWidth="65"
  900. >
  901. </el-table-column>
  902. <el-table-column
  903. show-overflow-tooltip
  904. align="center"
  905. label-class-name="s-tb-th"
  906. prop="slsslpm"
  907. label="受累损失率排名"
  908. sortable
  909. minWidth="65"
  910. >
  911. </el-table-column>
  912. <el-table-column
  913. show-overflow-tooltip
  914. align="center"
  915. label-class-name="s-tb-th"
  916. prop="slssl"
  917. label="受累损失率(%)"
  918. sortable
  919. minWidth="65"
  920. >
  921. </el-table-column>
  922. </el-table>
  923. </div>
  924. </div>
  925. </el-dialog>
  926. </div>
  927. </template>
  928. <script>
  929. import dayjs from "dayjs";
  930. import { companys } from "@/api/curveAnalyse";
  931. import { getStation, cndb, thb, details } from "@/api/performance";
  932. import PieChart from "../../homePage/components/pieChart.vue";
  933. import BarCharts from "../../homePage/components/barCharts.vue";
  934. import dayinfo from "../compontent/dayinfo.vue";
  935. export default {
  936. name: "siteBenchmarking", //场内对标
  937. components: {
  938. PieChart,
  939. BarCharts,
  940. dayinfo,
  941. },
  942. data() {
  943. return {
  944. page: {
  945. pagesize: 9,
  946. currentPage: 1,
  947. total: 0,
  948. },
  949. pageD: {
  950. pagesize: 19,
  951. currentPage: 1,
  952. total: 0,
  953. },
  954. company: "",
  955. companyOptions: [],
  956. stationObj: "",
  957. stationList: [],
  958. starTime: "",
  959. endTime: "",
  960. tabIndex: -1,
  961. tabOptions: [
  962. { id: -1, name: "风电" },
  963. { id: -2, name: "光伏" },
  964. ],
  965. tableData: [],
  966. detailTable: [],
  967. chooseList: [],
  968. lossPower: [],
  969. barList: [],
  970. displayDetail: false,
  971. dialogVisible: false,
  972. radarValue: [],
  973. windNum: "",
  974. windNum2: "",
  975. windNum3: "",
  976. windNum4: "",
  977. windNum5: "",
  978. tabs: [],
  979. analyisDialog: [],
  980. //同环比
  981. thbVisible: false,
  982. thbData: [],
  983. };
  984. },
  985. created() {
  986. // let date = new Date();
  987. // date.setDate(1);
  988. // let month = parseInt(date.getMonth() + 1);
  989. // let day = date.getDate();
  990. // if (month < 10) {
  991. // month = '0' + month;
  992. // }
  993. // if (day < 10) {
  994. // day = '0' + day;
  995. // }
  996. // this.starTime = date.getFullYear() + '-' + month + '-' + day;
  997. this.starTime = dayjs(new Date().getTime() - 60000 * 60 * 24 * 7).format(
  998. "YYYY-MM-DD"
  999. );
  1000. this.endTime = dayjs(new Date().getTime()).format("YYYY-MM-DD");
  1001. this.initialization();
  1002. },
  1003. methods: {
  1004. handlePageChange(val) {
  1005. this.page.currentPage = val;
  1006. this.gerCndb();
  1007. },
  1008. handlePageDChange(val) {
  1009. this.pageD.currentPage = val;
  1010. this.goDetail();
  1011. },
  1012. funthb() {
  1013. thb({
  1014. companys: this.company,
  1015. type: this.tabIndex,
  1016. // beginDate: this.starTime,
  1017. // endDate: this.endTime,
  1018. pageNum: 1,
  1019. pageSize: 10,
  1020. wpids: this.stationObj,
  1021. }).then(({ data: res }) => {
  1022. if (res.data) {
  1023. this.thbData = res.data;
  1024. this.thbVisible = true;
  1025. }
  1026. });
  1027. },
  1028. tabClick(val) {
  1029. this.tabIndex = val;
  1030. this.getStation(this.company);
  1031. this.gerCndb();
  1032. // this.initialization();
  1033. },
  1034. initialization() {
  1035. companys().then(({ data: res }) => {
  1036. if (res.data) {
  1037. this.company = res.data[0].id;
  1038. this.companyOptions = res.data;
  1039. this.getStation(res.data[0].id);
  1040. }
  1041. });
  1042. },
  1043. getStation(companyids) {
  1044. getStation({
  1045. companyids: companyids,
  1046. type: this.tabIndex,
  1047. }).then(({ data: res }) => {
  1048. if (res.data.length) {
  1049. this.stationList = res.data;
  1050. this.stationObj = res.data[0].id;
  1051. this.gerCndb();
  1052. } else {
  1053. this.stationList = [];
  1054. this.stationObj = "";
  1055. this.gerCndb();
  1056. }
  1057. });
  1058. },
  1059. gerCndb() {
  1060. cndb({
  1061. companys: this.company,
  1062. type: this.tabIndex,
  1063. beginDate: this.starTime,
  1064. endDate: this.endTime,
  1065. wpids: this.stationObj,
  1066. pageSize: this.page.pagesize,
  1067. pageNum: this.page.currentPage,
  1068. target: "",
  1069. sort: "",
  1070. }).then(({ data: res }) => {
  1071. if (res.data) {
  1072. let barList = [
  1073. {
  1074. name: "故障损失电量",
  1075. children: [],
  1076. date: [],
  1077. },
  1078. {
  1079. name: "检修损失电量",
  1080. children: [],
  1081. },
  1082. {
  1083. name: "性能损失电量",
  1084. children: [],
  1085. },
  1086. {
  1087. name: "限电损失电量",
  1088. children: [],
  1089. },
  1090. {
  1091. name: "受累损失电量",
  1092. children: [],
  1093. },
  1094. ];
  1095. this.tableData = res.data.resultList;
  1096. this.page.total = res.data.total;
  1097. let lossPower = [];
  1098. res.data.resultList.forEach((item) => {
  1099. let obj = {
  1100. name: item.date,
  1101. value: item.zssdl,
  1102. };
  1103. lossPower.push(obj);
  1104. barList[0].date.push(item.date);
  1105. barList[0].children.push(item.gzssdl);
  1106. barList[1].children.push(item.jxssdl);
  1107. barList[2].children.push(item.xnssdl);
  1108. barList[3].children.push(item.xdssdl);
  1109. barList[4].children.push(item.slssdl);
  1110. });
  1111. this.lossPower = lossPower;
  1112. this.barList = barList;
  1113. }
  1114. });
  1115. },
  1116. handleStationChange(val) {
  1117. this.stationObj = val;
  1118. this.gerCndb();
  1119. },
  1120. handleCompanyChange(val) {
  1121. this.company = val;
  1122. this.getStation(val);
  1123. this.gerCndb();
  1124. },
  1125. handleCurrentChange(val) {
  1126. if (val.length > 5) {
  1127. let del_row = val.shift();
  1128. this.$refs.multipleTable.toggleRowSelection(del_row, false);
  1129. }
  1130. let arr = [];
  1131. val.forEach((item, index) => {
  1132. if (index < 5) {
  1133. arr.push(item);
  1134. }
  1135. });
  1136. this.chooseList = arr;
  1137. },
  1138. goDetail(row) {
  1139. this.displayDetail = true;
  1140. details({
  1141. id: this.stationObj,
  1142. beginDate: this.starTime,
  1143. endDate: this.endTime,
  1144. pageSize: this.pageD.pagesize,
  1145. pageNum: this.pageD.currentPage,
  1146. target: "",
  1147. sort: "",
  1148. }).then(({ data: res }) => {
  1149. if (res.data) {
  1150. this.detailTable = res.data.resultList;
  1151. this.pageD.total = res.data.total;
  1152. }
  1153. });
  1154. },
  1155. goBack() {
  1156. this.displayDetail = false;
  1157. },
  1158. dbfx() {
  1159. if (this.chooseList.length <= 5) {
  1160. this.dialogVisible = true;
  1161. this.AjaxDbfx();
  1162. }
  1163. },
  1164. AjaxDbfx() {
  1165. var data = this.chooseList;
  1166. this.windNum = data[0]?.date || data[0]?.name;
  1167. this.windNum2 = data[1]?.date || data[1]?.name;
  1168. this.windNum3 = data[2]?.date || data[2]?.name;
  1169. this.windNum4 = data[3]?.date || data[3]?.name;
  1170. this.windNum5 = data[4]?.date || data[4]?.name;
  1171. let tabs = [
  1172. {
  1173. name: "发电量",
  1174. code: "fdl",
  1175. },
  1176. {
  1177. name: "故障损失电量",
  1178. code: "gzssdl",
  1179. },
  1180. {
  1181. name: "检修损失电量",
  1182. code: "jxssdl",
  1183. },
  1184. {
  1185. name: "性能未达标损失电量",
  1186. code: "xnssdl",
  1187. },
  1188. {
  1189. name: "受累损失电量",
  1190. code: "slssdl",
  1191. },
  1192. {
  1193. name: "风能利用率",
  1194. code: "fnlyl",
  1195. },
  1196. {
  1197. name: "故障损失率",
  1198. code: "gzssl",
  1199. },
  1200. {
  1201. name: "检修损失率",
  1202. code: "jxssl",
  1203. },
  1204. {
  1205. name: "弃风率",
  1206. code: "qfl",
  1207. },
  1208. {
  1209. name: "性能损失率",
  1210. code: "xnssl",
  1211. },
  1212. {
  1213. name: "受累损失率",
  1214. code: "slssl",
  1215. },
  1216. ];
  1217. tabs = tabs.map((item) => {
  1218. if (item.code == "fnlyl") {
  1219. if (this.tabIndex == -1) {
  1220. item.name = "风能利用率";
  1221. } else {
  1222. item.name = "光能利用率";
  1223. }
  1224. }
  1225. if (item.code == "qfl") {
  1226. if (this.tabIndex == -1) {
  1227. item.name = "弃风率";
  1228. } else {
  1229. item.name = "弃光率";
  1230. }
  1231. }
  1232. return item;
  1233. });
  1234. tabs.forEach((val) => {
  1235. data.forEach((item, index) => {
  1236. val["windData" + (index + 1)] = item[val.code];
  1237. });
  1238. });
  1239. this.tabs = tabs;
  1240. let radarValue = [];
  1241. data.forEach((item, index) => {
  1242. let data = {
  1243. indicator: [
  1244. "风能利用率排名",
  1245. "故障损失率排名",
  1246. "检修损失率排名",
  1247. "弃风率排名",
  1248. "性能损失率排名",
  1249. "受累损失率排名",
  1250. ],
  1251. data: [
  1252. {
  1253. value: [
  1254. item.fnlylpm,
  1255. item.gzsslpm,
  1256. item.jxsslpm,
  1257. item.qflpm,
  1258. item.xnsslpm,
  1259. item.slsslpm,
  1260. ],
  1261. name: item.name,
  1262. },
  1263. ],
  1264. };
  1265. if (this.tabIndex == -1) {
  1266. data.indicator = [
  1267. "风能利用率排名",
  1268. "故障损失率排名",
  1269. "检修损失率排名",
  1270. "弃风率排名",
  1271. "性能损失率排名",
  1272. "受累损失率排名",
  1273. ];
  1274. } else {
  1275. data.indicator = [
  1276. "光能利用率排名",
  1277. "故障损失率排名",
  1278. "检修损失率排名",
  1279. "弃光率排名",
  1280. "性能损失率排名",
  1281. "受累损失率排名",
  1282. ];
  1283. }
  1284. radarValue.push(data);
  1285. });
  1286. this.radarValue = radarValue;
  1287. var analyis = [],
  1288. gzssdl = [],
  1289. jxssdl = [],
  1290. xnssdl = [],
  1291. xdssdl = [],
  1292. slssdl = [];
  1293. data.forEach((item, index) => {
  1294. gzssdl.push({
  1295. text: item.date || item.name,
  1296. value: item.gzssdl,
  1297. });
  1298. jxssdl.push({
  1299. text: item.date || item.name,
  1300. value: item.jxssdl,
  1301. });
  1302. xnssdl.push({
  1303. text: item.date || item.name,
  1304. value: item.xnssdl,
  1305. });
  1306. xdssdl.push({
  1307. text: item.date || item.name,
  1308. value: item.xdssdl,
  1309. });
  1310. slssdl.push({
  1311. text: item.date || item.name,
  1312. value: item.slssdl,
  1313. });
  1314. });
  1315. analyis.push(
  1316. {
  1317. title: "故障损失电量",
  1318. yAxisIndex: 0,
  1319. value: gzssdl,
  1320. },
  1321. {
  1322. title: "检修损失电量",
  1323. yAxisIndex: 0,
  1324. value: jxssdl,
  1325. },
  1326. {
  1327. title: "性能损失电量",
  1328. yAxisIndex: 0,
  1329. value: xnssdl,
  1330. },
  1331. {
  1332. title: "限电损失电量",
  1333. yAxisIndex: 0,
  1334. value: xdssdl,
  1335. },
  1336. {
  1337. title: "受累损失电量",
  1338. yAxisIndex: 0,
  1339. value: slssdl,
  1340. }
  1341. );
  1342. this.analyisDialog = analyis;
  1343. },
  1344. },
  1345. watch: {
  1346. screenHeight(val) {
  1347. this.screenHeight = val;
  1348. if (val > 1100) {
  1349. this.echartsHeight = "58vh";
  1350. } else {
  1351. this.echartsHeight = "55vh";
  1352. }
  1353. },
  1354. },
  1355. };
  1356. </script>
  1357. <style lang="less" scoped>
  1358. .pagination-class {
  1359. text-align: right;
  1360. margin-top: 5px;
  1361. }
  1362. .parcel-box {
  1363. height: 100%;
  1364. width: 100%;
  1365. padding: 0 30px;
  1366. padding-bottom: 10px;
  1367. }
  1368. /deep/ .s-tb-th {
  1369. height: 50px;
  1370. }
  1371. .form-wrapper {
  1372. display: flex;
  1373. flex-direction: row;
  1374. align-items: center;
  1375. margin-top: 10px;
  1376. margin-bottom: 10px;
  1377. .tabCut {
  1378. display: inline-block;
  1379. margin: 0 10px;
  1380. div {
  1381. display: inline-block;
  1382. width: 60px;
  1383. height: 27px;
  1384. border: 1px solid #274934;
  1385. text-align: center;
  1386. line-height: 25px;
  1387. cursor: pointer;
  1388. }
  1389. div:nth-child(1) {
  1390. border-radius: 13px 0px 0px 13px;
  1391. border-right-width: 0;
  1392. }
  1393. div:nth-child(2) {
  1394. border-radius: 0px 13px 13px 0px;
  1395. }
  1396. .active {
  1397. background-color: rgba(5, 187, 76, 0.9);
  1398. color: #fff;
  1399. }
  1400. .disabled {
  1401. cursor: not-allowed;
  1402. pointer-events: none;
  1403. }
  1404. }
  1405. .tabCut1 {
  1406. display: inline-block;
  1407. margin: 0 10px;
  1408. div {
  1409. display: inline-block;
  1410. width: 60px;
  1411. height: 27px;
  1412. border: 1px solid #274934;
  1413. text-align: center;
  1414. line-height: 25px;
  1415. cursor: pointer;
  1416. }
  1417. div:nth-child(1) {
  1418. border-radius: 13px 0px 0px 13px;
  1419. }
  1420. div:nth-child(3) {
  1421. border-radius: 0px 13px 13px 0px;
  1422. }
  1423. .active {
  1424. background-color: rgba(5, 187, 76, 0.9);
  1425. color: #fff;
  1426. }
  1427. }
  1428. .station {
  1429. display: flex;
  1430. flex-direction: row;
  1431. align-items: center;
  1432. font-size: 14px;
  1433. font-family: Microsoft YaHei;
  1434. font-weight: 400;
  1435. color: #b3b3b3;
  1436. margin-right: 10px;
  1437. }
  1438. .search-input {
  1439. margin-left: 10px;
  1440. }
  1441. .but {
  1442. display: flex;
  1443. flex-direction: row;
  1444. align-content: center;
  1445. margin-left: 20px;
  1446. }
  1447. .buttons {
  1448. background-color: rgba(5, 187, 76, 0.2);
  1449. border: 1px solid #3b6c53;
  1450. color: #b3b3b3;
  1451. font-size: 14px;
  1452. &:hover {
  1453. background-color: rgba(5, 187, 76, 0.5);
  1454. color: #ffffff;
  1455. }
  1456. }
  1457. }
  1458. .bodys {
  1459. width: 100%;
  1460. height: calc(100% - 350px - 43px - 20px);
  1461. background-color: rgba(0, 0, 0, 0.45);
  1462. padding-bottom: 20px;
  1463. border-radius: 5px;
  1464. }
  1465. .economicTable {
  1466. width: 100%;
  1467. height: calc(100% - 36px);
  1468. }
  1469. .line {
  1470. display: flex;
  1471. flex-direction: row;
  1472. align-items: center;
  1473. justify-content: space-between;
  1474. width: 100%;
  1475. padding-bottom: 5px;
  1476. .leftContent {
  1477. width: 242px;
  1478. height: 41px;
  1479. display: flex;
  1480. align-items: center;
  1481. background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
  1482. span {
  1483. font-size: 16px;
  1484. font-family: Microsoft YaHei;
  1485. font-weight: 400;
  1486. color: #05BB4C;
  1487. margin-left: 25px;
  1488. }
  1489. }
  1490. .rightContent {
  1491. width: 212px;
  1492. height: 28px;
  1493. margin-top: 13px;
  1494. background: url("../../../../assets/imgs/title_right_bg.png");
  1495. }
  1496. }
  1497. .echarts {
  1498. width: 100%;
  1499. height: 350px;
  1500. display: flex;
  1501. flex-direction: row;
  1502. align-items: center;
  1503. .chart-name {
  1504. display: flex;
  1505. align-items: center;
  1506. padding-left: 20px;
  1507. position: relative;
  1508. height: 39px;
  1509. width: 98%;
  1510. margin-left: 1%;
  1511. border-bottom: 1px solid rgba(153, 153, 153, 0.5);
  1512. font-size: 16px;
  1513. font-family: Microsoft YaHei;
  1514. font-weight: 400;
  1515. color: #ffffff;
  1516. }
  1517. .pie-echarts {
  1518. width: 30%;
  1519. height: 100%;
  1520. background: rgba(0, 0, 0, 0.45);
  1521. border-radius: 5px;
  1522. }
  1523. .bar-echarts {
  1524. width: 69%;
  1525. margin-left: 1%;
  1526. height: 100%;
  1527. background: rgba(0, 0, 0, 0.45);
  1528. border-radius: 5px;
  1529. }
  1530. }
  1531. .point {
  1532. width: 6px;
  1533. height: 1px;
  1534. background-color: #ffffff;
  1535. position: absolute;
  1536. &.point-left {
  1537. left: 0;
  1538. }
  1539. &.point-right {
  1540. right: 0;
  1541. }
  1542. &.top {
  1543. top: -1px;
  1544. }
  1545. &.bottom {
  1546. bottom: -1px;
  1547. }
  1548. }
  1549. /*去除表头全选框*/
  1550. ::v-deep .el-table__header-wrapper .el-checkbox {
  1551. display: none;
  1552. }
  1553. ::v-deep .el-table__body-wrapper .el-checkbox {
  1554. .el-checkbox__input {
  1555. display: block;
  1556. }
  1557. }
  1558. </style>