Index.vue 139 KB

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