Index.vue 136 KB

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