Home.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530
  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-y-line-chart-normal
  140. height="100%"
  141. :list="Powertrend"
  142. :yAxises="PowertrendYAxises"
  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. <multiple-y-line-chart-normal
  773. height="500px"
  774. :list="Powertrend"
  775. :yAxises="PowertrendYAxises"
  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 MultipleYLineChartNormal from "../../components/chart/line/multiple-y-line-chart-normal.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. MultipleYLineChartNormal,
  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. title: "",
  859. yAxisIndex: 0, // 使用单位
  860. value: [],
  861. },
  862. ],
  863. doneLineChartData: {
  864. // 图表所用单位
  865. units: [""],
  866. value: [
  867. {
  868. title: "",
  869. yAxisIndex: 0, // 使用单位
  870. value: [],
  871. },
  872. ],
  873. },
  874. dialogType: null,
  875. wpId: "0",
  876. wpName: "", //安全天数下面的场站名
  877. fcmap: {},
  878. xtmap: {},
  879. dialogShow: false,
  880. dialogTitle: "",
  881. dialogData: {},
  882. // 预测电量
  883. ForecastPower: [],
  884. // 日发电量
  885. DayPower: {
  886. // 图表所用单位
  887. units: [""],
  888. value: [
  889. {
  890. title: "",
  891. yAxisIndex: 0, // 使用单位
  892. value: [],
  893. },
  894. ],
  895. },
  896. // 72小时功率趋势图
  897. Powertrend: [
  898. {
  899. title: "",
  900. yAxisIndex: 0, // 使用单位
  901. value: [],
  902. },
  903. ],
  904. PowertrendYAxises: [
  905. {
  906. name: "功率",
  907. min: 0,
  908. max: 500,
  909. unit: "(万kWh)",
  910. position: "left",
  911. },
  912. {
  913. name: "风速",
  914. min: 0,
  915. max: 50,
  916. unit: "(m/s)",
  917. position: "right",
  918. },
  919. ],
  920. };
  921. },
  922. methods: {
  923. // 打开天气弹窗
  924. openWeatherDialog() {
  925. let that = this;
  926. that.API.requestData({
  927. method: "POST",
  928. subUrl: "genreset/getWeatherRealDay5Info",
  929. data: {
  930. wpId: that.wpId,
  931. },
  932. success(res) {
  933. const keys = ["wd", "sd"];
  934. let weatherChart = [
  935. {
  936. title: "温度",
  937. smooth: true,
  938. value: [],
  939. },
  940. {
  941. title: "湿度",
  942. smooth: true,
  943. value: [],
  944. },
  945. ];
  946. res.data.ls.forEach((ele) => {
  947. ele.time = new Date(ele.time).formatDate("yyyy-MM-dd hh:mm");
  948. });
  949. keys.forEach((key, keyIndex) => {
  950. res.data.ls.forEach((ele) => {
  951. weatherChart[keyIndex].value.push({
  952. text: ele.time,
  953. value: ele[key],
  954. });
  955. });
  956. });
  957. that.tqmap5 = res.data.ls;
  958. that.weatherChart = weatherChart;
  959. that.showWeatherDialog = true;
  960. },
  961. });
  962. },
  963. // 请求服务
  964. requestData(showLoading) {
  965. let that = this;
  966. that.API.requestData({
  967. showLoading,
  968. method: "POST",
  969. subUrl: "genreset/findBasicDataInfo",
  970. timeout: 60000,
  971. data: {
  972. id: that.wpId,
  973. },
  974. success(res) {
  975. that.powerData = [
  976. {
  977. title: "风速",
  978. value: res.data.jczbmap.ssfs,
  979. dialogTitle: "风速详情",
  980. subUrl: "genreset/findGLDetail",
  981. targetName: "ssfs",
  982. dialogType: "powerLineChart",
  983. max: 30,
  984. },
  985. {
  986. title: "保证功率",
  987. value: res.data.jczbmap.bzgl,
  988. dialogTitle: "保证功率详情",
  989. subUrl: "genreset/findGLDetail",
  990. targetName: "bzgl",
  991. dialogType: "powerLineChart",
  992. max: res.data.jczbmap.zjts,
  993. },
  994. {
  995. title: "应发功率",
  996. value: res.data.jczbmap.yfgl,
  997. dialogTitle: "应发功率详情",
  998. subUrl: "genreset/findGLDetail",
  999. targetName: "yfgl",
  1000. dialogType: "powerLineChart",
  1001. max: res.data.jczbmap.zjts,
  1002. },
  1003. {
  1004. title: "实际功率",
  1005. value: res.data.jczbmap.sjgl,
  1006. dialogTitle: "实际功率详情",
  1007. subUrl: "genreset/findGLDetail",
  1008. targetName: "sjgl",
  1009. dialogType: "powerLineChart",
  1010. max: res.data.jczbmap.zjts,
  1011. },
  1012. ];
  1013. that.jczbmap = res.data.jczbmap;
  1014. that.wxssmap = res.data.wxssmap;
  1015. that.gxkmap = res.data.gxkmap;
  1016. that.mxztmap = res.data.mxztmap;
  1017. that.fcmap = res.data.fcmap;
  1018. that.xtmap = res.data.xtmap;
  1019. that.tqmap = res.data.tqmap;
  1020. that.ForecastPower = [
  1021. {
  1022. name: "当日预测电量",
  1023. value: res.data.jczbmap.rycfdl,
  1024. total: res.data.jczbmap.rfdlsx,
  1025. },
  1026. {
  1027. name: "实际发电量",
  1028. value: res.data.jczbmap.rfdl,
  1029. total: res.data.jczbmap.rfdlsx,
  1030. },
  1031. {
  1032. name: "当月预测电量",
  1033. value: res.data.jczbmap.yycfdl,
  1034. total: res.data.jczbmap.yfdlsx,
  1035. },
  1036. {
  1037. name: "实际发电量",
  1038. value: res.data.jczbmap.yfdl,
  1039. total: res.data.jczbmap.yfdlsx,
  1040. },
  1041. ];
  1042. that.planData = {
  1043. yfdl: res.data.jczbmap.yfdl,
  1044. nfdl: res.data.jczbmap.nfdl,
  1045. yfdljh: res.data.gxkmap.yfdljh,
  1046. nfdljh: res.data.gxkmap.nfdljh,
  1047. ywcl: res.data.gxkmap.ywcl,
  1048. nwcl: res.data.gxkmap.nwcl,
  1049. };
  1050. },
  1051. });
  1052. },
  1053. getCharts() {
  1054. let that = this;
  1055. that.API.requestData({
  1056. method: "POST",
  1057. subUrl: "genreset/findPowerInfo",
  1058. timeout: 60000,
  1059. data: {
  1060. id: that.wpId,
  1061. },
  1062. success(res) {
  1063. let rdlKey = ["value1", "value2", "value3", "speed"];
  1064. let DayPower = {
  1065. units: ["(万kWh)", "(m/s)"],
  1066. value: [
  1067. {
  1068. title: "发电量",
  1069. yAxisIndex: 0,
  1070. value: [],
  1071. },
  1072. {
  1073. title: "上网电量",
  1074. yAxisIndex: 0,
  1075. value: [],
  1076. },
  1077. {
  1078. title: "购网电量",
  1079. yAxisIndex: 0,
  1080. value: [],
  1081. },
  1082. {
  1083. title: "风速",
  1084. yAxisIndex: 1,
  1085. value: [],
  1086. },
  1087. ],
  1088. };
  1089. let glKey = [
  1090. "value2",
  1091. "value1",
  1092. "value5",
  1093. "value4",
  1094. "value7",
  1095. "value6",
  1096. ];
  1097. let Powertrend = [
  1098. {
  1099. title: "实发功率",
  1100. smooth: true,
  1101. value: [],
  1102. },
  1103. {
  1104. title: "理论功率",
  1105. smooth: true,
  1106. value: [],
  1107. },
  1108. {
  1109. title: "保证功率",
  1110. smooth: true,
  1111. value: [],
  1112. },
  1113. {
  1114. title: "4小时预测功率",
  1115. smooth: true,
  1116. value: [],
  1117. },
  1118. {
  1119. title: "24小时预测功率",
  1120. smooth: true,
  1121. value: [],
  1122. },
  1123. {
  1124. title: "平均风速",
  1125. smooth: true,
  1126. value: [],
  1127. },
  1128. ];
  1129. rdlKey.forEach((keyEle, keyIndex) => {
  1130. res.data.rdlvos.forEach((cEle) => {
  1131. DayPower.value[keyIndex].value.push({
  1132. text: cEle.timestr,
  1133. value: cEle[keyEle],
  1134. });
  1135. });
  1136. });
  1137. glKey.forEach((keyEle, keyIndex) => {
  1138. res.data.glvos.forEach((cEle) => {
  1139. Powertrend[keyIndex].value.push({
  1140. text: new Date(cEle.time).formatDate("hh:mm"),
  1141. value: cEle[keyEle],
  1142. });
  1143. });
  1144. });
  1145. that.DayPower = DayPower;
  1146. that.Powertrend = Powertrend;
  1147. },
  1148. });
  1149. },
  1150. // 点击地图展示类型
  1151. changeShowType(wpId, planBtnName) {
  1152. this.wpName = planBtnName;
  1153. this.planBtnName = planBtnName;
  1154. this.jczbmap = {};
  1155. clearInterval(this.timmer);
  1156. this.timmer = null;
  1157. this.wpId = wpId;
  1158. this.requestData(false);
  1159. this.getCharts();
  1160. this.timmer = setInterval(() => {
  1161. this.requestData(false);
  1162. }, this.$store.state.websocketTimeSec);
  1163. },
  1164. // 打开弹窗
  1165. openDialog(dialogTitle, subUrl, targetName, dialogType) {
  1166. this.dialogTitle = dialogTitle;
  1167. let that = this;
  1168. that.API.requestData({
  1169. method: "POST",
  1170. subUrl,
  1171. data: {
  1172. id: that.wpId,
  1173. targetName,
  1174. },
  1175. success(res) {
  1176. that.dialogShow = true;
  1177. that.dialogData = res.data;
  1178. that.dialogType = dialogType;
  1179. },
  1180. });
  1181. },
  1182. // 点击安全天数下的场站按钮重置数据
  1183. onBackStation() {
  1184. if (this.wpId.indexOf("FDC") == -1) {
  1185. clearInterval(this.timmer);
  1186. this.timmer = null;
  1187. this.wpId = this.wpId.substring(0, this.wpId.indexOf("0")) + "_FDC";
  1188. this.requestData(false);
  1189. this.timmer = setInterval(() => {
  1190. this.requestData(false);
  1191. }, this.$store.state.websocketTimeSec);
  1192. }
  1193. },
  1194. // 显示功率复核图表
  1195. showPowerChart(res) {
  1196. this.dialogTitle = res.dialogTitle;
  1197. this.dialogType = res.dialogType;
  1198. this.powerLineChartData = res.data;
  1199. this.dialogShow = true;
  1200. },
  1201. // 显示计划电量完成情况图表
  1202. showDoneChart(res) {
  1203. this.dialogTitle = res.dialogTitle;
  1204. this.dialogType = res.dialogType;
  1205. this.doneLineChartData = res.data;
  1206. this.dialogShow = true;
  1207. },
  1208. // 地图进入事件
  1209. onEnter() {
  1210. this.powerplanShowSingle = true;
  1211. },
  1212. // 地图退出事件
  1213. onBack() {
  1214. this.powerplanShowSingle = false;
  1215. },
  1216. },
  1217. created() {
  1218. let that = this;
  1219. that.nowTime = new Date().formatDate("hh:mm:ss");
  1220. that.$nextTick(() => {
  1221. that.requestData(false);
  1222. this.getCharts();
  1223. that.timmer = setInterval(() => {
  1224. that.requestData(false);
  1225. }, that.$store.state.websocketTimeSec);
  1226. that.timmer2 = setInterval(() => {
  1227. that.nowTime = new Date().formatDate("hh:mm:ss");
  1228. }, 1000);
  1229. that.timmer3 = setInterval(() => {
  1230. this.getCharts();
  1231. }, 360000);
  1232. });
  1233. },
  1234. unmounted() {
  1235. clearInterval(this.timmer);
  1236. clearInterval(this.timmer2);
  1237. clearInterval(this.timmer3);
  1238. this.timmer = null;
  1239. this.timmer2 = null;
  1240. this.timmer3 = null;
  1241. },
  1242. };
  1243. </script>
  1244. <style lang="less">
  1245. .home {
  1246. .grid-content {
  1247. background: #333;
  1248. height: 1.111vh;
  1249. }
  1250. .table-card-panel {
  1251. .col + .col {
  1252. margin-left: 8px;
  1253. }
  1254. }
  1255. .table-card {
  1256. background: rgba(255, 255, 255, 0.1);
  1257. border-collapse: collapse;
  1258. width: 100%;
  1259. outline: 1px solid @gray;
  1260. .curP {
  1261. cursor: pointer;
  1262. }
  1263. tr {
  1264. font-size: 12px;
  1265. td {
  1266. border: 0.093vh solid fade(@gray, 20);
  1267. line-height: 27px;
  1268. padding: 0 4px;
  1269. &.text {
  1270. }
  1271. &.value {
  1272. text-align: right;
  1273. font-family: @font-family-num;
  1274. }
  1275. &.unit {
  1276. }
  1277. }
  1278. }
  1279. }
  1280. .tools {
  1281. display: flex;
  1282. .tool-block {
  1283. display: flex;
  1284. align-items: center;
  1285. margin-left: 0.741vh;
  1286. .legend {
  1287. flex: auto;
  1288. width: 6px;
  1289. height: 6px;
  1290. margin-right: 0.741vh;
  1291. &.long {
  1292. width: 2.963vh;
  1293. height: 0.37vh;
  1294. }
  1295. }
  1296. .legend-text {
  1297. color: #ffffff4d;
  1298. }
  1299. }
  1300. }
  1301. .situation {
  1302. width: 100%;
  1303. height: 100%;
  1304. .situation-body {
  1305. display: flex;
  1306. flex-direction: column;
  1307. justify-content: space-around;
  1308. height: 100%;
  1309. .situation-item {
  1310. display: flex;
  1311. align-content: center;
  1312. flex: 1 1 25%;
  1313. align-items: center;
  1314. .icon {
  1315. svg {
  1316. width: 40px;
  1317. height: 40px;
  1318. }
  1319. }
  1320. &.fengji {
  1321. flex: 0 1 25%;
  1322. .info {
  1323. margin-left: 16px;
  1324. .value {
  1325. font-size: 24px;
  1326. display: inline-block;
  1327. }
  1328. }
  1329. }
  1330. .fengji-icon {
  1331. padding: 12px;
  1332. border-radius: 50%;
  1333. box-shadow: inset 1.5px -1px 1px 0px @green;
  1334. svg {
  1335. width: 24px;
  1336. height: 24px;
  1337. }
  1338. }
  1339. .info {
  1340. display: flex;
  1341. flex-direction: column;
  1342. justify-content: center;
  1343. margin-left: 0.741vh;
  1344. .title {
  1345. font-size: 12px;
  1346. font-weight: bold;
  1347. margin-bottom: 0.7407vh;
  1348. }
  1349. .text {
  1350. display: inline-block;
  1351. width: 64px;
  1352. text-align: left;
  1353. }
  1354. .value {
  1355. text-align: left;
  1356. font-size: 12px;
  1357. display: flex;
  1358. justify-content: space-between;
  1359. align-items: center;
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365. .com-panel {
  1366. height: 100%;
  1367. .panel-body {
  1368. height: calc(100% - 32px);
  1369. }
  1370. }
  1371. .top-left-panel {
  1372. display: flex;
  1373. flex-direction: column;
  1374. justify-content: space-between;
  1375. flex: 0 0 380px;
  1376. .row {
  1377. flex: 0 0 auto;
  1378. }
  1379. .plan {
  1380. flex: 0 0 auto;
  1381. .com-panel {
  1382. height: 100%;
  1383. .panel-body {
  1384. height: calc(100% - 32px);
  1385. }
  1386. }
  1387. }
  1388. }
  1389. .top-mid-panel {
  1390. flex: 1 1 auto;
  1391. }
  1392. .top-right-panel {
  1393. display: flex;
  1394. flex-direction: column;
  1395. justify-content: space-between;
  1396. flex: 0 0 380px;
  1397. }
  1398. .weatherBox {
  1399. width: 100%;
  1400. display: flex;
  1401. justify-content: space-around;
  1402. align-items: center;
  1403. .l,
  1404. .r {
  1405. width: 48%;
  1406. height: 500px;
  1407. padding: 50px 0;
  1408. }
  1409. .el-collapse {
  1410. border-top: 1px solid #999;
  1411. }
  1412. .el-collapse-item .el-collapse-item__wrap {
  1413. border-bottom: 1px solid #999;
  1414. }
  1415. .el-collapse-item__content {
  1416. background: rgba(18, 29, 28);
  1417. color: rgba(255, 255, 255, 0.75);
  1418. padding: 20px;
  1419. }
  1420. .el-collapse-item__header {
  1421. background: rgb(18, 29, 28);
  1422. border-bottom: 1px solid #999;
  1423. color: rgba(255, 255, 255, 0.75);
  1424. }
  1425. .el-card__header,
  1426. .el-collapse,
  1427. .el-collapse-item__header {
  1428. border-bottom: 1px solid #999;
  1429. }
  1430. .collapseItemTitle {
  1431. display: flex;
  1432. justify-content: space-between;
  1433. align-items: center;
  1434. width: 100%;
  1435. .svg {
  1436. width: 20px;
  1437. height: 20px;
  1438. }
  1439. .info {
  1440. margin-left: 4px;
  1441. }
  1442. .otherWea {
  1443. margin-right: 10px;
  1444. }
  1445. }
  1446. .other-info {
  1447. text-align: center;
  1448. font-size: @fontsize-s;
  1449. .text {
  1450. color: @font-color;
  1451. font-size: 12px;
  1452. }
  1453. .value {
  1454. margin: 0.741vh 0 0 0;
  1455. }
  1456. .other-icon {
  1457. margin: 0 auto;
  1458. }
  1459. }
  1460. }
  1461. }
  1462. </style>