Index.vue 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216
  1. <template>
  2. <view class="content">
  3. <cu-custom bgColor="bg-blacks" :isBack="false">
  4. <block slot="right">
  5. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
  6. </block>
  7. <block slot="right">
  8. <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
  9. <view class="cu-tag looknumber" style="margin-top: -2%;">
  10. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  11. </view>
  12. </view>
  13. </block>
  14. <block slot="right">
  15. </block>
  16. <block slot="content">{{address}}</block>
  17. <block slot="right">
  18. <view class="plus" @tap="showModal" data-target="viewModal">+</view>
  19. </block>
  20. </cu-custom>
  21. <!-- 抽屉组件 -->
  22. <div>
  23. <drawer ref="drawer"></drawer>
  24. </div>
  25. <div class="plusDrawer" @tap="hideModal">
  26. <plusDrawer ref="plusDrawer"></plusDrawer>
  27. </div>
  28. <scroll-view scroll-y class="DrawerPage" :class="modalName == 'viewModal' ? 'show' : ''">
  29. <!--时间组件-->
  30. <view class="time">
  31. <view class="timeimageshizhong" @tap="common.navTo('/components/weatherProphet/WeatherProphet')">
  32. <image src="../../static/picture/dafeng.png" style="width: 20px;height: 20px;margin-left: 10px;"></image>
  33. </view>
  34. <view class="timeText">推荐时间:{{dateNow}}</view>
  35. <view class="timeIcon">
  36. <image src="../../static/picture/qingwhite.png" style="width: 25px;height: 25px;"></image>
  37. </view>
  38. </view>
  39. <!--电量卡片-->
  40. <view class="InformationCard">
  41. <view class="informationCardAll">
  42. <view class="informationCardTextOne">
  43. <view class="informationCardText">
  44. <view class="textSilver" @tap="
  45. common.navTo(
  46. '/components/detail/Detail?callTargetName=安全天数&callTargetUnit=天&pointKey=' +
  47. windpowerstationdetail.target_comprehensive_indicators.aqts_real.ednaId
  48. )
  49. ">
  50. 安全天数(天):
  51. </view>
  52. <view class="textWhite">
  53. {{ windpowerstationdetail.target_comprehensive_indicators.aqts }}
  54. </view>
  55. </view>
  56. <view class="informationCardTextzj">
  57. <view class="textSilver" @tap="
  58. common.navTo(
  59. '/components/detail/Detail?callTargetName=装机容量&callTargetUnit=mv&pointKey=' +
  60. windpowerstationdetail.target_comprehensive_indicators.zjrl_real.ednaId
  61. )
  62. ">
  63. 装机容量(mv):
  64. </view>
  65. <view class="textWhite3">
  66. {{ windpowerstationdetail.target_comprehensive_indicators.zjrl }}
  67. </view>
  68. </view>
  69. </view>
  70. <view class="informationCardTextTwo">
  71. <view class="informationCardTextNo1">
  72. <view class="textSilver" @tap="
  73. common.navTo(
  74. '/components/detail/Detail?callTargetName=日发电量&callTargetUnit=kwh&pointKey=' +
  75. windpowerstationdetail.target_comprehensive_indicators.rfdl_real.ednaId
  76. )
  77. ">
  78. 日发(万kwh):
  79. </view>
  80. <view class="textWhite">
  81. {{ windpowerstationdetail.target_comprehensive_indicators.rfdl }}
  82. </view>
  83. </view>
  84. <view class="informationCardText3">
  85. <view class="textSilver" @tap="
  86. common.navTo(
  87. '/components/detail/Detail?callTargetName=预测发电量&callTargetUnit=kwh&pointKey=' +
  88. windpowerstationdetail.target_comprehensive_indicators.ycfdl_real.ednaId
  89. )
  90. ">
  91. 预测发(万kwh):
  92. </view>
  93. <view class="textWhite2">
  94. {{ windpowerstationdetail.target_comprehensive_indicators.ycfdl }}
  95. </view>
  96. </view>
  97. <view class="informationCardText2">
  98. <view class="textSilver" @tap="
  99. common.navTo(
  100. '/components/detail/Detail?callTargetName=上网电量&callTargetUnit=kwh&pointKey=' +
  101. windpowerstationdetail.target_comprehensive_indicators.swdl_real.ednaId
  102. )
  103. ">
  104. 上网(万kwh):
  105. </view>
  106. <view class="textWhite">
  107. {{ windpowerstationdetail.target_comprehensive_indicators.swdl }}
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <!--风速卡片-->
  114. <view class="speedPower">
  115. <view class="cardinstallredSpeed" @tap="
  116. common.navTo(
  117. '/components/detail/Detail?callTargetName=平均风速&callTargetUnit=kw/h&pointKey=' + windpowerstationdetail.target_windSpeed_power.pjfs_real.ednaId
  118. )
  119. ">
  120. <view class="cardinstalltitleRed">
  121. 平均风速(m/s)
  122. <!-- <view class="textWhitekuangSpeed">(m/s)</view> -->
  123. </view>
  124. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.pjfs }}</view>
  125. <view class="cardinstallnumberredmin">
  126. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.pjfsMin }}</view>
  127. </view>
  128. <view class="cardinstallnumberredmax">
  129. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.pjfsMax }}</view>
  130. </view>
  131. </view>
  132. <view class="cardinstallredSpeed" @tap="
  133. common.navTo(
  134. '/components/detail/Detail?callTargetName=预测风速&callTargetUnit=kw/h&pointKey=' + windpowerstationdetail.target_windSpeed_power.ycfs_real.ednaId
  135. )
  136. ">
  137. <view class="cardinstalltitleRed">
  138. 预测风速(m/s)
  139. <!-- <view class="textWhitekuangSpeed">(m/s)</view> -->
  140. </view>
  141. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.ycfs }}</view>
  142. <view class="cardinstallnumberredmin">
  143. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.ycfsMin }}</view>
  144. </view>
  145. <view class="cardinstallnumberredmax">
  146. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.ycfsMax }}</view>
  147. </view>
  148. </view>
  149. <view class="cardinstallredSpeed" @tap="
  150. common.navTo(
  151. '/components/detail/Detail?callTargetName=实际功率&callTargetUnit=kw&pointKey=' + windpowerstationdetail.target_windSpeed_power.sjgl_real.ednaId
  152. )
  153. ">
  154. <view class="cardinstalltitleRed">
  155. 实际功率(万kw)
  156. <!-- <view class="textWhitekuang">(kw)</view> -->
  157. </view>
  158. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.sjgl }}</view>
  159. <view class="cardinstallnumberredmin">
  160. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.sjglMin }}</view>
  161. </view>
  162. <view class="cardinstallnumberredmax">
  163. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.sjglMax }}</view>
  164. </view>
  165. </view>
  166. <view class="cardinstallredSpeed" @tap="
  167. common.navTo(
  168. '/components/detail/Detail?callTargetName=理论功率&callTargetUnit=kw&pointKey=' + windpowerstationdetail.target_windSpeed_power.llgl_real.ednaId
  169. )
  170. ">
  171. <view class="cardinstalltitleRed">
  172. 理论功率(万kw)
  173. <!-- <view class="textWhitekuang">(kw)</view> -->
  174. </view>
  175. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.llgl }}</view>
  176. <view class="cardinstallnumberredmin">
  177. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.llglMin }}</view>
  178. </view>
  179. <view class="cardinstallnumberredmax">
  180. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.llglMax }}</view>
  181. </view>
  182. </view>
  183. </view>
  184. <!--接入卡片-->
  185. <view class="interfaceCard">
  186. <view class="interfaceCardSmallTop">
  187. <view class="interfaceCardSmall">
  188. <view class="AccessCardimage">
  189. <image src="../../static/picture/001.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  190. </view>
  191. <view class="AccessCardText">接入</view>
  192. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.jr }}</view>
  193. </view>
  194. <view class="interfaceCardSmall">
  195. <view class="AccessCardimage">
  196. <image src="../../static/picture/002.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  197. </view>
  198. <view class="AccessCardText">待机</view>
  199. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.dj }}</view>
  200. </view>
  201. <view class="interfaceCardSmall">
  202. <view class="AccessCardimage">
  203. <image src="../../static/picture/003.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  204. </view>
  205. <view class="AccessCardText">运行</view>
  206. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.yx }}</view>
  207. </view>
  208. </view>
  209. <view class="interfaceCardSmallTop">
  210. <view class="interfaceCardSmall">
  211. <view class="AccessCardimage">
  212. <image src="../../static/picture/004.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  213. </view>
  214. <view class="AccessCardText">故障</view>
  215. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.gz }}</view>
  216. </view>
  217. <view class="interfaceCardSmall">
  218. <view class="AccessCardimage">
  219. <image src="../../static/picture/005.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  220. </view>
  221. <view class="AccessCardText">维护</view>
  222. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.wh }}</view>
  223. </view>
  224. <view class="interfaceCardSmall">
  225. <view class="AccessCardimage">
  226. <image src="../../static/picture/006.png" style="width: 18px;height:19px;margin-top: 9px;margin-left: 7px;"></image>
  227. </view>
  228. <view class="AccessCardText">离线</view>
  229. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.lx }}</view>
  230. </view>
  231. </view>
  232. </view>
  233. <!--进度条-->
  234. <view class="progressBar">
  235. <view class="progressBarAll">
  236. <view class="progressBarOne">
  237. <view class="progressBarLeft">
  238. <view class="progressBarLeftText">{{ windpowerstationdetail.index_electricQuantity.yfdl }}kwh</view>
  239. </view>
  240. <view class="progressBarText">月计划发电量进度条</view>
  241. <view class="progressBarRight">
  242. <view class="progressBarRightText">{{ windpowerstationdetail.index_electricQuantity.yjhfdl }}kwh</view>
  243. </view>
  244. </view>
  245. <view class="cu-progress round radius striped active">
  246. <view class="bg-olive" :style="[{ width: loading ? monthOlive : '' }]"></view>
  247. <view class="bg-angrey" :style="[{ width: loading ? monthAngrey : '' }]"></view>
  248. </view>
  249. </view>
  250. <view class="progressBarAll">
  251. <view class="progressBarOne">
  252. <view class="progressBarLeft">
  253. <view class="progressBarLeftText">{{ windpowerstationdetail.index_electricQuantity.nfdl }}kwh</view>
  254. </view>
  255. <view class="progressBarText">年计划发电量进度条</view>
  256. <view class="progressBarRight">
  257. <view class="progressBarRightText">{{ windpowerstationdetail.index_electricQuantity.njhfdl }}kwh</view>
  258. </view>
  259. </view>
  260. <view class="cu-progress round radius striped active">
  261. <view class="bg-olive" :style="[{ width: loading ? yearOlive : '' }]"></view>
  262. <view class="bg-angrey" :style="[{ width: loading ? yearAngrey : '' }]"></view>
  263. </view>
  264. </view>
  265. </view>
  266. <scroll-view scroll-x class="horizontalSlider">
  267. <view class="slide">
  268. <view class="monthlyUtilizationHours" @tap="
  269. common.navTo(
  270. '/components/detail/Detail?callTargetName=月利用小时&callTargetUnit=h&pointKey=' +
  271. windpowerstationdetail.index_target_basic_indicators.ylyxs_real.ednaId
  272. )
  273. ">
  274. 月利用小时(h):{{ windpowerstationdetail.index_target_basic_indicators.ylyxs }}
  275. </view>
  276. <view class="yearlyUtilizationHours" @tap="
  277. common.navTo(
  278. '/components/detail/Detail?callTargetName=年利用小时&callTargetUnit=h&pointKey=' +
  279. windpowerstationdetail.index_target_basic_indicators.nlyxs_real.ednaId
  280. )
  281. ">
  282. 年利用小时(h):{{ windpowerstationdetail.index_target_basic_indicators.nlyxs }}
  283. </view>
  284. <view class="comprehensiveServicePowerConsumptionRate" @tap="
  285. common.navTo(
  286. '/components/detail/Detail?callTargetName=综合厂利用率&callTargetUnit=%&pointKey=' +
  287. windpowerstationdetail.index_target_basic_indicators.zhcydl_real.ednaId
  288. )
  289. ">
  290. 综合厂用电率(%):{{ windpowerstationdetail.index_target_basic_indicators.zhcydl }}
  291. </view>
  292. <view class="equipmentAvailability" @tap="
  293. common.navTo(
  294. '/components/detail/Detail?callTargetName=设备可利用率&callTargetUnit=%&pointKey=' +
  295. windpowerstationdetail.index_target_basic_indicators.sbklyl_real.ednaId
  296. )
  297. ">
  298. 设备可利用率(%):{{ windpowerstationdetail.index_target_basic_indicators.sbklyl }}
  299. </view>
  300. <view class="sulfurDioxideEmissionReduction" @tap="
  301. common.navTo(
  302. '/components/detail/Detail?callTargetName= 减排二氧化硫&callTargetUnit=吨&pointKey=' +
  303. windpowerstationdetail.index_target_basic_indicators.jpeyhl_real.ednaId
  304. )
  305. ">
  306. 减排二氧化硫(吨):{{ windpowerstationdetail.index_target_basic_indicators.jpeyhl }}
  307. </view>
  308. <view class="carbonDioxideReduction" @tap="
  309. common.navTo(
  310. '/components/detail/Detail?callTargetName=减排二氧化碳&callTargetUnit=吨&pointKey=' +
  311. windpowerstationdetail.index_target_basic_indicators.jpeyht_real.ednaId
  312. )
  313. ">
  314. 减排二氧化碳(吨):{{ windpowerstationdetail.index_target_basic_indicators.jpeyht }}
  315. </view>
  316. <view class="waterSaving" @tap="
  317. common.navTo(
  318. '/components/detail/Detail?callTargetName=节约用水&callTargetUnit=吨&pointKey=' +
  319. windpowerstationdetail.index_target_basic_indicators.jyys_real.ednaId
  320. )
  321. ">
  322. 节约用水(吨):{{ windpowerstationdetail.index_target_basic_indicators.jyys }}
  323. </view>
  324. <view class="saveStandardCoal" @tap="
  325. common.navTo(
  326. '/components/detail/Detail?callTargetName=节约标煤&callTargetUnit=吨&pointKey=' +
  327. windpowerstationdetail.index_target_basic_indicators.jybm_real.ednaId
  328. )
  329. ">
  330. 节约标煤(吨):{{ windpowerstationdetail.index_target_basic_indicators.jybm }}
  331. </view>
  332. <view class="mttr" @tap="
  333. common.navTo(
  334. '/components/detail/Detail?callTargetName=mttr&callTargetUnit=h&pointKey=' + windpowerstationdetail.index_target_basic_indicators.mttr_real.ednaId
  335. )
  336. ">
  337. mttr(h):{{ windpowerstationdetail.index_target_basic_indicators.mttr }}
  338. </view>
  339. <view class="mtbf" @tap="
  340. common.navTo(
  341. '/components/detail/Detail?callTargetName=mtbf&callTargetUnit=h&pointKey=' + windpowerstationdetail.index_target_basic_indicators.mtbf_real.ednaId
  342. )
  343. ">
  344. mtbf(h):{{ windpowerstationdetail.index_target_basic_indicators.mtbf }}
  345. </view>
  346. </view>
  347. </scroll-view>
  348. <!--折线图-->
  349. <view class="lineChart">
  350. <view class="qiun-charts">
  351. <view class="speedPowerDiagram">风速功率曲线图</view>
  352. <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchstart="touchLineA"></canvas>
  353. </view>
  354. </view>
  355. <!-- 柱状图 -->
  356. <view class="Histogram">
  357. <view class="HistogramTitle">五项损失柱状图</view>
  358. <view class="choice">
  359. <view class="directGeneration">
  360. <image src="../../static/picture/dianliang/dianlianglan.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  361. <view class="directGenerationText" @click="directGeneration()">应发</view>
  362. </view>
  363. <view class="powerGeneration">
  364. <image src="../../static/picture/dianliang/dianlianglv.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  365. <view class="powerGenerationText" @click="powerGeneration()">日发</view>
  366. </view>
  367. <view class="faultPower">
  368. <image src="../../static/picture/dianliang/dianlianghong.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  369. <view class="faultPowerText" @click="faultPower()">故障损失</view>
  370. </view>
  371. <view class="maintenancePower">
  372. <image src="../../static/picture/dianliang/dianliangcheng.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  373. <view class="maintenancePowerText" @click="maintenancePower()">检修损失</view>
  374. </view>
  375. <view class="limitedPower">
  376. <image src="../../static/picture/dianliang/dianliangfen.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  377. <view class="limitedPowerText" @click="limitedPower()">限电损失</view>
  378. </view>
  379. <view class="performancePower">
  380. <image src="../../static/picture/dianliang/dianliangzi.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  381. <view class="performancePowerText" @click="performancePower()">性能损失</view>
  382. </view>
  383. <view class="AffectedPower">
  384. <image src="../../static/picture/dianliang/dianlianghui.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  385. <view class="AffectedPowerText" @click="AffectedPower()">受累损失</view>
  386. </view>
  387. </view>
  388. <view class="qiun-chart"><canvas canvas-id="canvasColumnStack" id="canvasColumnStack" class="chart" @touchstart="touchColumn"></canvas></view>
  389. </view>
  390. <!-- 风电场卡片 -->
  391. <view class="windStation">
  392. <scroll-view scroll-x class="scrollWindStationCard">
  393. <view class="windStationCardContainer" :style="{'width':windStationCardContainerwidth}">
  394. <view v-for="(item,index) in plusDrawerList" :key="index">
  395. <WindFarmcard ref="windFarmcard"></WindFarmcard>
  396. </view>
  397. </view>
  398. </scroll-view>
  399. <!-- 底导航栏挡住部分显示 -->
  400. <view style="width: 100%; height: 60px; background-color: #242424;"></view>
  401. </view>
  402. </scroll-view>
  403. <view class="DrawerClose" :class="modalName == 'viewModal' ? 'show' : ''" @tap="hideModal"><text class="cuIcon-pullright"></text></view>
  404. </view>
  405. </template>
  406. <script>
  407. import plusDrawer from '../../components/drawer/plusDrawer.vue';
  408. import drawer from '../../components/drawer/threeLineDrawer.vue';
  409. import uCharts from '../../components/tools/u-charts/u-charts.js';
  410. import WindFarmcard from '../../components/windFarmcard/WindFarmcard.vue';
  411. var _self;
  412. var canvaLineA = null;
  413. var canvaColumn = null;
  414. var canvaLineB1 = null;
  415. var canvaLineB2 = null;
  416. var canvaLineB3 = null;
  417. var canvaLineB4 = null;
  418. var canvaLineB5 = null;
  419. export default {
  420. components: {
  421. drawer: drawer,
  422. plusDrawer: plusDrawer,
  423. WindFarmcard: WindFarmcard
  424. },
  425. data: function() {
  426. return {
  427. c1: {
  428. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18'],
  429. series: [{
  430. name: '应发电量(万kwh)',
  431. data: [0, 0, 0, 0, 0, 0, 0],
  432. color: '#007BF9'
  433. },
  434. {
  435. name: '日发电量(万kwh)',
  436. data: [18, 13, 12, 17, 13, 7, 11],
  437. color: '#4EB64E'
  438. },
  439. {
  440. name: '故障损失电量(万kwh)',
  441. data: [17, 15, 17, 21, 16, 8, 10],
  442. color: '#F14E51'
  443. },
  444. {
  445. name: '检修损失电量(万kwh)',
  446. data: [14, 17, 19, 20, 6, 14, 12],
  447. color: '#FF6B3E'
  448. },
  449. {
  450. name: '限电损失电量(万kwh)',
  451. data: [14, 17, 19, 20, 6, 14, 12],
  452. color: '#DC62D2'
  453. },
  454. {
  455. name: '性能损失电量(万kwh)',
  456. data: [15, 17, 19, 20, 6, 4, 12],
  457. color: '#9DA3F6'
  458. },
  459. {
  460. name: '受累损失电量(万kwh)',
  461. data: [14, 17, 19, 20, 6, 4, 12],
  462. color: '#9E9E9E'
  463. }
  464. ]
  465. },
  466. key_aqts: '',
  467. fdcstatusmodule: {
  468. fdcstatusmodule: ''
  469. },
  470. index_windStation_cardmodule: {
  471. index_windStation_cardmodule: ''
  472. },
  473. index_curve_columnar_five_lossmodule: {
  474. index_curve_columnar_five_lossmodule: ''
  475. },
  476. index_curve_columnar_windSpeed_powermodule: {
  477. index_curve_columnar_windSpeed_powermodule: ''
  478. },
  479. badge: 22,
  480. drawerList: [],
  481. permissionsInformation: [],
  482. plusDrawerList: [],
  483. leftNavigationtitle: '监视功能分组',
  484. modalName: null,
  485. address: '河北能源集团',
  486. windPowerStationId: '',
  487. inconList: ['form', 'favor', 'question', 'edit'],
  488. minaverageSpeed: '12',
  489. maxaverageSpeed: '25',
  490. loading: false,
  491. cWidth: '',
  492. cHeight: '',
  493. pixelRatio: 1,
  494. serverData: '',
  495. dayHair: false,
  496. fault: false,
  497. overhaul: false,
  498. powerLimitation: false,
  499. performance: false,
  500. toBeInvolved: false,
  501. Xzuobiao: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18'],
  502. rifa: [18, 13, 12, 17, 13, 7, 11],
  503. guzhang: [17, 15, 17, 21, 16, 8, 10],
  504. jianxiu: [14, 17, 19, 20, 6, 14, 12],
  505. xiandian: [14, 17, 19, 20, 6, 14, 12],
  506. xingneng: [15, 17, 19, 20, 6, 4, 12],
  507. shoulei: [14, 17, 19, 20, 6, 4, 12],
  508. clickFlag: 'stack',
  509. windStationCardCWidth: '',
  510. windStationCardCHeight: '',
  511. windStationCardPixelRatio: 1,
  512. monthOlive: '',
  513. monthAngrey: '',
  514. yearOlive: '',
  515. yearAngrey: '',
  516. FDC: 'CL_FDC',
  517. socketTask_target_comprehensive_indicators: '',
  518. socketTask_target_windSpeed_power: '',
  519. socketTask_index_windturbine_status: '',
  520. socketTask_index_electricQuantity: '',
  521. socketTask_index_target_basic_indicators: '',
  522. socketTask_index_curve_columnar_five_loss: '',
  523. socketTask_index_curve_columnar_windSpeed_power: '',
  524. windpowerstationdetail: {
  525. target_comprehensive_indicators: '',
  526. target_windSpeed_power: '',
  527. index_windturbine_status: '',
  528. index_electricQuantity: '',
  529. index_target_basic_indicators: ''
  530. },
  531. module: true,
  532. cardmodule: true,
  533. dateNow: "",
  534. windFielddata:[],
  535. windFieldsituation: [],
  536. lineChartdata:[],
  537. windStationCardContainerwidth:'',
  538. };
  539. },
  540. created: function() {
  541. this.timeNow();
  542. this.viewUserid();
  543. this.monitoringAuthority();
  544. this.judgeWindfield();
  545. this.address = this.dataprocessing.getWindPowerStationName();
  546. this.FDC = this.dataprocessing.getWindPowerStationId();
  547. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  548. },
  549. onLoad: function() {
  550. let that = this;
  551. setTimeout(function() {
  552. that.loading = true;
  553. }, 500);
  554. _self = this;
  555. this.address = this.dataprocessing.getWindPowerStationName();
  556. this.FDC = this.dataprocessing.getWindPowerStationId();
  557. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  558. this.cWidth = uni.upx2px(750);
  559. this.cHeight = uni.upx2px(400);
  560. this.getServerData();
  561. this.getColumnData();
  562. this.windStationCardCWidth = 250;
  563. this.windStationCardCHeight = 150;
  564. this.target_comprehensive_indicators();
  565. this.index_electricQuantity();
  566. this.index_target_basic_indicators();
  567. this.index_curve_columnar_five_loss();
  568. this.target_windSpeed_power();
  569. this.index_windturbine_status();
  570. this.getWindStationCardData();
  571. this.index_curve_columnar_windSpeed_power();
  572. this.index_windStation_card(); /* P6F8与P6F4冲突 */
  573. },
  574. computed: {
  575. backStageIp: function() {
  576. return this.$store.state.wholeSituationBackStageIp;
  577. },
  578. backStagePort: function() {
  579. return this.$store.state.wholeSituationBackStagePort;
  580. },
  581. windpowerstationNameToId: function() {
  582. return this.$store.state.windpowerstationNameToId;
  583. }
  584. },
  585. onHide() {
  586. this.$refs.drawer.closeDrawer();
  587. this.hideModal();
  588. },
  589. onShow: function() {
  590. this.address = this.dataprocessing.getWindPowerStationName();
  591. this.FDC = this.dataprocessing.getWindPowerStationId();
  592. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  593. this.viewUserid();
  594. this.monitoringAuthority();
  595. this.judgeWindfield();
  596. },
  597. methods: {
  598. timeNow() {
  599. this.getTimeFormat();
  600. this.dateNow = new Date().Format('yyyy年MM月dd hh:mm');
  601. setTimeout(function() {
  602. this.dateNow = new Date().Format('yyyy年MM月dd hh:mm');
  603. }, 60000);
  604. },
  605. viewUserid: function() {
  606. this.plusDrawerList = uni.getStorageSync('plusList');
  607. let _this = this;
  608. for (let i = 0; i < _this.plusDrawerList.length; i++) {
  609. _this.$refs.windFarmcard[i].getWindfieldid(_this.plusDrawerList[i]);
  610. }
  611. this.windStationCardContainerwidth = (260 * this.plusDrawerList.length - 260)+"px";
  612. console.log(this.windStationCardContainerwidth)
  613. },
  614. judgeWindfield:function(){
  615. this.plusDrawerList = uni.getStorageSync('plusList');
  616. let _this = this;
  617. for (let i = 0; i < _this.plusDrawerList.length; i++) {
  618. _this.$refs.windFarmcard[i].getWindfieldid(_this.plusDrawerList[i]);
  619. }
  620. },
  621. monitoringAuthority: function() {
  622. this.drawerList = uni.getStorageSync('leftlist1');
  623. },
  624. async index_curve_columnar_five_loss() {
  625. Date.prototype.Format = function(fmt) {
  626. var o = {
  627. 'M+': this.getMonth() + 1, //月份
  628. 'd+': this.getDate(), //日
  629. 'h+': this.getHours(), //小时
  630. 'm+': this.getMinutes(), //分
  631. 's+': this.getSeconds(), //秒
  632. 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
  633. S: this.getMilliseconds() //毫秒
  634. };
  635. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
  636. for (var k in o)
  637. if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
  638. k]).substr(('' + o[k]).length));
  639. return fmt;
  640. };
  641. let _this = this;
  642. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  643. this.socketTask_index_curve_columnar_five_loss = uni.connectSocket({
  644. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  645. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_7',
  646. success(data) {
  647. console.log('websocket连接成功');
  648. }
  649. });
  650. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  651. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  652. this.socketTask_index_curve_columnar_five_loss.onOpen(res => {
  653. console.log('WebSocket连接正常打开中...!');
  654. this.is_open_socket = true;
  655. // 注:只有连接正常打开中 ,才能正常收到消息
  656. this.socketTask_index_curve_columnar_five_loss.onMessage(res => {
  657. //console.log("收到服务器内容:" + res.data);
  658. _this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule = JSON.parse(res.data);
  659. let ColumnStack = this.c1;
  660. if (this.dayHair) {
  661. ColumnStack = {
  662. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  663. series: [{
  664. name: '日发电量(万kwh)',
  665. data: [18, 13, 12, 17, 13, 7, 11, 15, 13],
  666. color: '#4EB64E'
  667. }]
  668. };
  669. ColumnStack.categories = [];
  670. ColumnStack.series[0].data = [];
  671. for (let i = 0; i < this.rifa.length; i++) {
  672. ColumnStack.categories.push(this.Xzuobiao[i]);
  673. // console.log(ColumnStack.categories)
  674. ColumnStack.series[0].data.push(this.rifa[i]);
  675. // console.log(ColumnStack.series[1].data)
  676. }
  677. }
  678. if (this.fault) {
  679. ColumnStack = {
  680. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  681. series: [{
  682. name: '故障损失电量(万kwh)',
  683. data: [17, 15, 17, 21, 16, 8, 10, 17, 11],
  684. color: '#F14E51'
  685. }]
  686. };
  687. ColumnStack.categories = [];
  688. ColumnStack.series[0].data = [];
  689. for (let i = 0; i < this.guzhang.length; i++) {
  690. ColumnStack.categories.push(this.Xzuobiao[i]);
  691. // console.log(ColumnStack.categories)
  692. ColumnStack.series[0].data.push(this.guzhang[i]);
  693. // console.log(ColumnStack.series[1].data)
  694. }
  695. }
  696. if (this.overhaul) {
  697. ColumnStack = {
  698. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  699. series: [{
  700. name: '检修损失电量(万kwh)',
  701. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  702. color: '#FF6B3E'
  703. }]
  704. };
  705. ColumnStack.categories = [];
  706. ColumnStack.series[0].data = [];
  707. for (let i = 0; i < this.jianxiu.length; i++) {
  708. ColumnStack.categories.push(this.Xzuobiao[i]);
  709. // console.log(ColumnStack.categories)
  710. ColumnStack.series[0].data.push(this.jianxiu[i]);
  711. // console.log(ColumnStack.series[1].data)
  712. }
  713. }
  714. if (this.powerLimitation) {
  715. ColumnStack = {
  716. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  717. series: [{
  718. name: '限电损失电量(万kwh)',
  719. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  720. color: '#DC62D2'
  721. }]
  722. };
  723. ColumnStack.categories = [];
  724. ColumnStack.series[0].data = [];
  725. for (let i = 0; i < this.xiandian.length; i++) {
  726. ColumnStack.categories.push(this.Xzuobiao[i]);
  727. // console.log(ColumnStack.categories)
  728. ColumnStack.series[0].data.push(this.xiandian[i]);
  729. // console.log(ColumnStack.series[1].data)
  730. }
  731. }
  732. if (this.performance) {
  733. ColumnStack = {
  734. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  735. series: [{
  736. name: '性能损失电量(万kwh)',
  737. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  738. color: '#9DA3F6'
  739. }]
  740. };
  741. ColumnStack.categories = [];
  742. ColumnStack.series[0].data = [];
  743. for (let i = 0; i < this.xingneng.length; i++) {
  744. ColumnStack.categories.push(this.Xzuobiao[i]);
  745. // console.log(ColumnStack.categories)
  746. ColumnStack.series[0].data.push(this.xingneng[i]);
  747. // console.log(ColumnStack.series[1].data)
  748. }
  749. }
  750. if (this.toBeInvolved) {
  751. ColumnStack = {
  752. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  753. series: [{
  754. name: '受累损失电量(万kwh)',
  755. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  756. color: '#9E9E9E'
  757. }]
  758. };
  759. ColumnStack.categories = [];
  760. ColumnStack.series[0].data = [];
  761. for (let i = 0; i < this.shoulei.length; i++) {
  762. ColumnStack.categories.push(this.Xzuobiao[i]);
  763. // console.log(ColumnStack.categories)
  764. ColumnStack.series[0].data.push(this.shoulei[i]);
  765. // console.log(ColumnStack.series[1].data)
  766. }
  767. }
  768. ColumnStack.categories = [];
  769. //ColumnStack.series[0].data=[];
  770. ColumnStack.series[1].data = [];
  771. ColumnStack.series[2].data = [];
  772. ColumnStack.series[3].data = [];
  773. ColumnStack.series[4].data = [];
  774. ColumnStack.series[5].data = [];
  775. ColumnStack.series[6].data = [];
  776. /* LineA.series[0].name=this.targetName; */
  777. _this.Xzuobiao = [];
  778. _this.rifa = [];
  779. _this.guzhang = [];
  780. _this.jianxiu = [];
  781. _this.xiandian = [];
  782. _this.xingneng = [];
  783. _this.shoulei = [];
  784. for (var i = 0; i < _this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  785. .length; i++) {
  786. let time = new Date(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  787. [i].time).Format('MM/dd');
  788. ColumnStack.categories.push(time);
  789. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  790. //ColumnStack.series[0].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value7);
  791. ColumnStack.series[1].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  792. _this.FDC][i].value1);
  793. ColumnStack.series[2].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  794. _this.FDC][i].value2);
  795. ColumnStack.series[3].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  796. _this.FDC][i].value3);
  797. ColumnStack.series[4].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  798. _this.FDC][i].value4);
  799. ColumnStack.series[5].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  800. _this.FDC][i].value5);
  801. ColumnStack.series[6].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  802. _this.FDC][i].value6);
  803. _this.Xzuobiao.push(time);
  804. // _this.$set(_this.rifa,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value1);
  805. // _this.$set(_this.guzhang,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value2);
  806. // _this.$set(_this.jianxiu,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value3);
  807. // _this.$set(_this.xiandian,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value4);
  808. // _this.$set(_this.xingneng,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value5);
  809. // _this.$set(_this.shoulei,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value6);
  810. _this.rifa.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][
  811. i
  812. ].value1);
  813. _this.guzhang.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  814. [i].value2);
  815. _this.jianxiu.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  816. [i].value3);
  817. _this.xiandian.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  818. [i].value4);
  819. _this.xingneng.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  820. [i].value5);
  821. _this.shoulei.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  822. [i].value6);
  823. //ColumnStack.series[1].data.push(_this.rifa[i]);
  824. }
  825. _this.showColumnStack('canvasColumnStack', ColumnStack);
  826. });
  827. });
  828. },
  829. /* async index_windStation_card() {
  830. let _this = this;
  831. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  832. this.socketTask_index_windStation_card = uni.connectSocket({
  833. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  834. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_8',
  835. success(data) {
  836. console.log('websocket连接成功');
  837. }
  838. });
  839. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  840. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  841. this.socketTask_index_windStation_card.onOpen(res => {
  842. console.log('WebSocket连接正常打开中...!');
  843. this.is_open_socket = true;
  844. // 注:只有连接正常打开中 ,才能正常收到消息
  845. this.socketTask_index_windStation_card.onMessage(res => {
  846. //console.log("收到服务器内容:" + res.data);
  847. _this.index_windStation_cardmodule.index_windStation_cardmodule = JSON.parse(res.data);
  848. console.log();
  849. });
  850. });
  851. }, */
  852. async index_windStation_card() {
  853. let _this = this;
  854. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  855. this.socketTask_index_windStation_card = uni.connectSocket({
  856. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  857. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_8',
  858. success(data) {
  859. console.log('websocket连接成功');
  860. }
  861. });
  862. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  863. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  864. this.socketTask_index_windStation_card.onOpen(res => {
  865. console.log('WebSocket连接正常打开中...!');
  866. this.is_open_socket = true;
  867. // 注:只有连接正常打开中 ,才能正常收到消息
  868. this.socketTask_index_windStation_card.onMessage(res => {
  869. //console.log("收到服务器内容:" + res.data);
  870. let json = JSON.parse(res.data);
  871. for (let x in json) {
  872. _this.windFielddata.push(json[x])
  873. }
  874. for(let i=0;i<_this.plusDrawerList.length;i++){
  875. _this.$refs.windFarmcard[i].getWindfielddata(_this.windFielddata[i]);
  876. }
  877. _this.cardmodule = false;
  878. });
  879. });
  880. },
  881. async index_curve_columnar_windSpeed_power() {
  882. Date.prototype.Format = function(fmt) {
  883. var o = {
  884. 'M+': this.getMonth() + 1, //月份
  885. 'd+': this.getDate(), //日
  886. 'h+': this.getHours(), //小时
  887. 'm+': this.getMinutes(), //分
  888. 's+': this.getSeconds(), //秒
  889. 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
  890. S: this.getMilliseconds() //毫秒
  891. };
  892. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
  893. for (var k in o)
  894. if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
  895. k]).substr(('' + o[k]).length));
  896. return fmt;
  897. };
  898. let _this = this;
  899. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  900. this.socketTask_index_curve_columnar_windSpeed_power = uni.connectSocket({
  901. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  902. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_6',
  903. /* url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_7/functionNumber_4', */
  904. success(data) {
  905. console.log('websocket连接成功');
  906. }
  907. });
  908. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  909. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  910. this.socketTask_index_curve_columnar_windSpeed_power.onOpen(res => {
  911. console.log('WebSocket连接正常打开中...!');
  912. this.is_open_socket = true;
  913. // 注:只有连接正常打开中 ,才能正常收到消息
  914. this.socketTask_index_curve_columnar_windSpeed_power.onMessage(res => {
  915. //console.log("收到服务器内容:" + res.data);
  916. let json = JSON.parse(res.data);
  917. console.log(json);
  918. for(let x in json){
  919. _this.lineChartdata.push(json[x]);
  920. }
  921. for(let i=0;i<_this.plusDrawerList.length;i++){
  922. _this.$refs.windFarmcard[i].getUchartData(_this.lineChartdata[i]);
  923. }
  924. console.log("---");
  925. let LineA = {
  926. categories: [],
  927. series: [{
  928. name: '功率',
  929. data: [],
  930. color: '#4BB94B',
  931. textColor: '#FFFFFF',
  932. textSize: this.seriesTextSize,
  933. format: val => {
  934. return val + 'kwh';
  935. },
  936. index: 0,
  937. legendShape: 'circle'
  938. },
  939. {
  940. name: '风速',
  941. data: [],
  942. color: '#E82E2F',
  943. textColor: '#FFFFFF',
  944. textSize: this.seriesTextSize,
  945. format: val => {
  946. return val + 'm/s';
  947. },
  948. index: 1,
  949. legendShape: 'circle'
  950. },
  951. {
  952. name: '理论功率',
  953. data: [],
  954. color: '#F5A83C',
  955. textColor: '#FFFFFF',
  956. textSize: this.seriesTextSize,
  957. format: val => {
  958. return val + 'kwh';
  959. },
  960. index: 0,
  961. legendShape: 'circle'
  962. },
  963. {
  964. name: '预测功率',
  965. data: [],
  966. color: '#4A80B1',
  967. textColor: '#FFFFFF',
  968. textSize: this.seriesTextSize,
  969. format: val => {
  970. return val + 'kwh';
  971. },
  972. index: 1,
  973. legendShape: 'circle'
  974. }
  975. ]
  976. };
  977. let LineB = {
  978. categories: [],
  979. series: [{
  980. name: '功率',
  981. data: [],
  982. color: '#4BB94B',
  983. textColor: '#FFFFFF',
  984. textSize: this.seriesTextSize,
  985. format: val => {
  986. return val + 'kwh';
  987. },
  988. index: 0,
  989. legendShape: 'circle'
  990. },
  991. {
  992. name: '风速',
  993. data: [],
  994. color: '#E82E2F',
  995. textColor: '#FFFFFF',
  996. textSize: this.seriesTextSize,
  997. format: val => {
  998. return val + 'm/s';
  999. },
  1000. index: 1,
  1001. legendShape: 'circle'
  1002. },
  1003. {
  1004. name: '理论功率',
  1005. data: [],
  1006. color: '#F5A83C',
  1007. textColor: '#FFFFFF',
  1008. textSize: this.seriesTextSize,
  1009. format: val => {
  1010. return val + 'kwh';
  1011. },
  1012. index: 0,
  1013. legendShape: 'circle'
  1014. },
  1015. {
  1016. name: '预测功率',
  1017. data: [],
  1018. color: '#4A80B1',
  1019. textColor: '#FFFFFF',
  1020. textSize: this.seriesTextSize,
  1021. format: val => {
  1022. return val + 'kwh';
  1023. },
  1024. index: 1,
  1025. legendShape: 'circle'
  1026. }
  1027. ]
  1028. };
  1029. let LineC = {
  1030. categories: [],
  1031. series: [{
  1032. name: '功率',
  1033. data: [],
  1034. color: '#4BB94B',
  1035. textColor: '#FFFFFF',
  1036. textSize: this.seriesTextSize,
  1037. format: val => {
  1038. return val + 'kwh';
  1039. },
  1040. index: 0,
  1041. legendShape: 'circle'
  1042. },
  1043. {
  1044. name: '风速',
  1045. data: [],
  1046. color: '#E82E2F',
  1047. textColor: '#FFFFFF',
  1048. textSize: this.seriesTextSize,
  1049. format: val => {
  1050. return val + 'm/s';
  1051. },
  1052. index: 1,
  1053. legendShape: 'circle'
  1054. },
  1055. {
  1056. name: '理论功率',
  1057. data: [],
  1058. color: '#F5A83C',
  1059. textColor: '#FFFFFF',
  1060. textSize: this.seriesTextSize,
  1061. format: val => {
  1062. return val + 'kwh';
  1063. },
  1064. index: 0,
  1065. legendShape: 'circle'
  1066. },
  1067. {
  1068. name: '预测功率',
  1069. data: [],
  1070. color: '#4A80B1',
  1071. textColor: '#FFFFFF',
  1072. textSize: this.seriesTextSize,
  1073. format: val => {
  1074. return val + 'kwh';
  1075. },
  1076. index: 1,
  1077. legendShape: 'circle'
  1078. }
  1079. ]
  1080. };
  1081. let LineD = {
  1082. categories: [],
  1083. series: [{
  1084. name: '功率',
  1085. data: [],
  1086. color: '#4BB94B',
  1087. textColor: '#FFFFFF',
  1088. textSize: this.seriesTextSize,
  1089. format: val => {
  1090. return val + 'kwh';
  1091. },
  1092. index: 0,
  1093. legendShape: 'circle'
  1094. },
  1095. {
  1096. name: '风速',
  1097. data: [],
  1098. color: '#E82E2F',
  1099. textColor: '#FFFFFF',
  1100. textSize: this.seriesTextSize,
  1101. format: val => {
  1102. return val + 'm/s';
  1103. },
  1104. index: 1,
  1105. legendShape: 'circle'
  1106. },
  1107. {
  1108. name: '理论功率',
  1109. data: [],
  1110. color: '#F5A83C',
  1111. textColor: '#FFFFFF',
  1112. textSize: this.seriesTextSize,
  1113. format: val => {
  1114. return val + 'kwh';
  1115. },
  1116. index: 0,
  1117. legendShape: 'circle'
  1118. },
  1119. {
  1120. name: '预测功率',
  1121. data: [],
  1122. color: '#4A80B1',
  1123. textColor: '#FFFFFF',
  1124. textSize: this.seriesTextSize,
  1125. format: val => {
  1126. return val + 'kwh';
  1127. },
  1128. index: 1,
  1129. legendShape: 'circle'
  1130. }
  1131. ]
  1132. };
  1133. let LineE = {
  1134. categories: [],
  1135. series: [{
  1136. name: '功率',
  1137. data: [],
  1138. color: '#4BB94B',
  1139. textColor: '#FFFFFF',
  1140. textSize: this.seriesTextSize,
  1141. format: val => {
  1142. return val + 'kwh';
  1143. },
  1144. index: 0,
  1145. legendShape: 'circle'
  1146. },
  1147. {
  1148. name: '风速',
  1149. data: [],
  1150. color: '#E82E2F',
  1151. textColor: '#FFFFFF',
  1152. textSize: this.seriesTextSize,
  1153. format: val => {
  1154. return val + 'm/s';
  1155. },
  1156. index: 1,
  1157. legendShape: 'circle'
  1158. },
  1159. {
  1160. name: '理论功率',
  1161. data: [],
  1162. color: '#F5A83C',
  1163. textColor: '#FFFFFF',
  1164. textSize: this.seriesTextSize,
  1165. format: val => {
  1166. return val + 'kwh';
  1167. },
  1168. index: 0,
  1169. legendShape: 'circle'
  1170. },
  1171. {
  1172. name: '预测功率',
  1173. data: [],
  1174. color: '#4A80B1',
  1175. textColor: '#FFFFFF',
  1176. textSize: this.seriesTextSize,
  1177. format: val => {
  1178. return val + 'kwh';
  1179. },
  1180. index: 1,
  1181. legendShape: 'circle'
  1182. }
  1183. ]
  1184. };
  1185. let Line = {
  1186. categories: [],
  1187. series: [{
  1188. name: '功率',
  1189. data: [],
  1190. color: '#4BB94B',
  1191. textColor: '#FFFFFF',
  1192. textSize: this.seriesTextSize,
  1193. format: val => {
  1194. return val + 'kwh';
  1195. },
  1196. index: 0,
  1197. legendShape: 'circle'
  1198. },
  1199. {
  1200. name: '风速',
  1201. data: [],
  1202. color: '#E82E2F',
  1203. textColor: '#FFFFFF',
  1204. textSize: this.seriesTextSize,
  1205. format: val => {
  1206. return val + 'm/s';
  1207. },
  1208. index: 1,
  1209. legendShape: 'circle'
  1210. },
  1211. {
  1212. name: '理论功率',
  1213. data: [],
  1214. color: '#F5A83C',
  1215. textColor: '#FFFFFF',
  1216. textSize: this.seriesTextSize,
  1217. format: val => {
  1218. return val + 'kwh';
  1219. },
  1220. index: 0,
  1221. legendShape: 'circle'
  1222. },
  1223. {
  1224. name: '预测功率',
  1225. data: [],
  1226. color: '#4A80B1',
  1227. textColor: '#FFFFFF',
  1228. textSize: this.seriesTextSize,
  1229. format: val => {
  1230. return val + 'kwh';
  1231. },
  1232. index: 1,
  1233. legendShape: 'circle'
  1234. }
  1235. ]
  1236. };
  1237. Line.categories = [];
  1238. Line.series[0].data = [];
  1239. /* LineA.series[0].name=this.targetName; */
  1240. console.log(_this.FDC);
  1241. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1242. _this.FDC]['gl'].length; i++) {
  1243. let time = new Date(
  1244. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1245. 'gl'
  1246. ][i].pointTime * 1000
  1247. ).Format('hh');
  1248. Line.categories.push(time);
  1249. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1250. Line.series[0].data.push(
  1251. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1252. 'gl'
  1253. ][i].pointValueInDouble
  1254. );
  1255. Line.series[1].data.push(
  1256. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1257. 'fs'
  1258. ][i].pointValueInDouble
  1259. );
  1260. Line.series[2].data.push(
  1261. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1262. 'llgl'
  1263. ][i].pointValueInDouble
  1264. );
  1265. Line.series[3].data.push(
  1266. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1267. 'ycgl'
  1268. ][i].pointValueInDouble
  1269. );
  1270. }
  1271. LineA.categories = [];
  1272. LineA.series[0].data = [];
  1273. /* LineA.series[0].name=this.targetName; */
  1274. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1275. 'CL_FDC']['gl'].length; i++) {
  1276. let time = new Date(
  1277. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1278. 'gl'
  1279. ][i].pointTime * 1000
  1280. ).Format('hh');
  1281. LineA.categories.push(time);
  1282. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1283. LineA.series[0].data.push(
  1284. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1285. 'gl'
  1286. ][i].pointValueInDouble
  1287. );
  1288. LineA.series[1].data.push(
  1289. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1290. 'fs'
  1291. ][i].pointValueInDouble
  1292. );
  1293. LineA.series[2].data.push(
  1294. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1295. 'llgl'
  1296. ][i].pointValueInDouble
  1297. );
  1298. LineA.series[3].data.push(
  1299. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1300. 'ycgl'
  1301. ][i].pointValueInDouble
  1302. );
  1303. }
  1304. LineB.categories = [];
  1305. LineB.series[0].data = [];
  1306. /* LineA.series[0].name=this.targetName; */
  1307. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1308. 'DX_FDC']['gl'].length; i++) {
  1309. let time = new Date(
  1310. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1311. 'gl'
  1312. ][i].pointTime * 1000
  1313. ).Format('hh');
  1314. LineB.categories.push(time);
  1315. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1316. LineB.series[0].data.push(
  1317. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1318. 'gl'
  1319. ][i].pointValueInDouble
  1320. );
  1321. LineB.series[1].data.push(
  1322. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1323. 'fs'
  1324. ][i].pointValueInDouble
  1325. );
  1326. LineB.series[2].data.push(
  1327. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1328. 'llgl'
  1329. ][i].pointValueInDouble
  1330. );
  1331. LineB.series[3].data.push(
  1332. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1333. 'ycgl'
  1334. ][i].pointValueInDouble
  1335. );
  1336. }
  1337. LineC.categories = [];
  1338. LineC.series[0].data = [];
  1339. /* LineA.series[0].name=this.targetName; */
  1340. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1341. 'KB_FDC']['gl'].length; i++) {
  1342. let time = new Date(
  1343. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1344. 'gl'
  1345. ][i].pointTime * 1000
  1346. ).Format('hh');
  1347. LineC.categories.push(time);
  1348. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1349. LineC.series[0].data.push(
  1350. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1351. 'gl'
  1352. ][i].pointValueInDouble
  1353. );
  1354. LineC.series[1].data.push(
  1355. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1356. 'fs'
  1357. ][i].pointValueInDouble
  1358. );
  1359. LineC.series[2].data.push(
  1360. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1361. 'llgl'
  1362. ][i].pointValueInDouble
  1363. );
  1364. LineC.series[3].data.push(
  1365. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1366. 'ycgl'
  1367. ][i].pointValueInDouble
  1368. );
  1369. }
  1370. /* LineD.categories = [];
  1371. LineD.series[0].data = [];
  1372. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1373. 'QS_FDC']['gl'].length; i++) {
  1374. let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1375. 'QS_FDC']['gl'][i].pointTime * 1000).Format(
  1376. 'hh'
  1377. );
  1378. LineD.categories.push(time);
  1379. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1380. LineD.series[0].data.push(
  1381. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1382. 'gl'
  1383. ][i].pointValueInDouble
  1384. );
  1385. LineD.series[1].data.push(
  1386. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1387. 'fs'
  1388. ][i].pointValueInDouble
  1389. );
  1390. LineD.series[2].data.push(
  1391. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1392. 'llgl'
  1393. ][i].pointValueInDouble
  1394. );
  1395. LineD.series[3].data.push(
  1396. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1397. 'ycgl'
  1398. ][i].pointValueInDouble
  1399. );
  1400. }
  1401. LineE.categories = [];
  1402. LineE.series[0].data = [];
  1403. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1404. 'XS_FDC']['gl'].length; i++) {
  1405. let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1406. 'XS_FDC']['gl'][i].pointTime * 1000).Format(
  1407. 'hh'
  1408. );
  1409. LineE.categories.push(time);
  1410. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1411. LineE.series[0].data.push(
  1412. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1413. 'gl'
  1414. ][i].pointValueInDouble
  1415. );
  1416. LineE.series[1].data.push(
  1417. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1418. 'fs'
  1419. ][i].pointValueInDouble
  1420. );
  1421. LineE.series[2].data.push(
  1422. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1423. 'llgl'
  1424. ][i].pointValueInDouble
  1425. );
  1426. LineE.series[3].data.push(
  1427. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1428. 'ycgl'
  1429. ][i].pointValueInDouble
  1430. );
  1431. } */
  1432. _this.showLineA('canvasLineA', Line);
  1433. _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
  1434. // _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
  1435. _this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  1436. _this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  1437. /*
  1438. _this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  1439. _this.showWindStationCardLineA5('windStationCanvasLineE', LineE); */
  1440. });
  1441. });
  1442. },
  1443. openDrawer: function() {
  1444. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
  1445. },
  1446. closeDrawer: function() {
  1447. this.drawerIsShow = false;
  1448. },
  1449. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  1450. uni.setStorageSync('windpowerstationName', windpowerstationName);
  1451. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  1452. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  1453. //this.common.goback('/pages/index/Index');
  1454. },
  1455. getWindPowerStationNameToSessionStorage() {
  1456. uni.getStorageSync('windpowerstationName');
  1457. return uni.getStorageSync('windpowerstationName');
  1458. },
  1459. showModal(e) {
  1460. this.modalName = e.currentTarget.dataset.target;
  1461. this.viewUserid();
  1462. this.monitoringAuthority();
  1463. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  1464. },
  1465. hideModal() {
  1466. this.modalName = null;
  1467. this.$refs.plusDrawer.hideModal(this.modalName);
  1468. },
  1469. async target_comprehensive_indicators() {
  1470. let _this = this;
  1471. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1472. this.socketTask_target_comprehensive_indicators = uni.connectSocket({
  1473. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1474. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_1',
  1475. success(data) {
  1476. console.log('websocket连接成功');
  1477. }
  1478. });
  1479. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1480. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1481. this.socketTask_target_comprehensive_indicators.onOpen(res => {
  1482. console.log('WebSocket连接正常打开中...!');
  1483. this.is_open_socket = true;
  1484. // 注:只有连接正常打开中 ,才能正常收到消息
  1485. this.socketTask_target_comprehensive_indicators.onMessage(res => {
  1486. //console.log("收到服务器内容:" + res.data);
  1487. _this.windpowerstationdetail.target_comprehensive_indicators = JSON.parse(res.data)[_this.FDC];
  1488. console.log();
  1489. });
  1490. });
  1491. // 这里仅是事件监听【如果socket关闭了会执行】
  1492. /* this.socketTask_comprehensive_target.onClose(() => {
  1493. uni.request({
  1494. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1495. success: (res) => {
  1496. }
  1497. });
  1498. }) */
  1499. },
  1500. async target_windSpeed_power() {
  1501. let _this = this;
  1502. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1503. this.socketTask_target_windSpeed_power = uni.connectSocket({
  1504. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1505. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_2',
  1506. success(data) {
  1507. console.log('websocket连接成功');
  1508. }
  1509. });
  1510. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1511. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1512. this.socketTask_target_windSpeed_power.onOpen(res => {
  1513. console.log('WebSocket连接正常打开中...!');
  1514. this.is_open_socket = true;
  1515. // 注:只有连接正常打开中 ,才能正常收到消息
  1516. this.socketTask_target_windSpeed_power.onMessage(res => {
  1517. //console.log("收到服务器内容:" + res.data);
  1518. _this.windpowerstationdetail.target_windSpeed_power = JSON.parse(res.data)[_this.FDC];
  1519. });
  1520. });
  1521. // 这里仅是事件监听【如果socket关闭了会执行】
  1522. /* this.socketTask_comprehensive_target.onClose(() => {
  1523. uni.request({
  1524. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1525. success: (res) => {
  1526. }
  1527. });
  1528. }) */
  1529. },
  1530. async index_windturbine_status() {
  1531. let _this = this;
  1532. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1533. this.socketTask_index_windturbine_status = uni.connectSocket({
  1534. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1535. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_3',
  1536. success(data) {
  1537. console.log('websocket连接成功');
  1538. }
  1539. });
  1540. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1541. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1542. this.socketTask_index_windturbine_status.onOpen(res => {
  1543. console.log('WebSocket连接正常打开中...!');
  1544. this.is_open_socket = true;
  1545. // 注:只有连接正常打开中 ,才能正常收到消息
  1546. this.socketTask_index_windturbine_status.onMessage(res => {
  1547. //console.log("收到服务器内容:" + res.data);
  1548. _this.windpowerstationdetail.index_windturbine_status = JSON.parse(res.data)[_this.FDC];
  1549. // _this.fdcstatusmodule.fdcstatusmodule = JSON.parse(res.data);
  1550. let json = JSON.parse(res.data);
  1551. for (let x in json) {
  1552. _this.windFieldsituation.push(json[x]);
  1553. }
  1554. for(let i=0;i<_this.plusDrawerList.length;i++){
  1555. _this.$refs.windFarmcard[i].getHoursWeatherData(_this.windFieldsituation[i]);
  1556. }
  1557. _this.cardmodule = false;
  1558. console.log("---");
  1559. _this.module = false;
  1560. });
  1561. });
  1562. // 这里仅是事件监听【如果socket关闭了会执行】
  1563. /* this.socketTask_comprehensive_target.onClose(() => {
  1564. uni.request({
  1565. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1566. success: (res) => {
  1567. }
  1568. });
  1569. }) */
  1570. },
  1571. async index_electricQuantity() {
  1572. let _this = this;
  1573. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1574. this.socketTask_index_electricQuantity = uni.connectSocket({
  1575. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1576. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_4',
  1577. success(data) {
  1578. console.log('websocket连接成功');
  1579. }
  1580. });
  1581. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1582. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1583. this.socketTask_index_electricQuantity.onOpen(res => {
  1584. console.log('WebSocket连接正常打开中...!');
  1585. this.is_open_socket = true;
  1586. // 注:只有连接正常打开中 ,才能正常收到消息
  1587. this.socketTask_index_electricQuantity.onMessage(res => {
  1588. //console.log("收到服务器内容:" + res.data);
  1589. _this.windpowerstationdetail.index_electricQuantity = JSON.parse(res.data)[_this.FDC];
  1590. _this.monthOlive = (_this.windpowerstationdetail.index_electricQuantity.yfdl / 10000) * 100 + '%';
  1591. _this.monthAngrey = (1 - _this.windpowerstationdetail.index_electricQuantity.yfdl / 10000) * 100 + '%';
  1592. _this.yearOlive = (_this.windpowerstationdetail.index_electricQuantity.nfdl / 100000) * 100 + '%';
  1593. _this.yearAngrey = (1 - _this.windpowerstationdetail.index_electricQuantity.nfdl / 100000) * 100 + '%';
  1594. });
  1595. });
  1596. // 这里仅是事件监听【如果socket关闭了会执行】
  1597. /* this.socketTask_comprehensive_target.onClose(() => {
  1598. uni.request({
  1599. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1600. success: (res) => {
  1601. }
  1602. });
  1603. }) */
  1604. },
  1605. async index_target_basic_indicators() {
  1606. let _this = this;
  1607. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1608. this.socketTask_index_target_basic_indicators = uni.connectSocket({
  1609. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1610. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_5',
  1611. success(data) {
  1612. console.log('websocket连接成功');
  1613. }
  1614. });
  1615. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1616. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1617. this.socketTask_index_target_basic_indicators.onOpen(res => {
  1618. console.log('WebSocket连接正常打开中...!');
  1619. this.is_open_socket = true;
  1620. // 注:只有连接正常打开中 ,才能正常收到消息
  1621. this.socketTask_index_target_basic_indicators.onMessage(res => {
  1622. //console.log("收到服务器内容:" + res.data);
  1623. _this.windpowerstationdetail.index_target_basic_indicators = JSON.parse(res.data)[_this.FDC];
  1624. });
  1625. });
  1626. // 这里仅是事件监听【如果socket关闭了会执行】
  1627. /* this.socketTask_comprehensive_target.onClose(() => {
  1628. uni.request({
  1629. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1630. success: (res) => {
  1631. }
  1632. });
  1633. }) */
  1634. },
  1635. getServerData() {
  1636. // 折线图
  1637. let LineA = {
  1638. categories: [
  1639. ' 17:26',
  1640. '18:56',
  1641. '19:56',
  1642. '20:56',
  1643. '21:56',
  1644. '22:56',
  1645. '23:56',
  1646. '00:56',
  1647. '01:56',
  1648. '02:56',
  1649. '03:56',
  1650. '04:56',
  1651. '05:56',
  1652. '06:56',
  1653. '07:56',
  1654. '08:56',
  1655. '09:56',
  1656. '10:56',
  1657. '11:56',
  1658. '12:56',
  1659. '13:56',
  1660. '14:56',
  1661. '15:56',
  1662. '16:56',
  1663. '17:56 '
  1664. ],
  1665. series: [{
  1666. name: '功率',
  1667. data: [],
  1668. color: '#4BB94B',
  1669. textColor: '#FFFFFF',
  1670. textSize: this.seriesTextSize,
  1671. format: val => {
  1672. return val + 'kwh';
  1673. },
  1674. index: 0,
  1675. legendShape: 'circle'
  1676. },
  1677. {
  1678. name: '风速',
  1679. data: [],
  1680. color: '#E82E2F',
  1681. textColor: '#FFFFFF',
  1682. textSize: this.seriesTextSize,
  1683. format: val => {
  1684. return val + 'm/s';
  1685. },
  1686. index: 1,
  1687. legendShape: 'circle'
  1688. },
  1689. {
  1690. name: '理论功率',
  1691. data: [],
  1692. color: '#F5A83C',
  1693. textColor: '#FFFFFF',
  1694. textSize: this.seriesTextSize,
  1695. format: val => {
  1696. return val + 'kwh';
  1697. },
  1698. index: 0,
  1699. legendShape: 'circle'
  1700. },
  1701. {
  1702. name: '预测功率',
  1703. data: [],
  1704. color: '#4A80B1',
  1705. textColor: '#FFFFFF',
  1706. textSize: this.seriesTextSize,
  1707. format: val => {
  1708. return val + 'kwh';
  1709. },
  1710. index: 1,
  1711. legendShape: 'circle'
  1712. }
  1713. ]
  1714. };
  1715. this.showLineA('canvasLineA', LineA);
  1716. },
  1717. showLineA(canvasId, chartData) {
  1718. var _self = this;
  1719. canvaLineA = new uCharts({
  1720. $this: _self,
  1721. canvasId: canvasId,
  1722. type: 'line',
  1723. fontSize: 11,
  1724. legend: {
  1725. show: true,
  1726. position: 'top',
  1727. float: 'right',
  1728. fontColor: 'silver',
  1729. itemGap: '4',
  1730. itemWidth: '3'
  1731. },
  1732. dataLabel: false,
  1733. dataPointShape: false,
  1734. background: '#FFFFFF',
  1735. pixelRatio: _self.pixelRatio,
  1736. categories: chartData.categories,
  1737. series: chartData.series,
  1738. animation: true,
  1739. xAxis: {
  1740. type: 'grid',
  1741. gridColor: 'silver',
  1742. fontColor: 'silver',
  1743. gridType: 'solid',
  1744. gridColor: '#2E2E2E',
  1745. axisLineColor: '#2E2E2E',
  1746. labelCount: '3'
  1747. // itemCount:"3"
  1748. },
  1749. yAxis: {
  1750. data: [{
  1751. type: 'value',
  1752. fontColor: 'silver',
  1753. disabled: false, //y轴轴线
  1754. min: 0,
  1755. max: 40,
  1756. position: 'left',
  1757. axisLineColor: '#2E2E2E',
  1758. title: ' 风速:(m/s)',
  1759. titleFontColor: 'silver'
  1760. },
  1761. {
  1762. fontColor: 'silver',
  1763. disabled: false, //y轴轴线
  1764. min: 0,
  1765. max: 40,
  1766. position: 'right',
  1767. axisLineColor: '#2E2E2E',
  1768. title: '功率:(kwh)',
  1769. titleFontColor: 'silver'
  1770. }
  1771. ],
  1772. gridColor: '#2E2E2E',
  1773. splitNumber: 4,
  1774. gridType: 'solid',
  1775. dashLength: 8,
  1776. showTitle: 'true',
  1777. format: val => {
  1778. return val.toFixed(0) + '元';
  1779. }
  1780. },
  1781. width: _self.cWidth * _self.pixelRatio,
  1782. height: _self.cHeight * _self.pixelRatio,
  1783. extra: {
  1784. line: {
  1785. type: 'line',
  1786. width: '1'
  1787. }
  1788. }
  1789. });
  1790. },
  1791. AffectedPower() {
  1792. (this.toBeInvolved = true), (this.performance = false);
  1793. this.powerLimitation = false;
  1794. this.overhaul = false;
  1795. this.dayHair = false;
  1796. this.fault = false;
  1797. this.clickFlag = 'group';
  1798. this.getColumnData();
  1799. },
  1800. performancePower() {
  1801. this.performance = true;
  1802. this.powerLimitation = false;
  1803. (this.toBeInvolved = false), (this.overhaul = false);
  1804. this.dayHair = false;
  1805. this.fault = false;
  1806. this.clickFlag = 'group';
  1807. this.getColumnData();
  1808. },
  1809. limitedPower() {
  1810. (this.toBeInvolved = false), (this.powerLimitation = true);
  1811. this.performance = false;
  1812. this.overhaul = false;
  1813. this.dayHair = false;
  1814. this.fault = false;
  1815. this.clickFlag = 'group';
  1816. this.getColumnData();
  1817. },
  1818. maintenancePower() {
  1819. (this.toBeInvolved = false), (this.overhaul = true);
  1820. this.performance = false;
  1821. this.dayHair = false;
  1822. this.fault = false;
  1823. this.powerLimitation = false;
  1824. this.clickFlag = 'group';
  1825. this.getColumnData();
  1826. },
  1827. directGeneration() {
  1828. (this.toBeInvolved = false), (this.dayHair = false);
  1829. this.performance = false;
  1830. this.fault = false;
  1831. this.overhaul = false;
  1832. this.powerLimitation = false;
  1833. this.clickFlag = 'stack';
  1834. this.getColumnData();
  1835. },
  1836. powerGeneration() {
  1837. (this.toBeInvolved = false), (this.dayHair = true);
  1838. this.performance = false;
  1839. this.fault = false;
  1840. this.overhaul = false;
  1841. this.powerLimitation = false;
  1842. this.clickFlag = 'group';
  1843. this.getColumnData();
  1844. },
  1845. faultPower() {
  1846. (this.toBeInvolved = false), (this.fault = true);
  1847. this.performance = false;
  1848. this.dayHair = false;
  1849. this.overhaul = false;
  1850. this.powerLimitation = false;
  1851. this.clickFlag = 'group';
  1852. this.getColumnData();
  1853. },
  1854. getColumnData() {
  1855. let ColumnStack = this.c1;
  1856. if (this.dayHair) {
  1857. ColumnStack = {
  1858. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1859. series: [{
  1860. name: '日发电量(万kwh)',
  1861. data: [18, 13, 12, 17, 13, 7, 11, 15, 13],
  1862. color: '#4EB64E'
  1863. }]
  1864. };
  1865. ColumnStack.categories = [];
  1866. ColumnStack.series[0].data = [];
  1867. for (let i = 0; i < this.rifa.length; i++) {
  1868. ColumnStack.categories.push(this.Xzuobiao[i]);
  1869. // console.log(ColumnStack.categories)
  1870. ColumnStack.series[0].data.push(this.rifa[i]);
  1871. // console.log(ColumnStack.series[1].data)
  1872. }
  1873. }
  1874. if (this.fault) {
  1875. ColumnStack = {
  1876. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1877. series: [{
  1878. name: '故障损失电量(万kwh)',
  1879. data: [17, 15, 17, 21, 16, 8, 10, 17, 11],
  1880. color: '#F14E51'
  1881. }]
  1882. };
  1883. ColumnStack.categories = [];
  1884. ColumnStack.series[0].data = [];
  1885. for (let i = 0; i < this.guzhang.length; i++) {
  1886. ColumnStack.categories.push(this.Xzuobiao[i]);
  1887. // console.log(ColumnStack.categories)
  1888. ColumnStack.series[0].data.push(this.guzhang[i]);
  1889. // console.log(ColumnStack.series[1].data)
  1890. }
  1891. }
  1892. if (this.overhaul) {
  1893. ColumnStack = {
  1894. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1895. series: [{
  1896. name: '检修损失电量(万kwh)',
  1897. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1898. color: '#FF6B3E'
  1899. }]
  1900. };
  1901. ColumnStack.categories = [];
  1902. ColumnStack.series[0].data = [];
  1903. for (let i = 0; i < this.jianxiu.length; i++) {
  1904. ColumnStack.categories.push(this.Xzuobiao[i]);
  1905. // console.log(ColumnStack.categories)
  1906. ColumnStack.series[0].data.push(this.jianxiu[i]);
  1907. // console.log(ColumnStack.series[1].data)
  1908. }
  1909. }
  1910. if (this.powerLimitation) {
  1911. ColumnStack = {
  1912. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1913. series: [{
  1914. name: '限电损失电量(万kwh)',
  1915. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1916. color: '#DC62D2'
  1917. }]
  1918. };
  1919. ColumnStack.categories = [];
  1920. ColumnStack.series[0].data = [];
  1921. for (let i = 0; i < this.xiandian.length; i++) {
  1922. ColumnStack.categories.push(this.Xzuobiao[i]);
  1923. // console.log(ColumnStack.categories)
  1924. ColumnStack.series[0].data.push(this.xiandian[i]);
  1925. // console.log(ColumnStack.series[1].data)
  1926. }
  1927. }
  1928. if (this.performance) {
  1929. ColumnStack = {
  1930. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1931. series: [{
  1932. name: '性能损失电量(万kwh)',
  1933. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1934. color: '#9DA3F6'
  1935. }]
  1936. };
  1937. ColumnStack.categories = [];
  1938. ColumnStack.series[0].data = [];
  1939. for (let i = 0; i < this.xingneng.length; i++) {
  1940. ColumnStack.categories.push(this.Xzuobiao[i]);
  1941. // console.log(ColumnStack.categories)
  1942. ColumnStack.series[0].data.push(this.xingneng[i]);
  1943. // console.log(ColumnStack.series[1].data)
  1944. }
  1945. }
  1946. if (this.toBeInvolved) {
  1947. ColumnStack = {
  1948. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1949. series: [{
  1950. name: '受累损失电量(万kwh)',
  1951. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1952. color: '#9E9E9E'
  1953. }]
  1954. };
  1955. ColumnStack.categories = [];
  1956. ColumnStack.series[0].data = [];
  1957. for (let i = 0; i < this.shoulei.length; i++) {
  1958. ColumnStack.categories.push(this.Xzuobiao[i]);
  1959. // console.log(ColumnStack.categories)
  1960. ColumnStack.series[0].data.push(this.shoulei[i]);
  1961. // console.log(ColumnStack.series[1].data)
  1962. }
  1963. }
  1964. this.showColumnStack('canvasColumnStack', ColumnStack);
  1965. },
  1966. showColumnStack(canvasId, chartData) {
  1967. var _self = this;
  1968. canvaColumn = new uCharts({
  1969. $this: _self,
  1970. canvasId: canvasId,
  1971. type: 'column',
  1972. legend: {
  1973. show: false
  1974. },
  1975. fontSize: 11,
  1976. background: '#FFFFFF',
  1977. pixelRatio: _self.pixelRatio,
  1978. animation: true,
  1979. categories: chartData.categories,
  1980. series: chartData.series,
  1981. xAxis: {
  1982. disableGrid: true,
  1983. gridColor: 'silver',
  1984. fontColor: 'silver'
  1985. },
  1986. yAxis: {
  1987. data: [{
  1988. type: 'value',
  1989. fontColor: 'silver',
  1990. disabled: false, //y轴轴线
  1991. min: 0,
  1992. max: 60,
  1993. axisLineColor: '#2E2E2E',
  1994. title: ' 电量:(kwh)',
  1995. titleFontColor: 'silver'
  1996. }],
  1997. gridColor: '#2E2E2E',
  1998. splitNumber: 5,
  1999. gridType: 'solid',
  2000. dashLength: 8,
  2001. showTitle: false
  2002. //disabled:true
  2003. },
  2004. dataLabel: false,
  2005. width: _self.cWidth * _self.pixelRatio,
  2006. height: _self.cHeight * _self.pixelRatio,
  2007. extra: {
  2008. column: {
  2009. type: _self.clickFlag,
  2010. width: '13'
  2011. }
  2012. }
  2013. });
  2014. },
  2015. touchColumn(e) {
  2016. let _this = this;
  2017. canvaColumn.showToolTip(e, {
  2018. format: function(item, category) {
  2019. if (item.name == '应发电量(万kwh)') {
  2020. return '';
  2021. } else {
  2022. return category + ' ' + item.name + ':' + item.data;
  2023. }
  2024. }
  2025. });
  2026. },
  2027. touchLineA(e) {
  2028. canvaLineA.showToolTip(e, {
  2029. format: function(item, category) {
  2030. return category + ' ' + item.name + ':' + item.data;
  2031. }
  2032. });
  2033. },
  2034. touchLineB1(e) {
  2035. canvaLineB1.showToolTip(e, {
  2036. format: function(item, category) {
  2037. return category + ' ' + item.name + ':' + item.data;
  2038. }
  2039. });
  2040. },
  2041. touchLineB2(e) {
  2042. canvaLineB2.showToolTip(e, {
  2043. format: function(item, category) {
  2044. return category + ' ' + item.name + ':' + item.data;
  2045. }
  2046. });
  2047. },
  2048. touchLineB3(e) {
  2049. canvaLineB3.showToolTip(e, {
  2050. format: function(item, category) {
  2051. return category + ' ' + item.name + ':' + item.data;
  2052. }
  2053. });
  2054. },
  2055. touchLineB4(e) {
  2056. canvaLineB4.showToolTip(e, {
  2057. format: function(item, category) {
  2058. return category + ' ' + item.name + ':' + item.data;
  2059. }
  2060. });
  2061. },
  2062. touchLineB5(e) {
  2063. canvaLineB5.showToolTip(e, {
  2064. format: function(item, category) {
  2065. return category + ' ' + item.name + ':' + item.data;
  2066. }
  2067. });
  2068. },
  2069. moveLineA(e) {
  2070. canvaLineA.scroll(e);
  2071. },
  2072. getWindStationCardData: function() {
  2073. let LineA1 = {
  2074. categories: [
  2075. ' 17:26',
  2076. '18:56',
  2077. '19:56',
  2078. '20:56',
  2079. '21:56',
  2080. '22:56',
  2081. '23:56',
  2082. '00:56',
  2083. '01:56',
  2084. '02:56',
  2085. '03:56',
  2086. '04:56',
  2087. '05:56',
  2088. '06:56',
  2089. '07:56',
  2090. '08:56',
  2091. '09:56',
  2092. '10:56',
  2093. '11:56',
  2094. '12:56',
  2095. '13:56',
  2096. '14:56',
  2097. '15:56',
  2098. '16:56',
  2099. '17:56 '
  2100. ],
  2101. series: [{
  2102. name: '功率',
  2103. data: [],
  2104. color: '#4BB94B',
  2105. textColor: '#FFFFFF',
  2106. textSize: this.seriesTextSize,
  2107. format: val => {
  2108. return val + 'kwh';
  2109. },
  2110. index: 0,
  2111. legendShape: 'circle'
  2112. },
  2113. {
  2114. name: '风速',
  2115. data: [],
  2116. color: '#E82E2F',
  2117. textColor: '#FFFFFF',
  2118. textSize: this.seriesTextSize,
  2119. format: val => {
  2120. return val + 'm/s';
  2121. },
  2122. index: 1,
  2123. legendShape: 'circle'
  2124. },
  2125. {
  2126. name: '理论功率',
  2127. data: [],
  2128. color: '#F5A83C',
  2129. textColor: '#FFFFFF',
  2130. textSize: this.seriesTextSize,
  2131. format: val => {
  2132. return val + 'kwh';
  2133. },
  2134. index: 0,
  2135. legendShape: 'circle'
  2136. },
  2137. {
  2138. name: '预测功率',
  2139. data: [],
  2140. color: '#4A80B1',
  2141. textColor: '#FFFFFF',
  2142. textSize: this.seriesTextSize,
  2143. format: val => {
  2144. return val + 'kwh';
  2145. },
  2146. index: 1,
  2147. legendShape: 'circle'
  2148. }
  2149. ]
  2150. };
  2151. let LineB = {
  2152. categories: [
  2153. ' 17:26',
  2154. '18:56',
  2155. '19:56',
  2156. '20:56',
  2157. '21:56',
  2158. '22:56',
  2159. '23:56',
  2160. '00:56',
  2161. '01:56',
  2162. '02:56',
  2163. '03:56',
  2164. '04:56',
  2165. '05:56',
  2166. '06:56',
  2167. '07:56',
  2168. '08:56',
  2169. '09:56',
  2170. '10:56',
  2171. '11:56',
  2172. '12:56',
  2173. '13:56',
  2174. '14:56',
  2175. '15:56',
  2176. '16:56',
  2177. '17:56 '
  2178. ],
  2179. series: [{
  2180. name: '功率',
  2181. data: [],
  2182. color: '#4BB94B',
  2183. textColor: '#FFFFFF',
  2184. textSize: this.seriesTextSize,
  2185. format: val => {
  2186. return val + 'kwh';
  2187. },
  2188. index: 0,
  2189. legendShape: 'circle'
  2190. },
  2191. {
  2192. name: '风速',
  2193. data: [],
  2194. color: '#E82E2F',
  2195. textColor: '#FFFFFF',
  2196. textSize: this.seriesTextSize,
  2197. format: val => {
  2198. return val + 'm/s';
  2199. },
  2200. index: 1,
  2201. legendShape: 'circle'
  2202. },
  2203. {
  2204. name: '理论功率',
  2205. data: [],
  2206. color: '#F5A83C',
  2207. textColor: '#FFFFFF',
  2208. textSize: this.seriesTextSize,
  2209. format: val => {
  2210. return val + 'kwh';
  2211. },
  2212. index: 0,
  2213. legendShape: 'circle'
  2214. },
  2215. {
  2216. name: '预测功率',
  2217. data: [],
  2218. color: '#4A80B1',
  2219. textColor: '#FFFFFF',
  2220. textSize: this.seriesTextSize,
  2221. format: val => {
  2222. return val + 'kwh';
  2223. },
  2224. index: 1,
  2225. legendShape: 'circle'
  2226. }
  2227. ]
  2228. };
  2229. let LineC = {
  2230. categories: [
  2231. ' 17:26',
  2232. '18:56',
  2233. '19:56',
  2234. '20:56',
  2235. '21:56',
  2236. '22:56',
  2237. '23:56',
  2238. '00:56',
  2239. '01:56',
  2240. '02:56',
  2241. '03:56',
  2242. '04:56',
  2243. '05:56',
  2244. '06:56',
  2245. '07:56',
  2246. '08:56',
  2247. '09:56',
  2248. '10:56',
  2249. '11:56',
  2250. '12:56',
  2251. '13:56',
  2252. '14:56',
  2253. '15:56',
  2254. '16:56',
  2255. '17:56 '
  2256. ],
  2257. series: [{
  2258. name: '功率',
  2259. data: [],
  2260. color: '#4BB94B',
  2261. textColor: '#FFFFFF',
  2262. textSize: this.seriesTextSize,
  2263. format: val => {
  2264. return val + 'kwh';
  2265. },
  2266. index: 0,
  2267. legendShape: 'circle'
  2268. },
  2269. {
  2270. name: '风速',
  2271. data: [],
  2272. color: '#E82E2F',
  2273. textColor: '#FFFFFF',
  2274. textSize: this.seriesTextSize,
  2275. format: val => {
  2276. return val + 'm/s';
  2277. },
  2278. index: 1,
  2279. legendShape: 'circle'
  2280. },
  2281. {
  2282. name: '理论功率',
  2283. data: [],
  2284. color: '#F5A83C',
  2285. textColor: '#FFFFFF',
  2286. textSize: this.seriesTextSize,
  2287. format: val => {
  2288. return val + 'kwh';
  2289. },
  2290. index: 0,
  2291. legendShape: 'circle'
  2292. },
  2293. {
  2294. name: '预测功率',
  2295. data: [],
  2296. color: '#4A80B1',
  2297. textColor: '#FFFFFF',
  2298. textSize: this.seriesTextSize,
  2299. format: val => {
  2300. return val + 'kwh';
  2301. },
  2302. index: 1,
  2303. legendShape: 'circle'
  2304. }
  2305. ]
  2306. };
  2307. let LineD = {
  2308. categories: [
  2309. ' 17:26',
  2310. '18:56',
  2311. '19:56',
  2312. '20:56',
  2313. '21:56',
  2314. '22:56',
  2315. '23:56',
  2316. '00:56',
  2317. '01:56',
  2318. '02:56',
  2319. '03:56',
  2320. '04:56',
  2321. '05:56',
  2322. '06:56',
  2323. '07:56',
  2324. '08:56',
  2325. '09:56',
  2326. '10:56',
  2327. '11:56',
  2328. '12:56',
  2329. '13:56',
  2330. '14:56',
  2331. '15:56',
  2332. '16:56',
  2333. '17:56 '
  2334. ],
  2335. series: [{
  2336. name: '功率',
  2337. data: [],
  2338. color: '#4BB94B',
  2339. textColor: '#FFFFFF',
  2340. textSize: this.seriesTextSize,
  2341. format: val => {
  2342. return val + 'kwh';
  2343. },
  2344. index: 0,
  2345. legendShape: 'circle'
  2346. },
  2347. {
  2348. name: '风速',
  2349. data: [],
  2350. color: '#E82E2F',
  2351. textColor: '#FFFFFF',
  2352. textSize: this.seriesTextSize,
  2353. format: val => {
  2354. return val + 'm/s';
  2355. },
  2356. index: 1,
  2357. legendShape: 'circle'
  2358. },
  2359. {
  2360. name: '理论功率',
  2361. data: [],
  2362. color: '#F5A83C',
  2363. textColor: '#FFFFFF',
  2364. textSize: this.seriesTextSize,
  2365. format: val => {
  2366. return val + 'kwh';
  2367. },
  2368. index: 0,
  2369. legendShape: 'circle'
  2370. },
  2371. {
  2372. name: '预测功率',
  2373. data: [],
  2374. color: '#4A80B1',
  2375. textColor: '#FFFFFF',
  2376. textSize: this.seriesTextSize,
  2377. format: val => {
  2378. return val + 'kwh';
  2379. },
  2380. index: 1,
  2381. legendShape: 'circle'
  2382. }
  2383. ]
  2384. };
  2385. let LineE = {
  2386. categories: [
  2387. ' 17:26',
  2388. '18:56',
  2389. '19:56',
  2390. '20:56',
  2391. '21:56',
  2392. '22:56',
  2393. '23:56',
  2394. '00:56',
  2395. '01:56',
  2396. '02:56',
  2397. '03:56',
  2398. '04:56',
  2399. '05:56',
  2400. '06:56',
  2401. '07:56',
  2402. '08:56',
  2403. '09:56',
  2404. '10:56',
  2405. '11:56',
  2406. '12:56',
  2407. '13:56',
  2408. '14:56',
  2409. '15:56',
  2410. '16:56',
  2411. '17:56 '
  2412. ],
  2413. series: [{
  2414. name: '功率',
  2415. data: [],
  2416. color: '#4BB94B',
  2417. textColor: '#FFFFFF',
  2418. textSize: this.seriesTextSize,
  2419. format: val => {
  2420. return val + 'kwh';
  2421. },
  2422. index: 0,
  2423. legendShape: 'circle'
  2424. },
  2425. {
  2426. name: '风速',
  2427. data: [],
  2428. color: '#E82E2F',
  2429. textColor: '#FFFFFF',
  2430. textSize: this.seriesTextSize,
  2431. format: val => {
  2432. return val + 'm/s';
  2433. },
  2434. index: 1,
  2435. legendShape: 'circle'
  2436. },
  2437. {
  2438. name: '理论功率',
  2439. data: [],
  2440. color: '#F5A83C',
  2441. textColor: '#FFFFFF',
  2442. textSize: this.seriesTextSize,
  2443. format: val => {
  2444. return val + 'kwh';
  2445. },
  2446. index: 0,
  2447. legendShape: 'circle'
  2448. },
  2449. {
  2450. name: '预测功率',
  2451. data: [],
  2452. color: '#4A80B1',
  2453. textColor: '#FFFFFF',
  2454. textSize: this.seriesTextSize,
  2455. format: val => {
  2456. return val + 'kwh';
  2457. },
  2458. index: 1,
  2459. legendShape: 'circle'
  2460. }
  2461. ]
  2462. };
  2463. this.showWindStationCardLineA1('windStationCanvasLineA', LineA1);
  2464. this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  2465. this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  2466. this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  2467. this.showWindStationCardLineA5('windStationCanvasLineE', LineE);
  2468. },
  2469. showWindStationCardLineA1(canvasId, chartData) {
  2470. var _self = this;
  2471. canvaLineB1 = new uCharts({
  2472. $this: _self,
  2473. canvasId: canvasId,
  2474. type: 'line',
  2475. fontSize: 11,
  2476. legend: {
  2477. show: true,
  2478. position: 'top',
  2479. float: 'right',
  2480. fontColor: 'silver',
  2481. itemGap: '9',
  2482. itemWidth: '3'
  2483. },
  2484. dataLabel: false,
  2485. dataPointShape: false,
  2486. background: '#FFFFFF',
  2487. pixelRatio: _self.windStationCardPixelRatio,
  2488. categories: chartData.categories,
  2489. series: chartData.series,
  2490. animation: true,
  2491. xAxis: {
  2492. disableGrid: true,
  2493. type: 'grid',
  2494. gridColor: 'silver',
  2495. fontColor: 'silver',
  2496. gridType: 'solid',
  2497. gridColor: '#2E2E2E',
  2498. axisLineColor: '#2E2E2E',
  2499. labelCount: '3'
  2500. // itemCount:"3"
  2501. },
  2502. yAxis: {
  2503. data: [{
  2504. type: 'value',
  2505. fontColor: 'silver',
  2506. disabled: false, //y轴轴线
  2507. min: 0,
  2508. max: 40,
  2509. position: 'left',
  2510. axisLineColor: '#2E2E2E',
  2511. title: ' 风速:(m/s)',
  2512. titleFontColor: 'silver'
  2513. },
  2514. {
  2515. fontColor: 'silver',
  2516. disabled: false, //y轴轴线
  2517. min: 0,
  2518. max: 40,
  2519. position: 'right',
  2520. axisLineColor: '#2E2E2E',
  2521. title: '功率:(kwh)',
  2522. titleFontColor: 'silver'
  2523. }
  2524. ],
  2525. disabled: true,
  2526. gridColor: '#2E2E2E',
  2527. splitNumber: 4,
  2528. gridType: 'solid',
  2529. dashLength: 8,
  2530. showTitle: 'true',
  2531. format: val => {
  2532. return val.toFixed(0) + '元';
  2533. }
  2534. },
  2535. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2536. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2537. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2538. extra: {
  2539. line: {
  2540. type: 'line',
  2541. width: '1'
  2542. }
  2543. }
  2544. });
  2545. },
  2546. showWindStationCardLineA2(canvasId, chartData) {
  2547. var _self = this;
  2548. canvaLineB2 = new uCharts({
  2549. $this: _self,
  2550. canvasId: canvasId,
  2551. type: 'line',
  2552. fontSize: 11,
  2553. legend: {
  2554. show: true,
  2555. position: 'top',
  2556. float: 'right',
  2557. fontColor: 'silver',
  2558. itemGap: '9',
  2559. itemWidth: '3'
  2560. },
  2561. dataLabel: false,
  2562. dataPointShape: false,
  2563. background: '#FFFFFF',
  2564. pixelRatio: _self.windStationCardPixelRatio,
  2565. categories: chartData.categories,
  2566. series: chartData.series,
  2567. animation: true,
  2568. xAxis: {
  2569. disableGrid: true,
  2570. type: 'grid',
  2571. gridColor: 'silver',
  2572. fontColor: 'silver',
  2573. gridType: 'solid',
  2574. gridColor: '#2E2E2E',
  2575. axisLineColor: '#2E2E2E',
  2576. labelCount: '3'
  2577. // itemCount:"3"
  2578. },
  2579. yAxis: {
  2580. data: [{
  2581. type: 'value',
  2582. fontColor: 'silver',
  2583. disabled: false, //y轴轴线
  2584. min: 0,
  2585. max: 40,
  2586. position: 'left',
  2587. axisLineColor: '#2E2E2E',
  2588. title: ' 风速:(m/s)',
  2589. titleFontColor: 'silver'
  2590. },
  2591. {
  2592. fontColor: 'silver',
  2593. disabled: false, //y轴轴线
  2594. min: 0,
  2595. max: 40,
  2596. position: 'right',
  2597. axisLineColor: '#2E2E2E',
  2598. title: '功率:(kwh)',
  2599. titleFontColor: 'silver'
  2600. }
  2601. ],
  2602. disabled: true,
  2603. gridColor: '#2E2E2E',
  2604. splitNumber: 4,
  2605. gridType: 'solid',
  2606. dashLength: 8,
  2607. showTitle: 'true',
  2608. format: val => {
  2609. return val.toFixed(0) + '元';
  2610. }
  2611. },
  2612. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2613. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2614. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2615. extra: {
  2616. line: {
  2617. type: 'line',
  2618. width: '1'
  2619. }
  2620. }
  2621. });
  2622. },
  2623. showWindStationCardLineA3(canvasId, chartData) {
  2624. var _self = this;
  2625. canvaLineB3 = new uCharts({
  2626. $this: _self,
  2627. canvasId: canvasId,
  2628. type: 'line',
  2629. fontSize: 11,
  2630. legend: {
  2631. show: true,
  2632. position: 'top',
  2633. float: 'right',
  2634. fontColor: 'silver',
  2635. itemGap: '9',
  2636. itemWidth: '3'
  2637. },
  2638. dataLabel: false,
  2639. dataPointShape: false,
  2640. background: '#FFFFFF',
  2641. pixelRatio: _self.windStationCardPixelRatio,
  2642. categories: chartData.categories,
  2643. series: chartData.series,
  2644. animation: true,
  2645. xAxis: {
  2646. disableGrid: true,
  2647. type: 'grid',
  2648. gridColor: 'silver',
  2649. fontColor: 'silver',
  2650. gridType: 'solid',
  2651. gridColor: '#2E2E2E',
  2652. axisLineColor: '#2E2E2E',
  2653. labelCount: '3'
  2654. // itemCount:"3"
  2655. },
  2656. yAxis: {
  2657. data: [{
  2658. type: 'value',
  2659. fontColor: 'silver',
  2660. disabled: false, //y轴轴线
  2661. min: 0,
  2662. max: 40,
  2663. position: 'left',
  2664. axisLineColor: '#2E2E2E',
  2665. title: ' 风速:(m/s)',
  2666. titleFontColor: 'silver'
  2667. },
  2668. {
  2669. fontColor: 'silver',
  2670. disabled: false, //y轴轴线
  2671. min: 0,
  2672. max: 40,
  2673. position: 'right',
  2674. axisLineColor: '#2E2E2E',
  2675. title: '功率:(kwh)',
  2676. titleFontColor: 'silver'
  2677. }
  2678. ],
  2679. disabled: true,
  2680. gridColor: '#2E2E2E',
  2681. splitNumber: 4,
  2682. gridType: 'solid',
  2683. dashLength: 8,
  2684. showTitle: 'true',
  2685. format: val => {
  2686. return val.toFixed(0) + '元';
  2687. }
  2688. },
  2689. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2690. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2691. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2692. extra: {
  2693. line: {
  2694. type: 'line',
  2695. width: '1'
  2696. }
  2697. }
  2698. });
  2699. },
  2700. showWindStationCardLineA4(canvasId, chartData) {
  2701. var _self = this;
  2702. canvaLineB4 = new uCharts({
  2703. $this: _self,
  2704. canvasId: canvasId,
  2705. type: 'line',
  2706. fontSize: 11,
  2707. legend: {
  2708. show: true,
  2709. position: 'top',
  2710. float: 'right',
  2711. fontColor: 'silver',
  2712. itemGap: '9',
  2713. itemWidth: '3'
  2714. },
  2715. dataLabel: false,
  2716. dataPointShape: false,
  2717. background: '#FFFFFF',
  2718. pixelRatio: _self.windStationCardPixelRatio,
  2719. categories: chartData.categories,
  2720. series: chartData.series,
  2721. animation: true,
  2722. xAxis: {
  2723. disableGrid: true,
  2724. type: 'grid',
  2725. gridColor: 'silver',
  2726. fontColor: 'silver',
  2727. gridType: 'solid',
  2728. gridColor: '#2E2E2E',
  2729. axisLineColor: '#2E2E2E',
  2730. labelCount: '3'
  2731. // itemCount:"3"
  2732. },
  2733. yAxis: {
  2734. data: [{
  2735. type: 'value',
  2736. fontColor: 'silver',
  2737. disabled: false, //y轴轴线
  2738. min: 0,
  2739. max: 40,
  2740. position: 'left',
  2741. axisLineColor: '#2E2E2E',
  2742. title: ' 风速:(m/s)',
  2743. titleFontColor: 'silver'
  2744. },
  2745. {
  2746. fontColor: 'silver',
  2747. disabled: false, //y轴轴线
  2748. min: 0,
  2749. max: 40,
  2750. position: 'right',
  2751. axisLineColor: '#2E2E2E',
  2752. title: '功率:(kwh)',
  2753. titleFontColor: 'silver'
  2754. }
  2755. ],
  2756. disabled: true,
  2757. gridColor: '#2E2E2E',
  2758. splitNumber: 4,
  2759. gridType: 'solid',
  2760. dashLength: 8,
  2761. showTitle: 'true',
  2762. format: val => {
  2763. return val.toFixed(0) + '元';
  2764. }
  2765. },
  2766. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2767. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2768. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2769. extra: {
  2770. line: {
  2771. type: 'line',
  2772. width: '1'
  2773. }
  2774. }
  2775. });
  2776. },
  2777. showWindStationCardLineA5(canvasId, chartData) {
  2778. var _self = this;
  2779. canvaLineB5 = new uCharts({
  2780. $this: _self,
  2781. canvasId: canvasId,
  2782. type: 'line',
  2783. fontSize: 11,
  2784. legend: {
  2785. show: true,
  2786. position: 'top',
  2787. float: 'right',
  2788. fontColor: 'silver',
  2789. itemGap: '9',
  2790. itemWidth: '3'
  2791. },
  2792. dataLabel: false,
  2793. dataPointShape: false,
  2794. background: '#FFFFFF',
  2795. pixelRatio: _self.windStationCardPixelRatio,
  2796. categories: chartData.categories,
  2797. series: chartData.series,
  2798. animation: true,
  2799. xAxis: {
  2800. disableGrid: true,
  2801. type: 'grid',
  2802. gridColor: 'silver',
  2803. fontColor: 'silver',
  2804. gridType: 'solid',
  2805. gridColor: '#2E2E2E',
  2806. axisLineColor: '#2E2E2E',
  2807. labelCount: '3'
  2808. // itemCount:"3"
  2809. },
  2810. yAxis: {
  2811. data: [{
  2812. type: 'value',
  2813. fontColor: 'silver',
  2814. disabled: false, //y轴轴线
  2815. min: 0,
  2816. max: 40,
  2817. position: 'left',
  2818. axisLineColor: '#2E2E2E',
  2819. title: ' 风速:(m/s)',
  2820. titleFontColor: 'silver'
  2821. },
  2822. {
  2823. fontColor: 'silver',
  2824. disabled: false, //y轴轴线
  2825. min: 0,
  2826. max: 40,
  2827. position: 'right',
  2828. axisLineColor: '#2E2E2E',
  2829. title: '功率:(kwh)',
  2830. titleFontColor: 'silver'
  2831. }
  2832. ],
  2833. disabled: true,
  2834. gridColor: '#2E2E2E',
  2835. splitNumber: 4,
  2836. gridType: 'solid',
  2837. dashLength: 8,
  2838. showTitle: 'true',
  2839. format: val => {
  2840. return val.toFixed(0) + '元';
  2841. }
  2842. },
  2843. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2844. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2845. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2846. extra: {
  2847. line: {
  2848. type: 'line',
  2849. width: '1'
  2850. }
  2851. }
  2852. });
  2853. }
  2854. }
  2855. };
  2856. </script>
  2857. <style>
  2858. .textSmail {
  2859. font-size: 12px;
  2860. transform: scale(0.8);
  2861. }
  2862. .speedPowerDiagram {
  2863. width: 100px;
  2864. height: 30px;
  2865. user-select: text;
  2866. -webkit-user-select: text;
  2867. -moz-user-select: text;
  2868. -ms-user-select: text;
  2869. color: silver;
  2870. float: left;
  2871. margin-top: 18px;
  2872. margin-left: 9px;
  2873. font-size: 11px;
  2874. }
  2875. .monthlyUtilizationHours {
  2876. width: 160px;
  2877. height: 30px;
  2878. margin-top: 20px;
  2879. /* background-color: #161616; */
  2880. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2881. color: silver;
  2882. margin-left: 9px;
  2883. text-align: center;
  2884. padding-top: 7px;
  2885. font-size: 12px;
  2886. }
  2887. .yearlyUtilizationHours {
  2888. width: 160px;
  2889. height: 30px;
  2890. margin-top: 10px;
  2891. /* background-color: #161616; */
  2892. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2893. color: silver;
  2894. margin-left: 9px;
  2895. text-align: center;
  2896. padding-top: 7px;
  2897. font-size: 12px;
  2898. }
  2899. .comprehensiveServicePowerConsumptionRate {
  2900. width: 160px;
  2901. height: 30px;
  2902. /* margin-top: 10px; */
  2903. /* background-color: #161616; */
  2904. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2905. color: silver;
  2906. margin-left: 200px;
  2907. margin-top: -70px;
  2908. text-align: center;
  2909. padding-top: 7px;
  2910. font-size: 12px;
  2911. float: left;
  2912. }
  2913. .equipmentAvailability {
  2914. width: 160px;
  2915. height: 30px;
  2916. /* margin-top: 10px; */
  2917. /* background-color: #161616; */
  2918. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2919. color: silver;
  2920. margin-left: 200px;
  2921. margin-top: -30px;
  2922. text-align: center;
  2923. padding-top: 7px;
  2924. font-size: 12px;
  2925. float: left;
  2926. }
  2927. .sulfurDioxideEmissionReduction {
  2928. width: 160px;
  2929. height: 30px;
  2930. /* margin-top: 10px; */
  2931. /* background-color: #161616; */
  2932. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2933. color: silver;
  2934. margin-left: 380px;
  2935. margin-top: -70px;
  2936. text-align: center;
  2937. padding-top: 7px;
  2938. font-size: 12px;
  2939. float: left;
  2940. }
  2941. .carbonDioxideReduction {
  2942. width: 160px;
  2943. height: 30px;
  2944. /* margin-top: 10px; */
  2945. /* background-color: #161616; */
  2946. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2947. color: silver;
  2948. margin-left: 380px;
  2949. margin-top: -30px;
  2950. text-align: center;
  2951. padding-top: 7px;
  2952. font-size: 12px;
  2953. float: left;
  2954. }
  2955. .waterSaving {
  2956. width: 160px;
  2957. height: 30px;
  2958. /* margin-top: 10px; */
  2959. /* background-color: #161616; */
  2960. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2961. color: silver;
  2962. margin-left: 560px;
  2963. margin-top: -70px;
  2964. text-align: center;
  2965. padding-top: 7px;
  2966. font-size: 12px;
  2967. float: left;
  2968. }
  2969. .saveStandardCoal {
  2970. width: 160px;
  2971. height: 30px;
  2972. /* margin-top: 10px; */
  2973. /* background-color: #161616; */
  2974. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2975. color: silver;
  2976. margin-left: 560px;
  2977. margin-top: -30px;
  2978. text-align: center;
  2979. padding-top: 7px;
  2980. font-size: 12px;
  2981. float: left;
  2982. }
  2983. .mttr {
  2984. width: 160px;
  2985. height: 30px;
  2986. /* margin-top: 10px; */
  2987. /* background-color: #161616; */
  2988. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2989. color: silver;
  2990. margin-left: 740px;
  2991. margin-top: -70px;
  2992. text-align: center;
  2993. padding-top: 7px;
  2994. font-size: 12px;
  2995. float: left;
  2996. }
  2997. .mtbf {
  2998. width: 160px;
  2999. height: 30px;
  3000. /* margin-top: 10px; */
  3001. /* background-color: #161616; */
  3002. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3003. color: silver;
  3004. margin-left: 740px;
  3005. margin-top: -30px;
  3006. text-align: center;
  3007. padding-top: 7px;
  3008. font-size: 12px;
  3009. float: left;
  3010. }
  3011. .horizontalSlider {
  3012. white-space: nowrap;
  3013. width: 100%;
  3014. height: 100px;
  3015. background-color: #242424;
  3016. clear: both;
  3017. /* margin-top: 540px; */
  3018. }
  3019. .slide {
  3020. width: 920px;
  3021. height: 100px;
  3022. background-color: #242424;
  3023. }
  3024. .qiun-charts {
  3025. width: 750upx;
  3026. height: 400upx;
  3027. }
  3028. .charts {
  3029. width: 750upx;
  3030. height: 400upx;
  3031. }
  3032. .uchartTitle {
  3033. position: absolute;
  3034. left: 9px;
  3035. top: 605px;
  3036. user-select: text;
  3037. -webkit-user-select: text;
  3038. -moz-user-select: text;
  3039. -ms-user-select: text;
  3040. color: silver;
  3041. font-size: 12px;
  3042. }
  3043. .Histogram {
  3044. width: 100%;
  3045. height: 300px;
  3046. background-color: #242424;
  3047. margin-top: 10px;
  3048. float: left;
  3049. }
  3050. .HistogramTitle {
  3051. width: calc(100% - 9px);
  3052. height: 30px;
  3053. line-height: 30px;
  3054. font-size: 11px;
  3055. color: silver;
  3056. margin-left: 9px;
  3057. }
  3058. .lineChart {
  3059. width: 100%;
  3060. height: 225px;
  3061. background-color: #242424;
  3062. margin-top: 10px;
  3063. float: left;
  3064. }
  3065. body {
  3066. font-family: '方正兰亭细黑_GBK';
  3067. font-size: 20px;
  3068. color: silver;
  3069. background: #000;
  3070. }
  3071. @font-face {
  3072. font-family: '方正兰亭细黑_GBK';
  3073. src: url(../../static/fzltxh.TTF);
  3074. }
  3075. page {
  3076. background-color: #1f1f1f;
  3077. font-family: '方正兰亭细黑_GBK';
  3078. overflow-x: hidden;
  3079. }
  3080. .top {
  3081. width: 100%;
  3082. height: 130upx;
  3083. padding-top: 5%;
  3084. background-color: #1f1f1f;
  3085. position: fixed;
  3086. top: 0px;
  3087. left: 0px;
  3088. z-index: 100;
  3089. }
  3090. .threeLine {
  3091. width: 50px;
  3092. height: 45px;
  3093. float: left;
  3094. }
  3095. .text {
  3096. width: calc(100% - 100px);
  3097. height: 45px;
  3098. float: left;
  3099. user-select: text;
  3100. -webkit-user-select: text;
  3101. -moz-user-select: text;
  3102. -ms-user-select: text;
  3103. color: silver;
  3104. line-height: 45px;
  3105. margin-top: 11px;
  3106. font-size: 18px;
  3107. }
  3108. .notice {
  3109. width: 50px;
  3110. height: 45px;
  3111. float: left;
  3112. margin-left: -60%;
  3113. margin-top: 6%;
  3114. }
  3115. .plus {
  3116. width: 30px;
  3117. height: 45px;
  3118. float: right;
  3119. color: white;
  3120. font-size: 35px;
  3121. line-height: 45px;
  3122. text-align: right;
  3123. margin-right: 2.5%;
  3124. }
  3125. .textWindpowerstation {
  3126. width: 180px;
  3127. height: 45px;
  3128. float: left;
  3129. text-align: center;
  3130. margin-left: 18px;
  3131. }
  3132. .time {
  3133. clear: both;
  3134. background-color: #242424;
  3135. width: 100%;
  3136. height: 30px;
  3137. /* float: left; */
  3138. }
  3139. .timeimageshizhong {
  3140. width: 30px;
  3141. height: 20px;
  3142. margin-top: 5px;
  3143. float: left;
  3144. }
  3145. .timeText {
  3146. width: 62%;
  3147. height: 30px;
  3148. float: left;
  3149. line-height: 30px;
  3150. font-size: 15px;
  3151. margin-left: 15px;
  3152. user-select: text;
  3153. -webkit-user-select: text;
  3154. -moz-user-select: text;
  3155. -ms-user-select: text;
  3156. color: silver;
  3157. }
  3158. .timeIcon {
  3159. width: 25px;
  3160. height: 30px;
  3161. float: right;
  3162. margin-right: 2.5%;
  3163. /* margin-left: 5px; */
  3164. }
  3165. .timeIconImage {
  3166. width: 100%;
  3167. height: 25px;
  3168. margin-top: 1px;
  3169. }
  3170. .timeIconText {
  3171. width: 100%;
  3172. height: 25px;
  3173. text-align: center;
  3174. font-size: 12px;
  3175. }
  3176. .cardinstallgreenSecurity {
  3177. margin-left: 9px;
  3178. margin-top: 9px;
  3179. margin-bottom: 9px;
  3180. width: 30%;
  3181. height: 78px;
  3182. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3183. border-radius: 5px;
  3184. float: left;
  3185. /* font-family: "STKaiti"; */
  3186. }
  3187. .cardinstalltitle {
  3188. width: 100%;
  3189. height: 40px;
  3190. text-align: center;
  3191. user-select: text;
  3192. -webkit-user-select: text;
  3193. -moz-user-select: text;
  3194. -ms-user-select: text;
  3195. font-size: 14px;
  3196. color: silver;
  3197. line-height: 40px;
  3198. float: left;
  3199. }
  3200. .cardinstallnumber {
  3201. /* font-weight: bold; */
  3202. width: 100%;
  3203. height: 40px;
  3204. text-align: center;
  3205. user-select: text;
  3206. -webkit-user-select: text;
  3207. -moz-user-select: text;
  3208. -ms-user-select: text;
  3209. color: silver;
  3210. font-size: 16px;
  3211. /* color: #449618; */
  3212. line-height: 40px;
  3213. }
  3214. .cardinstallgreenEquipment {
  3215. margin-right: 11px;
  3216. margin-top: 10px;
  3217. width: 30%;
  3218. height: 78px;
  3219. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3220. border-radius: 5px;
  3221. float: right;
  3222. /* font-family: "STKaiti"; */
  3223. }
  3224. .cardinstallgreen {
  3225. margin-left: 9px;
  3226. width: 30%;
  3227. height: 78px;
  3228. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3229. border-radius: 5px;
  3230. float: left;
  3231. }
  3232. .cardinstallblue {
  3233. margin-top: 9px;
  3234. margin-left: 9px;
  3235. width: 30%;
  3236. height: 78px;
  3237. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  3238. border-radius: 5px;
  3239. float: left;
  3240. }
  3241. .cardinstallblueright {
  3242. margin-right: 11px;
  3243. margin-top: 10px;
  3244. width: 30%;
  3245. height: 78px;
  3246. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  3247. border-radius: 5px;
  3248. float: right;
  3249. }
  3250. .cardinstalltitlegreen {
  3251. width: 100%;
  3252. height: 25px;
  3253. text-align: center;
  3254. /* margin-left: 37px; */
  3255. user-select: text;
  3256. -webkit-user-select: text;
  3257. -moz-user-select: text;
  3258. -ms-user-select: text;
  3259. font-size: 14px;
  3260. color: silver;
  3261. line-height: 25px;
  3262. /* float: left; */
  3263. }
  3264. .cardinstallnumbergreen {
  3265. width: 100%;
  3266. height: 25px;
  3267. text-align: center;
  3268. user-select: text;
  3269. -webkit-user-select: text;
  3270. -moz-user-select: text;
  3271. -ms-user-select: text;
  3272. font-size: 20px;
  3273. color: white;
  3274. /* color: #449618; */
  3275. line-height: 25px;
  3276. float: left;
  3277. }
  3278. .cardinstallnumbergreenmin {
  3279. margin-left: 2px;
  3280. width: 55%;
  3281. height: 20px;
  3282. user-select: text;
  3283. -webkit-user-select: text;
  3284. -moz-user-select: text;
  3285. -ms-user-select: text;
  3286. font-size: 12px;
  3287. color: silver;
  3288. /* color: #449618; */
  3289. float: left;
  3290. }
  3291. .cardinstallnumbergreenmax {
  3292. /* font-weight: bold; */
  3293. margin-right: 2px;
  3294. width: 40%;
  3295. height: 20px;
  3296. user-select: text;
  3297. -webkit-user-select: text;
  3298. -moz-user-select: text;
  3299. -ms-user-select: text;
  3300. font-size: 12px;
  3301. color: silver;
  3302. /* color: #449618; */
  3303. float: right;
  3304. }
  3305. .greenMinText {
  3306. line-height: 20px;
  3307. float: left;
  3308. margin-left: 40px;
  3309. }
  3310. .greenMaxText {
  3311. line-height: 20px;
  3312. float: left;
  3313. }
  3314. .cardinstallnumberred {
  3315. width: 100%;
  3316. height: 25px;
  3317. text-align: center;
  3318. user-select: text;
  3319. -webkit-user-select: text;
  3320. -moz-user-select: text;
  3321. -ms-user-select: text;
  3322. font-size: 20px;
  3323. color: white;
  3324. /* color: #E93131; */
  3325. line-height: 25px;
  3326. float: left;
  3327. }
  3328. .cardinstallnumberredmin {
  3329. margin-left: 2px;
  3330. width: 45%;
  3331. height: 20px;
  3332. user-select: text;
  3333. -webkit-user-select: text;
  3334. -moz-user-select: text;
  3335. -ms-user-select: text;
  3336. font-size: 12px;
  3337. color: silver;
  3338. /* color: #E93131; */
  3339. float: left;
  3340. }
  3341. .cardinstallnumberredmax {
  3342. margin-right: 2px;
  3343. width: 45%;
  3344. height: 20px;
  3345. user-select: text;
  3346. -webkit-user-select: text;
  3347. -moz-user-select: text;
  3348. -ms-user-select: text;
  3349. font-size: 12px;
  3350. color: silver;
  3351. /* color: #E93131; */
  3352. float: right;
  3353. }
  3354. .redMinText {
  3355. line-height: 20px;
  3356. float: right;
  3357. }
  3358. .redMaxText {
  3359. line-height: 20px;
  3360. float: left;
  3361. }
  3362. .electricityCard {
  3363. width: 100%;
  3364. height: 100px;
  3365. background-color: #242424;
  3366. /* height: 185px; */
  3367. float: left;
  3368. margin-top: 20rpx;
  3369. }
  3370. .speedPower {
  3371. width: 100%;
  3372. height: 180px;
  3373. background-color: #242424;
  3374. float: left;
  3375. margin-top: 20rpx;
  3376. }
  3377. .cardinstallgreenSpeed {
  3378. margin-top: 9px;
  3379. margin-left: 9px;
  3380. width: 46%;
  3381. height: 78px;
  3382. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3383. border-radius: 5px;
  3384. float: left;
  3385. }
  3386. .cardinstallredSpeed {
  3387. margin-top: 8px;
  3388. margin-left: 2.5%;
  3389. width: 46%;
  3390. height: 78px;
  3391. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3392. border-radius: 5px;
  3393. float: left;
  3394. }
  3395. .cardinstalltitleRed {
  3396. width: 100%;
  3397. height: 25px;
  3398. text-align: center;
  3399. /* margin-left: 45px; */
  3400. user-select: text;
  3401. -webkit-user-select: text;
  3402. -moz-user-select: text;
  3403. -ms-user-select: text;
  3404. font-size: 14px;
  3405. color: silver;
  3406. line-height: 25px;
  3407. /* float: left; */
  3408. }
  3409. .textWhitekuangSpeed {
  3410. color: silver;
  3411. float: right;
  3412. margin-right: 70px;
  3413. }
  3414. .textWhitekuang {
  3415. color: silver;
  3416. float: right;
  3417. margin-right: 85px;
  3418. }
  3419. .textWhite {
  3420. color: white;
  3421. float: right;
  3422. font-size: 10px;
  3423. margin-right:3.5%;
  3424. transform: scale(0.975);
  3425. /* text-align: right; */
  3426. }
  3427. .textWhite2 {
  3428. color: white;
  3429. float: right;
  3430. margin-right: 15%;
  3431. transform: scale(0.975);
  3432. }
  3433. .textWhite3 {
  3434. color: white;
  3435. float: right;
  3436. margin-right: 3.5%;
  3437. transform: scale(0.975);
  3438. }
  3439. .textSilver {
  3440. user-select: text;
  3441. -webkit-user-select: text;
  3442. -moz-user-select: text;
  3443. -ms-user-select: text;
  3444. color: silver;
  3445. float: left;
  3446. }
  3447. .InformationCard {
  3448. margin-top: 0px;
  3449. width: 100%;
  3450. height: 70px;
  3451. background-color: #242424;
  3452. float: left;
  3453. }
  3454. .informationCardAll {
  3455. width: 95%;
  3456. margin-left: 2.5%;
  3457. margin-top: 10px;
  3458. height: 60px;
  3459. float: left;
  3460. }
  3461. .informationCardTextOne {
  3462. width: 100%;
  3463. height: 35px;
  3464. float: left;
  3465. margin-top: -10px;
  3466. }
  3467. .informationCardTextNo1 {
  3468. /* margin-left: 2%; */
  3469. width: 115px;
  3470. height: 35px;
  3471. font-size: 10px;
  3472. line-height: 35px;
  3473. font-size: 10px;
  3474. transform: scale(0.975);
  3475. float: left;
  3476. }
  3477. .informationCardText {
  3478. /* margin-left: 2%; */
  3479. width: 115px;
  3480. height: 35px;
  3481. line-height: 35px;
  3482. user-select: text;
  3483. -webkit-user-select: text;
  3484. -moz-user-select: text;
  3485. -ms-user-select: text;
  3486. color: silver;
  3487. font-size: 10px;
  3488. transform: scale(0.975);
  3489. float: left;
  3490. }
  3491. .informationCardTextzj {
  3492. /* margin-left: 43%; */
  3493. width: 115px;
  3494. height: 35px;
  3495. line-height: 35px;
  3496. user-select: text;
  3497. -webkit-user-select: text;
  3498. -moz-user-select: text;
  3499. -ms-user-select: text;
  3500. color: silver;
  3501. font-size: 10px;
  3502. transform: scale(0.975);
  3503. float: right;
  3504. }
  3505. .informationCardTextTwo {
  3506. width: 100%;
  3507. height: 35px;
  3508. float: left;
  3509. user-select: text;
  3510. -webkit-user-select: text;
  3511. -moz-user-select: text;
  3512. -ms-user-select: text;
  3513. color: silver;
  3514. }
  3515. .informationCardText2 {
  3516. /* margin-left: 6%; */
  3517. margin-left: calc(50% - 190px);
  3518. width: 115px;
  3519. height: 35px;
  3520. font-size: 10px;
  3521. line-height: 35px;
  3522. transform: scale(0.975);
  3523. float: left;
  3524. }
  3525. .informationCardText3 {
  3526. /* margin-left: 6%; */
  3527. margin-left: calc(50% - 170px);
  3528. width: 130px;
  3529. height: 35px;
  3530. font-size: 10px;
  3531. line-height: 35px;
  3532. transform: scale(0.975);
  3533. float: left;
  3534. }
  3535. .AccessCardNumber {
  3536. width: 30%;
  3537. height: 35px;
  3538. float: left;
  3539. line-height: 35px;
  3540. text-align: center;
  3541. font-size: 12px;
  3542. user-select: text;
  3543. -webkit-user-select: text;
  3544. -moz-user-select: text;
  3545. -ms-user-select: text;
  3546. color: silver;
  3547. }
  3548. .AccessCardText {
  3549. width: 30%;
  3550. height: 35px;
  3551. float: left;
  3552. line-height: 35px;
  3553. text-align: center;
  3554. font-size: 12px;
  3555. user-select: text;
  3556. -webkit-user-select: text;
  3557. -moz-user-select: text;
  3558. -ms-user-select: text;
  3559. color: silver;
  3560. }
  3561. .AccessCardimage {
  3562. margin-left: 5px;
  3563. width: 30%;
  3564. height: 35px;
  3565. float: left;
  3566. }
  3567. .interfaceCard {
  3568. margin-top: 10px;
  3569. width: 100%;
  3570. height: 85px;
  3571. background-color: #242424;
  3572. float: left;
  3573. }
  3574. .interfaceCardSmallTop {
  3575. margin-top: 5px;
  3576. width: 100%;
  3577. height: 35px;
  3578. float: left;
  3579. }
  3580. .interfaceCardSmall {
  3581. margin-left: 8px;
  3582. width: 30%;
  3583. height: 35px;
  3584. float: left;
  3585. }
  3586. .progressBarLeftText {
  3587. user-select: text;
  3588. -webkit-user-select: text;
  3589. -moz-user-select: text;
  3590. -ms-user-select: text;
  3591. color: silver;
  3592. font-size: 12px;
  3593. float: left;
  3594. margin-left: 5px;
  3595. }
  3596. .progressBarRightText {
  3597. user-select: text;
  3598. -webkit-user-select: text;
  3599. -moz-user-select: text;
  3600. -ms-user-select: text;
  3601. color: silver;
  3602. font-size: 12px;
  3603. float: right;
  3604. margin-right: 5px;
  3605. }
  3606. .progressBar {
  3607. margin-top: 10px;
  3608. width: 100%;
  3609. height: 115px;
  3610. background-color: #242424;
  3611. float: left;
  3612. }
  3613. .progressBarAll {
  3614. margin-left: 9px;
  3615. width: calc(100% - 5%);
  3616. height: 60px;
  3617. float: left;
  3618. }
  3619. .progressBarText {
  3620. text-align: center;
  3621. width: 50%;
  3622. height: 30px;
  3623. line-height: 30px;
  3624. user-select: text;
  3625. -webkit-user-select: text;
  3626. -moz-user-select: text;
  3627. -ms-user-select: text;
  3628. color: silver;
  3629. font-size: 12px;
  3630. float: left;
  3631. }
  3632. .progressBarOne {
  3633. width: 100%;
  3634. height: 30px;
  3635. float: left;
  3636. }
  3637. .progressBarLeft {
  3638. width: 25%;
  3639. height: 30px;
  3640. line-height: 30px;
  3641. user-select: text;
  3642. -webkit-user-select: text;
  3643. -moz-user-select: text;
  3644. -ms-user-select: text;
  3645. color: silver;
  3646. font-size: 12px;
  3647. float: left;
  3648. }
  3649. .progressBarRight {
  3650. width: 25%;
  3651. height: 30px;
  3652. user-select: text;
  3653. -webkit-user-select: text;
  3654. -moz-user-select: text;
  3655. -ms-user-select: text;
  3656. color: silver;
  3657. font-size: 12px;
  3658. line-height: 30px;
  3659. float: right;
  3660. }
  3661. /* 风电场卡片css */
  3662. .windStation {
  3663. clear: both;
  3664. width: calc(100% - 18px);
  3665. margin-left: 9px;
  3666. height: 320px;
  3667. color: silver;
  3668. margin-bottom: 135px;;
  3669. /* background-color: #242424; */
  3670. }
  3671. .scrollWindStationCard {
  3672. white-space: nowrap;
  3673. }
  3674. .windStationCardContainer {
  3675. /* width: 1295px; */
  3676. height: 350px;
  3677. margin-top: 10px;
  3678. }
  3679. .windStationCard {
  3680. width: 250px;
  3681. height: 100%;
  3682. margin-right: 9px;
  3683. float: left;
  3684. background-color: #242424;
  3685. }
  3686. .windStationTitle {
  3687. width: 90%;
  3688. height: 30px;
  3689. line-height: 30px;
  3690. font-size: 12px;
  3691. margin-left: 5px;
  3692. }
  3693. .powerAndSpeedContainer {
  3694. width: 100%;
  3695. height: 90px;
  3696. }
  3697. .powerAndSpeedRed {
  3698. margin-top: 8px;
  3699. margin-left: 2%;
  3700. margin-right: 2%;
  3701. width: 46%;
  3702. height: 37px;
  3703. line-height: 37px;
  3704. text-align: left;
  3705. font-size: 12px;
  3706. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3707. border-radius: 5px;
  3708. float: left;
  3709. }
  3710. .powerAndSpeedRedText {
  3711. margin-left: 2%;
  3712. float: left;
  3713. }
  3714. .powerAndSpeedRed span {
  3715. color: white;
  3716. }
  3717. .HQChart {
  3718. width: 100%;
  3719. height: 100px;
  3720. margin-top: 8px;
  3721. }
  3722. .UChartContainer {
  3723. width: 250px;
  3724. height: 150px;
  3725. margin-top: 8px;
  3726. }
  3727. .windStationUChart {
  3728. width: 250px;
  3729. height: 150px;
  3730. position: absolute;
  3731. }
  3732. .windStationQiun-charts {
  3733. width: 250px;
  3734. height: 150px;
  3735. background-color: #242424;
  3736. }
  3737. .windStationCharts {
  3738. width: 250px;
  3739. height: 150px;
  3740. background-color: #242424;
  3741. }
  3742. .UChartTitle {
  3743. position: relative;
  3744. top: -2px;
  3745. left: 2px;
  3746. font-size: 12px;
  3747. width: 100px;
  3748. }
  3749. .xTime {
  3750. position: relative;
  3751. top: 90px;
  3752. left: 222px;
  3753. font-size: 8px;
  3754. width: 30px;
  3755. }
  3756. .fanStatusContainer {
  3757. width: 100%;
  3758. height: 70px;
  3759. }
  3760. .fanStatus {
  3761. width: 32%;
  3762. height: 30px;
  3763. margin-top: 5px;
  3764. margin-right: 0.5%;
  3765. margin-left: 0.5%;
  3766. float: left;
  3767. }
  3768. .statusIcon {
  3769. width: 22px;
  3770. height: 30px;
  3771. margin-left: 3px;
  3772. float: left;
  3773. }
  3774. .fanStatus {
  3775. height: 30px;
  3776. line-height: 30px;
  3777. font-size: 12px;
  3778. }
  3779. .AffectedPowerText {
  3780. width: 55px;
  3781. height: 25px;
  3782. float: left;
  3783. margin-left: 2px;
  3784. line-height: 25px;
  3785. }
  3786. .AffectedPower {
  3787. width: 24.5%;
  3788. height: 25px;
  3789. float: left;
  3790. }
  3791. .performancePowerText {
  3792. width: 55px;
  3793. height: 25px;
  3794. float: left;
  3795. margin-left: 2px;
  3796. line-height: 25px;
  3797. }
  3798. .performancePower {
  3799. width: 24.5%;
  3800. height: 25px;
  3801. float: left;
  3802. }
  3803. .limitedPowerText {
  3804. width: 55px;
  3805. height: 25px;
  3806. float: left;
  3807. margin-left: 2px;
  3808. line-height: 25px;
  3809. }
  3810. .limitedPower {
  3811. margin-left: 1.2%;
  3812. width: 24.5%;
  3813. height: 25px;
  3814. float: left;
  3815. }
  3816. .maintenancePowerText {
  3817. width: 55px;
  3818. height: 25px;
  3819. float: left;
  3820. margin-left: 2px;
  3821. line-height: 25px;
  3822. }
  3823. .maintenancePower {
  3824. margin-left: 2px;
  3825. width: 24.5%;
  3826. height: 25px;
  3827. float: left;
  3828. }
  3829. .faultPowerText {
  3830. width: 55px;
  3831. height: 25px;
  3832. float: left;
  3833. margin-left: 2px;
  3834. line-height: 25px;
  3835. }
  3836. .faultPower {
  3837. width: 24.5%;
  3838. height: 25px;
  3839. float: left;
  3840. }
  3841. .powerGenerationText {
  3842. width: 55px;
  3843. height: 25px;
  3844. float: left;
  3845. margin-left: 2px;
  3846. line-height: 25px;
  3847. }
  3848. .powerGeneration {
  3849. width: 24.5%;
  3850. height: 25px;
  3851. float: left;
  3852. }
  3853. .directGenerationText {
  3854. width: 55px;
  3855. height: 25px;
  3856. float: left;
  3857. margin-left: 2px;
  3858. line-height: 25px;
  3859. }
  3860. .directGeneration {
  3861. width: 24.5%;
  3862. height: 25px;
  3863. float: left;
  3864. margin-left: 1.3%;
  3865. }
  3866. .choice {
  3867. width: 100%;
  3868. height: 80px;
  3869. float: left;
  3870. user-select: text;
  3871. -webkit-user-select: text;
  3872. -moz-user-select: text;
  3873. -ms-user-select: text;
  3874. color: silver;
  3875. font-size: 12px;
  3876. }
  3877. .speedPowerDiagram {
  3878. width: 100px;
  3879. height: 30px;
  3880. user-select: text;
  3881. -webkit-user-select: text;
  3882. -moz-user-select: text;
  3883. -ms-user-select: text;
  3884. color: silver;
  3885. float: left;
  3886. margin-top: 18px;
  3887. margin-left: 9px;
  3888. font-size: 11px;
  3889. }
  3890. .qiun-chart {
  3891. margin-top: 50px;
  3892. width: 750upx;
  3893. height: 400upx;
  3894. }
  3895. .chart {
  3896. width: 750upx;
  3897. height: 400upx;
  3898. }
  3899. .DrawerPage {
  3900. position: fixed;
  3901. width: 100vw;
  3902. height: 100vh;
  3903. left: 0vw;
  3904. background-color: #1f1f1f;
  3905. transition: all 0.4s;
  3906. }
  3907. .DrawerPage.show {
  3908. transform: scale(0.9, 0.9);
  3909. left: 85vw;
  3910. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  3911. transform-origin: 0;
  3912. }
  3913. .DrawerWindow {
  3914. position: absolute;
  3915. width: 85vw;
  3916. height: 100vh;
  3917. left: 0;
  3918. top: 0;
  3919. transform: scale(0.9, 0.9) translateX(-100%);
  3920. opacity: 0;
  3921. pointer-events: none;
  3922. transition: all 0.4s;
  3923. padding: 100upx 0;
  3924. }
  3925. .DrawerWindow.show {
  3926. transform: scale(1, 1) translateX(0%);
  3927. opacity: 1;
  3928. pointer-events: all;
  3929. }
  3930. .DrawerClose {
  3931. position: absolute;
  3932. width: 40vw;
  3933. height: 100vh;
  3934. right: 0;
  3935. top: 0;
  3936. color: transparent;
  3937. padding-bottom: 30upx;
  3938. display: flex;
  3939. align-items: flex-end;
  3940. justify-content: center;
  3941. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  3942. letter-spacing: 5px;
  3943. font-size: 50upx;
  3944. opacity: 0;
  3945. pointer-events: none;
  3946. transition: all 0.4s;
  3947. }
  3948. .DrawerClose.show {
  3949. opacity: 1;
  3950. pointer-events: all;
  3951. width: 15vw;
  3952. color: #fff;
  3953. }
  3954. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  3955. width: 64upx;
  3956. height: 64upx;
  3957. line-height: 64upx;
  3958. margin: 0;
  3959. display: inline-block;
  3960. }
  3961. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  3962. margin: 0;
  3963. }
  3964. .DrawerPage .nav {
  3965. flex: 1;
  3966. }
  3967. .DrawerPage .nav .cu-item.cur {
  3968. border-bottom: 0;
  3969. position: relative;
  3970. }
  3971. .DrawerPage .nav .cu-item.cur::after {
  3972. content: '';
  3973. width: 10upx;
  3974. height: 10upx;
  3975. background-color: currentColor;
  3976. position: absolute;
  3977. bottom: 10upx;
  3978. border-radius: 10upx;
  3979. left: 0;
  3980. right: 0;
  3981. margin: auto;
  3982. }
  3983. .DrawerPage .cu-bar.tabbar .action {
  3984. flex: initial;
  3985. }
  3986. </style>