index.vue 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776
  1. <template>
  2. <div class="home-content">
  3. <div class="left-content">
  4. <div class="zjrl-count" :style="getCalcFontSize(32)">
  5. <div class="count-item">
  6. <span class="text">清洁能源产业总装机容量</span>
  7. <span class="count" :style="getCalcFontSize(35)"
  8. >{{ StationinformationData?.qt?.zzjrl }}
  9. <i :style="getCalcFontSize(20)">MW</i>
  10. </span>
  11. </div>
  12. <div class="count-item">
  13. <span class="text" :style="getCalcFontSize(32)">安全天数</span>
  14. <span class="count" :style="getCalcFontSize(35)"
  15. >{{ StationinformationData?.qt?.aqts || 0 }}
  16. <i :style="getCalcFontSize(20)">天</i>
  17. </span>
  18. </div>
  19. </div>
  20. <div
  21. class="position"
  22. :style="`${getCalcFontSize(16)}`"
  23. v-if="currents == 0"
  24. >
  25. <div class="position-icon svg-icon svg-icon-green">
  26. <svg-icon svgid="svg-position" />
  27. </div>
  28. <div class="position-text">当前展示:{{ currentTitle }}</div>
  29. </div>
  30. <div
  31. @click="
  32. backMap(
  33. stationList[currents - 1]?.wpId,
  34. stationList[currents - 1]?.name
  35. )
  36. "
  37. class="position"
  38. :style="`${getCalcFontSize(16)};cursor:pointer`"
  39. v-else
  40. >
  41. <div class="position-icon svg-icon svg-icon-green">
  42. <svg-icon svgid="svg-position" />
  43. </div>
  44. <div class="position-text">当前展示:{{ currentTitle }}</div>
  45. </div>
  46. <div class="gszjrl-count">
  47. <div class="wind-content">
  48. <div class="wind-top">
  49. <div class="wind-title">
  50. <span class="company" :style="`${getCalcFontSize(16)}`"
  51. >清洁能源公司</span
  52. >
  53. <span class="text" :style="`${getCalcFontSize(16)}`"
  54. >风电资产</span
  55. >
  56. </div>
  57. <div class="wind-counts">
  58. <div class="wind-icon">
  59. <img src="@/assets/map/wind-all.png" alt="" />
  60. </div>
  61. <div class="wind-count">
  62. <div class="wind-count-row">
  63. <span class="name" :style="`${getCalcFontSize(14)}`"
  64. >风场数量</span
  65. >
  66. <span class="value" :style="`${getCalcFontSize(18)}`">
  67. {{
  68. wpId.includes("FDC")
  69. ? 1
  70. : StationinformationData?.cblpoint?.qjny_fcts
  71. }}
  72. </span>
  73. <i class="unit" :style="`${getCalcFontSize(12)}`">座</i>
  74. </div>
  75. <div class="wind-count-row">
  76. <span class="name" :style="`${getCalcFontSize(14)}`"
  77. >装机容量</span
  78. >
  79. <span class="value" :style="`${getCalcFontSize(16)}`">
  80. {{ StationinformationData?.cblpoint?.qjny_fd_zjrl }}
  81. </span>
  82. <i class="unit" :style="`${getCalcFontSize(12)}`">MW</i>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="wind-bottom">
  88. <div class="wind-title">
  89. <span class="company" :style="`${getCalcFontSize(16)}`"
  90. >系统接入情况</span
  91. >
  92. <span class="text" :style="`${getCalcFontSize(14)}`"
  93. >装机容量</span
  94. >
  95. <span class="value" :style="`${getCalcFontSize(16)}`">{{
  96. StationinformationData?.cblpoint?.jr_fd_zjrl || 0
  97. }}</span>
  98. <span class="unit" :style="`${getCalcFontSize(12)}`">MW</span>
  99. </div>
  100. <div class="wind-counts">
  101. <div class="wind-icon">
  102. <img src="@/assets/map/wind-jr.png" alt="" />
  103. </div>
  104. <div class="wind-count">
  105. <div class="wind-count-row">
  106. <span class="name" :style="`${getCalcFontSize(14)}`"
  107. >风场数量</span
  108. >
  109. <span class="value" :style="`${getCalcFontSize(18)}`">
  110. {{
  111. wpId.includes("FDC")
  112. ? 1
  113. : StationinformationData?.cblpoint?.jr_fcts
  114. }}
  115. </span>
  116. <i class="unit" :style="`${getCalcFontSize(12)}`">座</i>
  117. </div>
  118. <div class="wind-count-row">
  119. <span class="name" :style="`${getCalcFontSize(14)}`"
  120. >风机台数</span
  121. >
  122. <span class="value" :style="`${getCalcFontSize(16)}`">
  123. {{
  124. wpId.includes("FDC")
  125. ? StationinformationData?.station[wpId]?.zjts
  126. : StationinformationData?.cblpoint?.jr_fj_ts
  127. }}
  128. </span>
  129. <i class="unit" :style="`${getCalcFontSize(12)}`">台</i>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="voltaic-content">
  136. <div class="wind-top">
  137. <div class="wind-title" :style="`${getCalcFontSize(16)}`">
  138. <span class="company">清洁能源公司</span>
  139. <span class="text">光伏资产</span>
  140. </div>
  141. <div class="wind-counts">
  142. <div class="wind-icon">
  143. <img src="@/assets/map/voltaic-all.png" alt="" />
  144. </div>
  145. <div class="wind-count">
  146. <div class="wind-count-row">
  147. <span class="name" :style="`${getCalcFontSize(14)}`"
  148. >光伏电站</span
  149. >
  150. <span class="value" :style="`${getCalcFontSize(18)}`">
  151. {{
  152. wpId.includes("GDC")
  153. ? 1
  154. : StationinformationData?.cblpoint?.qjny_gfts
  155. }}
  156. </span>
  157. <i class="unit" :style="`${getCalcFontSize(12)}`">座</i>
  158. </div>
  159. <div class="wind-count-row">
  160. <span class="name" :style="`${getCalcFontSize(14)}`"
  161. >装机容量</span
  162. >
  163. <span class="value" :style="`${getCalcFontSize(16)}`">
  164. {{ StationinformationData?.cblpoint?.qjny_gf_zjrl }}
  165. </span>
  166. <i class="unit" :style="`${getCalcFontSize(12)}`">MW</i>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="wind-bottom">
  172. <div class="wind-title">
  173. <span class="company" :style="`${getCalcFontSize(16)}`"
  174. >系统接入情况</span
  175. >
  176. <span class="text" :style="`${getCalcFontSize(14)}`"
  177. >装机容量</span
  178. >
  179. <span class="value" :style="`${getCalcFontSize(16)}`">{{
  180. StationinformationData?.cblpoint?.jr_gf_zjrl || 0
  181. }}</span>
  182. <span class="unit" :style="`${getCalcFontSize(12)}`">MW</span>
  183. </div>
  184. <div class="wind-counts">
  185. <div class="wind-icon">
  186. <img src="@/assets/map/wind-jr.png" alt="" />
  187. </div>
  188. <div class="wind-count">
  189. <div class="wind-count-row">
  190. <span class="name" :style="`${getCalcFontSize(14)}`"
  191. >光伏电站</span
  192. >
  193. <span class="value" :style="`${getCalcFontSize(18)}`">
  194. {{
  195. wpId.includes("GDC")
  196. ? 1
  197. : StationinformationData?.cblpoint?.jr_gfts
  198. }}
  199. </span>
  200. <i class="unit" :style="`${getCalcFontSize(12)}`">座</i>
  201. </div>
  202. <div class="wind-count-row">
  203. <span class="name" :style="`${getCalcFontSize(14)}`"
  204. >集中式</span
  205. >
  206. <span class="value" :style="`${getCalcFontSize(16)}`">
  207. {{
  208. wpId.includes("GDC")
  209. ? StationinformationData?.station[wpId]?.jzzjts
  210. : StationinformationData?.cblpoint?.jr_gf_jzts || 0
  211. }}
  212. </span>
  213. <i class="unit" :style="`${getCalcFontSize(12)}`">台</i>
  214. </div>
  215. <div class="wind-count-row">
  216. <span class="name" :style="`${getCalcFontSize(14)}`"
  217. >组串式</span
  218. >
  219. <span class="value" :style="`${getCalcFontSize(14)}`">
  220. {{
  221. wpId.includes("GDC")
  222. ? StationinformationData?.station[wpId]?.zczjts
  223. : StationinformationData?.cblpoint?.jr_gf_zcts || 0
  224. }}
  225. </span>
  226. <i class="unit" :style="`${getCalcFontSize(12)}`">台</i>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. <div class="jnjp-count">
  234. <div class="jnjp-fd jnjp">
  235. <div class="jnjp-title">
  236. <span class="text">节能减排</span>
  237. <span class="unit">万吨</span>
  238. </div>
  239. <div class="jnjp-content">
  240. <div class="jnjp-item">
  241. <div class="jnjp-icon svg-icon svg-icon-green">
  242. <svg-icon class="" svgid="svg-煤" />
  243. </div>
  244. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  245. {{
  246. Number(Number(StationinformationData?.qt?.fdjym)).toFixed(2)
  247. }}
  248. </div>
  249. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">煤</div>
  250. </div>
  251. <div class="jnjp-item">
  252. <div class="jnjp-icon svg-icon svg-icon-green">
  253. <svg-icon class="" svgid="svg-水" />
  254. </div>
  255. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  256. {{
  257. Number(Number(StationinformationData?.qt?.fdjys)).toFixed(2)
  258. }}
  259. </div>
  260. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">水</div>
  261. </div>
  262. <div class="jnjp-item">
  263. <!-- <div class="kind"> -->
  264. <div class="jnjp-icon svg-icon svg-icon-green">
  265. <svg-icon class="" svgid="svg-co2" />
  266. </div>
  267. <!-- </div> -->
  268. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  269. {{
  270. Number(Number(StationinformationData?.qt?.fdco2)).toFixed(2)
  271. }}
  272. </div>
  273. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">
  274. 二氧化碳
  275. </div>
  276. </div>
  277. <div class="jnjp-item">
  278. <!-- <div class="kind"> -->
  279. <div class="jnjp-icon svg-icon svg-icon-green">
  280. <svg-icon class="" svgid="svg-so2" />
  281. </div>
  282. <!-- </div> -->
  283. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  284. {{
  285. Number(Number(StationinformationData?.qt?.fdso2)).toFixed(2)
  286. }}
  287. </div>
  288. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">
  289. 二氧化硫
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="jnjp-gf jnjp">
  295. <div class="jnjp-title">
  296. <span class="text">节能减排</span>
  297. <span class="unit">万吨</span>
  298. </div>
  299. <div class="jnjp-content">
  300. <div class="jnjp-item">
  301. <div class="jnjp-icon svg-icon svg-icon-green">
  302. <svg-icon class="" svgid="svg-煤" />
  303. </div>
  304. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  305. {{
  306. Number(Number(StationinformationData?.qt?.gfjym)).toFixed(2)
  307. }}
  308. </div>
  309. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">煤</div>
  310. </div>
  311. <div class="jnjp-item">
  312. <div class="jnjp-icon svg-icon svg-icon-green">
  313. <svg-icon class="" svgid="svg-水" />
  314. </div>
  315. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  316. {{
  317. Number(Number(StationinformationData?.qt?.gfjys)).toFixed(2)
  318. }}
  319. </div>
  320. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">水</div>
  321. </div>
  322. <div class="jnjp-item">
  323. <!-- <div class="kind"> -->
  324. <div class="jnjp-icon svg-icon svg-icon-green">
  325. <svg-icon class="" svgid="svg-co2" />
  326. </div>
  327. <!-- </div> -->
  328. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  329. {{
  330. Number(Number(StationinformationData?.qt?.gfco2)).toFixed(2)
  331. }}
  332. </div>
  333. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">
  334. 二氧化碳
  335. </div>
  336. </div>
  337. <div class="jnjp-item">
  338. <!-- <div class="kind"> -->
  339. <div class="jnjp-icon svg-icon svg-icon-green">
  340. <svg-icon class="" svgid="svg-so2" />
  341. </div>
  342. <!-- </div> -->
  343. <div class="jnjp-value" :style="`${getCalcFontSize(14)}`">
  344. {{
  345. Number(Number(StationinformationData?.qt?.gfso2)).toFixed(2)
  346. }}
  347. </div>
  348. <div class="jnjp-name" :style="`${getCalcFontSize(12)}`">
  349. 二氧化硫
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <div class="center-content">
  357. <SvgMapNX
  358. v-if="currentTitle == '全国'"
  359. :homeSuspensionWindowsData="homeSuspensionWindowsData"
  360. :mapList="mapList"
  361. :show="showType"
  362. :data="StationinformationData"
  363. @clickLabel="clickLabel"
  364. />
  365. <!-- 山西 -->
  366. <SX
  367. v-if="currentTitle != '全国'"
  368. :showType="showType"
  369. :companyid="companyid"
  370. :data="StationinformationData"
  371. @clickLabel="clickLabel"
  372. />
  373. </div>
  374. <div class="right-content">
  375. <div class="gjzb">
  376. <div class="gjzb-fd">
  377. <div class="gjzb-title">
  378. <span :style="`${getCalcFontSize(16)}`">风电关键指标</span>
  379. </div>
  380. <div class="gjzb-content">
  381. <div
  382. class="gjzb-charts"
  383. v-for="(item, index) in powerDataHomeFd"
  384. :key="index"
  385. @click="openDialog(item.dialogTitle, item.unit, 'fd')"
  386. >
  387. <div class="chart">
  388. <dashPieChartVue
  389. height="100%"
  390. width="100%"
  391. :title="item.title"
  392. :unit="item.unit"
  393. :value="item.value"
  394. :max="item.max"
  395. color="green"
  396. />
  397. </div>
  398. <div class="title">
  399. <span :style="`${getCalcFontSize(16)}`">{{ item.unit }}</span>
  400. <span :style="`${getCalcFontSize(16)}`">{{ item.title }}</span>
  401. </div>
  402. </div>
  403. </div>
  404. </div>
  405. <div class="gjzb-gf">
  406. <div class="gjzb-title">
  407. <span :style="`${getCalcFontSize(16)}`">光伏关键指标</span>
  408. </div>
  409. <div class="gjzb-content">
  410. <div
  411. class="gjzb-charts"
  412. v-for="(item, index) in powerDataHomeGf"
  413. :key="index"
  414. @click="openDialog(item.dialogTitle, item.unit, 'gf')"
  415. >
  416. <div class="chart">
  417. <dashPieChartVue
  418. height="100%"
  419. width="100%"
  420. :title="item.title"
  421. :unit="item.unit"
  422. :value="item.value"
  423. :max="item.max"
  424. color="orange"
  425. />
  426. </div>
  427. <div class="title">
  428. <span :style="`${getCalcFontSize(16)}`">{{ item.unit }}</span>
  429. <span :style="`${getCalcFontSize(16)}`">{{ item.title }}</span>
  430. </div>
  431. </div>
  432. </div>
  433. </div>
  434. </div>
  435. <div class="jrtsxq">
  436. <div class="jrtsxq-fd">
  437. <div class="jrts-top">
  438. <div class="titles">
  439. <div class="amount">
  440. <div class="icon fengji-icon svg-icon svg-icon-white"></div>
  441. <img class="amount-image" src="@/assets/png/wind.png" alt="" />
  442. <div class="amount-nums">
  443. <text class="num-item" :style="`${getCalcFontSize(20)}`">{{
  444. StationinformationData?.cblpoint?.jr_fj_ts
  445. }}</text>
  446. <i :style="`${getCalcFontSize(12)}`" class="unit">台</i>
  447. </div>
  448. </div>
  449. <div
  450. v-if="
  451. !(
  452. wpId.includes('FDC') ||
  453. wpId.includes('GC') ||
  454. wpId.includes('GDC')
  455. )
  456. "
  457. :style="`${getCalcFontSize(14)}`"
  458. class="info-nums"
  459. >
  460. 场站<text class="nums" :style="`${getCalcFontSize(20)}`">{{
  461. StationinformationData?.cblpoint?.jr_fcts
  462. }}</text>
  463. <i :style="`${getCalcFontSize(12)}`" class="unit">个</i>
  464. </div>
  465. </div>
  466. <div class="types">
  467. <div class="type-model">
  468. <div
  469. class="type-name"
  470. :style="`${getCalcFontSize(14)}`"
  471. style="color: #1d99ff"
  472. >
  473. 待机
  474. </div>
  475. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  476. {{ StationinformationData?.mxztmap?.fd_djnum || 0 }}
  477. </div>
  478. </div>
  479. <div class="type-model">
  480. <div
  481. class="type-name"
  482. :style="`${getCalcFontSize(14)}`"
  483. style="color: #05bb4c"
  484. >
  485. 运行
  486. </div>
  487. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  488. {{ StationinformationData?.mxztmap?.fd_yxnum || 0 }}
  489. </div>
  490. </div>
  491. <div class="type-model">
  492. <div
  493. class="type-name"
  494. :style="`${getCalcFontSize(14)}`"
  495. style="color: #ba3237"
  496. >
  497. 故障
  498. </div>
  499. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  500. {{ StationinformationData?.mxztmap?.fd_gznum || 0 }}
  501. </div>
  502. </div>
  503. <div class="type-model">
  504. <div
  505. class="type-name"
  506. :style="`${getCalcFontSize(14)}`"
  507. style="color: #e17e23"
  508. >
  509. 检修
  510. </div>
  511. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  512. {{ StationinformationData?.mxztmap?.fd_jxnum || 0 }}
  513. </div>
  514. </div>
  515. <div class="type-model">
  516. <div
  517. class="type-name"
  518. :style="`${getCalcFontSize(14)}`"
  519. style="color: #c531c7"
  520. >
  521. 限电
  522. </div>
  523. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  524. {{ StationinformationData?.mxztmap?.fd_xdnum || 0 }}
  525. </div>
  526. </div>
  527. <div class="type-model">
  528. <div
  529. class="type-name"
  530. :style="`${getCalcFontSize(14)}`"
  531. style="color: #fff"
  532. >
  533. 受累
  534. </div>
  535. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  536. {{ StationinformationData?.mxztmap?.fd_slnum || 0 }}
  537. </div>
  538. </div>
  539. <div class="type-model">
  540. <div
  541. class="type-name"
  542. :style="`${getCalcFontSize(14)}`"
  543. style="color: #606769"
  544. >
  545. 离线
  546. </div>
  547. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  548. {{ StationinformationData?.mxztmap?.fd_lxnum || 0 }}
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. <div class="jrts-center">
  554. <div class="tabSwitchover" :style="`${getCalcFontSize(12)}`">
  555. (单位: 万kWh)
  556. </div>
  557. <div class="power-wrapper">
  558. <div
  559. class="power-charts"
  560. v-for="(item, index) in ForecastPowerNewHome_fc"
  561. :key="index"
  562. >
  563. <div class="power-name" :style="`${getCalcFontSize(12)}`">
  564. {{ item[0].name }}
  565. </div>
  566. <div class="power-item">
  567. <list-bar-chart-2-home
  568. :list="item"
  569. height="3.889vh"
  570. width="7.596vw"
  571. @click="
  572. handleElectricDetail(item[0].id, item[0].name, 'fc')
  573. "
  574. />
  575. <div class="power-value" :style="`${getCalcFontSize(12)}`">
  576. <span
  577. :style="
  578. item[0].color === 1
  579. ? 'background-color:#4B55AE'
  580. : 'background-color:#05BB4C'
  581. "
  582. ></span>
  583. <span>{{ item[0].total }}</span>
  584. </div>
  585. </div>
  586. </div>
  587. </div>
  588. </div>
  589. <div class="jrts-bottom">
  590. <div
  591. class="ylyxs"
  592. @click="handleUsingDetail('month', '月利用小时')"
  593. >
  594. <span :style="`${getCalcFontSize(14)}`">月利用小时</span>
  595. <span :style="`${getCalcFontSize(18)}`" class="lyxs-value">{{
  596. StationinformationData?.qt?.fdylyxs?.toFixed(2) || 0
  597. }}</span>
  598. <span :style="`${getCalcFontSize(12)}`" class="lyxs-unit">h</span>
  599. </div>
  600. <div class="border"></div>
  601. <div class="nlyxs">
  602. <span :style="`${getCalcFontSize(14)}`">年利用小时</span>
  603. <span :style="`${getCalcFontSize(18)}`" class="lyxs-value">{{
  604. StationinformationData?.qt?.fdnlyxs?.toFixed(2) || 0
  605. }}</span>
  606. <span :style="`${getCalcFontSize(12)}`" class="lyxs-unit">h</span>
  607. </div>
  608. </div>
  609. </div>
  610. <div class="jrtsxq-gf">
  611. <div class="jrts-top">
  612. <div class="titles">
  613. <div class="amount">
  614. <div class="icon fengji-icon svg-icon svg-icon-white"></div>
  615. <img
  616. class="amount-image"
  617. src="@/assets/imgs/sy-sun.png"
  618. alt=""
  619. />
  620. <div class="amount-nums">
  621. <text class="num-item" :style="`${getCalcFontSize(20)}`">{{
  622. Number(
  623. StationinformationData?.cblpoint?.jr_gf_jzts +
  624. StationinformationData?.cblpoint?.jr_gf_zcts
  625. ) || 0
  626. }}</text>
  627. <i :style="`${getCalcFontSize(12)}`" class="unit">台</i>
  628. </div>
  629. </div>
  630. <div :style="`${getCalcFontSize(14)}`" class="info-nums">
  631. 电站<text class="nums" :style="`${getCalcFontSize(20)}`">{{
  632. StationinformationData?.cblpoint?.jr_gfts
  633. }}</text>
  634. <i :style="`${getCalcFontSize(12)}`" class="unit">个</i>
  635. </div>
  636. </div>
  637. <div class="types">
  638. <div class="type-model">
  639. <div
  640. class="type-name"
  641. :style="`${getCalcFontSize(14)}`"
  642. style="color: #1d99ff"
  643. >
  644. 待机
  645. </div>
  646. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  647. {{ StationinformationData?.mxztmap?.gf_djnum || 0 }}
  648. </div>
  649. </div>
  650. <div class="type-model">
  651. <div
  652. class="type-name"
  653. :style="`${getCalcFontSize(14)}`"
  654. style="color: #05bb4c"
  655. >
  656. 运行
  657. </div>
  658. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  659. {{ StationinformationData?.mxztmap?.gf_yxnum || 0 }}
  660. </div>
  661. </div>
  662. <div class="type-model">
  663. <div
  664. class="type-name"
  665. :style="`${getCalcFontSize(14)}`"
  666. style="color: #ba3237"
  667. >
  668. 故障
  669. </div>
  670. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  671. {{ StationinformationData?.mxztmap?.gf_gznum || 0 }}
  672. </div>
  673. </div>
  674. <div class="type-model">
  675. <div
  676. class="type-name"
  677. :style="`${getCalcFontSize(14)}`"
  678. style="color: #e17e23"
  679. >
  680. 检修
  681. </div>
  682. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  683. {{ StationinformationData?.mxztmap?.gf_jxnum || 0 }}
  684. </div>
  685. </div>
  686. <div class="type-model">
  687. <div
  688. class="type-name"
  689. :style="`${getCalcFontSize(14)}`"
  690. style="color: #c531c7"
  691. >
  692. 限电
  693. </div>
  694. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  695. {{ StationinformationData?.mxztmap?.gf_xdnum || 0 }}
  696. </div>
  697. </div>
  698. <div class="type-model">
  699. <div
  700. class="type-name"
  701. :style="`${getCalcFontSize(14)}`"
  702. style="color: #fff"
  703. >
  704. 受累
  705. </div>
  706. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  707. {{ StationinformationData?.mxztmap?.gf_slnum || 0 }}
  708. </div>
  709. </div>
  710. <div class="type-model">
  711. <div
  712. class="type-name"
  713. :style="`${getCalcFontSize(14)}`"
  714. style="color: #606769"
  715. >
  716. 离线
  717. </div>
  718. <div class="type-num" :style="`${getCalcFontSize(16)}`">
  719. {{ StationinformationData?.mxztmap?.gf_lxnum || 0 }}
  720. </div>
  721. </div>
  722. </div>
  723. </div>
  724. <div class="jrts-center">
  725. <div class="tabSwitchover" :style="`${getCalcFontSize(12)}`">
  726. (单位: 万kWh)
  727. </div>
  728. <div class="power-wrapper">
  729. <div
  730. class="power-charts"
  731. v-for="(item, index) in ForecastPowerNewHome_gf"
  732. :key="index"
  733. >
  734. <div class="power-name" :style="`${getCalcFontSize(12)}`">
  735. {{ item[0].name }}
  736. </div>
  737. <div class="power-item">
  738. <list-bar-chart-2-home
  739. :list="item"
  740. height="3.889vh"
  741. width="7.596vw"
  742. @click="
  743. handleElectricDetail(item[0].id, item[0].name, 'gf')
  744. "
  745. />
  746. <div class="power-value" :style="`${getCalcFontSize(12)}`">
  747. <span
  748. :style="
  749. item[0].color === 1
  750. ? 'background-color:#4B55AE'
  751. : 'background-color:#05BB4C'
  752. "
  753. ></span>
  754. <span>{{ item[0].total }}</span>
  755. </div>
  756. </div>
  757. </div>
  758. </div>
  759. </div>
  760. <div class="jrts-bottom">
  761. <div class="ylyxs">
  762. <span :style="`${getCalcFontSize(14)}`">月利用小时</span>
  763. <span :style="`${getCalcFontSize(18)}`" class="lyxs-value">{{
  764. StationinformationData?.qt?.gfylyxs?.toFixed(2) || 0
  765. }}</span>
  766. <span :style="`${getCalcFontSize(12)}`" class="lyxs-unit">h</span>
  767. </div>
  768. <div class="border"></div>
  769. <div class="nlyxs">
  770. <span :style="`${getCalcFontSize(14)}`">年利用小时</span>
  771. <span :style="`${getCalcFontSize(18)}`" class="lyxs-value">{{
  772. StationinformationData?.qt?.gfnlyxs?.toFixed(2) || 0
  773. }}</span>
  774. <span :style="`${getCalcFontSize(12)}`" class="lyxs-unit">h</span>
  775. </div>
  776. </div>
  777. </div>
  778. </div>
  779. <div class="power-chart" @dblclick="handleShowCharts(currentTitle)">
  780. <div class="power-title" :style="`${getCalcFontSize(16)}`">
  781. 24小时功率曲线
  782. </div>
  783. <power-echarts
  784. :showTitle="false"
  785. :CurveValues="CurveValues"
  786. width="100%"
  787. height="10.926vh"
  788. :unit="'MW'"
  789. :ratio="1000"
  790. :id="'cut-power'"
  791. :orient="'horizontal'"
  792. />
  793. </div>
  794. </div>
  795. <!-- 实时负荷/关键指标弹窗 -->
  796. <el-dialog
  797. class="dialogs"
  798. width="60%"
  799. top="20vh"
  800. v-model="dialogGroupRealname"
  801. :show-close="true"
  802. destroy-on-close
  803. >
  804. <template #title>
  805. <div class="dialog-title">
  806. <div class="title">
  807. {{ currentTitle != "全国" ? currentTitle : "" }}{{ showName }}
  808. </div>
  809. </div>
  810. </template>
  811. <div class="dialog-body" style="height: 500px">
  812. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  813. <windChartCom
  814. :windCurveValues="groupList"
  815. :unit="unit"
  816. :CurveTitle="chartName"
  817. width="100%"
  818. height="44.444vh"
  819. chartId="windChar"
  820. />
  821. </div>
  822. </el-dialog>
  823. <!-- 发电量,利用小时弹窗 -->
  824. <el-dialog
  825. class="dialogs"
  826. width="80%"
  827. top="120px"
  828. v-model="dialogElectric"
  829. :show-close="true"
  830. destroy-on-close
  831. >
  832. <template #title>
  833. <div class="dialog-title">
  834. <div class="title">{{ currentTitle }}{{ showName }}</div>
  835. </div>
  836. </template>
  837. <div class="dialog-body" style="height: 500px">
  838. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  839. <div class="date" v-if="showkey === 'electric'">
  840. <div
  841. class="day"
  842. :class="electronType === 'day' ? 'active' : ''"
  843. @click="handleElectricDetail('day', '日发电量')"
  844. >
  845. </div>
  846. <div
  847. class="mouth"
  848. :class="electronType === 'month' ? 'active' : ''"
  849. @click="handleElectricDetail('month', '月发电量')"
  850. >
  851. </div>
  852. <div
  853. class="year"
  854. :class="electronType === 'year' ? 'active' : ''"
  855. @click="handleElectricDetail('year', '年发电量')"
  856. >
  857. </div>
  858. </div>
  859. <div class="date" v-if="showkey === 'using'">
  860. <div
  861. class="day"
  862. :class="electronType === 'month' ? 'active' : ''"
  863. @click="handleUsingDetail('month', '月利用小时')"
  864. >
  865. </div>
  866. <div
  867. class="year"
  868. :class="electronType === 'year' ? 'active' : ''"
  869. @click="handleUsingDetail('year', '年利用小时')"
  870. >
  871. </div>
  872. </div>
  873. <BarCharts
  874. :list="barList"
  875. height="500px"
  876. :ratio="10000"
  877. :showLegend="true"
  878. :top="30"
  879. :units="showkey === 'electric' ? '万kWh' : '小时'"
  880. :interval="electronType === 'day' ? 1 : 0"
  881. :showkey="showkey"
  882. :showName="showName"
  883. :color="colors"
  884. >
  885. </BarCharts>
  886. </div>
  887. </el-dialog>
  888. <!-- 24小时功率曲线弹窗 -->
  889. <el-dialog
  890. class="dialogs"
  891. width="80%"
  892. top="100px"
  893. v-model="dialogShow"
  894. :show-close="true"
  895. destroy-on-close
  896. >
  897. <template #title>
  898. <div class="dialog-title">
  899. <div class="title">{{ showName }}</div>
  900. </div>
  901. </template>
  902. <div class="dialog-body" style="height: 600px">
  903. <img class="dialog-img" src="@assets/imgs/dialog.png" />
  904. <power-echarts
  905. :id="'show-chart'"
  906. :showTitle="false"
  907. :CurveValues="showCharts"
  908. width="100%"
  909. height="560px"
  910. :unit="'MW'"
  911. :orient="'horizontal'"
  912. />
  913. </div>
  914. </el-dialog>
  915. </div>
  916. </template>
  917. <script>
  918. import dashPieChartVue from "./dash-pie-chart.vue";
  919. import Row from "@/components/coms/grid/row.vue";
  920. import Col from "@/components/coms/grid/col.vue";
  921. import GjzbPieChart from "./gjzb-pie-chart.vue";
  922. import ListBarChart2Home from "./list-bar-chart2-home.vue";
  923. //全国地图总览
  924. import SvgMapNX from "./svg-map-nx.vue";
  925. // 山西
  926. import SX from "../map/SX.vue";
  927. import PowerEcharts from "./powerEcharts.vue";
  928. import HeaderNav from "@/components//headerNav/index.vue";
  929. import SvgIcon from "../../../../components/coms/icon/svg-icon.vue";
  930. import windLightDetial from "../windLightDetial.vue";
  931. import windlightSimple from "../windlightSimple.vue";
  932. import {
  933. FindRealtimeInfo,
  934. FindUtilizationhours,
  935. FindPlanproject,
  936. FindBasicDataInfo,
  937. FindPowerInfo,
  938. FindProjectplan,
  939. } from "@/api/home/home.js";
  940. import dayjs from "dayjs";
  941. import windChartCom from "./windChartCom.vue";
  942. import BarCharts from "@/views/Home/components/barCharts.vue";
  943. import { FindGroupRealtime } from "@/api/home/home.js";
  944. export default {
  945. // 名称
  946. name: "Map",
  947. // 使用组件
  948. components: {
  949. dashPieChartVue,
  950. SvgMapNX,
  951. SX,
  952. Row,
  953. Col,
  954. // PowerReviewHome,
  955. GjzbPieChart,
  956. ListBarChart2Home,
  957. SvgIcon,
  958. HeaderNav,
  959. PowerEcharts,
  960. windLightDetial,
  961. windlightSimple,
  962. windChartCom,
  963. BarCharts,
  964. },
  965. mounted() {},
  966. // 数据
  967. data() {
  968. return {
  969. activeTab: 0, //当前tab
  970. barList: [
  971. {
  972. name: "",
  973. value: [],
  974. },
  975. ], //发电量利用小时柱状图
  976. currentTitle: "全国", //当前地图名称
  977. currents: 0, //当前层级
  978. CurveValues: {
  979. value: [
  980. {
  981. title: "",
  982. value: [],
  983. },
  984. ],
  985. }, //24小时功率曲线
  986. companyid: "",
  987. companyname: "",
  988. chartsData: [], //实时负荷曲线
  989. colors: ["#1c99ff", "#05BB4C"],
  990. dialogVisible: false, //实时负荷弹窗开关
  991. dialogElectric: false, //发电量、利用小时弹窗开关
  992. electronType: "day", //日月年切换值
  993. flag: false, //判断场站id
  994. ForecastPowerNewHome_fc: [], //全国的风电发电量列表
  995. ForecastPowerNewHome_gf: [], //全国的光伏发电量列表
  996. ForecastPowerNewHome_qy: [], //区域发电量列表
  997. fdlList: [], //山西区域实时负荷列表
  998. homeSuspensionWindowsData: [], //全国区域所有地区数据
  999. historyWpId: "", //历史场站id
  1000. mapList: [
  1001. { text: "山西", code: "sxqyxx" },
  1002. { text: "内蒙", code: "nmqyxx" },
  1003. { text: "新疆", code: "xjqyxx" },
  1004. { text: "河北", code: "hbqyxx" },
  1005. { text: "陕西", code: "xsqyxx" },
  1006. { text: "山东", code: "sdqyxx" },
  1007. { text: "西藏", code: "xzqyxx" },
  1008. ],
  1009. penetrateType: 0, //24小时功率曲线开关
  1010. powerDataHome: {},
  1011. qyPower: {},
  1012. ratio: 1,
  1013. showType: "all",
  1014. stationList: [
  1015. {
  1016. name: "全部",
  1017. wpId: "KGDL_FGS",
  1018. },
  1019. {
  1020. name: "山西",
  1021. wpId: "SXJ_RGN",
  1022. },
  1023. ],
  1024. switchShow: false, //接入情况弹窗
  1025. showName: "",
  1026. chartName: "",
  1027. StationinformationData: [],
  1028. showkey: "",
  1029. dialogGroupRealname: false, //全国实时负荷弹窗开关
  1030. groupList: [], //全国实时负荷弹窗数据
  1031. type: "fc", //发电量展示类型
  1032. tabShow: 0,
  1033. timmer: null, // 计时器
  1034. timmer2: null,
  1035. units: ["万kWh"],
  1036. unit: "", //实时负荷弹窗单位
  1037. wpId: "KGDL_FGS",
  1038. wpIds: "KGDL_FGS0",
  1039. dialogShow: false,
  1040. showCharts: {
  1041. value: [
  1042. {
  1043. title: "",
  1044. value: [],
  1045. },
  1046. ],
  1047. },
  1048. powerDataHomeFd: [],
  1049. powerDataHomeGf: [],
  1050. valuelist: [
  1051. // {
  1052. // value: "SSZGL",
  1053. // name: "清洁能源实时功率详情",
  1054. // code: "value1",
  1055. // sign: 1,
  1056. // },
  1057. // {
  1058. // value: "SSZGL",
  1059. // name: "风电实时功率详情",
  1060. // code: "value2",
  1061. // sign: 1,
  1062. // },
  1063. // {
  1064. // value: "SSZGL",
  1065. // name: "光伏实时功率详情",
  1066. // code: "value3",
  1067. // sign: 1,
  1068. // },
  1069. {
  1070. value: "SSPJFS",
  1071. name: "实时风速",
  1072. code: "value4",
  1073. },
  1074. {
  1075. value: "RPJGZD",
  1076. name: "光照强度",
  1077. code: "value6",
  1078. },
  1079. {
  1080. value: "SSZGL",
  1081. name: "实际功率",
  1082. code: "value1",
  1083. },
  1084. {
  1085. value: "FNLYL",
  1086. name: "风能利用率",
  1087. code: "value7",
  1088. },
  1089. {
  1090. value: "FNLYL",
  1091. name: "光能利用率",
  1092. code: "value7",
  1093. },
  1094. ],
  1095. baseSWidth: 3291,
  1096. baseSHeight: 1080,
  1097. baseFontSizeFixNum: 4,
  1098. };
  1099. },
  1100. emits: {
  1101. onEnter: null,
  1102. onBack: null,
  1103. },
  1104. created() {
  1105. this.requestData();
  1106. this.findProjectPlan();
  1107. this.getData(this.wpIds);
  1108. },
  1109. // 函数
  1110. methods: {
  1111. //仪表盘弹窗
  1112. openDialog(dialogTitle, unit, type) {
  1113. let obj = this.valuelist.find((item) => item.name == dialogTitle);
  1114. let params = {
  1115. wpId: this.wpId + (type == "fd" ? "-1" : "-2"),
  1116. uniformCode: obj.value,
  1117. };
  1118. FindGroupRealtime(params).then(({ data }) => {
  1119. this.showPowerChart({
  1120. dialogTitle,
  1121. // dialogType,
  1122. data: data.map((item) => {
  1123. return {
  1124. dateTime: dayjs(item.time).format("MM-DD HH:mm"),
  1125. value: item[obj.code],
  1126. };
  1127. }),
  1128. chartName: obj.sign ? "实际功率" : obj.dialogTitle,
  1129. unit,
  1130. type,
  1131. });
  1132. });
  1133. },
  1134. getCalcFontSize(fzNum = 0) {
  1135. return `font-size: ${(
  1136. ((fzNum + this.baseFontSizeFixNum) / this.baseSWidth) *
  1137. 100
  1138. ).toFixed(3)}vw;`;
  1139. },
  1140. //放大24小时功率曲线
  1141. handleShowCharts(title) {
  1142. // console.log(title);
  1143. this.showCharts = this.CurveValues;
  1144. this.showName = `${title}24小时功率预测曲线`;
  1145. this.dialogShow = true;
  1146. },
  1147. // 点击地图展示类型
  1148. mapClick(wpId, activeTab) {
  1149. clearInterval(this.timmer);
  1150. clearInterval(this.timmer2);
  1151. this.timmer = null;
  1152. this.timmer2 = null;
  1153. this.activeTab = activeTab;
  1154. this.wpId = wpId;
  1155. this.wpIds =
  1156. wpId.includes("FDC") || wpId.includes("GDC") ? wpId : wpId + activeTab;
  1157. this.requestData();
  1158. this.findProjectPlan();
  1159. // this.timmer = setInterval(() => {
  1160. // this.requestData();
  1161. // }, 5000);
  1162. this.timmer2 = setInterval(() => {
  1163. this.findProjectPlan(); //发电量
  1164. if (this.penetrateType == 3) {
  1165. this.getData(this.wpIds); //24小时功率曲线
  1166. }
  1167. }, 15 * 60 * 1000);
  1168. },
  1169. mapClicks(wpId, activeTab) {
  1170. this.historyWpId = wpId;
  1171. this.mapClick(wpId, activeTab);
  1172. },
  1173. mapClickBack(wpId, activeTab) {
  1174. this.historyWpId = wpId;
  1175. this.activeTab = activeTab;
  1176. this.mapClick(this.historyWpId, activeTab);
  1177. },
  1178. currentActiveTab(penetrateType) {
  1179. this.penetrateType = penetrateType;
  1180. if (penetrateType === 3) {
  1181. this.getData(this.wpIds);
  1182. }
  1183. },
  1184. // 请求服务
  1185. requestData() {
  1186. FindBasicDataInfo({ wpId: this.wpIds }).then(({ data }) => {
  1187. this.StationinformationData = data;
  1188. if (Object.keys(data).length) {
  1189. let mapInfos = [];
  1190. this.mapList.forEach((item) => {
  1191. for (var key in data.sytc) {
  1192. if (item.code == key) {
  1193. data.sytc[key].name = item.text;
  1194. mapInfos.push({ ...data.sytc[key] });
  1195. }
  1196. }
  1197. });
  1198. mapInfos.forEach((element) => {
  1199. element.industryState = true;
  1200. element.companyState = true;
  1201. if (element.name == "山西") {
  1202. if (!Object.hasOwn(element, "sxgszzjrl")) {
  1203. element.companyState = false;
  1204. }
  1205. if (!Object.hasOwn(element, "sxcyzzjrl")) {
  1206. element.industryState = false;
  1207. }
  1208. this.homeSuspensionWindowsData.sxqyxx = { ...element };
  1209. } else if (element.name == "新疆") {
  1210. if (!Object.hasOwn(element, "xjgszzjrl")) {
  1211. element.companyState = false;
  1212. }
  1213. if (!Object.hasOwn(element, "xjcyzzjrl")) {
  1214. element.industryState = false;
  1215. }
  1216. this.homeSuspensionWindowsData.xjqyxx = { ...element };
  1217. } else if (element.name == "内蒙") {
  1218. if (!Object.hasOwn(element, "nmgszzjrl")) {
  1219. element.companyState = false;
  1220. }
  1221. if (!Object.hasOwn(element, "nmcyzzjrl")) {
  1222. element.industryState = false;
  1223. }
  1224. this.homeSuspensionWindowsData.nmqyxx = { ...element };
  1225. } else if (element.name == "西藏") {
  1226. if (!Object.hasOwn(element, "xzgszzjrl")) {
  1227. element.companyState = false;
  1228. }
  1229. if (!Object.hasOwn(element, "xzcyzzjrl")) {
  1230. element.industryState = false;
  1231. }
  1232. this.homeSuspensionWindowsData.xzqyxx = { ...element };
  1233. } else if (element.name == "山东") {
  1234. if (!Object.hasOwn(element, "sdgszzjrl")) {
  1235. element.companyState = false;
  1236. }
  1237. if (!Object.hasOwn(element, "sdcyzzjrl")) {
  1238. element.industryState = false;
  1239. }
  1240. this.homeSuspensionWindowsData.sdqyxx = { ...element };
  1241. } else if (element.name == "陕西") {
  1242. if (!Object.hasOwn(element, "xsgszzjrl")) {
  1243. element.companyState = false;
  1244. }
  1245. if (!Object.hasOwn(element, "xscyzzjrl")) {
  1246. element.industryState = false;
  1247. }
  1248. this.homeSuspensionWindowsData.xsqyxx = { ...element };
  1249. } else if (element.name == "河北") {
  1250. if (!Object.hasOwn(element, "hbgszzjrl")) {
  1251. element.companyState = false;
  1252. }
  1253. if (!Object.hasOwn(element, "hbcyzzjrl")) {
  1254. element.industryState = false;
  1255. }
  1256. this.homeSuspensionWindowsData.hbqyxx = { ...element };
  1257. }
  1258. });
  1259. this.powerDataHomeFd = [
  1260. {
  1261. title: "实时风速",
  1262. value: (data?.qt?.ssfs).toFixed(2),
  1263. dialogTitle: "实时风速",
  1264. max: 25,
  1265. unit: "m/s",
  1266. },
  1267. {
  1268. title: "实际功率",
  1269. value: (data?.qt?.fdsjgl).toFixed(2),
  1270. dialogTitle: "实际功率",
  1271. max: 3000,
  1272. unit: "MW",
  1273. },
  1274. {
  1275. title: "风能利用率",
  1276. value: (data?.qt?.fdfnlyl).toFixed(2),
  1277. dialogTitle: "风能利用率",
  1278. max: 100,
  1279. unit: "%",
  1280. },
  1281. ];
  1282. this.powerDataHomeGf = [
  1283. {
  1284. title: "光照强度",
  1285. value: (data?.qt?.gzzs).toFixed(2),
  1286. dialogTitle: "光照强度",
  1287. max: 3000,
  1288. unit: "W/m²",
  1289. },
  1290. {
  1291. title: "实际功率",
  1292. value: (data?.qt?.gfsjgl).toFixed(2),
  1293. dialogTitle: "实际功率",
  1294. max: 3000,
  1295. unit: "MW",
  1296. },
  1297. {
  1298. title: "光能利用率",
  1299. value: (data?.qt?.gffnlyl).toFixed(2),
  1300. dialogTitle: "光能利用率",
  1301. max: 100,
  1302. unit: "%",
  1303. },
  1304. ];
  1305. // if (this.tabShow == -1) {
  1306. // this.powerDataHome = [
  1307. // {
  1308. // title: "实时风速",
  1309. // value: (data?.qt?.ssfs).toFixed(2),
  1310. // dialogTitle: "实时风速",
  1311. // max: 3000,
  1312. // unit: "m/s",
  1313. // },
  1314. // {
  1315. // title: "实际功率",
  1316. // value: (data?.qt?.fdsjgl).toFixed(2),
  1317. // dialogTitle: "实际功率",
  1318. // max: 3000,
  1319. // unit: "MW",
  1320. // },
  1321. // {
  1322. // title: "风能利用率",
  1323. // value: (data?.qt?.fnlyl).toFixed(2),
  1324. // dialogTitle: "风能利用率",
  1325. // max: 100,
  1326. // unit: "%",
  1327. // },
  1328. // ];
  1329. // } else if (this.tabShow == 0) {
  1330. // if (this.currentTitle != "全国") {
  1331. // if (this.currentTitle.includes("风电场")) {
  1332. // this.powerDataHome = [
  1333. // {
  1334. // title: "实时风速",
  1335. // value: (data?.qt?.ssfs).toFixed(2),
  1336. // dialogTitle: "实时风速",
  1337. // max: 3000,
  1338. // unit: "m/s",
  1339. // },
  1340. // {
  1341. // title: "实际功率",
  1342. // value: (data?.qt?.fdsjgl).toFixed(2),
  1343. // dialogTitle: "实际功率",
  1344. // max: 3000,
  1345. // unit: "MW",
  1346. // },
  1347. // {
  1348. // title: "风能利用率",
  1349. // value: (data?.qt?.fnlyl).toFixed(2),
  1350. // dialogTitle: "风能利用率",
  1351. // max: 100,
  1352. // unit: "%",
  1353. // },
  1354. // ];
  1355. // } else if (this.currentTitle.includes("电站")) {
  1356. // this.powerDataHome = [
  1357. // {
  1358. // title: "光照强度",
  1359. // value: (data?.qt?.gzzs).toFixed(2),
  1360. // dialogTitle: "光照强度",
  1361. // max: 3000,
  1362. // unit: "W/m²",
  1363. // },
  1364. // {
  1365. // title: "实际功率",
  1366. // value: (data?.qt?.sjgl).toFixed(2),
  1367. // dialogTitle: "实际功率",
  1368. // max: 3000,
  1369. // unit: "MW",
  1370. // },
  1371. // {
  1372. // title: "光能利用率",
  1373. // value: (data?.qt?.fnlyl).toFixed(2),
  1374. // dialogTitle: "光能利用率",
  1375. // max: 100,
  1376. // unit: "%",
  1377. // },
  1378. // ];
  1379. // } else {
  1380. // this.powerDataHome = [
  1381. // {
  1382. // title: "实时风速",
  1383. // value: (data?.qt?.ssfs).toFixed(2),
  1384. // dialogTitle: "实时风速",
  1385. // max: 3000,
  1386. // unit: "m/s",
  1387. // },
  1388. // {
  1389. // title: "光照强度",
  1390. // value: (data?.qt?.gzzs).toFixed(2),
  1391. // dialogTitle: "光照强度",
  1392. // max: 3000,
  1393. // unit: "W/m²",
  1394. // },
  1395. // {
  1396. // title: "实际功率",
  1397. // value: (data?.qt?.sjgl).toFixed(2),
  1398. // dialogTitle: "实际功率",
  1399. // max: 3000,
  1400. // unit: "MW",
  1401. // },
  1402. // ];
  1403. // }
  1404. // } else {
  1405. // this.powerDataHome = [
  1406. // {
  1407. // title: "清洁能源",
  1408. // value: (data?.qt?.sjgl).toFixed(2),
  1409. // dialogTitle: "清洁能源实时功率详情",
  1410. // max: 3000,
  1411. // unit: "MW",
  1412. // },
  1413. // {
  1414. // title: "风电",
  1415. // value: (data?.qt?.fdsjgl).toFixed(2),
  1416. // dialogTitle: "风电实时功率详情",
  1417. // max: 3000,
  1418. // unit: "MW",
  1419. // },
  1420. // {
  1421. // title: "光伏",
  1422. // value: (data?.qt?.gfsjgl).toFixed(2),
  1423. // dialogTitle: "光伏实时功率详情",
  1424. // max: 3000,
  1425. // unit: "MW",
  1426. // },
  1427. // ];
  1428. // }
  1429. // } else if (this.tabShow == -2) {
  1430. // this.powerDataHome = [
  1431. // {
  1432. // title: "光照强度",
  1433. // value: (data?.qt?.gzzs).toFixed(2),
  1434. // dialogTitle: "光照强度",
  1435. // max: 3000,
  1436. // unit: "W/m²",
  1437. // },
  1438. // {
  1439. // title: "实际功率",
  1440. // value: (data?.qt?.sjgl).toFixed(2),
  1441. // dialogTitle: "实际功率",
  1442. // max: 3000,
  1443. // unit: "MW",
  1444. // },
  1445. // {
  1446. // title: "光能利用率",
  1447. // value: (data?.qt?.fnlyl).toFixed(2),
  1448. // dialogTitle: "光能利用率",
  1449. // max: 100,
  1450. // unit: "%",
  1451. // },
  1452. // ];
  1453. // }
  1454. let sbztmap = {
  1455. fd: {},
  1456. gf: {},
  1457. };
  1458. for (var key in data.mxztmap) {
  1459. let a = key.substring(3, key.length);
  1460. if (key.includes("gf_")) {
  1461. sbztmap.gf[a] = data.mxztmap[key];
  1462. } else if (key.includes("fd_")) {
  1463. sbztmap.fd[a] = data.mxztmap[key];
  1464. }
  1465. }
  1466. this.StationinformationData.sbztmap = sbztmap;
  1467. }
  1468. });
  1469. },
  1470. // 发电量
  1471. findProjectPlan() {
  1472. FindProjectplan({ wpId: this.wpIds }).then(({ data }) => {
  1473. this.qyPower = data.proplanmap;
  1474. this.ForecastPowerNewHome_fc = [
  1475. [
  1476. {
  1477. name: "日发电量",
  1478. id: "day",
  1479. value: data?.proplanmap
  1480. ? data?.proplanmap?.fd_r_sjdl < 0
  1481. ? 0
  1482. : (data?.proplanmap?.fd_r_sjdl / 10000).toFixed(2)
  1483. : 0,
  1484. color: 1,
  1485. total: data?.proplanmap
  1486. ? data?.proplanmap?.fd_r_jhdl < 0
  1487. ? 0
  1488. : data?.proplanmap?.fd_r_jhdl
  1489. : 0,
  1490. },
  1491. ],
  1492. [
  1493. {
  1494. name: "月发电量",
  1495. id: "month",
  1496. value: data?.proplanmap
  1497. ? data?.proplanmap?.fd_y_sjdl < 0
  1498. ? 0
  1499. : (data?.proplanmap?.fd_y_sjdl / 10000).toFixed(2)
  1500. : 0,
  1501. color: 1,
  1502. total: data?.proplanmap
  1503. ? data?.proplanmap?.fd_y_jhdl < 0
  1504. ? 0
  1505. : data?.proplanmap?.fd_y_jhdl
  1506. : 0,
  1507. },
  1508. ],
  1509. [
  1510. {
  1511. name: "年发电量",
  1512. id: "year",
  1513. value: data?.proplanmap
  1514. ? data?.proplanmap?.fd_n_sjdl < 0
  1515. ? 0
  1516. : (data?.proplanmap?.fd_n_sjdl / 10000).toFixed(2)
  1517. : 0,
  1518. color: 0,
  1519. total: data?.proplanmap
  1520. ? data?.proplanmap?.fd_n_jhdl < 0
  1521. ? 0
  1522. : data?.proplanmap?.fd_n_jhdl
  1523. : 0,
  1524. },
  1525. ],
  1526. ];
  1527. this.ForecastPowerNewHome_gf = [
  1528. [
  1529. {
  1530. name: "日发电量",
  1531. id: "day",
  1532. value: data?.proplanmap
  1533. ? data?.proplanmap?.gf_r_sjdl < 0
  1534. ? 0
  1535. : (data?.proplanmap?.gf_r_sjdl / 10000).toFixed(2)
  1536. : 0,
  1537. color: 1,
  1538. total: data?.proplanmap
  1539. ? data?.proplanmap?.gf_r_jhdl < 0
  1540. ? 0
  1541. : data?.proplanmap?.gf_r_jhdl
  1542. : 0,
  1543. },
  1544. ],
  1545. [
  1546. {
  1547. name: "月发电量",
  1548. id: "month",
  1549. value: data?.proplanmap
  1550. ? data?.proplanmap?.gf_y_sjdl < 0
  1551. ? 0
  1552. : (data?.proplanmap?.gf_y_sjdl / 10000).toFixed(2)
  1553. : 0,
  1554. color: 1,
  1555. total: data?.proplanmap
  1556. ? data?.proplanmap?.gf_y_jhdl < 0
  1557. ? 0
  1558. : data?.proplanmap?.gf_y_jhdl
  1559. : 0,
  1560. },
  1561. ],
  1562. [
  1563. {
  1564. name: "年发电量",
  1565. id: "year",
  1566. value: data?.proplanmap
  1567. ? data?.proplanmap?.gf_n_sjdl < 0
  1568. ? 0
  1569. : (data?.proplanmap?.gf_n_sjdl / 10000).toFixed(2)
  1570. : 0,
  1571. color: 0,
  1572. total: data?.proplanmap
  1573. ? data?.proplanmap?.gf_n_jhdl < 0
  1574. ? 0
  1575. : data?.proplanmap?.gf_n_jhdl
  1576. : 0,
  1577. },
  1578. ],
  1579. ];
  1580. this.ForecastPowerNewHome_qy = [
  1581. [
  1582. {
  1583. name: "日发电量",
  1584. id: "day",
  1585. value: data?.proplanmap
  1586. ? data?.proplanmap?.qy_r_sjdl < 0
  1587. ? 0
  1588. : (data?.proplanmap?.qy_r_sjdl / 10000).toFixed(2)
  1589. : 0,
  1590. color: 1,
  1591. total: data?.proplanmap
  1592. ? data?.proplanmap?.qy_r_jhdl < 0
  1593. ? 0
  1594. : data?.proplanmap?.qy_r_jhdl
  1595. : 0,
  1596. },
  1597. ],
  1598. [
  1599. {
  1600. name: "月发电量",
  1601. id: "month",
  1602. value: data?.proplanmap
  1603. ? data?.proplanmap?.qy_y_sjdl < 0
  1604. ? 0
  1605. : (data?.proplanmap?.qy_y_sjdl / 10000).toFixed(2)
  1606. : 0,
  1607. color: 1,
  1608. total: data?.proplanmap
  1609. ? data?.proplanmap?.qy_y_jhdl < 0
  1610. ? 0
  1611. : data?.proplanmap?.qy_y_jhdl
  1612. : 0,
  1613. },
  1614. ],
  1615. [
  1616. {
  1617. name: "年发电量",
  1618. id: "year",
  1619. value: data?.proplanmap
  1620. ? data?.proplanmap?.qy_n_sjdl < 0
  1621. ? 0
  1622. : (data?.proplanmap?.qy_n_sjdl / 10000).toFixed(2)
  1623. : 0,
  1624. color: 0,
  1625. total: data?.proplanmap
  1626. ? data?.proplanmap?.qy_n_jhdl < 0
  1627. ? 0
  1628. : data?.proplanmap?.qy_n_jhdl
  1629. : 0,
  1630. },
  1631. ],
  1632. ];
  1633. });
  1634. },
  1635. // 获取场站24小时功率图
  1636. getData(wpId) {
  1637. FindPowerInfo({ id: wpId }).then((res) => {
  1638. if (res.data) {
  1639. let Powertrend = {
  1640. // 图表所用单位
  1641. units: ["(万KWh)", ""],
  1642. value: [
  1643. {
  1644. title: "预测功率",
  1645. smooth: true, // 使用单位
  1646. value: [],
  1647. },
  1648. {
  1649. title: "理论功率",
  1650. smooth: true, // 使用单位
  1651. value: [],
  1652. },
  1653. {
  1654. title: "实际功率",
  1655. smooth: true, // 使用单位
  1656. value: [],
  1657. },
  1658. ],
  1659. };
  1660. Powertrend.value[0].value = res.data.map((item) => {
  1661. return {
  1662. dateTime: dayjs()
  1663. .startOf("date")
  1664. .add(item.hours, "hour")
  1665. .format("YYYY-MM-DD HH:mm:ss"),
  1666. value: item.bzgl,
  1667. };
  1668. });
  1669. Powertrend.value[1].value = res.data.map((item) => {
  1670. return {
  1671. dateTime: dayjs()
  1672. .startOf("date")
  1673. .add(item.hours, "hour")
  1674. .format("YYYY-MM-DD HH:mm:ss"),
  1675. value: item.llgl,
  1676. };
  1677. });
  1678. Powertrend.value[2].value = res.data.map((item) => {
  1679. return {
  1680. dateTime: dayjs()
  1681. .startOf("date")
  1682. .add(item.hours, "hour")
  1683. .format("YYYY-MM-DD HH:mm:ss"),
  1684. value: item.sjgl,
  1685. };
  1686. });
  1687. this.CurveValues = Powertrend.value;
  1688. }
  1689. });
  1690. },
  1691. firstRender(activeTab, showType, wpId, name) {
  1692. this.activeTab = activeTab;
  1693. this.tabShow = activeTab;
  1694. this.showType = showType;
  1695. //当wpId是FDC/GDC时,此时点击全部、风电、光伏按钮,展示山西地图及对应的公司信息
  1696. let fcId = wpId;
  1697. if ((wpId.includes("FDC") || wpId.includes("GDC")) && this.flag) {
  1698. if (name != "山西") {
  1699. fcId = this.historyWpId;
  1700. } else {
  1701. fcId = "SXJ_RGN";
  1702. }
  1703. this.flag = true;
  1704. this.penetrateType = 3;
  1705. this.currents = 1;
  1706. }
  1707. this.companyid = fcId;
  1708. this.companyname = name;
  1709. this.currentTitle = name || "全国";
  1710. this.mapClicks(fcId, activeTab);
  1711. this.currentActiveTab(this.penetrateType);
  1712. },
  1713. backMap(wpId, planBtnName) {
  1714. this.penetrateType = this.currents == 0 ? 0 : 3;
  1715. this.currents--;
  1716. this.currentTitle =
  1717. this.currents == 0
  1718. ? "全国"
  1719. : this.companyname
  1720. ? this.companyname
  1721. : planBtnName;
  1722. let wpIds =
  1723. this.currents == 0
  1724. ? "KGDL_FGS"
  1725. : this.companyname
  1726. ? this.companyid
  1727. : wpId;
  1728. this.tabShow = this.activeTab;
  1729. this.mapClickBack(wpIds, this.activeTab);
  1730. this.currentActiveTab(this.penetrateType);
  1731. },
  1732. clickLabel(wpId, planBtnName, penetrateType) {
  1733. this.penetrateType = penetrateType;
  1734. this.currents++;
  1735. if (this.currents > 1) {
  1736. this.currents = 2;
  1737. }
  1738. this.wpId =
  1739. wpId.includes("FDC") || wpId.includes("GDC")
  1740. ? wpId
  1741. : this.companyname
  1742. ? this.companyid
  1743. : wpId;
  1744. this.currentTitle =
  1745. wpId.includes("FDC") || wpId.includes("GDC")
  1746. ? planBtnName
  1747. : this.companyname
  1748. ? this.companyname
  1749. : planBtnName;
  1750. this.mapClick(this.wpId, this.activeTab);
  1751. if (wpId.includes("FDC") || wpId.includes("GDC")) {
  1752. this.tabShow = wpId.includes("FDC")
  1753. ? -1
  1754. : wpId.includes("GDC")
  1755. ? -2
  1756. : 0;
  1757. } else {
  1758. this.tabShow = this.activeTab;
  1759. }
  1760. this.flag = wpId.includes("FDC") || wpId.includes("GDC") ? true : false;
  1761. this.currentActiveTab(penetrateType);
  1762. },
  1763. // 全国实时负荷点击弹窗
  1764. showPowerChart({ dialogTitle, data, chartName = "", unit, type }) {
  1765. this.dialogGroupRealname = true;
  1766. this.unit = unit;
  1767. this.showName =
  1768. this.wpId.includes("FDC") || this.wpId.includes("GDC")
  1769. ? dialogTitle
  1770. : type == "fd"
  1771. ? "风电" + dialogTitle
  1772. : "光伏" + dialogTitle;
  1773. this.chartName = chartName ? chartName : dialogTitle;
  1774. this.groupList = data;
  1775. },
  1776. // 区域实时负荷点击弹窗
  1777. handleClick(uniformCode, title, unit) {
  1778. let key = "";
  1779. switch (uniformCode) {
  1780. case "SSPJFS":
  1781. key = "ssfs";
  1782. break;
  1783. case "SSZLLGL":
  1784. key = "llgl";
  1785. break;
  1786. case "SSZGL":
  1787. key = "sjgl";
  1788. break;
  1789. case "FNLYL":
  1790. key = "fnlyl";
  1791. break;
  1792. case "RPJGZD":
  1793. key = "gzzs";
  1794. break;
  1795. }
  1796. FindRealtimeInfo({
  1797. uniformCode,
  1798. wpId:
  1799. this.wpId +
  1800. (this.wpId.includes("FDC") || this.wpId.includes("GDC")
  1801. ? ""
  1802. : this.activeTab),
  1803. }).then(({ data }) => {
  1804. this.dialogVisible = true;
  1805. this.chartsData = data.map((item) => {
  1806. return {
  1807. dateTime: dayjs()
  1808. .startOf("date")
  1809. .add(item.hours, "hour")
  1810. .format("MM-DD HH:mm"),
  1811. value: item[key],
  1812. };
  1813. });
  1814. this.unit = unit;
  1815. this.showName = title;
  1816. });
  1817. },
  1818. handleUsingDetail(timetype, title) {
  1819. let format = timetype == "month" ? "YYYY-MM" : "YYYY";
  1820. this.showkey = "using";
  1821. this.electronType = timetype;
  1822. FindPlanproject({
  1823. wpId:
  1824. this.wpId +
  1825. (this.wpId.includes("FDC") || this.wpId.includes("GDC")
  1826. ? ""
  1827. : this.activeTab),
  1828. timetype,
  1829. }).then(({ data }) => {
  1830. this.dialogElectric = true;
  1831. let barList = data.map((item) => {
  1832. if (timetype == "month") {
  1833. return {
  1834. dateTime: dayjs()
  1835. .startOf("year")
  1836. .add(item.hours - 1, "month")
  1837. .format("YYYY-MM"),
  1838. value: item["lyxs"],
  1839. };
  1840. } else {
  1841. return {
  1842. dateTime: dayjs()
  1843. .startOf(timetype)
  1844. .subtract(item.hours, timetype)
  1845. .format(format),
  1846. value: item["lyxs"],
  1847. };
  1848. }
  1849. });
  1850. if (timetype == "month") {
  1851. this.barList = [
  1852. {
  1853. name: title,
  1854. yAxisIndex: 0,
  1855. value: barList,
  1856. },
  1857. ];
  1858. } else {
  1859. this.barList = [
  1860. {
  1861. name: title,
  1862. yAxisIndex: 0,
  1863. value: barList.reverse(),
  1864. },
  1865. ];
  1866. }
  1867. this.barList = [
  1868. {
  1869. name: title,
  1870. yAxisIndex: 0,
  1871. value: barList,
  1872. },
  1873. ];
  1874. this.showName = title;
  1875. });
  1876. },
  1877. handleElectricDetail(timetype, title, type) {
  1878. let wpId = "";
  1879. if (type) {
  1880. this.type = type;
  1881. type == "fc" ? (wpId = this.wpId + "-1") : (wpId = this.wpId + "-2");
  1882. } else {
  1883. wpId =
  1884. this.wpId +
  1885. (this.wpId.includes("FDC") || this.wpId.includes("GDC")
  1886. ? ""
  1887. : this.activeTab);
  1888. }
  1889. this.dialogElectric = true;
  1890. let format =
  1891. timetype == "day" ? "MM-DD" : timetype == "month" ? "YYYY-MM" : "YYYY";
  1892. this.showkey = "electric";
  1893. this.electronType = timetype;
  1894. FindPlanproject({
  1895. wpId,
  1896. timetype,
  1897. }).then(({ data }) => {
  1898. this.dialogElectric = true;
  1899. let sjdlList = data.map((item) => {
  1900. if (timetype == "month") {
  1901. return {
  1902. dateTime: dayjs()
  1903. .startOf("year")
  1904. .add(item.hours - 1, "month")
  1905. .format("YYYY-MM"),
  1906. value: item.sjdl.toFixed(2),
  1907. };
  1908. } else if (timetype == "year") {
  1909. return {
  1910. dateTime: dayjs()
  1911. .startOf(timetype)
  1912. .subtract(item.hours, timetype)
  1913. .format(format),
  1914. value: item.sjdl.toFixed(2),
  1915. };
  1916. } else {
  1917. return {
  1918. dateTime: dayjs()
  1919. .startOf("month")
  1920. .add(item.hours - 1, "day")
  1921. .format("MM-DD"),
  1922. value: item.sjdl.toFixed(2),
  1923. };
  1924. }
  1925. });
  1926. let jhdlList = data.map((item) => {
  1927. if (timetype == "month") {
  1928. return {
  1929. dateTime: dayjs()
  1930. .startOf("year")
  1931. .add(item.hours - 1, "month")
  1932. .format("YYYY-MM"),
  1933. value: item.jhdl.toFixed(2),
  1934. };
  1935. } else if (timetype == "year") {
  1936. return {
  1937. dateTime: dayjs()
  1938. .startOf(timetype)
  1939. .subtract(item.hours, timetype)
  1940. .format(format),
  1941. value: item.jhdl.toFixed(2),
  1942. };
  1943. } else {
  1944. return {
  1945. dateTime: dayjs()
  1946. .startOf("month")
  1947. .add(item.hours - 1, "day")
  1948. .format("MM-DD"),
  1949. value: item.jhdl.toFixed(2),
  1950. };
  1951. }
  1952. });
  1953. this.barList = [
  1954. {
  1955. name: "实际电量",
  1956. value:
  1957. timetype == "day" || timetype == "month"
  1958. ? sjdlList
  1959. : sjdlList.reverse(),
  1960. },
  1961. {
  1962. name: "计划电量",
  1963. value:
  1964. timetype == "day" || timetype == "month"
  1965. ? jhdlList
  1966. : jhdlList.reverse(),
  1967. },
  1968. ];
  1969. this.showName =
  1970. this.wpId.includes("FDC") || this.wpId.includes("GDC")
  1971. ? title
  1972. : type == "fc"
  1973. ? "风电" + title
  1974. : "光伏" + title;
  1975. });
  1976. },
  1977. },
  1978. unmounted() {
  1979. clearInterval(this.timmer);
  1980. clearInterval(this.timmer2);
  1981. this.timmer = null;
  1982. this.timmer2 = null;
  1983. },
  1984. watch: {
  1985. qyPower(val) {
  1986. if (Object.keys(val).length) {
  1987. let data = val;
  1988. this.fdlList = [
  1989. [
  1990. {
  1991. title: "日发电量",
  1992. id: "day",
  1993. value:
  1994. this.tabShow == 0
  1995. ? data.qy_r_sjdl
  1996. : this.tabShow == -1
  1997. ? data.fd_r_sjdl
  1998. : data.gf_r_sjdl,
  1999. color: 1,
  2000. total:
  2001. this.tabShow == 0
  2002. ? data.qy_r_jhdl
  2003. : this.tabShow == -1
  2004. ? data.fd_r_jhdl
  2005. : data.gf_r_jhdl,
  2006. },
  2007. ],
  2008. [
  2009. {
  2010. title: "月发电量",
  2011. id: "month",
  2012. value:
  2013. this.tabShow == 0
  2014. ? data.qy_y_sjdl
  2015. : this.tabShow == -1
  2016. ? data.fd_y_sjdl
  2017. : data.gf_y_sjdl,
  2018. color: 1,
  2019. total:
  2020. this.tabShow == 0
  2021. ? data.qy_y_jhdl
  2022. : this.tabShow == -1
  2023. ? data.fd_y_jhdl
  2024. : data.gf_y_jhdl,
  2025. },
  2026. ],
  2027. [
  2028. {
  2029. title: "年发电量",
  2030. id: "year",
  2031. value:
  2032. this.tabShow == 0
  2033. ? data.qy_n_sjdl
  2034. : this.tabShow == -1
  2035. ? data.fd_n_sjdl
  2036. : data.gf_n_sjdl,
  2037. color: 0,
  2038. total:
  2039. this.tabShow == 0
  2040. ? data.qy_n_jhdl
  2041. : this.tabShow == -1
  2042. ? data.fd_n_jhdl
  2043. : data.gf_n_jhdl,
  2044. },
  2045. ],
  2046. ];
  2047. }
  2048. },
  2049. },
  2050. computed: {
  2051. // 实时风速
  2052. windSpeedRota() {
  2053. let count = this.StationinformationData?.qt?.ssfs / 25;
  2054. let result = Number((310 * count + 50).toFixed(0));
  2055. if (result) {
  2056. if (result > 310) {
  2057. return "rotateZ(310deg)";
  2058. } else {
  2059. return "rotateZ(" + Number((310 * count + 50).toFixed(0)) + "deg)";
  2060. }
  2061. } else {
  2062. return "rotateZ(50deg)";
  2063. }
  2064. },
  2065. // 理论功率
  2066. ideaPowerRota() {
  2067. let zctj =
  2068. this.wpId.includes("FDC") || this.wpId.includes("GDC")
  2069. ? (
  2070. this.StationinformationData?.station[this.wpId]?.zjrl / 1000
  2071. ).toFixed(2)
  2072. : this.StationinformationData?.qt?.zzjrl;
  2073. let count = this.StationinformationData?.qt?.llgl / 1000 / zctj;
  2074. let result = Number((310 * count + 50).toFixed(0));
  2075. if (result) {
  2076. if (result > 310) {
  2077. return "rotateZ(310deg)";
  2078. } else {
  2079. return "rotateZ(" + Number((310 * count + 50).toFixed(0)) + "deg)";
  2080. }
  2081. } else {
  2082. return "rotateZ(50deg)";
  2083. }
  2084. },
  2085. // 光照指数
  2086. illuminationRota() {
  2087. let count = this.StationinformationData?.qt?.gzzs / 1200;
  2088. let result = Number((310 * count + 50).toFixed(0));
  2089. if (result) {
  2090. if (result > 310) {
  2091. return "rotateZ(310deg)";
  2092. } else {
  2093. return "rotateZ(" + Number((310 * count + 50).toFixed(0)) + "deg)";
  2094. }
  2095. } else {
  2096. return "rotateZ(50deg)";
  2097. }
  2098. },
  2099. //总保证功率
  2100. guarantee() {
  2101. let count = Number(this.StationinformationData?.qt?.fnlyl) / 100;
  2102. let result = Number((310 * count + 50).toFixed(0));
  2103. if (result) {
  2104. if (result > 310) {
  2105. return "rotateZ(310deg)";
  2106. } else {
  2107. return "rotateZ(" + Number((310 * count + 50).toFixed(0)) + "deg)";
  2108. }
  2109. } else {
  2110. return "rotateZ(50deg)";
  2111. }
  2112. },
  2113. // 实际功率
  2114. actualPowerRota() {
  2115. let zctj =
  2116. this.wpId.includes("FDC") || this.wpId.includes("GDC")
  2117. ? (
  2118. this.StationinformationData?.station[this.wpId]?.zjrl / 1000
  2119. ).toFixed(2)
  2120. : this.StationinformationData?.qt?.zzjrl;
  2121. let count = this.StationinformationData?.qt?.sjgl / 1000 / zctj;
  2122. let result = Number((310 * count + 50).toFixed(0));
  2123. if (result) {
  2124. if (result > 310) {
  2125. return "rotateZ(310deg)";
  2126. } else {
  2127. return "rotateZ(" + Number((310 * count + 50).toFixed(0)) + "deg)";
  2128. }
  2129. } else {
  2130. return "rotateZ(50deg)";
  2131. }
  2132. },
  2133. },
  2134. };
  2135. </script>
  2136. <style lang="less" scoped>
  2137. // ul,
  2138. // ul li,
  2139. // p {
  2140. // margin: 0;
  2141. // padding: 0;
  2142. // list-style: none;
  2143. // }
  2144. .date {
  2145. display: flex;
  2146. flex-direction: row;
  2147. align-items: center;
  2148. font-size: 12px;
  2149. font-family: Microsoft YaHei;
  2150. font-weight: 400;
  2151. color: #b3b3b3;
  2152. position: absolute;
  2153. right: 0;
  2154. top: -20px;
  2155. .day {
  2156. display: flex;
  2157. align-items: center;
  2158. justify-content: center;
  2159. width: 30px;
  2160. height: 22px;
  2161. border: 1px solid #0f5e30;
  2162. border-radius: 11px 0px 0px 11px;
  2163. background: rgba(67, 81, 107, 0.2);
  2164. &.active {
  2165. background: rgba(5, 187, 76, 0.4);
  2166. color: #ffffff;
  2167. }
  2168. }
  2169. .mouth {
  2170. display: flex;
  2171. align-items: center;
  2172. justify-content: center;
  2173. width: 30px;
  2174. height: 22px;
  2175. border-top: 1px solid #0f5e30;
  2176. border-bottom: 1px solid #0f5e30;
  2177. background: rgba(67, 81, 107, 0.2);
  2178. &.active {
  2179. background: rgba(5, 187, 76, 0.4);
  2180. color: #ffffff;
  2181. }
  2182. }
  2183. .year {
  2184. display: flex;
  2185. align-items: center;
  2186. justify-content: center;
  2187. width: 30px;
  2188. height: 22px;
  2189. border: 1px solid #0f5e30;
  2190. border-radius: 0px 11px 11px 0px;
  2191. background: rgba(67, 81, 107, 0.2);
  2192. &.active {
  2193. background: rgba(5, 187, 76, 0.4);
  2194. color: #ffffff;
  2195. }
  2196. }
  2197. }
  2198. .home-content {
  2199. height: calc(100% - 4.17vh); //45px
  2200. width: 100%;
  2201. position: relative;
  2202. .center-content {
  2203. width: 100%;
  2204. height: 100%;
  2205. }
  2206. .left-content {
  2207. position: absolute;
  2208. padding-left: 0.91vw; //30px
  2209. padding-top: 2.78vh; //30px
  2210. z-index: 4;
  2211. //总资产
  2212. .zjrl-count {
  2213. .count-item {
  2214. font-family: Adobe Heiti Std;
  2215. font-weight: normal;
  2216. color: #ffffff;
  2217. display: flex;
  2218. flex-direction: column;
  2219. .text {
  2220. letter-spacing: 0.12vw; //4px
  2221. }
  2222. .count {
  2223. font-size: 3.24vh; //35px
  2224. font-family: Bicubik;
  2225. color: #05bb4c;
  2226. padding-top: 0.93vh; //10px
  2227. i {
  2228. margin-left: 0.3vw; //10px
  2229. font-style: normal;
  2230. font-family: Adobe Heiti Std;
  2231. font-size: 1.48vh; //16px
  2232. }
  2233. }
  2234. }
  2235. .count-item + .count-item {
  2236. margin-top: 2.78vh; //30px
  2237. }
  2238. }
  2239. .position {
  2240. // position: absolute;
  2241. // left: 1.793vw;
  2242. // bottom: 6.481vh;
  2243. margin-top: 7.41vh; //121px
  2244. margin-left: 0.334vw; //11
  2245. color: #05bb4c;
  2246. display: flex;
  2247. align-items: center;
  2248. justify-content: flex-end;
  2249. .position-icon {
  2250. margin-right: 0.3vw; //10px
  2251. svg {
  2252. width: 0.638vw;
  2253. height: 0.638vw;
  2254. }
  2255. }
  2256. }
  2257. //公司资产
  2258. .gszjrl-count {
  2259. margin-top: 2.5vh; //27
  2260. width: 23.701vw; //762px
  2261. height: 32.5vh; //351px
  2262. display: flex;
  2263. justify-content: space-between;
  2264. .wind-content,
  2265. .voltaic-content {
  2266. width: 49%; //373px
  2267. height: 100%;
  2268. background: rgba(0, 0, 0, 0.4);
  2269. padding: 1.39vh 0.46vw;
  2270. .unit {
  2271. color: #768190;
  2272. font-style: normal;
  2273. font-size: 0.608vw;
  2274. }
  2275. .wind-top {
  2276. .wind-title {
  2277. // height: calc(100% - 11.2vh);
  2278. padding: 0 0 0.93vh 0.46vw;
  2279. border-bottom: 1px solid rgb(51, 51, 51);
  2280. display: flex;
  2281. align-items: center;
  2282. .company {
  2283. margin-right: 1.12vw; //37px
  2284. font-size: 0.61vw;
  2285. }
  2286. }
  2287. .wind-counts {
  2288. position: relative;
  2289. border-bottom: 0.09vh solid rgba(51, 51, 51, 1); //1px
  2290. &::before {
  2291. content: "";
  2292. width: 0.4vw; //13px
  2293. height: 0.37vh; //4px
  2294. background: #05bb4c;
  2295. position: absolute;
  2296. left: 0;
  2297. bottom: 0;
  2298. transform: translateY(50%);
  2299. }
  2300. }
  2301. }
  2302. .wind-top,
  2303. .wind-bottom {
  2304. .wind-title {
  2305. border-bottom: 0.09vh solid rgba(51, 51, 51, 1); //1px
  2306. // font-size: 1.48vh; //16px
  2307. font-size: 0.607vw; //16px
  2308. font-family: Microsoft YaHei;
  2309. font-weight: 400;
  2310. color: #ffffff;
  2311. }
  2312. .wind-counts {
  2313. width: 100%;
  2314. height: 100%;
  2315. display: flex;
  2316. justify-content: space-between;
  2317. align-items: flex-start;
  2318. padding: 2.13vh 0;
  2319. .wind-icon {
  2320. margin: 0 1.75vw 0 0.7vw;
  2321. width: 2.43vw;
  2322. height: 7.41vh;
  2323. display: flex;
  2324. justify-content: flex-start;
  2325. align-items: center;
  2326. img {
  2327. width: 100%;
  2328. }
  2329. }
  2330. .wind-count {
  2331. font-size: 0.55vw; //14px
  2332. height: 7.41vh;
  2333. flex: 1;
  2334. display: flex;
  2335. flex-direction: column;
  2336. justify-content: space-around;
  2337. align-items: flex-start;
  2338. .wind-count-row {
  2339. width: 5.17vw;
  2340. display: flex;
  2341. align-items: center;
  2342. justify-content: space-between;
  2343. flex-wrap: nowrap;
  2344. .name {
  2345. color: #999;
  2346. font-size: 0.55vw;
  2347. white-space: nowrap;
  2348. }
  2349. &:nth-child(1) {
  2350. .value {
  2351. color: #05bb4c;
  2352. width: 1.82vw;
  2353. height: 100%;
  2354. font-size: 0.67vw;
  2355. display: flex;
  2356. justify-content: center;
  2357. align-items: center;
  2358. }
  2359. }
  2360. &:not(:first-child) {
  2361. .value {
  2362. font-style: italic;
  2363. width: 1.82vw;
  2364. height: 100%;
  2365. display: flex;
  2366. justify-content: center;
  2367. align-items: center;
  2368. margin: 0 0.52vw 0 0.52vw;
  2369. font-size: 0.61vw;
  2370. }
  2371. }
  2372. }
  2373. }
  2374. }
  2375. }
  2376. .wind-bottom {
  2377. .wind-title {
  2378. display: flex;
  2379. justify-content: space-between;
  2380. align-items: center;
  2381. padding: 1.389vh 0.304vw;
  2382. .text {
  2383. color: #999;
  2384. }
  2385. .value {
  2386. font-style: italic;
  2387. }
  2388. .unit {
  2389. }
  2390. }
  2391. .wind-counts {
  2392. }
  2393. }
  2394. }
  2395. }
  2396. //节能减排
  2397. .jnjp-count {
  2398. width: 23.701vw; //762px
  2399. // height: 14.63vh; //158px
  2400. margin-top: 1.85vh; //20px
  2401. display: flex;
  2402. justify-content: space-between;
  2403. .jnjp {
  2404. width: 49%; //373px
  2405. // height: 14.63vh;
  2406. background: rgba(0, 0, 0, 0.4);
  2407. padding: 1.389vh 0.729vw;
  2408. .jnjp-title {
  2409. display: flex;
  2410. align-items: center;
  2411. justify-content: space-between;
  2412. padding: 0 0.243vw 1.389vh 8px;
  2413. border-bottom: 0.09vh solid rgba(51, 51, 51, 1); //1px
  2414. .text {
  2415. font-size: 1.48vh; //16px
  2416. font-family: Microsoft YaHei;
  2417. color: #fff;
  2418. }
  2419. .unit {
  2420. font-size: 1.11vh; //12px
  2421. font-family: Microsoft YaHei;
  2422. color: #b1b1b1;
  2423. }
  2424. }
  2425. .jnjp-content {
  2426. display: flex;
  2427. align-items: center;
  2428. justify-content: space-around;
  2429. padding: 1.296vh 0 1.296vh 0;
  2430. .jnjp-item {
  2431. width: 25%;
  2432. display: flex;
  2433. flex-direction: column;
  2434. justify-content: flex-start;
  2435. align-items: center;
  2436. .jnjp-icon {
  2437. display: flex;
  2438. justify-content: center;
  2439. align-items: center;
  2440. width: 1.215vw;
  2441. height: 3.704vh;
  2442. svg {
  2443. width: 100%;
  2444. height: 100%;
  2445. }
  2446. }
  2447. .jnjp-value {
  2448. font-size: 1.3vh; //14px
  2449. font-family: SourceHanSansCN;
  2450. margin-top: calc(1.204vh / 2);
  2451. }
  2452. .jnjp-name {
  2453. font-size: 1.11vh; //12px
  2454. font-family: Microsoft YaHei;
  2455. margin-top: calc(1.204vh / 2);
  2456. }
  2457. }
  2458. }
  2459. }
  2460. }
  2461. }
  2462. .right-content {
  2463. position: absolute;
  2464. padding-right: 0.91vw; //30px
  2465. padding-top: 14.35vh; //155px
  2466. z-index: 4;
  2467. right: 0;
  2468. top: 0;
  2469. .gjzb {
  2470. display: flex;
  2471. justify-content: space-between;
  2472. // width: 30.99vw; //1020px
  2473. width: 26.922vw;
  2474. height: 16.204vh;
  2475. .gjzb-fd,
  2476. .gjzb-gf {
  2477. width: 49%;
  2478. height: 100%;
  2479. padding: 1.39vh 0.46vw;
  2480. background: rgba(0, 0, 0, 0.4);
  2481. display: flex;
  2482. justify-content: flex-start;
  2483. align-items: flex-start;
  2484. flex-direction: column;
  2485. .gjzb-title {
  2486. padding: 0 0 0.93vh 0.46vw;
  2487. width: 100%;
  2488. display: flex;
  2489. font-family: Microsoft YaHei;
  2490. border-bottom: 0.09vh solid rgba(51, 51, 51, 1); //1px
  2491. }
  2492. .gjzb-content {
  2493. flex: 1;
  2494. width: 100%;
  2495. display: flex;
  2496. justify-content: space-around;
  2497. align-items: center;
  2498. .gjzb-charts {
  2499. cursor: pointer;
  2500. width: calc((100% / 3) - 0.456vw); //15
  2501. height: 11.759vh; //127
  2502. display: flex;
  2503. flex-direction: column;
  2504. justify-content: center;
  2505. .chart {
  2506. height: 7.87vh; //85
  2507. }
  2508. .title {
  2509. display: flex;
  2510. flex-direction: column;
  2511. align-items: center;
  2512. }
  2513. }
  2514. }
  2515. }
  2516. }
  2517. .jrtsxq {
  2518. display: flex;
  2519. justify-content: space-between;
  2520. // width: 30.99vw; //1020px
  2521. width: 26.92vw; //1020px
  2522. margin-top: 1.85vh; //20px
  2523. .jrtsxq-fd,
  2524. .jrtsxq-gf {
  2525. width: 49%; //433px
  2526. height: 35.694vh; //385.5px
  2527. background: rgba(0, 0, 0, 0.4);
  2528. .jrts-top {
  2529. display: flex;
  2530. flex-direction: column;
  2531. justify-content: flex-end;
  2532. height: 12.22vh; //132px
  2533. padding: 1.204vh 0.46vw 0 0.46vw; //13px 15px
  2534. .titles {
  2535. display: flex;
  2536. align-items: center;
  2537. justify-content: space-between;
  2538. margin-bottom: 1.481vh; //16px
  2539. height: 4.537vh;
  2540. .unit {
  2541. font-family: Microsoft YaHei;
  2542. font-weight: 400;
  2543. font-style: normal;
  2544. color: #7d838c;
  2545. }
  2546. .amount {
  2547. display: flex;
  2548. flex-direction: row;
  2549. align-items: center;
  2550. position: relative;
  2551. .fengji-icon {
  2552. position: absolute;
  2553. border-radius: 50%;
  2554. width: 4.259vh;
  2555. height: 4.259vh;
  2556. box-shadow: inset 0.046vw -1px 1px 0px @green;
  2557. animation: fadenum 5s linear infinite;
  2558. @keyframes fadenum {
  2559. 100% {
  2560. transform: rotate(360deg);
  2561. }
  2562. }
  2563. }
  2564. .amount-image {
  2565. transform: translateX(15%);
  2566. width: 2.856vw;
  2567. }
  2568. .amount-nums {
  2569. margin-left: 0.547vw; //5px
  2570. display: flex;
  2571. flex-direction: row;
  2572. align-items: baseline;
  2573. .num-item {
  2574. color: #ffffff;
  2575. font-family: AgencyFB;
  2576. margin-right: 0.15vw; //5px
  2577. }
  2578. }
  2579. }
  2580. .info-nums {
  2581. display: flex;
  2582. align-items: baseline;
  2583. color: #7d838c;
  2584. .nums {
  2585. color: #ffffff;
  2586. margin: 0 0.46vh; //5px
  2587. }
  2588. }
  2589. }
  2590. .types {
  2591. display: flex;
  2592. align-items: center;
  2593. height: 5.833vh; //63px
  2594. width: 100%;
  2595. border-bottom: 1px solid rgba(163, 164, 166, 0.2);
  2596. .type-model {
  2597. display: flex;
  2598. flex-direction: column;
  2599. justify-content: space-between;
  2600. align-items: center;
  2601. width: 16%;
  2602. // height: 75%;
  2603. .type-name {
  2604. font-family: Agency FB;
  2605. margin-bottom: 1.204vh; //13px
  2606. }
  2607. // .type-num {
  2608. // height: 15px;
  2609. // }
  2610. }
  2611. }
  2612. }
  2613. .jrts-center {
  2614. height: 16.204vh; //175px
  2615. width: 100%;
  2616. padding: 0 0.46vw; //13px 15px
  2617. .tabSwitchover {
  2618. text-align: right;
  2619. padding: 1.204vh 0 0.556vh 0; //13px 6px
  2620. }
  2621. .power-wrapper {
  2622. display: flex;
  2623. flex-direction: column; // padding: 1% 5%;
  2624. height: 13.241vh; //143px
  2625. width: 100%;
  2626. .power-charts {
  2627. display: flex;
  2628. flex-direction: row;
  2629. align-items: center;
  2630. width: 100%;
  2631. // height: 3.889vh; //12px
  2632. height: calc(13.241vh / 3); //12px
  2633. .power-name-old {
  2634. color: #999999;
  2635. }
  2636. .power-name {
  2637. white-space: nowrap;
  2638. color: #999999;
  2639. margin-right: 0.243vw; //8px
  2640. }
  2641. .power-item {
  2642. display: flex;
  2643. align-items: center;
  2644. flex: 1; //292px
  2645. height: 100%;
  2646. .power-value-old {
  2647. display: flex;
  2648. flex-direction: row;
  2649. align-items: center;
  2650. justify-content: space-between;
  2651. margin-bottom: -12px;
  2652. padding: 0 15px;
  2653. .green-value {
  2654. color: #05bb4c;
  2655. }
  2656. .purple-value {
  2657. color: #4b55ae;
  2658. }
  2659. }
  2660. .power-value {
  2661. font-family: Bicubik;
  2662. display: flex;
  2663. align-items: center;
  2664. span:nth-child(1) {
  2665. width: 0.152vw;
  2666. height: 0.152vw;
  2667. border-radius: 50%;
  2668. display: inline-block;
  2669. background-color: #fff;
  2670. margin-right: 0.152vw; //5px
  2671. margin-left: 0.152vw; //5px
  2672. }
  2673. .green-value {
  2674. color: #05bb4c;
  2675. }
  2676. .purple-value {
  2677. color: #4b55ae;
  2678. }
  2679. }
  2680. }
  2681. }
  2682. }
  2683. }
  2684. .jrts-bottom {
  2685. width: 100%;
  2686. height: 7.176vh; //77.5
  2687. display: flex;
  2688. justify-content: space-around;
  2689. align-items: center;
  2690. background: rgba(0, 0, 0, 0.15);
  2691. .ylyxs,
  2692. .nlyxs {
  2693. width: 6.563vw; //216
  2694. display: flex;
  2695. justify-content: space-around;
  2696. align-items: center;
  2697. .lyxs-value {
  2698. font-family: Bicubik;
  2699. color: #05bb4c;
  2700. }
  2701. .lyxs-unit {
  2702. font-family: Microsoft YaHei;
  2703. color: #b3b3b3;
  2704. }
  2705. }
  2706. .border {
  2707. width: 0.03vw; //1px
  2708. height: 3.426vh; //37
  2709. background: #4a4f56;
  2710. }
  2711. }
  2712. }
  2713. }
  2714. .power-chart {
  2715. margin-top: 1.852vh; //20
  2716. width: 26.922vw; //886
  2717. height: 15.278vh; //165
  2718. background: rgba(0, 0, 0, 0.4);
  2719. padding: 0 0.456vw; //15
  2720. .power-title {
  2721. padding: 1.481vh 0 1.296vh 0; //16 14
  2722. border-bottom: 1px solid rgba(163, 164, 166, 0.2);
  2723. }
  2724. }
  2725. }
  2726. }
  2727. </style>