Index.vue 95 KB

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