Index.vue 114 KB

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