Index.vue 129 KB

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