Home.vue 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519
  1. <template>
  2. <div class="home">
  3. <Row type="flex" style="height: 55vh">
  4. <div class="top-left-panel">
  5. <Row type="flex" class="weather">
  6. <Col :span="24">
  7. <com-panel
  8. :title="tqmap.name || 'yc'"
  9. :sub-title="nowTime + ' 实况'"
  10. icon="fa fa-map-marker"
  11. >
  12. <weather
  13. style="cursor: pointer"
  14. :data="tqmap"
  15. @click="openWeatherDialog"
  16. />
  17. </com-panel>
  18. </Col>
  19. </Row>
  20. <Row type="flex" class="plan">
  21. <Col :span="24">
  22. <com-panel title="预测电量" sub-title="(单位:万kWh)">
  23. <list-bar-chart-2 :list="ForecastPower" height="15.7407vh" />
  24. </com-panel>
  25. </Col>
  26. </Row>
  27. <Row type="flex" class="power">
  28. <Col :span="24">
  29. <com-panel title="功率负荷" sub-title="(单位:MW)">
  30. <power-review
  31. :data="powerData"
  32. :id="wpId"
  33. @chartClick="showPowerChart"
  34. />
  35. </com-panel>
  36. </Col>
  37. </Row>
  38. </div>
  39. <div class="top-mid-panel">
  40. <Map
  41. :wpId="wpId"
  42. :day="String(jczbmap.aqts || '---')"
  43. :data="fcmap"
  44. :xtData="xtmap"
  45. @mapClick="changeShowType"
  46. @backStation="onBackStation"
  47. ></Map>
  48. </div>
  49. <div class="top-right-panel">
  50. <Row type="flex">
  51. <Col :span="24">
  52. <com-panel title="效益提升" sub-title="(单位:万kWh)">
  53. <!-- 避免故障、提升率、降低率、风能利用率、设备可利用率、综合场用电率、存在隐患风机 -->
  54. <coulometric-analysis
  55. :bmgz="gxkmap.tjsl"
  56. :tsl="30"
  57. :jdl="gxkmap.tjl"
  58. :fnlyl="wxssmap.yfnlyl"
  59. :sbklyl="gxkmap.ysbklyl"
  60. :zhcydl="gxkmap.yzhcydl"
  61. :yhfj="gxkmap.sjtjsl"
  62. />
  63. </com-panel>
  64. </Col>
  65. </Row>
  66. <Row type="flex">
  67. <Col :span="24">
  68. <com-panel title="计划电量完成情况" sub-title="(单位:万kWh)">
  69. <power-plan
  70. :data="planData"
  71. :title="planBtnName"
  72. :showSingle="powerplanShowSingle"
  73. :id="wpId"
  74. @chartClick="showDoneChart"
  75. />
  76. </com-panel>
  77. </Col>
  78. </Row>
  79. </div>
  80. </Row>
  81. <Row type="flex" style="height: calc(40vh - 236px); margin-top: 20px">
  82. <Col :span="12">
  83. <toolbar-panel title="日发电量">
  84. <!-- <template v-slot:tools>
  85. <div class="tools">
  86. <div class="tool-block">
  87. <div class="legend bg-green"></div>
  88. <div class="legend-text">日发电量(单位:万kWh)</div>
  89. </div>
  90. <div class="tool-block">
  91. <div class="legend bg-purple"></div>
  92. <div class="legend-text">上网电量(单位:万kWh)</div>
  93. </div>
  94. <div class="tool-block">
  95. <div class="legend bg-orange"></div>
  96. <div class="legend-text">购网电量(单位:万kWh)</div>
  97. </div>
  98. </div>
  99. </template> -->
  100. <template v-slot:default>
  101. <!-- 日发电量 -->
  102. <multiple-bar-chart
  103. :list="DayPower.value"
  104. :units="DayPower.units"
  105. height="100%"
  106. :showLegend="true"
  107. @click="
  108. showDoneChart({
  109. data: DayPower,
  110. dialogTitle: '日发电量',
  111. dialogType: 'doneLineChart',
  112. })
  113. "
  114. />
  115. </template>
  116. </toolbar-panel>
  117. </Col>
  118. <Col :span="12">
  119. <toolbar-panel title="72小时功率趋势图">
  120. <!-- <template v-slot:tools>
  121. <div class="tools">
  122. <div class="tools">
  123. <div class="tool-block">
  124. <div class="legend long bg-green"></div>
  125. <div class="legend-text">应发功率</div>
  126. </div>
  127. <div class="tool-block">
  128. <div class="legend long bg-yellow"></div>
  129. <div class="legend-text">实发功率</div>
  130. </div>
  131. <div class="tool-block">
  132. <div class="legend long bg-purple"></div>
  133. <div class="legend-text">理论功率</div>
  134. </div>
  135. </div>
  136. </div>
  137. </template> -->
  138. <template v-slot:default>
  139. <multiple-line-chart
  140. height="100%"
  141. :list="Powertrend"
  142. units="(MW)"
  143. :showLegend="true"
  144. :hoverType="'axis'"
  145. @click="
  146. showPowerChart({
  147. data: Powertrend,
  148. dialogTitle: '72小时功率趋势图',
  149. dialogType: 'powerLineChart',
  150. })
  151. "
  152. />
  153. </template>
  154. </toolbar-panel>
  155. </Col>
  156. </Row>
  157. <Row type="flex" style="margin-top: 20px">
  158. <!-- 下方 table -->
  159. <Col :span="16" class="table-card-panel">
  160. <row>
  161. <Col>
  162. <com-panel>
  163. <table class="table-card">
  164. <tr class="">
  165. <td class="text gray">装机容量</td>
  166. <td class="value green">{{ jczbmap.zjrl }}</td>
  167. <td class="unit gray">MW</td>
  168. </tr>
  169. <tr class="">
  170. <td class="text gray">上网电量(日)</td>
  171. <td class="value green">{{ jczbmap.swdl }}</td>
  172. <td class="unit gray">万kWh</td>
  173. </tr>
  174. <tr class="">
  175. <td class="text gray">
  176. {{ wpId === "0" ? "减排二氧化硫" : "年运行小时" }}
  177. </td>
  178. <td class="value green">
  179. {{ wpId === "0" ? jczbmap.jpeyhl : gxkmap.nyxxs }}
  180. </td>
  181. <td class="unit gray">
  182. {{ wpId === "0" ? "万吨" : "小时" }}
  183. </td>
  184. </tr>
  185. <tr class="">
  186. <td class="text gray">
  187. {{ wpId === "0" ? "减排二氧化碳" : "年等效科利用系数" }}
  188. </td>
  189. <td class="value green">
  190. {{ wpId === "0" ? jczbmap.jpeyht : gxkmap.ndxkyss }}
  191. </td>
  192. <td class="unit gray">{{ wpId === "0" ? "万吨" : "%" }}</td>
  193. </tr>
  194. <tr class="">
  195. <td class="text gray">
  196. {{ wpId === "0" ? "节约用水" : "年故障小时" }}
  197. </td>
  198. <td class="value green">
  199. {{ wpId === "0" ? jczbmap.jys : gxkmap.ngzxs }}
  200. </td>
  201. <td class="unit gray">
  202. {{ wpId === "0" ? "万吨" : "小时" }}
  203. </td>
  204. </tr>
  205. <tr class="">
  206. <td class="text gray">
  207. {{ wpId === "0" ? "节约标煤" : "年待机小时" }}
  208. </td>
  209. <td class="value green">
  210. {{ wpId === "0" ? jczbmap.jybm : gxkmap.ndjxs }}
  211. </td>
  212. <td class="unit gray">
  213. {{ wpId === "0" ? "万吨" : "小时" }}
  214. </td>
  215. </tr>
  216. </table>
  217. </com-panel>
  218. </Col>
  219. <Col>
  220. <com-panel>
  221. <table class="table-card">
  222. <tr class="">
  223. <td class="text gray">利用小时(月)</td>
  224. <td class="value green">{{ jczbmap.ylyxs }}</td>
  225. <td class="unit gray">小时</td>
  226. </tr>
  227. <tr class="">
  228. <td class="text gray">利用小时(年)</td>
  229. <td class="value green">{{ jczbmap.nlyxs }}</td>
  230. <td class="unit gray gray">小时</td>
  231. </tr>
  232. <tr class="">
  233. <td class="text gray">等效可用系数(月)</td>
  234. <td class="value green">{{ gxkmap.ydxkyss }}</td>
  235. <td class="unit gray">%</td>
  236. </tr>
  237. <tr class="">
  238. <td class="text gray">MTBF(月)</td>
  239. <td class="value green">{{ jczbmap.mtbf }}</td>
  240. <td class="unit gray">小时</td>
  241. </tr>
  242. <tr class="">
  243. <td class="text gray">MTTR(月)</td>
  244. <td class="value green">{{ jczbmap.mttr }}</td>
  245. <td class="unit gray">小时</td>
  246. </tr>
  247. <tr class="">
  248. <td class="text gray">MTTF(月)</td>
  249. <td class="value green">{{ jczbmap.mttf }}</td>
  250. <td class="unit gray">小时</td>
  251. </tr>
  252. </table>
  253. </com-panel>
  254. </Col>
  255. <Col>
  256. <com-panel>
  257. <table class="table-card">
  258. <tr
  259. class="curP"
  260. @click="
  261. openDialog(
  262. '日发电量详情',
  263. 'genreset/findDayInfo',
  264. 'rfdl',
  265. 'table'
  266. )
  267. "
  268. >
  269. <td class="text gray">日发电量</td>
  270. <td class="value green">{{ jczbmap.rfdl }}</td>
  271. <td class="unit gray">万kWh</td>
  272. </tr>
  273. <tr
  274. class="curP"
  275. @click="
  276. openDialog(
  277. '日故障损失详情',
  278. 'genreset/findDayInfo',
  279. 'rgzssdl',
  280. 'table'
  281. )
  282. "
  283. >
  284. <td class="text gray">日故障损失电量</td>
  285. <td class="value green">{{ wxssmap.rgzssdl }}</td>
  286. <td class="unit gray">万kWh</td>
  287. </tr>
  288. <tr
  289. class="curP"
  290. @click="
  291. openDialog(
  292. '日维护损失详情',
  293. 'genreset/findDayInfo',
  294. 'rjxssdl',
  295. 'table'
  296. )
  297. "
  298. >
  299. <td class="text gray">日维护损失电量</td>
  300. <td class="value green">{{ wxssmap.rjxssdl }}</td>
  301. <td class="unit gray">万kWh</td>
  302. </tr>
  303. <tr
  304. class="curP"
  305. @click="
  306. openDialog(
  307. '日限电损失详情',
  308. 'genreset/findDayInfo',
  309. 'rxdssdl',
  310. 'table'
  311. )
  312. "
  313. >
  314. <td class="text gray">日限电损失电量</td>
  315. <td class="value green">{{ wxssmap.rxdssdl }}</td>
  316. <td class="unit gray gray">万kWh</td>
  317. </tr>
  318. <tr
  319. class="curP"
  320. @click="
  321. openDialog(
  322. '日受累损失详情',
  323. 'genreset/findDayInfo',
  324. 'rslssdl',
  325. 'table'
  326. )
  327. "
  328. >
  329. <td class="text gray">日受累损失电量</td>
  330. <td class="value green">{{ wxssmap.rslssdl }}</td>
  331. <td class="unit gray">万kWh</td>
  332. </tr>
  333. <tr
  334. class="curP"
  335. @click="
  336. openDialog(
  337. '日性能损失详情',
  338. 'genreset/findDayInfo',
  339. 'rxnssdl',
  340. 'table'
  341. )
  342. "
  343. >
  344. <td class="text gray">日性能损失电量</td>
  345. <td class="value green">{{ wxssmap.rqfssdl }}</td>
  346. <td class="unit gray">万kWh</td>
  347. </tr>
  348. </table>
  349. </com-panel>
  350. </Col>
  351. <Col>
  352. <com-panel>
  353. <table class="table-card">
  354. <tr
  355. class="curP"
  356. @click="
  357. openDialog(
  358. '月发电量详情',
  359. 'genreset/findMonthInfo',
  360. 'yfdl',
  361. 'table'
  362. )
  363. "
  364. >
  365. <td class="text gray">月发电量</td>
  366. <td class="value green">{{ jczbmap.yfdl }}</td>
  367. <td class="unit gray gray">万kWh</td>
  368. </tr>
  369. <tr
  370. class="curP"
  371. @click="
  372. openDialog(
  373. '月故障损失详情',
  374. 'genreset/findMonthInfo',
  375. 'ygzssdl',
  376. 'table'
  377. )
  378. "
  379. >
  380. <td class="text gray">月故障损失</td>
  381. <td class="value green">{{ wxssmap.ygzssdl }}</td>
  382. <td class="unit gray">万kWh</td>
  383. </tr>
  384. <tr
  385. class="curP"
  386. @click="
  387. openDialog(
  388. '月维护损失详情',
  389. 'genreset/findMonthInfo',
  390. 'yjxssdl',
  391. 'table'
  392. )
  393. "
  394. >
  395. <td class="text gray">月维护损失</td>
  396. <td class="value green">{{ wxssmap.yjxssdl }}</td>
  397. <td class="unit gray">万kWh</td>
  398. </tr>
  399. <tr
  400. class="curP"
  401. @click="
  402. openDialog(
  403. '月限电损失详情',
  404. 'genreset/findMonthInfo',
  405. 'yxdssdl',
  406. 'table'
  407. )
  408. "
  409. >
  410. <td class="text gray">月限电损失</td>
  411. <td class="value green">{{ wxssmap.yxdssdl }}</td>
  412. <td class="unit gray gray">万kWh</td>
  413. </tr>
  414. <tr
  415. class="curP"
  416. @click="
  417. openDialog(
  418. '月受累损失详情',
  419. 'genreset/findMonthInfo',
  420. 'yslssdl',
  421. 'table'
  422. )
  423. "
  424. >
  425. <td class="text gray">月受累损失</td>
  426. <td class="value green">{{ wxssmap.yslssdl }}</td>
  427. <td class="unit gray">万kWh</td>
  428. </tr>
  429. <tr
  430. class="curP"
  431. @click="
  432. openDialog(
  433. '月性能损失详情',
  434. 'genreset/findMonthInfo',
  435. 'yxnssdl',
  436. 'table'
  437. )
  438. "
  439. >
  440. <td class="text gray">月性能损失</td>
  441. <td class="value green">{{ wxssmap.yqfssdl }}</td>
  442. <td class="unit gray">万kWh</td>
  443. </tr>
  444. </table>
  445. </com-panel>
  446. </Col>
  447. <Col>
  448. <com-panel>
  449. <table class="table-card">
  450. <tr
  451. class="curP"
  452. @click="
  453. openDialog(
  454. '年发电量详情',
  455. 'genreset/findYearInfo',
  456. 'nfdl',
  457. 'table'
  458. )
  459. "
  460. >
  461. <td class="text gray">年发电量</td>
  462. <td class="value green">{{ jczbmap.nfdl }}</td>
  463. <td class="unit gray">万kWh</td>
  464. </tr>
  465. <tr
  466. class="curP"
  467. @click="
  468. openDialog(
  469. '年故障损失详情',
  470. 'genreset/findYearInfo',
  471. 'ngzssdl',
  472. 'table'
  473. )
  474. "
  475. >
  476. <td class="text gray">年故障损失</td>
  477. <td class="value green">{{ wxssmap.ngzssdl }}</td>
  478. <td class="unit gray">万kWh</td>
  479. </tr>
  480. <tr
  481. class="curP"
  482. @click="
  483. openDialog(
  484. '年维护损失详情',
  485. 'genreset/findYearInfo',
  486. 'njxssdl',
  487. 'table'
  488. )
  489. "
  490. >
  491. <td class="text gray">年维护损失</td>
  492. <td class="value green">{{ wxssmap.njxssdl }}</td>
  493. <td class="unit gray">万kWh</td>
  494. </tr>
  495. <tr
  496. class="curP"
  497. @click="
  498. openDialog(
  499. '年限电损失详情',
  500. 'genreset/findYearInfo',
  501. 'nxdssdl',
  502. 'table'
  503. )
  504. "
  505. >
  506. <td class="text gray">年限电损失</td>
  507. <td class="value green">{{ wxssmap.nxdssdl }}</td>
  508. <td class="unit gray gray">万kWh</td>
  509. </tr>
  510. <tr
  511. class="curP"
  512. @click="
  513. openDialog(
  514. '年受累损失详情',
  515. 'genreset/findYearInfo',
  516. 'nslssdl',
  517. 'table'
  518. )
  519. "
  520. >
  521. <td class="text gray">年受累损失</td>
  522. <td class="value green">{{ wxssmap.nslssdl }}</td>
  523. <td class="unit gray">万kWh</td>
  524. </tr>
  525. <tr
  526. class="curP"
  527. @click="
  528. openDialog(
  529. '年性能损失详情',
  530. 'genreset/findYearInfo',
  531. 'nxnssdl',
  532. 'table'
  533. )
  534. "
  535. >
  536. <td class="text gray">年性能损失</td>
  537. <td class="value green">{{ wxssmap.nqfssdl }}</td>
  538. <td class="unit gray">万kWh</td>
  539. </tr>
  540. </table>
  541. </com-panel>
  542. </Col>
  543. </row>
  544. </Col>
  545. <!-- 右下角 panel -->
  546. <Col :span="8">
  547. <panel-3 class="situation">
  548. <div class="situation-body">
  549. <row align="middle">
  550. <div class="situation-item fengji">
  551. <div class="icon fengji-icon svg-icon svg-icon-white">
  552. <svg-icon class="" svgid="svg-风机" />
  553. </div>
  554. <div class="info">
  555. <div class="title green">接入设备</div>
  556. <div class="value">{{ mxztmap.jrts }}</div>
  557. </div>
  558. </div>
  559. <div class="situation-item">
  560. <div class="icon svg-icon svg-icon-green">
  561. <svg-icon class="" svgid="svg-待机图标" />
  562. </div>
  563. <div class="info">
  564. <div class="title green">待机</div>
  565. <div class="value">
  566. <span class="text gray">待风</span>
  567. <span>{{ mxztmap.djts }}</span>
  568. </div>
  569. <div class="value">
  570. <span class="text gray">手动停机</span>
  571. <span>{{ mxztmap.sdtjts }}</span>
  572. </div>
  573. </div>
  574. </div>
  575. <div class="situation-item">
  576. <div class="icon svg-icon svg-icon-purple">
  577. <svg-icon class="" svgid="svg-运行图标" />
  578. </div>
  579. <div class="info">
  580. <div class="title green">运行</div>
  581. <div class="value">
  582. <span class="text gray">正常发电</span>
  583. <span>{{ mxztmap.yxts }}</span>
  584. </div>
  585. <div class="value">
  586. <span class="text gray">降出力运行</span>
  587. <span>{{ mxztmap.fdjclts }}</span>
  588. </div>
  589. </div>
  590. </div>
  591. <div class="situation-item">
  592. <div class="icon svg-icon svg-icon-pink">
  593. <svg-icon class="" svgid="svg-限电图标" />
  594. </div>
  595. <div class="info">
  596. <div class="title green">限电</div>
  597. <div class="value">
  598. <span class="text gray">限电降出力</span>
  599. <span>{{ mxztmap.xdjclts }}</span>
  600. </div>
  601. <div class="value">
  602. <span class="text gray">停机</span>
  603. <span>{{ mxztmap.xdtjts }}</span>
  604. </div>
  605. </div>
  606. </div>
  607. </row>
  608. <row align="middle">
  609. <div class="situation-item">
  610. <div class="icon svg-icon svg-icon-red">
  611. <svg-icon class="" svgid="svg-故障图标" />
  612. </div>
  613. <div class="info">
  614. <div class="title green">故障</div>
  615. <div class="value">
  616. <span class="text gray">故障停机</span>
  617. <span>{{ mxztmap.gzts }}</span>
  618. </div>
  619. <div class="value">
  620. <span class="text gray">场内受累</span>
  621. <span>{{ mxztmap.cnslgzts }}</span>
  622. </div>
  623. </div>
  624. </div>
  625. <div class="situation-item">
  626. <div class="icon svg-icon svg-icon-orange">
  627. <svg-icon class="" svgid="svg-检修图标" />
  628. </div>
  629. <div class="info">
  630. <div class="title green">检修</div>
  631. <div class="value">
  632. <span class="text gray">检修停机</span>
  633. <span>{{ mxztmap.jxts }}</span>
  634. </div>
  635. <div class="value">
  636. <span class="text gray">场内受累</span>
  637. <span>{{ mxztmap.cnsljxts }}</span>
  638. </div>
  639. </div>
  640. </div>
  641. <div class="situation-item">
  642. <div class="icon svg-icon svg-icon-white">
  643. <svg-icon class="" svgid="svg-受累图标" />
  644. </div>
  645. <div class="info">
  646. <div class="title green">受累</div>
  647. <div class="value">
  648. <span class="text gray">电网</span>
  649. <span>{{ mxztmap.dwslts }}</span>
  650. </div>
  651. <div class="value">
  652. <span class="text gray">环境</span>
  653. <span>{{ mxztmap.hjslts }}</span>
  654. </div>
  655. </div>
  656. </div>
  657. <div class="situation-item">
  658. <div class="icon svg-icon svg-icon-gray">
  659. <svg-icon class="" svgid="svg-离线图标" />
  660. </div>
  661. <div class="info">
  662. <div class="title green">离线</div>
  663. <div class="value">
  664. <span class="text gray">离线</span>
  665. <span>{{ mxztmap.lxts }}</span>
  666. </div>
  667. <div class="value">
  668. <span class="text gray">未知</span>
  669. <span>---</span>
  670. </div>
  671. </div>
  672. </div>
  673. </row>
  674. </div>
  675. </panel-3>
  676. </Col>
  677. </Row>
  678. <el-dialog
  679. title="天气详情"
  680. custom-class="modal"
  681. v-model="showWeatherDialog"
  682. width="80%"
  683. :destroy-on-close="true"
  684. >
  685. <div class="weatherBox">
  686. <div class="l">
  687. <DoubleLineChart :height="'100%'" :list="weatherChart" />
  688. </div>
  689. <div class="r">
  690. <el-collapse
  691. style="height: 400px; overflow-y: scroll"
  692. v-model="weathercollapse"
  693. accordion
  694. >
  695. <el-collapse-item
  696. :name="index"
  697. v-for="(item, index) in tqmap5"
  698. :key="index"
  699. >
  700. <template #title>
  701. <div class="collapseItemTitle">
  702. {{ item.time }}
  703. <div
  704. style="
  705. display: flex;
  706. justify-content: start;
  707. align-items: center;
  708. "
  709. >
  710. <div class="icon svg-icon svg-icon-white">
  711. <SvgIcon class="svg" :svgid="'svg-' + item.tqtp" />
  712. </div>
  713. <div class="info">{{ item.sd }}% / {{ item.wd }}°C</div>
  714. </div>
  715. <div class="otherWea">{{ item.tqmc }}</div>
  716. </div>
  717. </template>
  718. <div class="other-info">
  719. <Row>
  720. <Col>
  721. <div class="svg-icon svg-icon-sm svg-icon-green other-icon">
  722. <svg-icon svgid="svg-能见度" />
  723. </div>
  724. <div class="value">{{ item.qxd }}</div>
  725. <div class="text">能见度</div>
  726. </Col>
  727. <Col>
  728. <div class="svg-icon svg-icon-sm svg-icon-green other-icon">
  729. <svg-icon svgid="svg-湿度" />
  730. </div>
  731. <div class="value">{{ item.sd }}</div>
  732. <div class="text">湿度</div>
  733. </Col>
  734. <Col>
  735. <div class="svg-icon svg-icon-sm svg-icon-green other-icon">
  736. <svg-icon svgid="svg-气压" />
  737. </div>
  738. <div class="value">{{ item.dqyl }}</div>
  739. <div class="text">气压</div>
  740. </Col>
  741. <Col>
  742. <div class="svg-icon svg-icon-sm svg-icon-green other-icon">
  743. <svg-icon svgid="svg-日出" />
  744. </div>
  745. <div class="value">{{ item.richushijian }}</div>
  746. <div class="text">日出时间</div>
  747. </Col>
  748. <Col>
  749. <div class="svg-icon svg-icon-sm svg-icon-green other-icon">
  750. <svg-icon svgid="svg-日落" />
  751. </div>
  752. <div class="value">{{ item.riluoshijian }}</div>
  753. <div class="text">日落时间</div>
  754. </Col>
  755. </Row>
  756. </div>
  757. </el-collapse-item>
  758. </el-collapse>
  759. </div>
  760. </div>
  761. </el-dialog>
  762. <el-dialog
  763. :title="dialogTitle"
  764. v-model="dialogShow"
  765. width="70%"
  766. top="10vh"
  767. custom-class="modal"
  768. :close-on-click-modal="true"
  769. @closed="dialogType = ''"
  770. >
  771. <Table :data="dialogData" v-if="dialogType === 'table'" />
  772. <MultipleLineChart
  773. height="500px"
  774. unit="(MW)"
  775. :list="powerLineChartData"
  776. :showLegend="true"
  777. v-if="dialogType === 'powerLineChart'"
  778. />
  779. <multiple-bar-chart
  780. height="500px"
  781. :units="doneLineChartData.units"
  782. :list="doneLineChartData.value"
  783. v-if="dialogType === 'doneLineChart'"
  784. />
  785. </el-dialog>
  786. </div>
  787. </template>
  788. <script>
  789. // @ is an alias to /src
  790. import Row from "../../components/coms/grid/row.vue";
  791. import Col from "../../components/coms/grid/col.vue";
  792. import ComPanel from "../../components/coms/panel/panel";
  793. // import ListBarChart from "../../components/chart/bar/list-bar-chart.vue";
  794. import ToolbarPanel from "../../components/coms/panel/toolbar-panel.vue";
  795. import MultipleBarChart from "../../components/chart/bar/multiple-bar-chart.vue";
  796. import MultipleLineChart from "../../components/chart/line/double-line-chart.vue";
  797. import Panel3 from "../../components/coms/panel/panel3.vue";
  798. import SvgIcon from "../../components/coms/icon/svg-icon.vue";
  799. import CoulometricAnalysis from "./components/coulometric-analysis.vue";
  800. import Weather from "./components/weather.vue";
  801. import PowerReview from "./components/power-review.vue";
  802. import PowerPlan from "./components/power-plan.vue";
  803. import Map from "./components/map.vue";
  804. import ListBarChart2 from "../../components/chart/bar/list-bar-chart2.vue";
  805. import DoubleLineChart from "@com/chart/line/double-line-chart.vue";
  806. import Table from "./dialog/table.vue";
  807. export default {
  808. name: "Home",
  809. components: {
  810. Row,
  811. Col,
  812. ComPanel,
  813. Weather,
  814. CoulometricAnalysis,
  815. // ListBarChart,
  816. PowerReview,
  817. ToolbarPanel,
  818. PowerPlan,
  819. MultipleBarChart,
  820. MultipleLineChart,
  821. Panel3,
  822. SvgIcon,
  823. Map,
  824. ListBarChart2,
  825. Table,
  826. DoubleLineChart,
  827. },
  828. data() {
  829. return {
  830. timmer: null, // 计时器
  831. timmer2: null,
  832. timmer3: null,
  833. showWeatherDialog: false,
  834. weatherChart: [
  835. {
  836. title: "温度",
  837. smooth: true,
  838. value: [],
  839. },
  840. {
  841. title: "湿度",
  842. smooth: true,
  843. value: [],
  844. },
  845. ],
  846. tqmap5: [],
  847. jczbmap: {},
  848. wxssmap: {},
  849. gxkmap: {},
  850. mxztmap: {},
  851. planData: {},
  852. powerData: {},
  853. tqmap: {},
  854. nowTime: "",
  855. planBtnName: "全部",
  856. powerLineChartData: {
  857. // 图表所用单位
  858. units: [""],
  859. value: [
  860. {
  861. title: "",
  862. yAxisIndex: 0, // 使用单位
  863. value: [],
  864. },
  865. ],
  866. },
  867. doneLineChartData: {
  868. // 图表所用单位
  869. units: [""],
  870. value: [
  871. {
  872. title: "",
  873. yAxisIndex: 0, // 使用单位
  874. value: [],
  875. },
  876. ],
  877. },
  878. dialogType: null,
  879. wpId: "0",
  880. wpName: "", //安全天数下面的场站名
  881. fcmap: {},
  882. xtmap: {},
  883. dialogShow: false,
  884. dialogTitle: "",
  885. dialogData: {},
  886. // 预测电量
  887. ForecastPower: [],
  888. // 日发电量
  889. DayPower: {
  890. // 图表所用单位
  891. units: [""],
  892. value: [
  893. {
  894. title: "",
  895. yAxisIndex: 0, // 使用单位
  896. value: [],
  897. },
  898. ],
  899. },
  900. // 72小时功率趋势图
  901. Powertrend: [
  902. {
  903. title: "",
  904. yAxisIndex: 0, // 使用单位
  905. value: [],
  906. },
  907. ],
  908. };
  909. },
  910. methods: {
  911. // 打开天气弹窗
  912. openWeatherDialog() {
  913. let that = this;
  914. that.API.requestData({
  915. method: "POST",
  916. subUrl: "genreset/getWeatherRealDay5Info",
  917. data: {
  918. wpId: that.wpId,
  919. },
  920. success(res) {
  921. const keys = ["wd", "sd"];
  922. let weatherChart = [
  923. {
  924. title: "温度",
  925. smooth: true,
  926. value: [],
  927. },
  928. {
  929. title: "湿度",
  930. smooth: true,
  931. value: [],
  932. },
  933. ];
  934. res.data.ls.forEach((ele) => {
  935. ele.time = new Date(ele.time).formatDate("yyyy-MM-dd hh:mm");
  936. });
  937. keys.forEach((key, keyIndex) => {
  938. res.data.ls.forEach((ele) => {
  939. weatherChart[keyIndex].value.push({
  940. text: ele.time,
  941. value: ele[key],
  942. });
  943. });
  944. });
  945. that.tqmap5 = res.data.ls;
  946. that.weatherChart = weatherChart;
  947. that.showWeatherDialog = true;
  948. },
  949. });
  950. },
  951. // 请求服务
  952. requestData(showLoading) {
  953. let that = this;
  954. that.API.requestData({
  955. showLoading,
  956. method: "POST",
  957. subUrl: "genreset/findBasicDataInfo",
  958. timeout: 60000,
  959. data: {
  960. id: that.wpId,
  961. },
  962. success(res) {
  963. that.powerData = [
  964. {
  965. title: "风速",
  966. value: res.data.jczbmap.ssfs,
  967. dialogTitle: "风速详情",
  968. subUrl: "genreset/findGLDetail",
  969. targetName: "ssfs",
  970. dialogType: "powerLineChart",
  971. max: 30,
  972. },
  973. {
  974. title: "保证功率",
  975. value: res.data.jczbmap.bzgl,
  976. dialogTitle: "保证功率详情",
  977. subUrl: "genreset/findGLDetail",
  978. targetName: "bzgl",
  979. dialogType: "powerLineChart",
  980. max: res.data.jczbmap.zjts,
  981. },
  982. {
  983. title: "应发功率",
  984. value: res.data.jczbmap.yfgl,
  985. dialogTitle: "应发功率详情",
  986. subUrl: "genreset/findGLDetail",
  987. targetName: "yfgl",
  988. dialogType: "powerLineChart",
  989. max: res.data.jczbmap.zjts,
  990. },
  991. {
  992. title: "实际功率",
  993. value: res.data.jczbmap.sjgl,
  994. dialogTitle: "实际功率详情",
  995. subUrl: "genreset/findGLDetail",
  996. targetName: "sjgl",
  997. dialogType: "powerLineChart",
  998. max: res.data.jczbmap.zjts,
  999. },
  1000. ];
  1001. that.jczbmap = res.data.jczbmap;
  1002. that.wxssmap = res.data.wxssmap;
  1003. that.gxkmap = res.data.gxkmap;
  1004. that.mxztmap = res.data.mxztmap;
  1005. that.fcmap = res.data.fcmap;
  1006. that.xtmap = res.data.xtmap;
  1007. that.tqmap = res.data.tqmap;
  1008. that.ForecastPower = [
  1009. {
  1010. name: "当日预测电量",
  1011. value: res.data.jczbmap.rycfdl,
  1012. total: res.data.jczbmap.rfdlsx,
  1013. },
  1014. {
  1015. name: "实际发电量",
  1016. value: res.data.jczbmap.rfdl,
  1017. total: res.data.jczbmap.rfdlsx,
  1018. },
  1019. {
  1020. name: "当月预测电量",
  1021. value: res.data.jczbmap.yycfdl,
  1022. total: res.data.jczbmap.yfdlsx,
  1023. },
  1024. {
  1025. name: "实际发电量",
  1026. value: res.data.jczbmap.yfdl,
  1027. total: res.data.jczbmap.yfdlsx,
  1028. },
  1029. ];
  1030. that.planData = {
  1031. yfdl: res.data.jczbmap.yfdl,
  1032. nfdl: res.data.jczbmap.nfdl,
  1033. yfdljh: res.data.gxkmap.yfdljh,
  1034. nfdljh: res.data.gxkmap.nfdljh,
  1035. ywcl: res.data.gxkmap.ywcl,
  1036. nwcl: res.data.gxkmap.nwcl,
  1037. };
  1038. },
  1039. });
  1040. },
  1041. getCharts() {
  1042. let that = this;
  1043. that.API.requestData({
  1044. method: "POST",
  1045. subUrl: "genreset/findPowerInfo",
  1046. timeout: 60000,
  1047. data: {
  1048. id: that.wpId,
  1049. },
  1050. success(res) {
  1051. let rdlKey = ["value1", "value2", "value3", "speed"];
  1052. let DayPower = {
  1053. // 图表所用单位
  1054. units: ["(万kWh)", "(m/s)"],
  1055. value: [
  1056. {
  1057. title: "发电量",
  1058. yAxisIndex: 0,
  1059. value: [],
  1060. },
  1061. {
  1062. title: "上网电量",
  1063. yAxisIndex: 0,
  1064. value: [],
  1065. },
  1066. {
  1067. title: "购网电量",
  1068. yAxisIndex: 0,
  1069. value: [],
  1070. },
  1071. {
  1072. title: "风速",
  1073. yAxisIndex: 1,
  1074. value: [],
  1075. },
  1076. ],
  1077. };
  1078. let glKey = [
  1079. "value2",
  1080. "value1",
  1081. "value5",
  1082. "value4",
  1083. "value7",
  1084. "value6",
  1085. ];
  1086. let Powertrend = [
  1087. {
  1088. title: "实发功率",
  1089. smooth: true,
  1090. value: [],
  1091. },
  1092. {
  1093. title: "理论功率",
  1094. smooth: true,
  1095. value: [],
  1096. },
  1097. {
  1098. title: "保证功率",
  1099. smooth: true,
  1100. value: [],
  1101. },
  1102. {
  1103. title: "4小时预测功率",
  1104. smooth: true,
  1105. value: [],
  1106. },
  1107. {
  1108. title: "24小时预测功率",
  1109. smooth: true,
  1110. value: [],
  1111. },
  1112. {
  1113. title: "平均风速",
  1114. smooth: true,
  1115. value: [],
  1116. },
  1117. ];
  1118. rdlKey.forEach((keyEle, keyIndex) => {
  1119. res.data.rdlvos.forEach((cEle) => {
  1120. DayPower.value[keyIndex].value.push({
  1121. text: cEle.timestr,
  1122. value: cEle[keyEle],
  1123. });
  1124. });
  1125. });
  1126. glKey.forEach((keyEle, keyIndex) => {
  1127. res.data.glvos.forEach((cEle) => {
  1128. Powertrend[keyIndex].value.push({
  1129. text: new Date(cEle.time).formatDate("hh:mm"),
  1130. value: cEle[keyEle],
  1131. });
  1132. });
  1133. });
  1134. that.DayPower = DayPower;
  1135. that.Powertrend = Powertrend;
  1136. },
  1137. });
  1138. },
  1139. // 点击地图展示类型
  1140. changeShowType(wpId, planBtnName) {
  1141. this.wpName = planBtnName;
  1142. this.planBtnName = planBtnName;
  1143. this.jczbmap = {};
  1144. clearInterval(this.timmer);
  1145. this.timmer = null;
  1146. this.wpId = wpId;
  1147. this.requestData(false);
  1148. this.getCharts();
  1149. this.timmer = setInterval(() => {
  1150. this.requestData(false);
  1151. }, this.$store.state.websocketTimeSec);
  1152. },
  1153. // 打开弹窗
  1154. openDialog(dialogTitle, subUrl, targetName, dialogType) {
  1155. this.dialogTitle = dialogTitle;
  1156. let that = this;
  1157. that.API.requestData({
  1158. method: "POST",
  1159. subUrl,
  1160. data: {
  1161. id: that.wpId,
  1162. targetName,
  1163. },
  1164. success(res) {
  1165. that.dialogShow = true;
  1166. that.dialogData = res.data;
  1167. that.dialogType = dialogType;
  1168. },
  1169. });
  1170. },
  1171. // 点击安全天数下的场站按钮重置数据
  1172. onBackStation() {
  1173. if (this.wpId.indexOf("FDC") == -1) {
  1174. clearInterval(this.timmer);
  1175. this.timmer = null;
  1176. this.wpId = this.wpId.substring(0, this.wpId.indexOf("0")) + "_FDC";
  1177. this.requestData(false);
  1178. this.timmer = setInterval(() => {
  1179. this.requestData(false);
  1180. }, this.$store.state.websocketTimeSec);
  1181. }
  1182. },
  1183. // 显示功率复核图表
  1184. showPowerChart(res) {
  1185. this.dialogTitle = res.dialogTitle;
  1186. this.dialogType = res.dialogType;
  1187. this.powerLineChartData = res.data;
  1188. this.dialogShow = true;
  1189. },
  1190. // 显示计划电量完成情况图表
  1191. showDoneChart(res) {
  1192. this.dialogTitle = res.dialogTitle;
  1193. this.dialogType = res.dialogType;
  1194. this.doneLineChartData = res.data;
  1195. this.dialogShow = true;
  1196. },
  1197. // 地图进入事件
  1198. onEnter() {
  1199. this.powerplanShowSingle = true;
  1200. },
  1201. // 地图退出事件
  1202. onBack() {
  1203. this.powerplanShowSingle = false;
  1204. },
  1205. },
  1206. created() {
  1207. let that = this;
  1208. that.nowTime = new Date().formatDate("hh:mm:ss");
  1209. that.$nextTick(() => {
  1210. that.requestData(false);
  1211. this.getCharts();
  1212. that.timmer = setInterval(() => {
  1213. that.requestData(false);
  1214. }, that.$store.state.websocketTimeSec);
  1215. that.timmer2 = setInterval(() => {
  1216. that.nowTime = new Date().formatDate("hh:mm:ss");
  1217. }, 1000);
  1218. that.timmer3 = setInterval(() => {
  1219. this.getCharts();
  1220. }, 360000);
  1221. });
  1222. },
  1223. unmounted() {
  1224. clearInterval(this.timmer);
  1225. clearInterval(this.timmer2);
  1226. clearInterval(this.timmer3);
  1227. this.timmer = null;
  1228. this.timmer2 = null;
  1229. this.timmer3 = null;
  1230. },
  1231. };
  1232. </script>
  1233. <style lang="less">
  1234. .home {
  1235. .grid-content {
  1236. background: #333;
  1237. height: 1.111vh;
  1238. }
  1239. .table-card-panel {
  1240. .col + .col {
  1241. margin-left: 8px;
  1242. }
  1243. }
  1244. .table-card {
  1245. background: rgba(255, 255, 255, 0.1);
  1246. border-collapse: collapse;
  1247. width: 100%;
  1248. outline: 1px solid @gray;
  1249. .curP {
  1250. cursor: pointer;
  1251. }
  1252. tr {
  1253. font-size: 12px;
  1254. td {
  1255. border: 0.093vh solid fade(@gray, 20);
  1256. line-height: 27px;
  1257. padding: 0 4px;
  1258. &.text {
  1259. }
  1260. &.value {
  1261. text-align: right;
  1262. font-family: @font-family-num;
  1263. }
  1264. &.unit {
  1265. }
  1266. }
  1267. }
  1268. }
  1269. .tools {
  1270. display: flex;
  1271. .tool-block {
  1272. display: flex;
  1273. align-items: center;
  1274. margin-left: 0.741vh;
  1275. .legend {
  1276. flex: auto;
  1277. width: 6px;
  1278. height: 6px;
  1279. margin-right: 0.741vh;
  1280. &.long {
  1281. width: 2.963vh;
  1282. height: 0.37vh;
  1283. }
  1284. }
  1285. .legend-text {
  1286. color: #ffffff4d;
  1287. }
  1288. }
  1289. }
  1290. .situation {
  1291. width: 100%;
  1292. height: 100%;
  1293. .situation-body {
  1294. display: flex;
  1295. flex-direction: column;
  1296. justify-content: space-around;
  1297. height: 100%;
  1298. .situation-item {
  1299. display: flex;
  1300. align-content: center;
  1301. flex: 1 1 25%;
  1302. align-items: center;
  1303. .icon {
  1304. svg {
  1305. width: 40px;
  1306. height: 40px;
  1307. }
  1308. }
  1309. &.fengji {
  1310. flex: 0 1 25%;
  1311. .info {
  1312. margin-left: 16px;
  1313. .value {
  1314. font-size: 24px;
  1315. display: inline-block;
  1316. }
  1317. }
  1318. }
  1319. .fengji-icon {
  1320. padding: 12px;
  1321. border-radius: 50%;
  1322. box-shadow: inset 1.5px -1px 1px 0px @green;
  1323. svg {
  1324. width: 24px;
  1325. height: 24px;
  1326. }
  1327. }
  1328. .info {
  1329. display: flex;
  1330. flex-direction: column;
  1331. justify-content: center;
  1332. margin-left: 0.741vh;
  1333. .title {
  1334. font-size: 12px;
  1335. font-weight: bold;
  1336. margin-bottom: 0.7407vh;
  1337. }
  1338. .text {
  1339. display: inline-block;
  1340. width: 64px;
  1341. text-align: left;
  1342. }
  1343. .value {
  1344. text-align: left;
  1345. font-size: 12px;
  1346. display: flex;
  1347. justify-content: space-between;
  1348. align-items: center;
  1349. }
  1350. }
  1351. }
  1352. }
  1353. }
  1354. .com-panel {
  1355. height: 100%;
  1356. .panel-body {
  1357. height: calc(100% - 32px);
  1358. }
  1359. }
  1360. .top-left-panel {
  1361. display: flex;
  1362. flex-direction: column;
  1363. justify-content: space-between;
  1364. flex: 0 0 380px;
  1365. .row {
  1366. flex: 0 0 auto;
  1367. }
  1368. .plan {
  1369. flex: 0 0 auto;
  1370. .com-panel {
  1371. height: 100%;
  1372. .panel-body {
  1373. height: calc(100% - 32px);
  1374. }
  1375. }
  1376. }
  1377. }
  1378. .top-mid-panel {
  1379. flex: 1 1 auto;
  1380. }
  1381. .top-right-panel {
  1382. display: flex;
  1383. flex-direction: column;
  1384. justify-content: space-between;
  1385. flex: 0 0 380px;
  1386. }
  1387. .weatherBox {
  1388. width: 100%;
  1389. display: flex;
  1390. justify-content: space-around;
  1391. align-items: center;
  1392. .l,
  1393. .r {
  1394. width: 48%;
  1395. height: 500px;
  1396. padding: 50px 0;
  1397. }
  1398. .el-collapse {
  1399. border-top: 1px solid #999;
  1400. }
  1401. .el-collapse-item .el-collapse-item__wrap {
  1402. border-bottom: 1px solid #999;
  1403. }
  1404. .el-collapse-item__content {
  1405. background: rgba(18, 29, 28);
  1406. color: rgba(255, 255, 255, 0.75);
  1407. padding: 20px;
  1408. }
  1409. .el-collapse-item__header {
  1410. background: rgb(18, 29, 28);
  1411. border-bottom: 1px solid #999;
  1412. color: rgba(255, 255, 255, 0.75);
  1413. }
  1414. .el-card__header,
  1415. .el-collapse,
  1416. .el-collapse-item__header {
  1417. border-bottom: 1px solid #999;
  1418. }
  1419. .collapseItemTitle {
  1420. display: flex;
  1421. justify-content: space-between;
  1422. align-items: center;
  1423. width: 100%;
  1424. .svg {
  1425. width: 20px;
  1426. height: 20px;
  1427. }
  1428. .info {
  1429. margin-left: 4px;
  1430. }
  1431. .otherWea {
  1432. margin-right: 10px;
  1433. }
  1434. }
  1435. .other-info {
  1436. text-align: center;
  1437. font-size: @fontsize-s;
  1438. .text {
  1439. color: @font-color;
  1440. font-size: 12px;
  1441. }
  1442. .value {
  1443. margin: 0.741vh 0 0 0;
  1444. }
  1445. .other-icon {
  1446. margin: 0 auto;
  1447. }
  1448. }
  1449. }
  1450. }
  1451. </style>