Index.vue 139 KB

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