Index.vue 135 KB

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