Index.vue 135 KB

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