Index.vue 114 KB

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