Index.vue 135 KB

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