Index.vue 134 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604
  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.address = this.dataprocessing.getWindPowerStationName();
  958. this.FDC=this.dataprocessing.getWindPowerStationId();
  959. this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
  960. this.cWidth = uni.upx2px(750);
  961. this.cHeight = uni.upx2px(400);
  962. this.getServerData();
  963. this.getColumnData();
  964. this.windStationCardCWidth = 250;
  965. this.windStationCardCHeight = 150;
  966. this.target_comprehensive_indicators();
  967. this.index_electricQuantity();
  968. this.index_target_basic_indicators();
  969. this.index_curve_columnar_five_loss();
  970. this.target_windSpeed_power();
  971. this.index_windturbine_status();
  972. this.getWindStationCardData();
  973. this.index_curve_columnar_windSpeed_power();
  974. this.index_windStation_card(); /* P6F8与P6F4冲突 */
  975. },
  976. computed: {
  977. backStageIp: function() {
  978. return this.$store.state.wholeSituationBackStageIp;
  979. },
  980. backStagePort: function() {
  981. return this.$store.state.wholeSituationBackStagePort;
  982. },
  983. windpowerstationNameToId: function() {
  984. return this.$store.state.windpowerstationNameToId;
  985. }
  986. },
  987. onHide() {
  988. this.$refs.drawer.closeDrawer();
  989. this.hideModal();
  990. },
  991. onShow: function() {
  992. this.address = this.dataprocessing.getWindPowerStationName();
  993. this.FDC=this.dataprocessing.getWindPowerStationId();
  994. this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
  995. this.viewUserid();
  996. this.monitoringAuthority();
  997. },
  998. methods: {
  999. timeNow(){
  1000. this.getTimeFormat();
  1001. this.dateNow = new Date().Format('yyyy年MM月dd hh:mm');
  1002. setTimeout(function() {
  1003. this.dateNow = new Date().Format('yyyy年MM月dd hh:mm');
  1004. }, 60000);
  1005. },viewUserid: function() {
  1006. this.plusDrawerList=uni.getStorageSync('plusList');
  1007. },
  1008. monitoringAuthority: function() {
  1009. this.drawerList=uni.getStorageSync('leftlist1');
  1010. },
  1011. async index_curve_columnar_five_loss() {
  1012. Date.prototype.Format = function(fmt) {
  1013. var o = {
  1014. 'M+': this.getMonth() + 1, //月份
  1015. 'd+': this.getDate(), //日
  1016. 'h+': this.getHours(), //小时
  1017. 'm+': this.getMinutes(), //分
  1018. 's+': this.getSeconds(), //秒
  1019. 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
  1020. S: this.getMilliseconds() //毫秒
  1021. };
  1022. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
  1023. for (var k in o)
  1024. if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
  1025. k]).substr(('' + o[k]).length));
  1026. return fmt;
  1027. };
  1028. let _this = this;
  1029. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1030. this.socketTask_index_curve_columnar_five_loss = uni.connectSocket({
  1031. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1032. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_7',
  1033. success(data) {
  1034. console.log('websocket连接成功');
  1035. }
  1036. });
  1037. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1038. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1039. this.socketTask_index_curve_columnar_five_loss.onOpen(res => {
  1040. console.log('WebSocket连接正常打开中...!');
  1041. this.is_open_socket = true;
  1042. // 注:只有连接正常打开中 ,才能正常收到消息
  1043. this.socketTask_index_curve_columnar_five_loss.onMessage(res => {
  1044. //console.log("收到服务器内容:" + res.data);
  1045. _this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule = JSON.parse(res.data);
  1046. let ColumnStack = this.c1;
  1047. if (this.dayHair) {
  1048. ColumnStack = {
  1049. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1050. series: [{
  1051. name: '日发电量(万kwh)',
  1052. data: [18, 13, 12, 17, 13, 7, 11, 15, 13],
  1053. color: '#4EB64E'
  1054. }]
  1055. };
  1056. ColumnStack.categories = [];
  1057. ColumnStack.series[0].data = [];
  1058. for (let i = 0; i < this.rifa.length; i++) {
  1059. ColumnStack.categories.push(this.Xzuobiao[i]);
  1060. // console.log(ColumnStack.categories)
  1061. ColumnStack.series[0].data.push(this.rifa[i]);
  1062. // console.log(ColumnStack.series[1].data)
  1063. }
  1064. }
  1065. if (this.fault) {
  1066. ColumnStack = {
  1067. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1068. series: [{
  1069. name: '故障损失电量(万kwh)',
  1070. data: [17, 15, 17, 21, 16, 8, 10, 17, 11],
  1071. color: '#F14E51'
  1072. }]
  1073. };
  1074. ColumnStack.categories = [];
  1075. ColumnStack.series[0].data = [];
  1076. for (let i = 0; i < this.guzhang.length; i++) {
  1077. ColumnStack.categories.push(this.Xzuobiao[i]);
  1078. // console.log(ColumnStack.categories)
  1079. ColumnStack.series[0].data.push(this.guzhang[i]);
  1080. // console.log(ColumnStack.series[1].data)
  1081. }
  1082. }
  1083. if (this.overhaul) {
  1084. ColumnStack = {
  1085. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1086. series: [{
  1087. name: '检修损失电量(万kwh)',
  1088. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1089. color: '#FF6B3E'
  1090. }]
  1091. };
  1092. ColumnStack.categories = [];
  1093. ColumnStack.series[0].data = [];
  1094. for (let i = 0; i < this.jianxiu.length; i++) {
  1095. ColumnStack.categories.push(this.Xzuobiao[i]);
  1096. // console.log(ColumnStack.categories)
  1097. ColumnStack.series[0].data.push(this.jianxiu[i]);
  1098. // console.log(ColumnStack.series[1].data)
  1099. }
  1100. }
  1101. if (this.powerLimitation) {
  1102. ColumnStack = {
  1103. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1104. series: [{
  1105. name: '限电损失电量(万kwh)',
  1106. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1107. color: '#DC62D2'
  1108. }]
  1109. };
  1110. ColumnStack.categories = [];
  1111. ColumnStack.series[0].data = [];
  1112. for (let i = 0; i < this.xiandian.length; i++) {
  1113. ColumnStack.categories.push(this.Xzuobiao[i]);
  1114. // console.log(ColumnStack.categories)
  1115. ColumnStack.series[0].data.push(this.xiandian[i]);
  1116. // console.log(ColumnStack.series[1].data)
  1117. }
  1118. }
  1119. if (this.performance) {
  1120. ColumnStack = {
  1121. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1122. series: [{
  1123. name: '性能损失电量(万kwh)',
  1124. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1125. color: '#9DA3F6'
  1126. }]
  1127. };
  1128. ColumnStack.categories = [];
  1129. ColumnStack.series[0].data = [];
  1130. for (let i = 0; i < this.xingneng.length; i++) {
  1131. ColumnStack.categories.push(this.Xzuobiao[i]);
  1132. // console.log(ColumnStack.categories)
  1133. ColumnStack.series[0].data.push(this.xingneng[i]);
  1134. // console.log(ColumnStack.series[1].data)
  1135. }
  1136. }
  1137. if (this.toBeInvolved) {
  1138. ColumnStack = {
  1139. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1140. series: [{
  1141. name: '受累损失电量(万kwh)',
  1142. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1143. color: '#9E9E9E'
  1144. }]
  1145. };
  1146. ColumnStack.categories = [];
  1147. ColumnStack.series[0].data = [];
  1148. for (let i = 0; i < this.shoulei.length; i++) {
  1149. ColumnStack.categories.push(this.Xzuobiao[i]);
  1150. // console.log(ColumnStack.categories)
  1151. ColumnStack.series[0].data.push(this.shoulei[i]);
  1152. // console.log(ColumnStack.series[1].data)
  1153. }
  1154. }
  1155. ColumnStack.categories = [];
  1156. //ColumnStack.series[0].data=[];
  1157. ColumnStack.series[1].data = [];
  1158. ColumnStack.series[2].data = [];
  1159. ColumnStack.series[3].data = [];
  1160. ColumnStack.series[4].data = [];
  1161. ColumnStack.series[5].data = [];
  1162. ColumnStack.series[6].data = [];
  1163. /* LineA.series[0].name=this.targetName; */
  1164. _this.Xzuobiao = [];
  1165. _this.rifa = [];
  1166. _this.guzhang = [];
  1167. _this.jianxiu = [];
  1168. _this.xiandian = [];
  1169. _this.xingneng = [];
  1170. _this.shoulei = [];
  1171. for (var i = 0; i < _this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1172. .length; i++) {
  1173. let time = new Date(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1174. [i].time).Format('MM/dd');
  1175. ColumnStack.categories.push(time);
  1176. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1177. //ColumnStack.series[0].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value7);
  1178. ColumnStack.series[1].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  1179. _this.FDC][i].value1);
  1180. ColumnStack.series[2].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  1181. _this.FDC][i].value2);
  1182. ColumnStack.series[3].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  1183. _this.FDC][i].value3);
  1184. ColumnStack.series[4].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  1185. _this.FDC][i].value4);
  1186. ColumnStack.series[5].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  1187. _this.FDC][i].value5);
  1188. ColumnStack.series[6].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  1189. _this.FDC][i].value6);
  1190. _this.Xzuobiao.push(time);
  1191. // _this.$set(_this.rifa,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value1);
  1192. // _this.$set(_this.guzhang,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value2);
  1193. // _this.$set(_this.jianxiu,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value3);
  1194. // _this.$set(_this.xiandian,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value4);
  1195. // _this.$set(_this.xingneng,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value5);
  1196. // _this.$set(_this.shoulei,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value6);
  1197. _this.rifa.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][
  1198. i
  1199. ].value1);
  1200. _this.guzhang.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1201. [i].value2);
  1202. _this.jianxiu.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1203. [i].value3);
  1204. _this.xiandian.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1205. [i].value4);
  1206. _this.xingneng.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1207. [i].value5);
  1208. _this.shoulei.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  1209. [i].value6);
  1210. //ColumnStack.series[1].data.push(_this.rifa[i]);
  1211. }
  1212. _this.showColumnStack('canvasColumnStack', ColumnStack);
  1213. });
  1214. });
  1215. },
  1216. /* async index_windStation_card() {
  1217. let _this = this;
  1218. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1219. this.socketTask_index_windStation_card = uni.connectSocket({
  1220. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1221. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_8',
  1222. success(data) {
  1223. console.log('websocket连接成功');
  1224. }
  1225. });
  1226. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1227. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1228. this.socketTask_index_windStation_card.onOpen(res => {
  1229. console.log('WebSocket连接正常打开中...!');
  1230. this.is_open_socket = true;
  1231. // 注:只有连接正常打开中 ,才能正常收到消息
  1232. this.socketTask_index_windStation_card.onMessage(res => {
  1233. //console.log("收到服务器内容:" + res.data);
  1234. _this.index_windStation_cardmodule.index_windStation_cardmodule = JSON.parse(res.data);
  1235. console.log();
  1236. });
  1237. });
  1238. }, */
  1239. async index_windStation_card() {
  1240. let _this = this;
  1241. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1242. this.socketTask_index_windStation_card = uni.connectSocket({
  1243. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1244. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_8',
  1245. success(data) {
  1246. console.log('websocket连接成功');
  1247. }
  1248. });
  1249. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1250. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1251. this.socketTask_index_windStation_card.onOpen(res => {
  1252. console.log('WebSocket连接正常打开中...!');
  1253. this.is_open_socket = true;
  1254. // 注:只有连接正常打开中 ,才能正常收到消息
  1255. this.socketTask_index_windStation_card.onMessage(res => {
  1256. //console.log("收到服务器内容:" + res.data);
  1257. _this.index_windStation_cardmodule.index_windStation_cardmodule = JSON.parse(res.data);
  1258. _this.cardmodule = false;
  1259. console.log();
  1260. });
  1261. });
  1262. },
  1263. async index_curve_columnar_windSpeed_power() {
  1264. Date.prototype.Format = function(fmt) {
  1265. var o = {
  1266. 'M+': this.getMonth() + 1, //月份
  1267. 'd+': this.getDate(), //日
  1268. 'h+': this.getHours(), //小时
  1269. 'm+': this.getMinutes(), //分
  1270. 's+': this.getSeconds(), //秒
  1271. 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
  1272. S: this.getMilliseconds() //毫秒
  1273. };
  1274. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
  1275. for (var k in o)
  1276. if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
  1277. k]).substr(('' + o[k]).length));
  1278. return fmt;
  1279. };
  1280. let _this = this;
  1281. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1282. this.socketTask_index_curve_columnar_windSpeed_power = uni.connectSocket({
  1283. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1284. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_6',
  1285. /* url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_7/functionNumber_4', */
  1286. success(data) {
  1287. console.log('websocket连接成功');
  1288. }
  1289. });
  1290. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1291. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1292. this.socketTask_index_curve_columnar_windSpeed_power.onOpen(res => {
  1293. console.log('WebSocket连接正常打开中...!');
  1294. this.is_open_socket = true;
  1295. // 注:只有连接正常打开中 ,才能正常收到消息
  1296. this.socketTask_index_curve_columnar_windSpeed_power.onMessage(res => {
  1297. //console.log("收到服务器内容:" + res.data);
  1298. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule = JSON.parse(res
  1299. .data);
  1300. console.log("---");
  1301. let LineA = {
  1302. categories: [],
  1303. series: [{
  1304. name: '功率',
  1305. data: [],
  1306. color: '#4BB94B',
  1307. textColor: '#FFFFFF',
  1308. textSize: this.seriesTextSize,
  1309. format: val => {
  1310. return val + 'kwh';
  1311. },
  1312. index: 0,
  1313. legendShape: 'circle'
  1314. },
  1315. {
  1316. name: '风速',
  1317. data: [],
  1318. color: '#E82E2F',
  1319. textColor: '#FFFFFF',
  1320. textSize: this.seriesTextSize,
  1321. format: val => {
  1322. return val + 'm/s';
  1323. },
  1324. index: 1,
  1325. legendShape: 'circle'
  1326. },
  1327. {
  1328. name: '理论功率',
  1329. data: [],
  1330. color: '#F5A83C',
  1331. textColor: '#FFFFFF',
  1332. textSize: this.seriesTextSize,
  1333. format: val => {
  1334. return val + 'kwh';
  1335. },
  1336. index: 0,
  1337. legendShape: 'circle'
  1338. },
  1339. {
  1340. name: '预测功率',
  1341. data: [],
  1342. color: '#4A80B1',
  1343. textColor: '#FFFFFF',
  1344. textSize: this.seriesTextSize,
  1345. format: val => {
  1346. return val + 'kwh';
  1347. },
  1348. index: 1,
  1349. legendShape: 'circle'
  1350. }
  1351. ]
  1352. };
  1353. let LineB = {
  1354. categories: [],
  1355. series: [{
  1356. name: '功率',
  1357. data: [],
  1358. color: '#4BB94B',
  1359. textColor: '#FFFFFF',
  1360. textSize: this.seriesTextSize,
  1361. format: val => {
  1362. return val + 'kwh';
  1363. },
  1364. index: 0,
  1365. legendShape: 'circle'
  1366. },
  1367. {
  1368. name: '风速',
  1369. data: [],
  1370. color: '#E82E2F',
  1371. textColor: '#FFFFFF',
  1372. textSize: this.seriesTextSize,
  1373. format: val => {
  1374. return val + 'm/s';
  1375. },
  1376. index: 1,
  1377. legendShape: 'circle'
  1378. },
  1379. {
  1380. name: '理论功率',
  1381. data: [],
  1382. color: '#F5A83C',
  1383. textColor: '#FFFFFF',
  1384. textSize: this.seriesTextSize,
  1385. format: val => {
  1386. return val + 'kwh';
  1387. },
  1388. index: 0,
  1389. legendShape: 'circle'
  1390. },
  1391. {
  1392. name: '预测功率',
  1393. data: [],
  1394. color: '#4A80B1',
  1395. textColor: '#FFFFFF',
  1396. textSize: this.seriesTextSize,
  1397. format: val => {
  1398. return val + 'kwh';
  1399. },
  1400. index: 1,
  1401. legendShape: 'circle'
  1402. }
  1403. ]
  1404. };
  1405. let LineC = {
  1406. categories: [],
  1407. series: [{
  1408. name: '功率',
  1409. data: [],
  1410. color: '#4BB94B',
  1411. textColor: '#FFFFFF',
  1412. textSize: this.seriesTextSize,
  1413. format: val => {
  1414. return val + 'kwh';
  1415. },
  1416. index: 0,
  1417. legendShape: 'circle'
  1418. },
  1419. {
  1420. name: '风速',
  1421. data: [],
  1422. color: '#E82E2F',
  1423. textColor: '#FFFFFF',
  1424. textSize: this.seriesTextSize,
  1425. format: val => {
  1426. return val + 'm/s';
  1427. },
  1428. index: 1,
  1429. legendShape: 'circle'
  1430. },
  1431. {
  1432. name: '理论功率',
  1433. data: [],
  1434. color: '#F5A83C',
  1435. textColor: '#FFFFFF',
  1436. textSize: this.seriesTextSize,
  1437. format: val => {
  1438. return val + 'kwh';
  1439. },
  1440. index: 0,
  1441. legendShape: 'circle'
  1442. },
  1443. {
  1444. name: '预测功率',
  1445. data: [],
  1446. color: '#4A80B1',
  1447. textColor: '#FFFFFF',
  1448. textSize: this.seriesTextSize,
  1449. format: val => {
  1450. return val + 'kwh';
  1451. },
  1452. index: 1,
  1453. legendShape: 'circle'
  1454. }
  1455. ]
  1456. };
  1457. let LineD = {
  1458. categories: [],
  1459. series: [{
  1460. name: '功率',
  1461. data: [],
  1462. color: '#4BB94B',
  1463. textColor: '#FFFFFF',
  1464. textSize: this.seriesTextSize,
  1465. format: val => {
  1466. return val + 'kwh';
  1467. },
  1468. index: 0,
  1469. legendShape: 'circle'
  1470. },
  1471. {
  1472. name: '风速',
  1473. data: [],
  1474. color: '#E82E2F',
  1475. textColor: '#FFFFFF',
  1476. textSize: this.seriesTextSize,
  1477. format: val => {
  1478. return val + 'm/s';
  1479. },
  1480. index: 1,
  1481. legendShape: 'circle'
  1482. },
  1483. {
  1484. name: '理论功率',
  1485. data: [],
  1486. color: '#F5A83C',
  1487. textColor: '#FFFFFF',
  1488. textSize: this.seriesTextSize,
  1489. format: val => {
  1490. return val + 'kwh';
  1491. },
  1492. index: 0,
  1493. legendShape: 'circle'
  1494. },
  1495. {
  1496. name: '预测功率',
  1497. data: [],
  1498. color: '#4A80B1',
  1499. textColor: '#FFFFFF',
  1500. textSize: this.seriesTextSize,
  1501. format: val => {
  1502. return val + 'kwh';
  1503. },
  1504. index: 1,
  1505. legendShape: 'circle'
  1506. }
  1507. ]
  1508. };
  1509. let LineE = {
  1510. categories: [],
  1511. series: [{
  1512. name: '功率',
  1513. data: [],
  1514. color: '#4BB94B',
  1515. textColor: '#FFFFFF',
  1516. textSize: this.seriesTextSize,
  1517. format: val => {
  1518. return val + 'kwh';
  1519. },
  1520. index: 0,
  1521. legendShape: 'circle'
  1522. },
  1523. {
  1524. name: '风速',
  1525. data: [],
  1526. color: '#E82E2F',
  1527. textColor: '#FFFFFF',
  1528. textSize: this.seriesTextSize,
  1529. format: val => {
  1530. return val + 'm/s';
  1531. },
  1532. index: 1,
  1533. legendShape: 'circle'
  1534. },
  1535. {
  1536. name: '理论功率',
  1537. data: [],
  1538. color: '#F5A83C',
  1539. textColor: '#FFFFFF',
  1540. textSize: this.seriesTextSize,
  1541. format: val => {
  1542. return val + 'kwh';
  1543. },
  1544. index: 0,
  1545. legendShape: 'circle'
  1546. },
  1547. {
  1548. name: '预测功率',
  1549. data: [],
  1550. color: '#4A80B1',
  1551. textColor: '#FFFFFF',
  1552. textSize: this.seriesTextSize,
  1553. format: val => {
  1554. return val + 'kwh';
  1555. },
  1556. index: 1,
  1557. legendShape: 'circle'
  1558. }
  1559. ]
  1560. };
  1561. let Line = {
  1562. categories: [],
  1563. series: [{
  1564. name: '功率',
  1565. data: [],
  1566. color: '#4BB94B',
  1567. textColor: '#FFFFFF',
  1568. textSize: this.seriesTextSize,
  1569. format: val => {
  1570. return val + 'kwh';
  1571. },
  1572. index: 0,
  1573. legendShape: 'circle'
  1574. },
  1575. {
  1576. name: '风速',
  1577. data: [],
  1578. color: '#E82E2F',
  1579. textColor: '#FFFFFF',
  1580. textSize: this.seriesTextSize,
  1581. format: val => {
  1582. return val + 'm/s';
  1583. },
  1584. index: 1,
  1585. legendShape: 'circle'
  1586. },
  1587. {
  1588. name: '理论功率',
  1589. data: [],
  1590. color: '#F5A83C',
  1591. textColor: '#FFFFFF',
  1592. textSize: this.seriesTextSize,
  1593. format: val => {
  1594. return val + 'kwh';
  1595. },
  1596. index: 0,
  1597. legendShape: 'circle'
  1598. },
  1599. {
  1600. name: '预测功率',
  1601. data: [],
  1602. color: '#4A80B1',
  1603. textColor: '#FFFFFF',
  1604. textSize: this.seriesTextSize,
  1605. format: val => {
  1606. return val + 'kwh';
  1607. },
  1608. index: 1,
  1609. legendShape: 'circle'
  1610. }
  1611. ]
  1612. };
  1613. Line.categories = [];
  1614. Line.series[0].data = [];
  1615. /* LineA.series[0].name=this.targetName; */
  1616. console.log(_this.FDC);
  1617. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1618. _this.FDC]['gl'].length; i++) {
  1619. let time = new Date(
  1620. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1621. 'gl'
  1622. ][i].pointTime * 1000
  1623. ).Format('hh');
  1624. Line.categories.push(time);
  1625. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1626. Line.series[0].data.push(
  1627. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1628. 'gl'
  1629. ][i].pointValueInDouble
  1630. );
  1631. Line.series[1].data.push(
  1632. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1633. 'fs'
  1634. ][i].pointValueInDouble
  1635. );
  1636. Line.series[2].data.push(
  1637. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1638. 'llgl'
  1639. ][i].pointValueInDouble
  1640. );
  1641. Line.series[3].data.push(
  1642. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1643. 'ycgl'
  1644. ][i].pointValueInDouble
  1645. );
  1646. }
  1647. LineA.categories = [];
  1648. LineA.series[0].data = [];
  1649. /* LineA.series[0].name=this.targetName; */
  1650. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1651. 'CL_FDC']['gl'].length; i++) {
  1652. let time = new Date(
  1653. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1654. 'gl'
  1655. ][i].pointTime * 1000
  1656. ).Format('hh');
  1657. LineA.categories.push(time);
  1658. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1659. LineA.series[0].data.push(
  1660. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1661. 'gl'
  1662. ][i].pointValueInDouble
  1663. );
  1664. LineA.series[1].data.push(
  1665. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1666. 'fs'
  1667. ][i].pointValueInDouble
  1668. );
  1669. LineA.series[2].data.push(
  1670. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1671. 'llgl'
  1672. ][i].pointValueInDouble
  1673. );
  1674. LineA.series[3].data.push(
  1675. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1676. 'ycgl'
  1677. ][i].pointValueInDouble
  1678. );
  1679. }
  1680. LineB.categories = [];
  1681. LineB.series[0].data = [];
  1682. /* LineA.series[0].name=this.targetName; */
  1683. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1684. 'DX_FDC']['gl'].length; i++) {
  1685. let time = new Date(
  1686. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1687. 'gl'
  1688. ][i].pointTime * 1000
  1689. ).Format('hh');
  1690. LineB.categories.push(time);
  1691. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1692. LineB.series[0].data.push(
  1693. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1694. 'gl'
  1695. ][i].pointValueInDouble
  1696. );
  1697. LineB.series[1].data.push(
  1698. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1699. 'fs'
  1700. ][i].pointValueInDouble
  1701. );
  1702. LineB.series[2].data.push(
  1703. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1704. 'llgl'
  1705. ][i].pointValueInDouble
  1706. );
  1707. LineB.series[3].data.push(
  1708. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1709. 'ycgl'
  1710. ][i].pointValueInDouble
  1711. );
  1712. }
  1713. LineC.categories = [];
  1714. LineC.series[0].data = [];
  1715. /* LineA.series[0].name=this.targetName; */
  1716. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1717. 'KB_FDC']['gl'].length; i++) {
  1718. let time = new Date(
  1719. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1720. 'gl'
  1721. ][i].pointTime * 1000
  1722. ).Format('hh');
  1723. LineC.categories.push(time);
  1724. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1725. LineC.series[0].data.push(
  1726. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1727. 'gl'
  1728. ][i].pointValueInDouble
  1729. );
  1730. LineC.series[1].data.push(
  1731. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1732. 'fs'
  1733. ][i].pointValueInDouble
  1734. );
  1735. LineC.series[2].data.push(
  1736. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1737. 'llgl'
  1738. ][i].pointValueInDouble
  1739. );
  1740. LineC.series[3].data.push(
  1741. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1742. 'ycgl'
  1743. ][i].pointValueInDouble
  1744. );
  1745. }
  1746. /* LineD.categories = [];
  1747. LineD.series[0].data = [];
  1748. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1749. 'QS_FDC']['gl'].length; i++) {
  1750. let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1751. 'QS_FDC']['gl'][i].pointTime * 1000).Format(
  1752. 'hh'
  1753. );
  1754. LineD.categories.push(time);
  1755. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1756. LineD.series[0].data.push(
  1757. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1758. 'gl'
  1759. ][i].pointValueInDouble
  1760. );
  1761. LineD.series[1].data.push(
  1762. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1763. 'fs'
  1764. ][i].pointValueInDouble
  1765. );
  1766. LineD.series[2].data.push(
  1767. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1768. 'llgl'
  1769. ][i].pointValueInDouble
  1770. );
  1771. LineD.series[3].data.push(
  1772. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1773. 'ycgl'
  1774. ][i].pointValueInDouble
  1775. );
  1776. }
  1777. LineE.categories = [];
  1778. LineE.series[0].data = [];
  1779. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1780. 'XS_FDC']['gl'].length; i++) {
  1781. let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1782. 'XS_FDC']['gl'][i].pointTime * 1000).Format(
  1783. 'hh'
  1784. );
  1785. LineE.categories.push(time);
  1786. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1787. LineE.series[0].data.push(
  1788. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1789. 'gl'
  1790. ][i].pointValueInDouble
  1791. );
  1792. LineE.series[1].data.push(
  1793. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1794. 'fs'
  1795. ][i].pointValueInDouble
  1796. );
  1797. LineE.series[2].data.push(
  1798. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1799. 'llgl'
  1800. ][i].pointValueInDouble
  1801. );
  1802. LineE.series[3].data.push(
  1803. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1804. 'ycgl'
  1805. ][i].pointValueInDouble
  1806. );
  1807. } */
  1808. _this.showLineA('canvasLineA', Line);
  1809. _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
  1810. // _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
  1811. _this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  1812. _this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  1813. /*
  1814. _this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  1815. _this.showWindStationCardLineA5('windStationCanvasLineE', LineE); */
  1816. });
  1817. });
  1818. },
  1819. openDrawer: function() {
  1820. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
  1821. },
  1822. closeDrawer: function() {
  1823. this.drawerIsShow = false;
  1824. },
  1825. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  1826. uni.setStorageSync('windpowerstationName', windpowerstationName);
  1827. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  1828. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  1829. //this.common.goback('/pages/index/Index');
  1830. },
  1831. getWindPowerStationNameToSessionStorage() {
  1832. uni.getStorageSync('windpowerstationName');
  1833. return uni.getStorageSync('windpowerstationName');
  1834. },
  1835. showModal(e) {
  1836. this.modalName = e.currentTarget.dataset.target;
  1837. this.viewUserid();
  1838. this.monitoringAuthority();
  1839. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  1840. },
  1841. hideModal() {
  1842. this.modalName = null;
  1843. this.$refs.plusDrawer.hideModal(this.modalName);
  1844. },
  1845. async target_comprehensive_indicators() {
  1846. let _this = this;
  1847. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1848. this.socketTask_target_comprehensive_indicators = uni.connectSocket({
  1849. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1850. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_1',
  1851. success(data) {
  1852. console.log('websocket连接成功');
  1853. }
  1854. });
  1855. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1856. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1857. this.socketTask_target_comprehensive_indicators.onOpen(res => {
  1858. console.log('WebSocket连接正常打开中...!');
  1859. this.is_open_socket = true;
  1860. // 注:只有连接正常打开中 ,才能正常收到消息
  1861. this.socketTask_target_comprehensive_indicators.onMessage(res => {
  1862. //console.log("收到服务器内容:" + res.data);
  1863. _this.windpowerstationdetail.target_comprehensive_indicators = JSON.parse(res.data)[_this.FDC];
  1864. console.log();
  1865. });
  1866. });
  1867. // 这里仅是事件监听【如果socket关闭了会执行】
  1868. /* this.socketTask_comprehensive_target.onClose(() => {
  1869. uni.request({
  1870. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1871. success: (res) => {
  1872. }
  1873. });
  1874. }) */
  1875. },
  1876. async target_windSpeed_power() {
  1877. let _this = this;
  1878. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1879. this.socketTask_target_windSpeed_power = uni.connectSocket({
  1880. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1881. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_2',
  1882. success(data) {
  1883. console.log('websocket连接成功');
  1884. }
  1885. });
  1886. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1887. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1888. this.socketTask_target_windSpeed_power.onOpen(res => {
  1889. console.log('WebSocket连接正常打开中...!');
  1890. this.is_open_socket = true;
  1891. // 注:只有连接正常打开中 ,才能正常收到消息
  1892. this.socketTask_target_windSpeed_power.onMessage(res => {
  1893. //console.log("收到服务器内容:" + res.data);
  1894. _this.windpowerstationdetail.target_windSpeed_power = JSON.parse(res.data)[_this.FDC];
  1895. });
  1896. });
  1897. // 这里仅是事件监听【如果socket关闭了会执行】
  1898. /* this.socketTask_comprehensive_target.onClose(() => {
  1899. uni.request({
  1900. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1901. success: (res) => {
  1902. }
  1903. });
  1904. }) */
  1905. },
  1906. async index_windturbine_status() {
  1907. let _this = this;
  1908. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1909. this.socketTask_index_windturbine_status = uni.connectSocket({
  1910. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1911. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_3',
  1912. success(data) {
  1913. console.log('websocket连接成功');
  1914. }
  1915. });
  1916. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1917. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1918. this.socketTask_index_windturbine_status.onOpen(res => {
  1919. console.log('WebSocket连接正常打开中...!');
  1920. this.is_open_socket = true;
  1921. // 注:只有连接正常打开中 ,才能正常收到消息
  1922. this.socketTask_index_windturbine_status.onMessage(res => {
  1923. //console.log("收到服务器内容:" + res.data);
  1924. _this.windpowerstationdetail.index_windturbine_status = JSON.parse(res.data)[_this.FDC];
  1925. _this.fdcstatusmodule.fdcstatusmodule = JSON.parse(res.data);
  1926. console.log("---");
  1927. _this.module = false;
  1928. });
  1929. });
  1930. // 这里仅是事件监听【如果socket关闭了会执行】
  1931. /* this.socketTask_comprehensive_target.onClose(() => {
  1932. uni.request({
  1933. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1934. success: (res) => {
  1935. }
  1936. });
  1937. }) */
  1938. },
  1939. async index_electricQuantity() {
  1940. let _this = this;
  1941. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1942. this.socketTask_index_electricQuantity = uni.connectSocket({
  1943. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1944. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_4',
  1945. success(data) {
  1946. console.log('websocket连接成功');
  1947. }
  1948. });
  1949. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1950. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1951. this.socketTask_index_electricQuantity.onOpen(res => {
  1952. console.log('WebSocket连接正常打开中...!');
  1953. this.is_open_socket = true;
  1954. // 注:只有连接正常打开中 ,才能正常收到消息
  1955. this.socketTask_index_electricQuantity.onMessage(res => {
  1956. //console.log("收到服务器内容:" + res.data);
  1957. _this.windpowerstationdetail.index_electricQuantity = JSON.parse(res.data)[_this.FDC];
  1958. _this.monthOlive = (_this.windpowerstationdetail.index_electricQuantity.yfdl / 10000) * 100 + '%';
  1959. _this.monthAngrey = (1 - _this.windpowerstationdetail.index_electricQuantity.yfdl / 10000) * 100 + '%';
  1960. _this.yearOlive = (_this.windpowerstationdetail.index_electricQuantity.nfdl / 100000) * 100 + '%';
  1961. _this.yearAngrey = (1 - _this.windpowerstationdetail.index_electricQuantity.nfdl / 100000) * 100 + '%';
  1962. });
  1963. });
  1964. // 这里仅是事件监听【如果socket关闭了会执行】
  1965. /* this.socketTask_comprehensive_target.onClose(() => {
  1966. uni.request({
  1967. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1968. success: (res) => {
  1969. }
  1970. });
  1971. }) */
  1972. },
  1973. async index_target_basic_indicators() {
  1974. let _this = this;
  1975. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1976. this.socketTask_index_target_basic_indicators = uni.connectSocket({
  1977. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1978. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_5',
  1979. success(data) {
  1980. console.log('websocket连接成功');
  1981. }
  1982. });
  1983. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1984. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1985. this.socketTask_index_target_basic_indicators.onOpen(res => {
  1986. console.log('WebSocket连接正常打开中...!');
  1987. this.is_open_socket = true;
  1988. // 注:只有连接正常打开中 ,才能正常收到消息
  1989. this.socketTask_index_target_basic_indicators.onMessage(res => {
  1990. //console.log("收到服务器内容:" + res.data);
  1991. _this.windpowerstationdetail.index_target_basic_indicators = JSON.parse(res.data)[_this.FDC];
  1992. });
  1993. });
  1994. // 这里仅是事件监听【如果socket关闭了会执行】
  1995. /* this.socketTask_comprehensive_target.onClose(() => {
  1996. uni.request({
  1997. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1998. success: (res) => {
  1999. }
  2000. });
  2001. }) */
  2002. },
  2003. getServerData() {
  2004. // 折线图
  2005. let LineA = {
  2006. categories: [
  2007. ' 17:26',
  2008. '18:56',
  2009. '19:56',
  2010. '20:56',
  2011. '21:56',
  2012. '22:56',
  2013. '23:56',
  2014. '00:56',
  2015. '01:56',
  2016. '02:56',
  2017. '03:56',
  2018. '04:56',
  2019. '05:56',
  2020. '06:56',
  2021. '07:56',
  2022. '08:56',
  2023. '09:56',
  2024. '10:56',
  2025. '11:56',
  2026. '12:56',
  2027. '13:56',
  2028. '14:56',
  2029. '15:56',
  2030. '16:56',
  2031. '17:56 '
  2032. ],
  2033. series: [{
  2034. name: '功率',
  2035. data: [],
  2036. color: '#4BB94B',
  2037. textColor: '#FFFFFF',
  2038. textSize: this.seriesTextSize,
  2039. format: val => {
  2040. return val + 'kwh';
  2041. },
  2042. index: 0,
  2043. legendShape: 'circle'
  2044. },
  2045. {
  2046. name: '风速',
  2047. data: [],
  2048. color: '#E82E2F',
  2049. textColor: '#FFFFFF',
  2050. textSize: this.seriesTextSize,
  2051. format: val => {
  2052. return val + 'm/s';
  2053. },
  2054. index: 1,
  2055. legendShape: 'circle'
  2056. },
  2057. {
  2058. name: '理论功率',
  2059. data: [],
  2060. color: '#F5A83C',
  2061. textColor: '#FFFFFF',
  2062. textSize: this.seriesTextSize,
  2063. format: val => {
  2064. return val + 'kwh';
  2065. },
  2066. index: 0,
  2067. legendShape: 'circle'
  2068. },
  2069. {
  2070. name: '预测功率',
  2071. data: [],
  2072. color: '#4A80B1',
  2073. textColor: '#FFFFFF',
  2074. textSize: this.seriesTextSize,
  2075. format: val => {
  2076. return val + 'kwh';
  2077. },
  2078. index: 1,
  2079. legendShape: 'circle'
  2080. }
  2081. ]
  2082. };
  2083. this.showLineA('canvasLineA', LineA);
  2084. },
  2085. showLineA(canvasId, chartData) {
  2086. var _self = this;
  2087. canvaLineA = new uCharts({
  2088. $this: _self,
  2089. canvasId: canvasId,
  2090. type: 'line',
  2091. fontSize: 11,
  2092. legend: {
  2093. show: true,
  2094. position: 'top',
  2095. float: 'right',
  2096. fontColor: 'silver',
  2097. itemGap: '4',
  2098. itemWidth: '3'
  2099. },
  2100. dataLabel: false,
  2101. dataPointShape: false,
  2102. background: '#FFFFFF',
  2103. pixelRatio: _self.pixelRatio,
  2104. categories: chartData.categories,
  2105. series: chartData.series,
  2106. animation: true,
  2107. xAxis: {
  2108. type: 'grid',
  2109. gridColor: 'silver',
  2110. fontColor: 'silver',
  2111. gridType: 'solid',
  2112. gridColor: '#2E2E2E',
  2113. axisLineColor: '#2E2E2E',
  2114. labelCount: '3'
  2115. // itemCount:"3"
  2116. },
  2117. yAxis: {
  2118. data: [{
  2119. type: 'value',
  2120. fontColor: 'silver',
  2121. disabled: false, //y轴轴线
  2122. min: 0,
  2123. max: 40,
  2124. position: 'left',
  2125. axisLineColor: '#2E2E2E',
  2126. title: ' 风速:(m/s)',
  2127. titleFontColor: 'silver'
  2128. },
  2129. {
  2130. fontColor: 'silver',
  2131. disabled: false, //y轴轴线
  2132. min: 0,
  2133. max: 40,
  2134. position: 'right',
  2135. axisLineColor: '#2E2E2E',
  2136. title: '功率:(kwh)',
  2137. titleFontColor: 'silver'
  2138. }
  2139. ],
  2140. gridColor: '#2E2E2E',
  2141. splitNumber: 4,
  2142. gridType: 'solid',
  2143. dashLength: 8,
  2144. showTitle: 'true',
  2145. format: val => {
  2146. return val.toFixed(0) + '元';
  2147. }
  2148. },
  2149. width: _self.cWidth * _self.pixelRatio,
  2150. height: _self.cHeight * _self.pixelRatio,
  2151. extra: {
  2152. line: {
  2153. type: 'line',
  2154. width: '1'
  2155. }
  2156. }
  2157. });
  2158. },
  2159. AffectedPower() {
  2160. (this.toBeInvolved = true), (this.performance = false);
  2161. this.powerLimitation = false;
  2162. this.overhaul = false;
  2163. this.dayHair = false;
  2164. this.fault = false;
  2165. this.clickFlag = 'group';
  2166. this.getColumnData();
  2167. },
  2168. performancePower() {
  2169. this.performance = true;
  2170. this.powerLimitation = false;
  2171. (this.toBeInvolved = false), (this.overhaul = false);
  2172. this.dayHair = false;
  2173. this.fault = false;
  2174. this.clickFlag = 'group';
  2175. this.getColumnData();
  2176. },
  2177. limitedPower() {
  2178. (this.toBeInvolved = false), (this.powerLimitation = true);
  2179. this.performance = false;
  2180. this.overhaul = false;
  2181. this.dayHair = false;
  2182. this.fault = false;
  2183. this.clickFlag = 'group';
  2184. this.getColumnData();
  2185. },
  2186. maintenancePower() {
  2187. (this.toBeInvolved = false), (this.overhaul = true);
  2188. this.performance = false;
  2189. this.dayHair = false;
  2190. this.fault = false;
  2191. this.powerLimitation = false;
  2192. this.clickFlag = 'group';
  2193. this.getColumnData();
  2194. },
  2195. directGeneration() {
  2196. (this.toBeInvolved = false), (this.dayHair = false);
  2197. this.performance = false;
  2198. this.fault = false;
  2199. this.overhaul = false;
  2200. this.powerLimitation = false;
  2201. this.clickFlag = 'stack';
  2202. this.getColumnData();
  2203. },
  2204. powerGeneration() {
  2205. (this.toBeInvolved = false), (this.dayHair = true);
  2206. this.performance = false;
  2207. this.fault = false;
  2208. this.overhaul = false;
  2209. this.powerLimitation = false;
  2210. this.clickFlag = 'group';
  2211. this.getColumnData();
  2212. },
  2213. faultPower() {
  2214. (this.toBeInvolved = false), (this.fault = true);
  2215. this.performance = false;
  2216. this.dayHair = false;
  2217. this.overhaul = false;
  2218. this.powerLimitation = false;
  2219. this.clickFlag = 'group';
  2220. this.getColumnData();
  2221. },
  2222. getColumnData() {
  2223. let ColumnStack = this.c1;
  2224. if (this.dayHair) {
  2225. ColumnStack = {
  2226. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  2227. series: [{
  2228. name: '日发电量(万kwh)',
  2229. data: [18, 13, 12, 17, 13, 7, 11, 15, 13],
  2230. color: '#4EB64E'
  2231. }]
  2232. };
  2233. ColumnStack.categories = [];
  2234. ColumnStack.series[0].data = [];
  2235. for (let i = 0; i < this.rifa.length; i++) {
  2236. ColumnStack.categories.push(this.Xzuobiao[i]);
  2237. // console.log(ColumnStack.categories)
  2238. ColumnStack.series[0].data.push(this.rifa[i]);
  2239. // console.log(ColumnStack.series[1].data)
  2240. }
  2241. }
  2242. if (this.fault) {
  2243. ColumnStack = {
  2244. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  2245. series: [{
  2246. name: '故障损失电量(万kwh)',
  2247. data: [17, 15, 17, 21, 16, 8, 10, 17, 11],
  2248. color: '#F14E51'
  2249. }]
  2250. };
  2251. ColumnStack.categories = [];
  2252. ColumnStack.series[0].data = [];
  2253. for (let i = 0; i < this.guzhang.length; i++) {
  2254. ColumnStack.categories.push(this.Xzuobiao[i]);
  2255. // console.log(ColumnStack.categories)
  2256. ColumnStack.series[0].data.push(this.guzhang[i]);
  2257. // console.log(ColumnStack.series[1].data)
  2258. }
  2259. }
  2260. if (this.overhaul) {
  2261. ColumnStack = {
  2262. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  2263. series: [{
  2264. name: '检修损失电量(万kwh)',
  2265. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  2266. color: '#FF6B3E'
  2267. }]
  2268. };
  2269. ColumnStack.categories = [];
  2270. ColumnStack.series[0].data = [];
  2271. for (let i = 0; i < this.jianxiu.length; i++) {
  2272. ColumnStack.categories.push(this.Xzuobiao[i]);
  2273. // console.log(ColumnStack.categories)
  2274. ColumnStack.series[0].data.push(this.jianxiu[i]);
  2275. // console.log(ColumnStack.series[1].data)
  2276. }
  2277. }
  2278. if (this.powerLimitation) {
  2279. ColumnStack = {
  2280. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  2281. series: [{
  2282. name: '限电损失电量(万kwh)',
  2283. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  2284. color: '#DC62D2'
  2285. }]
  2286. };
  2287. ColumnStack.categories = [];
  2288. ColumnStack.series[0].data = [];
  2289. for (let i = 0; i < this.xiandian.length; i++) {
  2290. ColumnStack.categories.push(this.Xzuobiao[i]);
  2291. // console.log(ColumnStack.categories)
  2292. ColumnStack.series[0].data.push(this.xiandian[i]);
  2293. // console.log(ColumnStack.series[1].data)
  2294. }
  2295. }
  2296. if (this.performance) {
  2297. ColumnStack = {
  2298. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  2299. series: [{
  2300. name: '性能损失电量(万kwh)',
  2301. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  2302. color: '#9DA3F6'
  2303. }]
  2304. };
  2305. ColumnStack.categories = [];
  2306. ColumnStack.series[0].data = [];
  2307. for (let i = 0; i < this.xingneng.length; i++) {
  2308. ColumnStack.categories.push(this.Xzuobiao[i]);
  2309. // console.log(ColumnStack.categories)
  2310. ColumnStack.series[0].data.push(this.xingneng[i]);
  2311. // console.log(ColumnStack.series[1].data)
  2312. }
  2313. }
  2314. if (this.toBeInvolved) {
  2315. ColumnStack = {
  2316. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  2317. series: [{
  2318. name: '受累损失电量(万kwh)',
  2319. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  2320. color: '#9E9E9E'
  2321. }]
  2322. };
  2323. ColumnStack.categories = [];
  2324. ColumnStack.series[0].data = [];
  2325. for (let i = 0; i < this.shoulei.length; i++) {
  2326. ColumnStack.categories.push(this.Xzuobiao[i]);
  2327. // console.log(ColumnStack.categories)
  2328. ColumnStack.series[0].data.push(this.shoulei[i]);
  2329. // console.log(ColumnStack.series[1].data)
  2330. }
  2331. }
  2332. this.showColumnStack('canvasColumnStack', ColumnStack);
  2333. },
  2334. showColumnStack(canvasId, chartData) {
  2335. var _self = this;
  2336. canvaColumn = new uCharts({
  2337. $this: _self,
  2338. canvasId: canvasId,
  2339. type: 'column',
  2340. legend: {
  2341. show: false
  2342. },
  2343. fontSize: 11,
  2344. background: '#FFFFFF',
  2345. pixelRatio: _self.pixelRatio,
  2346. animation: true,
  2347. categories: chartData.categories,
  2348. series: chartData.series,
  2349. xAxis: {
  2350. disableGrid: true,
  2351. gridColor: 'silver',
  2352. fontColor: 'silver'
  2353. },
  2354. yAxis: {
  2355. data: [{
  2356. type: 'value',
  2357. fontColor: 'silver',
  2358. disabled: false, //y轴轴线
  2359. min: 0,
  2360. max: 60,
  2361. axisLineColor: '#2E2E2E',
  2362. title: ' 电量:(kwh)',
  2363. titleFontColor: 'silver'
  2364. }],
  2365. gridColor: '#2E2E2E',
  2366. splitNumber: 5,
  2367. gridType: 'solid',
  2368. dashLength: 8,
  2369. showTitle: false
  2370. //disabled:true
  2371. },
  2372. dataLabel: false,
  2373. width: _self.cWidth * _self.pixelRatio,
  2374. height: _self.cHeight * _self.pixelRatio,
  2375. extra: {
  2376. column: {
  2377. type: _self.clickFlag,
  2378. width: '13'
  2379. }
  2380. }
  2381. });
  2382. },
  2383. touchColumn(e) {
  2384. let _this = this;
  2385. canvaColumn.showToolTip(e, {
  2386. format: function(item, category) {
  2387. if (item.name == '应发电量(万kwh)') {
  2388. return '';
  2389. } else {
  2390. return category + ' ' + item.name + ':' + item.data;
  2391. }
  2392. }
  2393. });
  2394. },
  2395. touchLineA(e) {
  2396. canvaLineA.showToolTip(e, {
  2397. format: function(item, category) {
  2398. return category + ' ' + item.name + ':' + item.data;
  2399. }
  2400. });
  2401. },
  2402. touchLineB1(e) {
  2403. canvaLineB1.showToolTip(e, {
  2404. format: function(item, category) {
  2405. return category + ' ' + item.name + ':' + item.data;
  2406. }
  2407. });
  2408. },
  2409. touchLineB2(e) {
  2410. canvaLineB2.showToolTip(e, {
  2411. format: function(item, category) {
  2412. return category + ' ' + item.name + ':' + item.data;
  2413. }
  2414. });
  2415. },
  2416. touchLineB3(e) {
  2417. canvaLineB3.showToolTip(e, {
  2418. format: function(item, category) {
  2419. return category + ' ' + item.name + ':' + item.data;
  2420. }
  2421. });
  2422. },
  2423. touchLineB4(e) {
  2424. canvaLineB4.showToolTip(e, {
  2425. format: function(item, category) {
  2426. return category + ' ' + item.name + ':' + item.data;
  2427. }
  2428. });
  2429. },
  2430. touchLineB5(e) {
  2431. canvaLineB5.showToolTip(e, {
  2432. format: function(item, category) {
  2433. return category + ' ' + item.name + ':' + item.data;
  2434. }
  2435. });
  2436. },
  2437. moveLineA(e) {
  2438. canvaLineA.scroll(e);
  2439. },
  2440. getWindStationCardData: function() {
  2441. let LineA1 = {
  2442. categories: [
  2443. ' 17:26',
  2444. '18:56',
  2445. '19:56',
  2446. '20:56',
  2447. '21:56',
  2448. '22:56',
  2449. '23:56',
  2450. '00:56',
  2451. '01:56',
  2452. '02:56',
  2453. '03:56',
  2454. '04:56',
  2455. '05:56',
  2456. '06:56',
  2457. '07:56',
  2458. '08:56',
  2459. '09:56',
  2460. '10:56',
  2461. '11:56',
  2462. '12:56',
  2463. '13:56',
  2464. '14:56',
  2465. '15:56',
  2466. '16:56',
  2467. '17:56 '
  2468. ],
  2469. series: [{
  2470. name: '功率',
  2471. data: [],
  2472. color: '#4BB94B',
  2473. textColor: '#FFFFFF',
  2474. textSize: this.seriesTextSize,
  2475. format: val => {
  2476. return val + 'kwh';
  2477. },
  2478. index: 0,
  2479. legendShape: 'circle'
  2480. },
  2481. {
  2482. name: '风速',
  2483. data: [],
  2484. color: '#E82E2F',
  2485. textColor: '#FFFFFF',
  2486. textSize: this.seriesTextSize,
  2487. format: val => {
  2488. return val + 'm/s';
  2489. },
  2490. index: 1,
  2491. legendShape: 'circle'
  2492. },
  2493. {
  2494. name: '理论功率',
  2495. data: [],
  2496. color: '#F5A83C',
  2497. textColor: '#FFFFFF',
  2498. textSize: this.seriesTextSize,
  2499. format: val => {
  2500. return val + 'kwh';
  2501. },
  2502. index: 0,
  2503. legendShape: 'circle'
  2504. },
  2505. {
  2506. name: '预测功率',
  2507. data: [],
  2508. color: '#4A80B1',
  2509. textColor: '#FFFFFF',
  2510. textSize: this.seriesTextSize,
  2511. format: val => {
  2512. return val + 'kwh';
  2513. },
  2514. index: 1,
  2515. legendShape: 'circle'
  2516. }
  2517. ]
  2518. };
  2519. let LineB = {
  2520. categories: [
  2521. ' 17:26',
  2522. '18:56',
  2523. '19:56',
  2524. '20:56',
  2525. '21:56',
  2526. '22:56',
  2527. '23:56',
  2528. '00:56',
  2529. '01:56',
  2530. '02:56',
  2531. '03:56',
  2532. '04:56',
  2533. '05:56',
  2534. '06:56',
  2535. '07:56',
  2536. '08:56',
  2537. '09:56',
  2538. '10:56',
  2539. '11:56',
  2540. '12:56',
  2541. '13:56',
  2542. '14:56',
  2543. '15:56',
  2544. '16:56',
  2545. '17:56 '
  2546. ],
  2547. series: [{
  2548. name: '功率',
  2549. data: [],
  2550. color: '#4BB94B',
  2551. textColor: '#FFFFFF',
  2552. textSize: this.seriesTextSize,
  2553. format: val => {
  2554. return val + 'kwh';
  2555. },
  2556. index: 0,
  2557. legendShape: 'circle'
  2558. },
  2559. {
  2560. name: '风速',
  2561. data: [],
  2562. color: '#E82E2F',
  2563. textColor: '#FFFFFF',
  2564. textSize: this.seriesTextSize,
  2565. format: val => {
  2566. return val + 'm/s';
  2567. },
  2568. index: 1,
  2569. legendShape: 'circle'
  2570. },
  2571. {
  2572. name: '理论功率',
  2573. data: [],
  2574. color: '#F5A83C',
  2575. textColor: '#FFFFFF',
  2576. textSize: this.seriesTextSize,
  2577. format: val => {
  2578. return val + 'kwh';
  2579. },
  2580. index: 0,
  2581. legendShape: 'circle'
  2582. },
  2583. {
  2584. name: '预测功率',
  2585. data: [],
  2586. color: '#4A80B1',
  2587. textColor: '#FFFFFF',
  2588. textSize: this.seriesTextSize,
  2589. format: val => {
  2590. return val + 'kwh';
  2591. },
  2592. index: 1,
  2593. legendShape: 'circle'
  2594. }
  2595. ]
  2596. };
  2597. let LineC = {
  2598. categories: [
  2599. ' 17:26',
  2600. '18:56',
  2601. '19:56',
  2602. '20:56',
  2603. '21:56',
  2604. '22:56',
  2605. '23:56',
  2606. '00:56',
  2607. '01:56',
  2608. '02:56',
  2609. '03:56',
  2610. '04:56',
  2611. '05:56',
  2612. '06:56',
  2613. '07:56',
  2614. '08:56',
  2615. '09:56',
  2616. '10:56',
  2617. '11:56',
  2618. '12:56',
  2619. '13:56',
  2620. '14:56',
  2621. '15:56',
  2622. '16:56',
  2623. '17:56 '
  2624. ],
  2625. series: [{
  2626. name: '功率',
  2627. data: [],
  2628. color: '#4BB94B',
  2629. textColor: '#FFFFFF',
  2630. textSize: this.seriesTextSize,
  2631. format: val => {
  2632. return val + 'kwh';
  2633. },
  2634. index: 0,
  2635. legendShape: 'circle'
  2636. },
  2637. {
  2638. name: '风速',
  2639. data: [],
  2640. color: '#E82E2F',
  2641. textColor: '#FFFFFF',
  2642. textSize: this.seriesTextSize,
  2643. format: val => {
  2644. return val + 'm/s';
  2645. },
  2646. index: 1,
  2647. legendShape: 'circle'
  2648. },
  2649. {
  2650. name: '理论功率',
  2651. data: [],
  2652. color: '#F5A83C',
  2653. textColor: '#FFFFFF',
  2654. textSize: this.seriesTextSize,
  2655. format: val => {
  2656. return val + 'kwh';
  2657. },
  2658. index: 0,
  2659. legendShape: 'circle'
  2660. },
  2661. {
  2662. name: '预测功率',
  2663. data: [],
  2664. color: '#4A80B1',
  2665. textColor: '#FFFFFF',
  2666. textSize: this.seriesTextSize,
  2667. format: val => {
  2668. return val + 'kwh';
  2669. },
  2670. index: 1,
  2671. legendShape: 'circle'
  2672. }
  2673. ]
  2674. };
  2675. let LineD = {
  2676. categories: [
  2677. ' 17:26',
  2678. '18:56',
  2679. '19:56',
  2680. '20:56',
  2681. '21:56',
  2682. '22:56',
  2683. '23:56',
  2684. '00:56',
  2685. '01:56',
  2686. '02:56',
  2687. '03:56',
  2688. '04:56',
  2689. '05:56',
  2690. '06:56',
  2691. '07:56',
  2692. '08:56',
  2693. '09:56',
  2694. '10:56',
  2695. '11:56',
  2696. '12:56',
  2697. '13:56',
  2698. '14:56',
  2699. '15:56',
  2700. '16:56',
  2701. '17:56 '
  2702. ],
  2703. series: [{
  2704. name: '功率',
  2705. data: [],
  2706. color: '#4BB94B',
  2707. textColor: '#FFFFFF',
  2708. textSize: this.seriesTextSize,
  2709. format: val => {
  2710. return val + 'kwh';
  2711. },
  2712. index: 0,
  2713. legendShape: 'circle'
  2714. },
  2715. {
  2716. name: '风速',
  2717. data: [],
  2718. color: '#E82E2F',
  2719. textColor: '#FFFFFF',
  2720. textSize: this.seriesTextSize,
  2721. format: val => {
  2722. return val + 'm/s';
  2723. },
  2724. index: 1,
  2725. legendShape: 'circle'
  2726. },
  2727. {
  2728. name: '理论功率',
  2729. data: [],
  2730. color: '#F5A83C',
  2731. textColor: '#FFFFFF',
  2732. textSize: this.seriesTextSize,
  2733. format: val => {
  2734. return val + 'kwh';
  2735. },
  2736. index: 0,
  2737. legendShape: 'circle'
  2738. },
  2739. {
  2740. name: '预测功率',
  2741. data: [],
  2742. color: '#4A80B1',
  2743. textColor: '#FFFFFF',
  2744. textSize: this.seriesTextSize,
  2745. format: val => {
  2746. return val + 'kwh';
  2747. },
  2748. index: 1,
  2749. legendShape: 'circle'
  2750. }
  2751. ]
  2752. };
  2753. let LineE = {
  2754. categories: [
  2755. ' 17:26',
  2756. '18:56',
  2757. '19:56',
  2758. '20:56',
  2759. '21:56',
  2760. '22:56',
  2761. '23:56',
  2762. '00:56',
  2763. '01:56',
  2764. '02:56',
  2765. '03:56',
  2766. '04:56',
  2767. '05:56',
  2768. '06:56',
  2769. '07:56',
  2770. '08:56',
  2771. '09:56',
  2772. '10:56',
  2773. '11:56',
  2774. '12:56',
  2775. '13:56',
  2776. '14:56',
  2777. '15:56',
  2778. '16:56',
  2779. '17:56 '
  2780. ],
  2781. series: [{
  2782. name: '功率',
  2783. data: [],
  2784. color: '#4BB94B',
  2785. textColor: '#FFFFFF',
  2786. textSize: this.seriesTextSize,
  2787. format: val => {
  2788. return val + 'kwh';
  2789. },
  2790. index: 0,
  2791. legendShape: 'circle'
  2792. },
  2793. {
  2794. name: '风速',
  2795. data: [],
  2796. color: '#E82E2F',
  2797. textColor: '#FFFFFF',
  2798. textSize: this.seriesTextSize,
  2799. format: val => {
  2800. return val + 'm/s';
  2801. },
  2802. index: 1,
  2803. legendShape: 'circle'
  2804. },
  2805. {
  2806. name: '理论功率',
  2807. data: [],
  2808. color: '#F5A83C',
  2809. textColor: '#FFFFFF',
  2810. textSize: this.seriesTextSize,
  2811. format: val => {
  2812. return val + 'kwh';
  2813. },
  2814. index: 0,
  2815. legendShape: 'circle'
  2816. },
  2817. {
  2818. name: '预测功率',
  2819. data: [],
  2820. color: '#4A80B1',
  2821. textColor: '#FFFFFF',
  2822. textSize: this.seriesTextSize,
  2823. format: val => {
  2824. return val + 'kwh';
  2825. },
  2826. index: 1,
  2827. legendShape: 'circle'
  2828. }
  2829. ]
  2830. };
  2831. this.showWindStationCardLineA1('windStationCanvasLineA', LineA1);
  2832. this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  2833. this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  2834. this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  2835. this.showWindStationCardLineA5('windStationCanvasLineE', LineE);
  2836. },
  2837. showWindStationCardLineA1(canvasId, chartData) {
  2838. var _self = this;
  2839. canvaLineB1 = new uCharts({
  2840. $this: _self,
  2841. canvasId: canvasId,
  2842. type: 'line',
  2843. fontSize: 11,
  2844. legend: {
  2845. show: true,
  2846. position: 'top',
  2847. float: 'right',
  2848. fontColor: 'silver',
  2849. itemGap: '9',
  2850. itemWidth: '3'
  2851. },
  2852. dataLabel: false,
  2853. dataPointShape: false,
  2854. background: '#FFFFFF',
  2855. pixelRatio: _self.windStationCardPixelRatio,
  2856. categories: chartData.categories,
  2857. series: chartData.series,
  2858. animation: true,
  2859. xAxis: {
  2860. disableGrid: true,
  2861. type: 'grid',
  2862. gridColor: 'silver',
  2863. fontColor: 'silver',
  2864. gridType: 'solid',
  2865. gridColor: '#2E2E2E',
  2866. axisLineColor: '#2E2E2E',
  2867. labelCount: '3'
  2868. // itemCount:"3"
  2869. },
  2870. yAxis: {
  2871. data: [{
  2872. type: 'value',
  2873. fontColor: 'silver',
  2874. disabled: false, //y轴轴线
  2875. min: 0,
  2876. max: 40,
  2877. position: 'left',
  2878. axisLineColor: '#2E2E2E',
  2879. title: ' 风速:(m/s)',
  2880. titleFontColor: 'silver'
  2881. },
  2882. {
  2883. fontColor: 'silver',
  2884. disabled: false, //y轴轴线
  2885. min: 0,
  2886. max: 40,
  2887. position: 'right',
  2888. axisLineColor: '#2E2E2E',
  2889. title: '功率:(kwh)',
  2890. titleFontColor: 'silver'
  2891. }
  2892. ],
  2893. disabled: true,
  2894. gridColor: '#2E2E2E',
  2895. splitNumber: 4,
  2896. gridType: 'solid',
  2897. dashLength: 8,
  2898. showTitle: 'true',
  2899. format: val => {
  2900. return val.toFixed(0) + '元';
  2901. }
  2902. },
  2903. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2904. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2905. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2906. extra: {
  2907. line: {
  2908. type: 'line',
  2909. width: '1'
  2910. }
  2911. }
  2912. });
  2913. },
  2914. showWindStationCardLineA2(canvasId, chartData) {
  2915. var _self = this;
  2916. canvaLineB2 = new uCharts({
  2917. $this: _self,
  2918. canvasId: canvasId,
  2919. type: 'line',
  2920. fontSize: 11,
  2921. legend: {
  2922. show: true,
  2923. position: 'top',
  2924. float: 'right',
  2925. fontColor: 'silver',
  2926. itemGap: '9',
  2927. itemWidth: '3'
  2928. },
  2929. dataLabel: false,
  2930. dataPointShape: false,
  2931. background: '#FFFFFF',
  2932. pixelRatio: _self.windStationCardPixelRatio,
  2933. categories: chartData.categories,
  2934. series: chartData.series,
  2935. animation: true,
  2936. xAxis: {
  2937. disableGrid: true,
  2938. type: 'grid',
  2939. gridColor: 'silver',
  2940. fontColor: 'silver',
  2941. gridType: 'solid',
  2942. gridColor: '#2E2E2E',
  2943. axisLineColor: '#2E2E2E',
  2944. labelCount: '3'
  2945. // itemCount:"3"
  2946. },
  2947. yAxis: {
  2948. data: [{
  2949. type: 'value',
  2950. fontColor: 'silver',
  2951. disabled: false, //y轴轴线
  2952. min: 0,
  2953. max: 40,
  2954. position: 'left',
  2955. axisLineColor: '#2E2E2E',
  2956. title: ' 风速:(m/s)',
  2957. titleFontColor: 'silver'
  2958. },
  2959. {
  2960. fontColor: 'silver',
  2961. disabled: false, //y轴轴线
  2962. min: 0,
  2963. max: 40,
  2964. position: 'right',
  2965. axisLineColor: '#2E2E2E',
  2966. title: '功率:(kwh)',
  2967. titleFontColor: 'silver'
  2968. }
  2969. ],
  2970. disabled: true,
  2971. gridColor: '#2E2E2E',
  2972. splitNumber: 4,
  2973. gridType: 'solid',
  2974. dashLength: 8,
  2975. showTitle: 'true',
  2976. format: val => {
  2977. return val.toFixed(0) + '元';
  2978. }
  2979. },
  2980. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2981. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2982. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2983. extra: {
  2984. line: {
  2985. type: 'line',
  2986. width: '1'
  2987. }
  2988. }
  2989. });
  2990. },
  2991. showWindStationCardLineA3(canvasId, chartData) {
  2992. var _self = this;
  2993. canvaLineB3 = new uCharts({
  2994. $this: _self,
  2995. canvasId: canvasId,
  2996. type: 'line',
  2997. fontSize: 11,
  2998. legend: {
  2999. show: true,
  3000. position: 'top',
  3001. float: 'right',
  3002. fontColor: 'silver',
  3003. itemGap: '9',
  3004. itemWidth: '3'
  3005. },
  3006. dataLabel: false,
  3007. dataPointShape: false,
  3008. background: '#FFFFFF',
  3009. pixelRatio: _self.windStationCardPixelRatio,
  3010. categories: chartData.categories,
  3011. series: chartData.series,
  3012. animation: true,
  3013. xAxis: {
  3014. disableGrid: true,
  3015. type: 'grid',
  3016. gridColor: 'silver',
  3017. fontColor: 'silver',
  3018. gridType: 'solid',
  3019. gridColor: '#2E2E2E',
  3020. axisLineColor: '#2E2E2E',
  3021. labelCount: '3'
  3022. // itemCount:"3"
  3023. },
  3024. yAxis: {
  3025. data: [{
  3026. type: 'value',
  3027. fontColor: 'silver',
  3028. disabled: false, //y轴轴线
  3029. min: 0,
  3030. max: 40,
  3031. position: 'left',
  3032. axisLineColor: '#2E2E2E',
  3033. title: ' 风速:(m/s)',
  3034. titleFontColor: 'silver'
  3035. },
  3036. {
  3037. fontColor: 'silver',
  3038. disabled: false, //y轴轴线
  3039. min: 0,
  3040. max: 40,
  3041. position: 'right',
  3042. axisLineColor: '#2E2E2E',
  3043. title: '功率:(kwh)',
  3044. titleFontColor: 'silver'
  3045. }
  3046. ],
  3047. disabled: true,
  3048. gridColor: '#2E2E2E',
  3049. splitNumber: 4,
  3050. gridType: 'solid',
  3051. dashLength: 8,
  3052. showTitle: 'true',
  3053. format: val => {
  3054. return val.toFixed(0) + '元';
  3055. }
  3056. },
  3057. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  3058. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  3059. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  3060. extra: {
  3061. line: {
  3062. type: 'line',
  3063. width: '1'
  3064. }
  3065. }
  3066. });
  3067. },
  3068. showWindStationCardLineA4(canvasId, chartData) {
  3069. var _self = this;
  3070. canvaLineB4 = new uCharts({
  3071. $this: _self,
  3072. canvasId: canvasId,
  3073. type: 'line',
  3074. fontSize: 11,
  3075. legend: {
  3076. show: true,
  3077. position: 'top',
  3078. float: 'right',
  3079. fontColor: 'silver',
  3080. itemGap: '9',
  3081. itemWidth: '3'
  3082. },
  3083. dataLabel: false,
  3084. dataPointShape: false,
  3085. background: '#FFFFFF',
  3086. pixelRatio: _self.windStationCardPixelRatio,
  3087. categories: chartData.categories,
  3088. series: chartData.series,
  3089. animation: true,
  3090. xAxis: {
  3091. disableGrid: true,
  3092. type: 'grid',
  3093. gridColor: 'silver',
  3094. fontColor: 'silver',
  3095. gridType: 'solid',
  3096. gridColor: '#2E2E2E',
  3097. axisLineColor: '#2E2E2E',
  3098. labelCount: '3'
  3099. // itemCount:"3"
  3100. },
  3101. yAxis: {
  3102. data: [{
  3103. type: 'value',
  3104. fontColor: 'silver',
  3105. disabled: false, //y轴轴线
  3106. min: 0,
  3107. max: 40,
  3108. position: 'left',
  3109. axisLineColor: '#2E2E2E',
  3110. title: ' 风速:(m/s)',
  3111. titleFontColor: 'silver'
  3112. },
  3113. {
  3114. fontColor: 'silver',
  3115. disabled: false, //y轴轴线
  3116. min: 0,
  3117. max: 40,
  3118. position: 'right',
  3119. axisLineColor: '#2E2E2E',
  3120. title: '功率:(kwh)',
  3121. titleFontColor: 'silver'
  3122. }
  3123. ],
  3124. disabled: true,
  3125. gridColor: '#2E2E2E',
  3126. splitNumber: 4,
  3127. gridType: 'solid',
  3128. dashLength: 8,
  3129. showTitle: 'true',
  3130. format: val => {
  3131. return val.toFixed(0) + '元';
  3132. }
  3133. },
  3134. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  3135. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  3136. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  3137. extra: {
  3138. line: {
  3139. type: 'line',
  3140. width: '1'
  3141. }
  3142. }
  3143. });
  3144. },
  3145. showWindStationCardLineA5(canvasId, chartData) {
  3146. var _self = this;
  3147. canvaLineB5 = new uCharts({
  3148. $this: _self,
  3149. canvasId: canvasId,
  3150. type: 'line',
  3151. fontSize: 11,
  3152. legend: {
  3153. show: true,
  3154. position: 'top',
  3155. float: 'right',
  3156. fontColor: 'silver',
  3157. itemGap: '9',
  3158. itemWidth: '3'
  3159. },
  3160. dataLabel: false,
  3161. dataPointShape: false,
  3162. background: '#FFFFFF',
  3163. pixelRatio: _self.windStationCardPixelRatio,
  3164. categories: chartData.categories,
  3165. series: chartData.series,
  3166. animation: true,
  3167. xAxis: {
  3168. disableGrid: true,
  3169. type: 'grid',
  3170. gridColor: 'silver',
  3171. fontColor: 'silver',
  3172. gridType: 'solid',
  3173. gridColor: '#2E2E2E',
  3174. axisLineColor: '#2E2E2E',
  3175. labelCount: '3'
  3176. // itemCount:"3"
  3177. },
  3178. yAxis: {
  3179. data: [{
  3180. type: 'value',
  3181. fontColor: 'silver',
  3182. disabled: false, //y轴轴线
  3183. min: 0,
  3184. max: 40,
  3185. position: 'left',
  3186. axisLineColor: '#2E2E2E',
  3187. title: ' 风速:(m/s)',
  3188. titleFontColor: 'silver'
  3189. },
  3190. {
  3191. fontColor: 'silver',
  3192. disabled: false, //y轴轴线
  3193. min: 0,
  3194. max: 40,
  3195. position: 'right',
  3196. axisLineColor: '#2E2E2E',
  3197. title: '功率:(kwh)',
  3198. titleFontColor: 'silver'
  3199. }
  3200. ],
  3201. disabled: true,
  3202. gridColor: '#2E2E2E',
  3203. splitNumber: 4,
  3204. gridType: 'solid',
  3205. dashLength: 8,
  3206. showTitle: 'true',
  3207. format: val => {
  3208. return val.toFixed(0) + '元';
  3209. }
  3210. },
  3211. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  3212. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  3213. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  3214. extra: {
  3215. line: {
  3216. type: 'line',
  3217. width: '1'
  3218. }
  3219. }
  3220. });
  3221. }
  3222. }
  3223. };
  3224. </script>
  3225. <style>
  3226. .textSmail {
  3227. font-size: 12px;
  3228. transform: scale(0.8);
  3229. }
  3230. .speedPowerDiagram {
  3231. width: 100px;
  3232. height: 30px;
  3233. user-select: text;
  3234. -webkit-user-select: text;
  3235. -moz-user-select: text;
  3236. -ms-user-select: text;
  3237. color: silver;
  3238. float: left;
  3239. margin-top: 18px;
  3240. margin-left: 9px;
  3241. font-size: 11px;
  3242. }
  3243. .monthlyUtilizationHours {
  3244. width: 160px;
  3245. height: 30px;
  3246. margin-top: 20px;
  3247. /* background-color: #161616; */
  3248. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3249. color: silver;
  3250. margin-left: 9px;
  3251. text-align: center;
  3252. padding-top: 7px;
  3253. font-size: 12px;
  3254. }
  3255. .yearlyUtilizationHours {
  3256. width: 160px;
  3257. height: 30px;
  3258. margin-top: 10px;
  3259. /* background-color: #161616; */
  3260. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3261. color: silver;
  3262. margin-left: 9px;
  3263. text-align: center;
  3264. padding-top: 7px;
  3265. font-size: 12px;
  3266. }
  3267. .comprehensiveServicePowerConsumptionRate {
  3268. width: 160px;
  3269. height: 30px;
  3270. /* margin-top: 10px; */
  3271. /* background-color: #161616; */
  3272. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3273. color: silver;
  3274. margin-left: 200px;
  3275. margin-top: -70px;
  3276. text-align: center;
  3277. padding-top: 7px;
  3278. font-size: 12px;
  3279. float: left;
  3280. }
  3281. .equipmentAvailability {
  3282. width: 160px;
  3283. height: 30px;
  3284. /* margin-top: 10px; */
  3285. /* background-color: #161616; */
  3286. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3287. color: silver;
  3288. margin-left: 200px;
  3289. margin-top: -30px;
  3290. text-align: center;
  3291. padding-top: 7px;
  3292. font-size: 12px;
  3293. float: left;
  3294. }
  3295. .sulfurDioxideEmissionReduction {
  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: 380px;
  3303. margin-top: -70px;
  3304. text-align: center;
  3305. padding-top: 7px;
  3306. font-size: 12px;
  3307. float: left;
  3308. }
  3309. .carbonDioxideReduction {
  3310. width: 160px;
  3311. height: 30px;
  3312. /* margin-top: 10px; */
  3313. /* background-color: #161616; */
  3314. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3315. color: silver;
  3316. margin-left: 380px;
  3317. margin-top: -30px;
  3318. text-align: center;
  3319. padding-top: 7px;
  3320. font-size: 12px;
  3321. float: left;
  3322. }
  3323. .waterSaving {
  3324. width: 160px;
  3325. height: 30px;
  3326. /* margin-top: 10px; */
  3327. /* background-color: #161616; */
  3328. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3329. color: silver;
  3330. margin-left: 560px;
  3331. margin-top: -70px;
  3332. text-align: center;
  3333. padding-top: 7px;
  3334. font-size: 12px;
  3335. float: left;
  3336. }
  3337. .saveStandardCoal {
  3338. width: 160px;
  3339. height: 30px;
  3340. /* margin-top: 10px; */
  3341. /* background-color: #161616; */
  3342. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3343. color: silver;
  3344. margin-left: 560px;
  3345. margin-top: -30px;
  3346. text-align: center;
  3347. padding-top: 7px;
  3348. font-size: 12px;
  3349. float: left;
  3350. }
  3351. .mttr {
  3352. width: 160px;
  3353. height: 30px;
  3354. /* margin-top: 10px; */
  3355. /* background-color: #161616; */
  3356. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3357. color: silver;
  3358. margin-left: 740px;
  3359. margin-top: -70px;
  3360. text-align: center;
  3361. padding-top: 7px;
  3362. font-size: 12px;
  3363. float: left;
  3364. }
  3365. .mtbf {
  3366. width: 160px;
  3367. height: 30px;
  3368. /* margin-top: 10px; */
  3369. /* background-color: #161616; */
  3370. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3371. color: silver;
  3372. margin-left: 740px;
  3373. margin-top: -30px;
  3374. text-align: center;
  3375. padding-top: 7px;
  3376. font-size: 12px;
  3377. float: left;
  3378. }
  3379. .horizontalSlider {
  3380. white-space: nowrap;
  3381. width: 100%;
  3382. height: 100px;
  3383. background-color: #242424;
  3384. clear: both;
  3385. /* margin-top: 540px; */
  3386. }
  3387. .slide {
  3388. width: 920px;
  3389. height: 100px;
  3390. background-color: #242424;
  3391. }
  3392. .qiun-charts {
  3393. width: 750upx;
  3394. height: 400upx;
  3395. }
  3396. .charts {
  3397. width: 750upx;
  3398. height: 400upx;
  3399. }
  3400. .uchartTitle {
  3401. position: absolute;
  3402. left: 9px;
  3403. top: 605px;
  3404. user-select: text;
  3405. -webkit-user-select: text;
  3406. -moz-user-select: text;
  3407. -ms-user-select: text;
  3408. color: silver;
  3409. font-size: 12px;
  3410. }
  3411. .Histogram {
  3412. width: 100%;
  3413. height: 300px;
  3414. background-color: #242424;
  3415. margin-top: 10px;
  3416. float: left;
  3417. }
  3418. .HistogramTitle {
  3419. width: calc(100% - 9px);
  3420. height: 30px;
  3421. line-height: 30px;
  3422. font-size: 11px;
  3423. color: silver;
  3424. margin-left: 9px;
  3425. }
  3426. .lineChart {
  3427. width: 100%;
  3428. height: 225px;
  3429. background-color: #242424;
  3430. margin-top: 10px;
  3431. float: left;
  3432. }
  3433. body {
  3434. font-family: '方正兰亭细黑_GBK';
  3435. font-size: 20px;
  3436. color: silver;
  3437. background: #000;
  3438. }
  3439. @font-face {
  3440. font-family: '方正兰亭细黑_GBK';
  3441. src: url(../../static/fzltxh.TTF);
  3442. }
  3443. page {
  3444. background-color: #1f1f1f;
  3445. font-family: '方正兰亭细黑_GBK';
  3446. overflow-x: hidden;
  3447. }
  3448. .top {
  3449. width: 100%;
  3450. height: 130upx;
  3451. padding-top: 5%;
  3452. background-color: #1f1f1f;
  3453. position: fixed;
  3454. top: 0px;
  3455. left: 0px;
  3456. z-index: 100;
  3457. }
  3458. .threeLine {
  3459. width: 50px;
  3460. height: 45px;
  3461. float: left;
  3462. }
  3463. .text {
  3464. width: calc(100% - 100px);
  3465. height: 45px;
  3466. float: left;
  3467. user-select: text;
  3468. -webkit-user-select: text;
  3469. -moz-user-select: text;
  3470. -ms-user-select: text;
  3471. color: silver;
  3472. line-height: 45px;
  3473. margin-top: 11px;
  3474. font-size: 18px;
  3475. }
  3476. .notice {
  3477. width: 50px;
  3478. height: 45px;
  3479. float: left;
  3480. margin-left: -60%;
  3481. margin-top: 6%;
  3482. }
  3483. .plus {
  3484. width: 30px;
  3485. height: 45px;
  3486. float: right;
  3487. color: white;
  3488. font-size: 35px;
  3489. line-height: 45px;
  3490. text-align: right;
  3491. margin-right: 2.5%;
  3492. }
  3493. .textWindpowerstation {
  3494. width: 180px;
  3495. height: 45px;
  3496. float: left;
  3497. text-align: center;
  3498. margin-left: 18px;
  3499. }
  3500. .time {
  3501. clear: both;
  3502. background-color: #242424;
  3503. width: 100%;
  3504. height: 30px;
  3505. /* float: left; */
  3506. }
  3507. .timeimageshizhong {
  3508. width: 30px;
  3509. height: 20px;
  3510. margin-top: 5px;
  3511. float: left;
  3512. }
  3513. .timeText {
  3514. width: 62%;
  3515. height: 30px;
  3516. float: left;
  3517. line-height: 30px;
  3518. font-size: 15px;
  3519. margin-left: 15px;
  3520. user-select: text;
  3521. -webkit-user-select: text;
  3522. -moz-user-select: text;
  3523. -ms-user-select: text;
  3524. color: silver;
  3525. }
  3526. .timeIcon {
  3527. width: 25px;
  3528. height: 30px;
  3529. float: right;
  3530. margin-right: 2.5%;
  3531. /* margin-left: 5px; */
  3532. }
  3533. .timeIconImage {
  3534. width: 100%;
  3535. height: 25px;
  3536. margin-top: 1px;
  3537. }
  3538. .timeIconText {
  3539. width: 100%;
  3540. height: 25px;
  3541. text-align: center;
  3542. font-size: 12px;
  3543. }
  3544. .cardinstallgreenSecurity {
  3545. margin-left: 9px;
  3546. margin-top: 9px;
  3547. margin-bottom: 9px;
  3548. width: 30%;
  3549. height: 78px;
  3550. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3551. border-radius: 5px;
  3552. float: left;
  3553. /* font-family: "STKaiti"; */
  3554. }
  3555. .cardinstalltitle {
  3556. width: 100%;
  3557. height: 40px;
  3558. text-align: center;
  3559. user-select: text;
  3560. -webkit-user-select: text;
  3561. -moz-user-select: text;
  3562. -ms-user-select: text;
  3563. font-size: 14px;
  3564. color: silver;
  3565. line-height: 40px;
  3566. float: left;
  3567. }
  3568. .cardinstallnumber {
  3569. /* font-weight: bold; */
  3570. width: 100%;
  3571. height: 40px;
  3572. text-align: center;
  3573. user-select: text;
  3574. -webkit-user-select: text;
  3575. -moz-user-select: text;
  3576. -ms-user-select: text;
  3577. color: silver;
  3578. font-size: 16px;
  3579. /* color: #449618; */
  3580. line-height: 40px;
  3581. }
  3582. .cardinstallgreenEquipment {
  3583. margin-right: 11px;
  3584. margin-top: 10px;
  3585. width: 30%;
  3586. height: 78px;
  3587. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3588. border-radius: 5px;
  3589. float: right;
  3590. /* font-family: "STKaiti"; */
  3591. }
  3592. .cardinstallgreen {
  3593. margin-left: 9px;
  3594. width: 30%;
  3595. height: 78px;
  3596. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3597. border-radius: 5px;
  3598. float: left;
  3599. }
  3600. .cardinstallblue {
  3601. margin-top: 9px;
  3602. margin-left: 9px;
  3603. width: 30%;
  3604. height: 78px;
  3605. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  3606. border-radius: 5px;
  3607. float: left;
  3608. }
  3609. .cardinstallblueright {
  3610. margin-right: 11px;
  3611. margin-top: 10px;
  3612. width: 30%;
  3613. height: 78px;
  3614. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  3615. border-radius: 5px;
  3616. float: right;
  3617. }
  3618. .cardinstalltitlegreen {
  3619. width: 100%;
  3620. height: 25px;
  3621. text-align: center;
  3622. /* margin-left: 37px; */
  3623. user-select: text;
  3624. -webkit-user-select: text;
  3625. -moz-user-select: text;
  3626. -ms-user-select: text;
  3627. font-size: 14px;
  3628. color: silver;
  3629. line-height: 25px;
  3630. /* float: left; */
  3631. }
  3632. .cardinstallnumbergreen {
  3633. width: 100%;
  3634. height: 25px;
  3635. text-align: center;
  3636. user-select: text;
  3637. -webkit-user-select: text;
  3638. -moz-user-select: text;
  3639. -ms-user-select: text;
  3640. font-size: 20px;
  3641. color: white;
  3642. /* color: #449618; */
  3643. line-height: 25px;
  3644. float: left;
  3645. }
  3646. .cardinstallnumbergreenmin {
  3647. margin-left: 2px;
  3648. width: 55%;
  3649. height: 20px;
  3650. user-select: text;
  3651. -webkit-user-select: text;
  3652. -moz-user-select: text;
  3653. -ms-user-select: text;
  3654. font-size: 12px;
  3655. color: silver;
  3656. /* color: #449618; */
  3657. float: left;
  3658. }
  3659. .cardinstallnumbergreenmax {
  3660. /* font-weight: bold; */
  3661. margin-right: 2px;
  3662. width: 40%;
  3663. height: 20px;
  3664. user-select: text;
  3665. -webkit-user-select: text;
  3666. -moz-user-select: text;
  3667. -ms-user-select: text;
  3668. font-size: 12px;
  3669. color: silver;
  3670. /* color: #449618; */
  3671. float: right;
  3672. }
  3673. .greenMinText {
  3674. line-height: 20px;
  3675. float: left;
  3676. margin-left: 40px;
  3677. }
  3678. .greenMaxText {
  3679. line-height: 20px;
  3680. float: left;
  3681. }
  3682. .cardinstallnumberred {
  3683. width: 100%;
  3684. height: 25px;
  3685. text-align: center;
  3686. user-select: text;
  3687. -webkit-user-select: text;
  3688. -moz-user-select: text;
  3689. -ms-user-select: text;
  3690. font-size: 20px;
  3691. color: white;
  3692. /* color: #E93131; */
  3693. line-height: 25px;
  3694. float: left;
  3695. }
  3696. .cardinstallnumberredmin {
  3697. margin-left: 2px;
  3698. width: 45%;
  3699. height: 20px;
  3700. user-select: text;
  3701. -webkit-user-select: text;
  3702. -moz-user-select: text;
  3703. -ms-user-select: text;
  3704. font-size: 12px;
  3705. color: silver;
  3706. /* color: #E93131; */
  3707. float: left;
  3708. }
  3709. .cardinstallnumberredmax {
  3710. margin-right: 2px;
  3711. width: 45%;
  3712. height: 20px;
  3713. user-select: text;
  3714. -webkit-user-select: text;
  3715. -moz-user-select: text;
  3716. -ms-user-select: text;
  3717. font-size: 12px;
  3718. color: silver;
  3719. /* color: #E93131; */
  3720. float: right;
  3721. }
  3722. .redMinText {
  3723. line-height: 20px;
  3724. float: right;
  3725. }
  3726. .redMaxText {
  3727. line-height: 20px;
  3728. float: left;
  3729. }
  3730. .electricityCard {
  3731. width: 100%;
  3732. height: 100px;
  3733. background-color: #242424;
  3734. /* height: 185px; */
  3735. float: left;
  3736. margin-top: 20rpx;
  3737. }
  3738. .speedPower {
  3739. width: 100%;
  3740. height: 180px;
  3741. background-color: #242424;
  3742. float: left;
  3743. margin-top: 20rpx;
  3744. }
  3745. .cardinstallgreenSpeed {
  3746. margin-top: 9px;
  3747. margin-left: 9px;
  3748. width: 46%;
  3749. height: 78px;
  3750. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3751. border-radius: 5px;
  3752. float: left;
  3753. }
  3754. .cardinstallredSpeed {
  3755. margin-top: 8px;
  3756. margin-left: 2.5%;
  3757. width: 46%;
  3758. height: 78px;
  3759. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3760. border-radius: 5px;
  3761. float: left;
  3762. }
  3763. .cardinstalltitleRed {
  3764. width: 100%;
  3765. height: 25px;
  3766. text-align: center;
  3767. /* margin-left: 45px; */
  3768. user-select: text;
  3769. -webkit-user-select: text;
  3770. -moz-user-select: text;
  3771. -ms-user-select: text;
  3772. font-size: 14px;
  3773. color: silver;
  3774. line-height: 25px;
  3775. /* float: left; */
  3776. }
  3777. .textWhitekuangSpeed {
  3778. color: silver;
  3779. float: right;
  3780. margin-right: 70px;
  3781. }
  3782. .textWhitekuang {
  3783. color: silver;
  3784. float: right;
  3785. margin-right: 85px;
  3786. }
  3787. .textWhite {
  3788. color: white;
  3789. float: right;
  3790. width: 24px;
  3791. font-size: 10px;
  3792. margin-right: 13%;
  3793. transform: scale(0.975);
  3794. /* text-align: right; */
  3795. }
  3796. .textWhite2 {
  3797. color: white;
  3798. float: right;
  3799. margin-right: 15%;
  3800. transform: scale(0.975);
  3801. }
  3802. .textWhite3 {
  3803. color: white;
  3804. float: right;
  3805. /* margin-right: 1%; */
  3806. transform: scale(0.975);
  3807. }
  3808. .textSilver {
  3809. user-select: text;
  3810. -webkit-user-select: text;
  3811. -moz-user-select: text;
  3812. -ms-user-select: text;
  3813. color: silver;
  3814. float: left;
  3815. }
  3816. .InformationCard {
  3817. margin-top: 0px;
  3818. width: 100%;
  3819. height: 70px;
  3820. background-color: #242424;
  3821. float: left;
  3822. }
  3823. .informationCardAll {
  3824. width: 95%;
  3825. margin-left: 2.5%;
  3826. margin-top: 10px;
  3827. height: 60px;
  3828. float: left;
  3829. }
  3830. .informationCardTextOne {
  3831. width: 100%;
  3832. height: 35px;
  3833. float: left;
  3834. margin-top: -10px;
  3835. }
  3836. .informationCardTextNo1 {
  3837. /* margin-left: 2%; */
  3838. width: 115px;
  3839. height: 35px;
  3840. font-size: 10px;
  3841. line-height: 35px;
  3842. font-size: 10px;
  3843. transform: scale(0.975);
  3844. float: left;
  3845. }
  3846. .informationCardText {
  3847. /* margin-left: 2%; */
  3848. width: 115px;
  3849. height: 35px;
  3850. line-height: 35px;
  3851. user-select: text;
  3852. -webkit-user-select: text;
  3853. -moz-user-select: text;
  3854. -ms-user-select: text;
  3855. color: silver;
  3856. font-size: 10px;
  3857. transform: scale(0.975);
  3858. float: left;
  3859. }
  3860. .informationCardTextzj {
  3861. /* margin-left: 43%; */
  3862. width: 115px;
  3863. height: 35px;
  3864. line-height: 35px;
  3865. user-select: text;
  3866. -webkit-user-select: text;
  3867. -moz-user-select: text;
  3868. -ms-user-select: text;
  3869. color: silver;
  3870. font-size: 10px;
  3871. transform: scale(0.975);
  3872. float: right;
  3873. }
  3874. .informationCardTextTwo {
  3875. width: 100%;
  3876. height: 35px;
  3877. float: left;
  3878. user-select: text;
  3879. -webkit-user-select: text;
  3880. -moz-user-select: text;
  3881. -ms-user-select: text;
  3882. color: silver;
  3883. }
  3884. .informationCardText2 {
  3885. /* margin-left: 6%; */
  3886. margin-left: calc(50% - 190px);
  3887. width: 115px;
  3888. height: 35px;
  3889. font-size: 10px;
  3890. line-height: 35px;
  3891. transform: scale(0.975);
  3892. float: left;
  3893. }
  3894. .informationCardText3 {
  3895. /* margin-left: 6%; */
  3896. margin-left: calc(50% - 170px);
  3897. width: 130px;
  3898. height: 35px;
  3899. font-size: 10px;
  3900. line-height: 35px;
  3901. transform: scale(0.975);
  3902. float: left;
  3903. }
  3904. .AccessCardNumber {
  3905. width: 30%;
  3906. height: 35px;
  3907. float: left;
  3908. line-height: 35px;
  3909. text-align: center;
  3910. font-size: 12px;
  3911. user-select: text;
  3912. -webkit-user-select: text;
  3913. -moz-user-select: text;
  3914. -ms-user-select: text;
  3915. color: silver;
  3916. }
  3917. .AccessCardText {
  3918. width: 30%;
  3919. height: 35px;
  3920. float: left;
  3921. line-height: 35px;
  3922. text-align: center;
  3923. font-size: 12px;
  3924. user-select: text;
  3925. -webkit-user-select: text;
  3926. -moz-user-select: text;
  3927. -ms-user-select: text;
  3928. color: silver;
  3929. }
  3930. .AccessCardimage {
  3931. margin-left: 5px;
  3932. width: 30%;
  3933. height: 35px;
  3934. float: left;
  3935. }
  3936. .interfaceCard {
  3937. margin-top: 10px;
  3938. width: 100%;
  3939. height: 85px;
  3940. background-color: #242424;
  3941. float: left;
  3942. }
  3943. .interfaceCardSmallTop {
  3944. margin-top: 5px;
  3945. width: 100%;
  3946. height: 35px;
  3947. float: left;
  3948. }
  3949. .interfaceCardSmall {
  3950. margin-left: 8px;
  3951. width: 30%;
  3952. height: 35px;
  3953. float: left;
  3954. }
  3955. .progressBarLeftText {
  3956. user-select: text;
  3957. -webkit-user-select: text;
  3958. -moz-user-select: text;
  3959. -ms-user-select: text;
  3960. color: silver;
  3961. font-size: 12px;
  3962. float: left;
  3963. margin-left: 5px;
  3964. }
  3965. .progressBarRightText {
  3966. user-select: text;
  3967. -webkit-user-select: text;
  3968. -moz-user-select: text;
  3969. -ms-user-select: text;
  3970. color: silver;
  3971. font-size: 12px;
  3972. float: right;
  3973. margin-right: 5px;
  3974. }
  3975. .progressBar {
  3976. margin-top: 10px;
  3977. width: 100%;
  3978. height: 115px;
  3979. background-color: #242424;
  3980. float: left;
  3981. }
  3982. .progressBarAll {
  3983. margin-left: 9px;
  3984. width: calc(100% - 5%);
  3985. height: 60px;
  3986. float: left;
  3987. }
  3988. .progressBarText {
  3989. text-align: center;
  3990. width: 50%;
  3991. height: 30px;
  3992. line-height: 30px;
  3993. user-select: text;
  3994. -webkit-user-select: text;
  3995. -moz-user-select: text;
  3996. -ms-user-select: text;
  3997. color: silver;
  3998. font-size: 12px;
  3999. float: left;
  4000. }
  4001. .progressBarOne {
  4002. width: 100%;
  4003. height: 30px;
  4004. float: left;
  4005. }
  4006. .progressBarLeft {
  4007. width: 25%;
  4008. height: 30px;
  4009. line-height: 30px;
  4010. user-select: text;
  4011. -webkit-user-select: text;
  4012. -moz-user-select: text;
  4013. -ms-user-select: text;
  4014. color: silver;
  4015. font-size: 12px;
  4016. float: left;
  4017. }
  4018. .progressBarRight {
  4019. width: 25%;
  4020. height: 30px;
  4021. user-select: text;
  4022. -webkit-user-select: text;
  4023. -moz-user-select: text;
  4024. -ms-user-select: text;
  4025. color: silver;
  4026. font-size: 12px;
  4027. line-height: 30px;
  4028. float: right;
  4029. }
  4030. /* 风电场卡片css */
  4031. .windStation {
  4032. clear: both;
  4033. width: calc(100% - 18px);
  4034. margin-left: 9px;
  4035. height: 320px;
  4036. color: silver;
  4037. margin-bottom: 120px;
  4038. /* background-color: #242424; */
  4039. }
  4040. .scrollWindStationCard {
  4041. white-space: nowrap;
  4042. }
  4043. .windStationCardContainer {
  4044. width: 1295px;
  4045. height: 350px;
  4046. margin-top: 10px;
  4047. }
  4048. .windStationCard {
  4049. width: 250px;
  4050. height: 100%;
  4051. margin-right: 9px;
  4052. float: left;
  4053. background-color: #242424;
  4054. }
  4055. .windStationTitle {
  4056. width: 90%;
  4057. height: 30px;
  4058. line-height: 30px;
  4059. font-size: 12px;
  4060. margin-left: 5px;
  4061. }
  4062. .powerAndSpeedContainer {
  4063. width: 100%;
  4064. height: 90px;
  4065. }
  4066. .powerAndSpeedRed {
  4067. margin-top: 8px;
  4068. margin-left: 2%;
  4069. margin-right: 2%;
  4070. width: 46%;
  4071. height: 37px;
  4072. line-height: 37px;
  4073. text-align: left;
  4074. font-size: 12px;
  4075. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  4076. border-radius: 5px;
  4077. float: left;
  4078. }
  4079. .powerAndSpeedRedText {
  4080. margin-left: 2%;
  4081. float: left;
  4082. }
  4083. .powerAndSpeedRed span {
  4084. color: white;
  4085. }
  4086. .HQChart {
  4087. width: 100%;
  4088. height: 100px;
  4089. margin-top: 8px;
  4090. }
  4091. .UChartContainer {
  4092. width: 250px;
  4093. height: 150px;
  4094. margin-top: 8px;
  4095. }
  4096. .windStationUChart {
  4097. width: 250px;
  4098. height: 150px;
  4099. position: absolute;
  4100. }
  4101. .windStationQiun-charts {
  4102. width: 250px;
  4103. height: 150px;
  4104. background-color: #242424;
  4105. }
  4106. .windStationCharts {
  4107. width: 250px;
  4108. height: 150px;
  4109. background-color: #242424;
  4110. }
  4111. .UChartTitle {
  4112. position: relative;
  4113. top: -2px;
  4114. left: 2px;
  4115. font-size: 12px;
  4116. width: 100px;
  4117. }
  4118. .xTime {
  4119. position: relative;
  4120. top: 90px;
  4121. left: 222px;
  4122. font-size: 8px;
  4123. width: 30px;
  4124. }
  4125. .fanStatusContainer {
  4126. width: 100%;
  4127. height: 70px;
  4128. }
  4129. .fanStatus {
  4130. width: 32%;
  4131. height: 30px;
  4132. margin-top: 5px;
  4133. margin-right: 0.5%;
  4134. margin-left: 0.5%;
  4135. float: left;
  4136. }
  4137. .statusIcon {
  4138. width: 22px;
  4139. height: 30px;
  4140. margin-left: 3px;
  4141. float: left;
  4142. }
  4143. .fanStatus {
  4144. height: 30px;
  4145. line-height: 30px;
  4146. font-size: 12px;
  4147. }
  4148. .AffectedPowerText {
  4149. width: 55px;
  4150. height: 25px;
  4151. float: left;
  4152. margin-left: 2px;
  4153. line-height: 25px;
  4154. }
  4155. .AffectedPower {
  4156. width: 24.5%;
  4157. height: 25px;
  4158. float: left;
  4159. }
  4160. .performancePowerText {
  4161. width: 55px;
  4162. height: 25px;
  4163. float: left;
  4164. margin-left: 2px;
  4165. line-height: 25px;
  4166. }
  4167. .performancePower {
  4168. width: 24.5%;
  4169. height: 25px;
  4170. float: left;
  4171. }
  4172. .limitedPowerText {
  4173. width: 55px;
  4174. height: 25px;
  4175. float: left;
  4176. margin-left: 2px;
  4177. line-height: 25px;
  4178. }
  4179. .limitedPower {
  4180. margin-left: 1.2%;
  4181. width: 24.5%;
  4182. height: 25px;
  4183. float: left;
  4184. }
  4185. .maintenancePowerText {
  4186. width: 55px;
  4187. height: 25px;
  4188. float: left;
  4189. margin-left: 2px;
  4190. line-height: 25px;
  4191. }
  4192. .maintenancePower {
  4193. margin-left: 2px;
  4194. width: 24.5%;
  4195. height: 25px;
  4196. float: left;
  4197. }
  4198. .faultPowerText {
  4199. width: 55px;
  4200. height: 25px;
  4201. float: left;
  4202. margin-left: 2px;
  4203. line-height: 25px;
  4204. }
  4205. .faultPower {
  4206. width: 24.5%;
  4207. height: 25px;
  4208. float: left;
  4209. }
  4210. .powerGenerationText {
  4211. width: 55px;
  4212. height: 25px;
  4213. float: left;
  4214. margin-left: 2px;
  4215. line-height: 25px;
  4216. }
  4217. .powerGeneration {
  4218. width: 24.5%;
  4219. height: 25px;
  4220. float: left;
  4221. }
  4222. .directGenerationText {
  4223. width: 55px;
  4224. height: 25px;
  4225. float: left;
  4226. margin-left: 2px;
  4227. line-height: 25px;
  4228. }
  4229. .directGeneration {
  4230. width: 24.5%;
  4231. height: 25px;
  4232. float: left;
  4233. margin-left: 1.3%;
  4234. }
  4235. .choice {
  4236. width: 100%;
  4237. height: 80px;
  4238. float: left;
  4239. user-select: text;
  4240. -webkit-user-select: text;
  4241. -moz-user-select: text;
  4242. -ms-user-select: text;
  4243. color: silver;
  4244. font-size: 12px;
  4245. }
  4246. .speedPowerDiagram {
  4247. width: 100px;
  4248. height: 30px;
  4249. user-select: text;
  4250. -webkit-user-select: text;
  4251. -moz-user-select: text;
  4252. -ms-user-select: text;
  4253. color: silver;
  4254. float: left;
  4255. margin-top: 18px;
  4256. margin-left: 9px;
  4257. font-size: 11px;
  4258. }
  4259. .qiun-chart {
  4260. margin-top: 50px;
  4261. width: 750upx;
  4262. height: 400upx;
  4263. }
  4264. .chart {
  4265. width: 750upx;
  4266. height: 400upx;
  4267. }
  4268. .DrawerPage {
  4269. position: fixed;
  4270. width: 100vw;
  4271. height: 100vh;
  4272. left: 0vw;
  4273. background-color: #1f1f1f;
  4274. transition: all 0.4s;
  4275. }
  4276. .DrawerPage.show {
  4277. transform: scale(0.9, 0.9);
  4278. left: 85vw;
  4279. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  4280. transform-origin: 0;
  4281. }
  4282. .DrawerWindow {
  4283. position: absolute;
  4284. width: 85vw;
  4285. height: 100vh;
  4286. left: 0;
  4287. top: 0;
  4288. transform: scale(0.9, 0.9) translateX(-100%);
  4289. opacity: 0;
  4290. pointer-events: none;
  4291. transition: all 0.4s;
  4292. padding: 100upx 0;
  4293. }
  4294. .DrawerWindow.show {
  4295. transform: scale(1, 1) translateX(0%);
  4296. opacity: 1;
  4297. pointer-events: all;
  4298. }
  4299. .DrawerClose {
  4300. position: absolute;
  4301. width: 40vw;
  4302. height: 100vh;
  4303. right: 0;
  4304. top: 0;
  4305. color: transparent;
  4306. padding-bottom: 30upx;
  4307. display: flex;
  4308. align-items: flex-end;
  4309. justify-content: center;
  4310. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  4311. letter-spacing: 5px;
  4312. font-size: 50upx;
  4313. opacity: 0;
  4314. pointer-events: none;
  4315. transition: all 0.4s;
  4316. }
  4317. .DrawerClose.show {
  4318. opacity: 1;
  4319. pointer-events: all;
  4320. width: 15vw;
  4321. color: #fff;
  4322. }
  4323. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  4324. width: 64upx;
  4325. height: 64upx;
  4326. line-height: 64upx;
  4327. margin: 0;
  4328. display: inline-block;
  4329. }
  4330. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  4331. margin: 0;
  4332. }
  4333. .DrawerPage .nav {
  4334. flex: 1;
  4335. }
  4336. .DrawerPage .nav .cu-item.cur {
  4337. border-bottom: 0;
  4338. position: relative;
  4339. }
  4340. .DrawerPage .nav .cu-item.cur::after {
  4341. content: '';
  4342. width: 10upx;
  4343. height: 10upx;
  4344. background-color: currentColor;
  4345. position: absolute;
  4346. bottom: 10upx;
  4347. border-radius: 10upx;
  4348. left: 0;
  4349. right: 0;
  4350. margin: auto;
  4351. }
  4352. .DrawerPage .cu-bar.tabbar .action {
  4353. flex: initial;
  4354. }
  4355. </style>