Index.vue 134 KB

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