Index.vue 135 KB

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