Index.vue 101 KB

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