Index.vue 136 KB

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