index.vue 40 KB

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