Index.vue 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579
  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">10000kwh</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">100000kwh</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. if(this.address=="宁夏新能源公司"){
  740. this.FDC="0";
  741. }
  742. if(this.address=="麻黄山风电场"){
  743. this.FDC="MHS_FDC";
  744. }
  745. if(this.address=="牛首山风电场"){
  746. this.FDC="NSS_FDC";
  747. }
  748. if(this.address=="石板泉风电场"){
  749. this.FDC="SBQ_FDC";
  750. }
  751. if(this.address=="青山风电场"){
  752. this.FDC="QS_FDC";
  753. }
  754. if(this.address=="香山风电场"){
  755. this.FDC="XS_FDC";
  756. }
  757. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  758. },
  759. onLoad: function() {
  760. let that = this;
  761. setTimeout(function() {
  762. that.loading = true;
  763. }, 500);
  764. _self = this;
  765. this.cWidth = uni.upx2px(750);
  766. this.cHeight = uni.upx2px(400);
  767. this.getServerData();
  768. this.getColumnData();
  769. this.windStationCardCWidth = 250;
  770. this.windStationCardCHeight = 150;
  771. this.getWindStationCardData();
  772. this.target_comprehensive_indicators();
  773. this.target_windSpeed_power();
  774. this.index_windturbine_status();
  775. this.index_electricQuantity();
  776. this.index_target_basic_indicators();
  777. },
  778. computed:{
  779. backStageIp:function(){
  780. return this.$store.state.wholeSituationBackStageIp;
  781. }, backStagePort:function(){
  782. return this.$store.state.wholeSituationBackStagePort;
  783. },windpowerstationNameToId:function(){
  784. return this.$store.state.windpowerstationNameToId;
  785. }
  786. },
  787. onHide() {
  788. this.$refs.drawer.closeDrawer();
  789. this.hideModal();
  790. },
  791. onShow(){
  792. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  793. this.address = this.getWindPowerStationNameToSessionStorage();
  794. if(this.address=="宁夏新能源公司"){
  795. this.FDC="0";
  796. }
  797. if(this.address=="麻黄山风电场"){
  798. this.FDC="MHS_FDC";
  799. }
  800. if(this.address=="牛首山风电场"){
  801. this.FDC="NSS_FDC";
  802. }
  803. if(this.address=="石板泉风电场"){
  804. this.FDC="SBQ_FDC";
  805. }
  806. if(this.address=="青山风电场"){
  807. this.FDC="QS_FDC";
  808. }
  809. if(this.address=="香山风电场"){
  810. this.FDC="XS_FDC";
  811. }
  812. },
  813. methods: {
  814. openDrawer: function() {
  815. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  816. },
  817. closeDrawer: function() {
  818. this.drawerIsShow = false;
  819. },
  820. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  821. uni.setStorageSync('windpowerstationName', windpowerstationName);
  822. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  823. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  824. //this.common.goback('/pages/index/Index');
  825. },
  826. getWindPowerStationNameToSessionStorage() {
  827. uni.getStorageSync('windpowerstationName');
  828. return uni.getStorageSync('windpowerstationName');
  829. },
  830. showModal(e) {
  831. this.modalName = e.currentTarget.dataset.target;
  832. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  833. },
  834. hideModal() {
  835. this.modalName = null;
  836. this.$refs.plusDrawer.hideModal(this.modalName);
  837. },
  838. async target_comprehensive_indicators() {
  839. let _this = this;
  840. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  841. this.socketTask_target_comprehensive_indicators = uni.connectSocket({
  842. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  843. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_6/functionNumber_1',
  844. success(data) {
  845. console.log('websocket连接成功');
  846. }
  847. });
  848. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  849. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  850. this.socketTask_target_comprehensive_indicators.onOpen(res => {
  851. console.log('WebSocket连接正常打开中...!');
  852. this.is_open_socket = true;
  853. // 注:只有连接正常打开中 ,才能正常收到消息
  854. this.socketTask_target_comprehensive_indicators.onMessage(res => {
  855. //console.log("收到服务器内容:" + res.data);
  856. _this.windpowerstationdetail.target_comprehensive_indicators =JSON.parse(res.data)[_this.FDC];
  857. });
  858. });
  859. // 这里仅是事件监听【如果socket关闭了会执行】
  860. /* this.socketTask_comprehensive_target.onClose(() => {
  861. uni.request({
  862. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  863. success: (res) => {
  864. }
  865. });
  866. }) */
  867. },
  868. async target_windSpeed_power() {
  869. let _this = this;
  870. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  871. this.socketTask_target_windSpeed_power = uni.connectSocket({
  872. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  873. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_6/functionNumber_2',
  874. success(data) {
  875. console.log('websocket连接成功');
  876. }
  877. });
  878. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  879. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  880. this.socketTask_target_windSpeed_power.onOpen(res => {
  881. console.log('WebSocket连接正常打开中...!');
  882. this.is_open_socket = true;
  883. // 注:只有连接正常打开中 ,才能正常收到消息
  884. this.socketTask_target_windSpeed_power.onMessage(res => {
  885. //console.log("收到服务器内容:" + res.data);
  886. _this.windpowerstationdetail.target_windSpeed_power =JSON.parse(res.data)[_this.FDC];
  887. });
  888. });
  889. // 这里仅是事件监听【如果socket关闭了会执行】
  890. /* this.socketTask_comprehensive_target.onClose(() => {
  891. uni.request({
  892. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  893. success: (res) => {
  894. }
  895. });
  896. }) */
  897. },
  898. async index_windturbine_status() {
  899. let _this = this;
  900. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  901. this.socketTask_index_windturbine_status = uni.connectSocket({
  902. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  903. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_6/functionNumber_3',
  904. success(data) {
  905. console.log('websocket连接成功');
  906. }
  907. });
  908. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  909. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  910. this.socketTask_index_windturbine_status.onOpen(res => {
  911. console.log('WebSocket连接正常打开中...!');
  912. this.is_open_socket = true;
  913. // 注:只有连接正常打开中 ,才能正常收到消息
  914. this.socketTask_index_windturbine_status.onMessage(res => {
  915. //console.log("收到服务器内容:" + res.data);
  916. _this.windpowerstationdetail.index_windturbine_status =JSON.parse(res.data)[_this.FDC];
  917. });
  918. });
  919. // 这里仅是事件监听【如果socket关闭了会执行】
  920. /* this.socketTask_comprehensive_target.onClose(() => {
  921. uni.request({
  922. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  923. success: (res) => {
  924. }
  925. });
  926. }) */
  927. },
  928. async index_electricQuantity() {
  929. let _this = this;
  930. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  931. this.socketTask_index_electricQuantity = uni.connectSocket({
  932. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  933. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_6/functionNumber_4',
  934. success(data) {
  935. console.log('websocket连接成功');
  936. }
  937. });
  938. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  939. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  940. this.socketTask_index_electricQuantity.onOpen(res => {
  941. console.log('WebSocket连接正常打开中...!');
  942. this.is_open_socket = true;
  943. // 注:只有连接正常打开中 ,才能正常收到消息
  944. this.socketTask_index_electricQuantity.onMessage(res => {
  945. //console.log("收到服务器内容:" + res.data);
  946. _this.windpowerstationdetail.index_electricQuantity =JSON.parse(res.data)[_this.FDC];
  947. _this.monthOlive=(_this.windpowerstationdetail.index_electricQuantity.yfdl/10000)*100+"%";
  948. _this.monthAngrey=(1-_this.windpowerstationdetail.index_electricQuantity.yfdl/10000)*100+"%";
  949. _this.yearOlive=(_this.windpowerstationdetail.index_electricQuantity.nfdl/100000)*100+"%";
  950. _this.yearAngrey=(1-_this.windpowerstationdetail.index_electricQuantity.nfdl/100000)*100+"%";
  951. });
  952. });
  953. // 这里仅是事件监听【如果socket关闭了会执行】
  954. /* this.socketTask_comprehensive_target.onClose(() => {
  955. uni.request({
  956. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  957. success: (res) => {
  958. }
  959. });
  960. }) */
  961. },
  962. async index_target_basic_indicators() {
  963. let _this = this;
  964. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  965. this.socketTask_index_target_basic_indicators = uni.connectSocket({
  966. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  967. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_6/functionNumber_5',
  968. success(data) {
  969. console.log('websocket连接成功');
  970. }
  971. });
  972. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  973. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  974. this.socketTask_index_target_basic_indicators.onOpen(res => {
  975. console.log('WebSocket连接正常打开中...!');
  976. this.is_open_socket = true;
  977. // 注:只有连接正常打开中 ,才能正常收到消息
  978. this.socketTask_index_target_basic_indicators.onMessage(res => {
  979. //console.log("收到服务器内容:" + res.data);
  980. _this.windpowerstationdetail.index_target_basic_indicators =JSON.parse(res.data)[_this.FDC];
  981. });
  982. });
  983. // 这里仅是事件监听【如果socket关闭了会执行】
  984. /* this.socketTask_comprehensive_target.onClose(() => {
  985. uni.request({
  986. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  987. success: (res) => {
  988. }
  989. });
  990. }) */
  991. },
  992. getServerData() {
  993. // 折线图
  994. let LineA = {
  995. categories: [
  996. ' 17:26',
  997. '18:56',
  998. '19:56',
  999. '20:56',
  1000. '21:56',
  1001. '22:56',
  1002. '23:56',
  1003. '00:56',
  1004. '01:56',
  1005. '02:56',
  1006. '03:56',
  1007. '04:56',
  1008. '05:56',
  1009. '06:56',
  1010. '07:56',
  1011. '08:56',
  1012. '09:56',
  1013. '10:56',
  1014. '11:56',
  1015. '12:56',
  1016. '13:56',
  1017. '14:56',
  1018. '15:56',
  1019. '16:56',
  1020. '17:56 '
  1021. ],
  1022. series: [{
  1023. name: '功率',
  1024. 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,
  1025. 13, 12.8
  1026. ],
  1027. color: '#4BB94B',
  1028. textColor: '#FFFFFF',
  1029. textSize: this.seriesTextSize,
  1030. format: val => {
  1031. return val + 'kwh';
  1032. },
  1033. index: 0,
  1034. legendShape: 'circle'
  1035. },
  1036. {
  1037. name: '风速',
  1038. 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,
  1039. 23, 22.8
  1040. ],
  1041. color: '#E82E2F',
  1042. textColor: '#FFFFFF',
  1043. textSize: this.seriesTextSize,
  1044. format: val => {
  1045. return val + 'km/h';
  1046. },
  1047. index: 1,
  1048. legendShape: 'circle'
  1049. },
  1050. {
  1051. name: '理论功率',
  1052. 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,
  1053. 33, 32.8
  1054. ],
  1055. color: '#F5A83C',
  1056. textColor: '#FFFFFF',
  1057. textSize: this.seriesTextSize,
  1058. format: val => {
  1059. return val + 'kwh';
  1060. },
  1061. index: 0,
  1062. legendShape: 'circle'
  1063. },
  1064. {
  1065. name: '预测功率',
  1066. data: [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],
  1067. color: '#4A80B1',
  1068. textColor: '#FFFFFF',
  1069. textSize: this.seriesTextSize,
  1070. format: val => {
  1071. return val + 'kwh';
  1072. },
  1073. index: 1,
  1074. legendShape: 'circle'
  1075. }
  1076. ]
  1077. };
  1078. this.showLineA('canvasLineA', LineA);
  1079. },
  1080. showLineA(canvasId, chartData) {
  1081. var _self = this;
  1082. canvaLineA = new uCharts({
  1083. $this: _self,
  1084. canvasId: canvasId,
  1085. type: 'line',
  1086. fontSize: 11,
  1087. legend: {
  1088. show: true,
  1089. position: 'top',
  1090. float: 'right',
  1091. fontColor: 'silver',
  1092. itemGap: '4',
  1093. itemWidth: '3'
  1094. },
  1095. dataLabel: false,
  1096. dataPointShape: false,
  1097. background: '#FFFFFF',
  1098. pixelRatio: _self.pixelRatio,
  1099. categories: chartData.categories,
  1100. series: chartData.series,
  1101. animation: true,
  1102. xAxis: {
  1103. type: 'grid',
  1104. gridColor: 'silver',
  1105. fontColor: 'silver',
  1106. gridType: 'solid',
  1107. gridColor: '#2E2E2E',
  1108. axisLineColor: '#2E2E2E',
  1109. labelCount: '3'
  1110. // itemCount:"3"
  1111. },
  1112. yAxis: {
  1113. data: [{
  1114. type: 'value',
  1115. fontColor: 'silver',
  1116. disabled: false, //y轴轴线
  1117. min: 0,
  1118. max: 40,
  1119. position: 'left',
  1120. axisLineColor: '#2E2E2E',
  1121. title: ' 风速:(km/h)',
  1122. titleFontColor: 'silver'
  1123. },
  1124. {
  1125. fontColor: 'silver',
  1126. disabled: false, //y轴轴线
  1127. min: 0,
  1128. max: 40,
  1129. position: 'right',
  1130. axisLineColor: '#2E2E2E',
  1131. title: '功率:(kwh)',
  1132. titleFontColor: 'silver'
  1133. }
  1134. ],
  1135. gridColor: '#2E2E2E',
  1136. splitNumber: 4,
  1137. gridType: 'solid',
  1138. dashLength: 8,
  1139. showTitle: 'true',
  1140. format: val => {
  1141. return val.toFixed(0) + '元';
  1142. }
  1143. },
  1144. width: _self.cWidth * _self.pixelRatio,
  1145. height: _self.cHeight * _self.pixelRatio,
  1146. extra: {
  1147. line: {
  1148. type: 'line',
  1149. width: '1'
  1150. }
  1151. }
  1152. });
  1153. },
  1154. AffectedPower() {
  1155. this.toBeInvolved = true,
  1156. this.performance = false;
  1157. this.powerLimitation = false;
  1158. this.overhaul = false;
  1159. this.dayHair = false;
  1160. this.fault = false;
  1161. this.clickFlag = "group";
  1162. this.getColumnData();
  1163. },
  1164. performancePower() {
  1165. this.performance = true;
  1166. this.powerLimitation = false;
  1167. this.toBeInvolved = false,
  1168. this.overhaul = false;
  1169. this.dayHair = false;
  1170. this.fault = false;
  1171. this.clickFlag = "group";
  1172. this.getColumnData();
  1173. },
  1174. limitedPower() {
  1175. this.toBeInvolved = false,
  1176. this.powerLimitation = true;
  1177. this.performance = false;
  1178. this.overhaul = false;
  1179. this.dayHair = false;
  1180. this.fault = false;
  1181. this.clickFlag = "group";
  1182. this.getColumnData();
  1183. },
  1184. maintenancePower() {
  1185. this.toBeInvolved = false,
  1186. this.overhaul = true;
  1187. this.performance = false;
  1188. this.dayHair = false;
  1189. this.fault = false;
  1190. this.powerLimitation = false;
  1191. this.clickFlag = "group";
  1192. this.getColumnData();
  1193. },
  1194. directGeneration() {
  1195. this.toBeInvolved = false,
  1196. this.dayHair = false;
  1197. this.performance = false;
  1198. this.fault = false;
  1199. this.overhaul = false;
  1200. this.powerLimitation = false;
  1201. this.clickFlag = "stack";
  1202. this.getColumnData();
  1203. },
  1204. powerGeneration() {
  1205. this.toBeInvolved = false,
  1206. this.dayHair = true;
  1207. this.performance = false;
  1208. this.fault = false;
  1209. this.overhaul = false;
  1210. this.powerLimitation = false;
  1211. this.clickFlag = "group";
  1212. this.getColumnData();
  1213. },
  1214. faultPower() {
  1215. this.toBeInvolved = false,
  1216. this.fault = true;
  1217. this.performance = false;
  1218. this.dayHair = false;
  1219. this.overhaul = false;
  1220. this.powerLimitation = false;
  1221. this.clickFlag = "group";
  1222. this.getColumnData();
  1223. },
  1224. getColumnData() {
  1225. let ColumnStack = {
  1226. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18"],
  1227. "series": [{
  1228. "name": "应发电量(万kwh)",
  1229. "data": [0, 0, 0, 0, 0, 0, 0],
  1230. color: '#007BF9',
  1231. }, {
  1232. "name": "日发电量(万kwh)",
  1233. "data": [18, 13, 12, 17, 13, 7, 11],
  1234. color: '#4EB64E',
  1235. }, {
  1236. "name": "故障损失电量(万kwh)",
  1237. "data": [17, 15, 17, 21, 16, 8, 10],
  1238. color: '#F14E51',
  1239. }, {
  1240. "name": "检修损失电量(万kwh)",
  1241. "data": [14, 17, 19, 20, 6, 14, 12],
  1242. color: '#FF6B3E',
  1243. },
  1244. {
  1245. "name": "限电损失电量(万kwh)",
  1246. "data": [14, 17, 19, 20, 6, 14, 12],
  1247. color: '#DC62D2',
  1248. },
  1249. {
  1250. "name": "性能损失电量(万kwh)",
  1251. "data": [15, 17, 19, 20, 6, 4, 12],
  1252. color: '#9DA3F6',
  1253. },
  1254. {
  1255. "name": "受累损失电量(万kwh)",
  1256. "data": [14, 17, 19, 20, 6, 4, 12],
  1257. color: '#9E9E9E',
  1258. },
  1259. ],
  1260. };
  1261. if (this.dayHair) {
  1262. ColumnStack = {
  1263. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18", "04/19", "04/20"],
  1264. "series": [{
  1265. "name": "日发电量(万kwh)",
  1266. "data": [18, 13, 12, 17, 13, 7, 11, 15, 13],
  1267. color: '#4EB64E',
  1268. }
  1269. ],
  1270. };
  1271. ColumnStack.categories = [];
  1272. ColumnStack.series[0].data = [];
  1273. for (let i = 0; i < this.rifa.length; i++) {
  1274. ColumnStack.categories.push(this.Xzuobiao[i]);
  1275. // console.log(ColumnStack.categories)
  1276. ColumnStack.series[0].data.push(this.rifa[i]);
  1277. // console.log(ColumnStack.series[1].data)
  1278. }
  1279. }
  1280. if (this.fault) {
  1281. ColumnStack = {
  1282. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18", "04/19", "04/20"],
  1283. "series": [{
  1284. "name": "故障损失电量(万kwh)",
  1285. "data": [17, 15, 17, 21, 16, 8, 10, 17, 11],
  1286. color: '#F14E51',
  1287. }, ],
  1288. };
  1289. ColumnStack.categories = [];
  1290. ColumnStack.series[0].data = [];
  1291. for (let i = 0; i < this.guzhang.length; i++) {
  1292. ColumnStack.categories.push(this.Xzuobiao[i]);
  1293. // console.log(ColumnStack.categories)
  1294. ColumnStack.series[0].data.push(this.guzhang[i]);
  1295. // console.log(ColumnStack.series[1].data)
  1296. }
  1297. }
  1298. if (this.overhaul) {
  1299. ColumnStack = {
  1300. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18", "04/19", "04/20"],
  1301. "series": [{
  1302. "name": "检修损失电量(万kwh)",
  1303. "data": [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1304. color: '#FF6B3E',
  1305. }
  1306. ],
  1307. };
  1308. ColumnStack.categories = [];
  1309. ColumnStack.series[0].data = [];
  1310. for (let i = 0; i < this.jianxiu.length; i++) {
  1311. ColumnStack.categories.push(this.Xzuobiao[i]);
  1312. // console.log(ColumnStack.categories)
  1313. ColumnStack.series[0].data.push(this.jianxiu[i]);
  1314. // console.log(ColumnStack.series[1].data)
  1315. }
  1316. }
  1317. if (this.powerLimitation) {
  1318. ColumnStack = {
  1319. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18", "04/19", "04/20"],
  1320. "series": [{
  1321. "name": "限电损失电量(万kwh)",
  1322. "data": [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1323. color: '#DC62D2',
  1324. }
  1325. ],
  1326. };
  1327. ColumnStack.categories = [];
  1328. ColumnStack.series[0].data = [];
  1329. for (let i = 0; i < this.xiandian.length; i++) {
  1330. ColumnStack.categories.push(this.Xzuobiao[i]);
  1331. // console.log(ColumnStack.categories)
  1332. ColumnStack.series[0].data.push(this.xiandian[i]);
  1333. // console.log(ColumnStack.series[1].data)
  1334. }
  1335. }
  1336. if (this.performance) {
  1337. ColumnStack = {
  1338. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18", "04/19", "04/20"],
  1339. "series": [{
  1340. "name": "性能损失电量(万kwh)",
  1341. "data": [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1342. color: '#9DA3F6',
  1343. }
  1344. ],
  1345. };
  1346. ColumnStack.categories = [];
  1347. ColumnStack.series[0].data = [];
  1348. for (let i = 0; i < this.xingneng.length; i++) {
  1349. ColumnStack.categories.push(this.Xzuobiao[i]);
  1350. // console.log(ColumnStack.categories)
  1351. ColumnStack.series[0].data.push(this.xingneng[i]);
  1352. // console.log(ColumnStack.series[1].data)
  1353. }
  1354. }
  1355. if (this.toBeInvolved) {
  1356. ColumnStack = {
  1357. "categories": ["04/12", "04/13", "04/14", "04/15", "04/16", "04/17", "04/18", "04/19", "04/20"],
  1358. "series": [{
  1359. "name": "受累损失电量(万kwh)",
  1360. "data": [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1361. color: '#9E9E9E',
  1362. }
  1363. ],
  1364. };
  1365. ColumnStack.categories = [];
  1366. ColumnStack.series[0].data = [];
  1367. for (let i = 0; i < this.shoulei.length; i++) {
  1368. ColumnStack.categories.push(this.Xzuobiao[i]);
  1369. // console.log(ColumnStack.categories)
  1370. ColumnStack.series[0].data.push(this.shoulei[i]);
  1371. // console.log(ColumnStack.series[1].data)
  1372. }
  1373. }
  1374. this.showColumnStack("canvasColumnStack", ColumnStack);
  1375. },
  1376. showColumnStack(canvasId, chartData) {
  1377. var _self = this;
  1378. canvaColumn = new uCharts({
  1379. $this: _self,
  1380. canvasId: canvasId,
  1381. type: 'column',
  1382. legend: {
  1383. show: false
  1384. },
  1385. fontSize: 11,
  1386. background: '#FFFFFF',
  1387. pixelRatio: _self.pixelRatio,
  1388. animation: true,
  1389. categories: chartData.categories,
  1390. series: chartData.series,
  1391. xAxis: {
  1392. disableGrid: true,
  1393. gridColor: 'silver',
  1394. fontColor: 'silver',
  1395. },
  1396. yAxis: {
  1397. data: [{
  1398. type: "value",
  1399. fontColor: 'silver',
  1400. disabled: false, //y轴轴线
  1401. min: 0,
  1402. max: 60,
  1403. axisLineColor: "#2E2E2E",
  1404. title: " 电量:(kwh)",
  1405. titleFontColor: "silver"
  1406. }],
  1407. gridColor: "#2E2E2E",
  1408. splitNumber: 4,
  1409. gridType: 'solid',
  1410. dashLength: 8,
  1411. showTitle: false,
  1412. //disabled:true
  1413. },
  1414. dataLabel: false,
  1415. width: _self.cWidth * _self.pixelRatio,
  1416. height: _self.cHeight * _self.pixelRatio,
  1417. extra: {
  1418. column: {
  1419. type: _self.clickFlag,
  1420. width: '13'
  1421. }
  1422. }
  1423. });
  1424. },
  1425. touchColumn(e) {
  1426. let _this = this;
  1427. canvaColumn.showToolTip(e, {
  1428. format: function(item, category) {
  1429. if (item.name == "应发电量(万kwh)") {
  1430. return category + ' ' + item.name + ':' + 50;
  1431. } else {
  1432. return category + ' ' + item.name + ':' + item.data
  1433. }
  1434. }
  1435. });
  1436. },
  1437. touchLineA(e) {
  1438. canvaLineA.showToolTip(e, {
  1439. format: function(item, category) {
  1440. return category + ' ' + item.name + ':' + item.data;
  1441. }
  1442. });
  1443. },
  1444. touchLineB1(e) {
  1445. canvaLineB1.showToolTip(e, {
  1446. format: function(item, category) {
  1447. return category + ' ' + item.name + ':' + item.data;
  1448. }
  1449. });
  1450. },
  1451. touchLineB2(e) {
  1452. canvaLineB2.showToolTip(e, {
  1453. format: function(item, category) {
  1454. return category + ' ' + item.name + ':' + item.data;
  1455. }
  1456. });
  1457. },
  1458. touchLineB3(e) {
  1459. canvaLineB3.showToolTip(e, {
  1460. format: function(item, category) {
  1461. return category + ' ' + item.name + ':' + item.data;
  1462. }
  1463. });
  1464. },
  1465. touchLineB4(e) {
  1466. canvaLineB4.showToolTip(e, {
  1467. format: function(item, category) {
  1468. return category + ' ' + item.name + ':' + item.data;
  1469. }
  1470. });
  1471. },
  1472. touchLineB5(e) {
  1473. canvaLineB5.showToolTip(e, {
  1474. format: function(item, category) {
  1475. return category + ' ' + item.name + ':' + item.data;
  1476. }
  1477. });
  1478. },
  1479. moveLineA(e) {
  1480. canvaLineA.scroll(e);
  1481. },
  1482. getWindStationCardData: function() {
  1483. let LineA1 = {
  1484. categories: [
  1485. ' 17:26',
  1486. '18:56',
  1487. '19:56',
  1488. '20:56',
  1489. '21:56',
  1490. '22:56',
  1491. '23:56',
  1492. '00:56',
  1493. '01:56',
  1494. '02:56',
  1495. '03:56',
  1496. '04:56',
  1497. '05:56',
  1498. '06:56',
  1499. '07:56',
  1500. '08:56',
  1501. '09:56',
  1502. '10:56',
  1503. '11:56',
  1504. '12:56',
  1505. '13:56',
  1506. '14:56',
  1507. '15:56',
  1508. '16:56',
  1509. '17:56 '
  1510. ],
  1511. series: [{
  1512. name: '功率',
  1513. 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,
  1514. 13, 12.8
  1515. ],
  1516. color: '#4BB94B',
  1517. textColor: '#FFFFFF',
  1518. textSize: this.seriesTextSize,
  1519. format: val => {
  1520. return val + 'kwh';
  1521. },
  1522. index: 0,
  1523. legendShape: 'circle'
  1524. },
  1525. {
  1526. name: '风速',
  1527. 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,
  1528. 23, 22.8
  1529. ],
  1530. color: '#E82E2F',
  1531. textColor: '#FFFFFF',
  1532. textSize: this.seriesTextSize,
  1533. format: val => {
  1534. return val + 'km/h';
  1535. },
  1536. index: 1,
  1537. legendShape: 'circle'
  1538. },
  1539. {
  1540. name: '理论功率',
  1541. 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,
  1542. 33, 32.8
  1543. ],
  1544. color: '#F5A83C',
  1545. textColor: '#FFFFFF',
  1546. textSize: this.seriesTextSize,
  1547. format: val => {
  1548. return val + 'kwh';
  1549. },
  1550. index: 0,
  1551. legendShape: 'circle'
  1552. },
  1553. {
  1554. name: '预测功率',
  1555. 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],
  1556. color: '#4A80B1',
  1557. textColor: '#FFFFFF',
  1558. textSize: this.seriesTextSize,
  1559. format: val => {
  1560. return val + 'kwh';
  1561. },
  1562. index: 1,
  1563. legendShape: 'circle'
  1564. }
  1565. ]
  1566. };
  1567. let LineB = {
  1568. categories: [
  1569. ' 17:26',
  1570. '18:56',
  1571. '19:56',
  1572. '20:56',
  1573. '21:56',
  1574. '22:56',
  1575. '23:56',
  1576. '00:56',
  1577. '01:56',
  1578. '02:56',
  1579. '03:56',
  1580. '04:56',
  1581. '05:56',
  1582. '06:56',
  1583. '07:56',
  1584. '08:56',
  1585. '09:56',
  1586. '10:56',
  1587. '11:56',
  1588. '12:56',
  1589. '13:56',
  1590. '14:56',
  1591. '15:56',
  1592. '16:56',
  1593. '17:56 '
  1594. ],
  1595. series: [{
  1596. name: '功率',
  1597. 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,
  1598. 13, 12.8
  1599. ],
  1600. color: '#4BB94B',
  1601. textColor: '#FFFFFF',
  1602. textSize: this.seriesTextSize,
  1603. format: val => {
  1604. return val + 'kwh';
  1605. },
  1606. index: 0,
  1607. legendShape: 'circle'
  1608. },
  1609. {
  1610. name: '风速',
  1611. 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,
  1612. 23, 22.8
  1613. ],
  1614. color: '#E82E2F',
  1615. textColor: '#FFFFFF',
  1616. textSize: this.seriesTextSize,
  1617. format: val => {
  1618. return val + 'km/h';
  1619. },
  1620. index: 1,
  1621. legendShape: 'circle'
  1622. },
  1623. {
  1624. name: '理论功率',
  1625. 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,
  1626. 33, 32.8
  1627. ],
  1628. color: '#F5A83C',
  1629. textColor: '#FFFFFF',
  1630. textSize: this.seriesTextSize,
  1631. format: val => {
  1632. return val + 'kwh';
  1633. },
  1634. index: 0,
  1635. legendShape: 'circle'
  1636. },
  1637. {
  1638. name: '预测功率',
  1639. 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],
  1640. color: '#4A80B1',
  1641. textColor: '#FFFFFF',
  1642. textSize: this.seriesTextSize,
  1643. format: val => {
  1644. return val + 'kwh';
  1645. },
  1646. index: 1,
  1647. legendShape: 'circle'
  1648. }
  1649. ]
  1650. };
  1651. let LineC = {
  1652. categories: [
  1653. ' 17:26',
  1654. '18:56',
  1655. '19:56',
  1656. '20:56',
  1657. '21:56',
  1658. '22:56',
  1659. '23:56',
  1660. '00:56',
  1661. '01:56',
  1662. '02:56',
  1663. '03:56',
  1664. '04:56',
  1665. '05:56',
  1666. '06:56',
  1667. '07:56',
  1668. '08:56',
  1669. '09:56',
  1670. '10:56',
  1671. '11:56',
  1672. '12:56',
  1673. '13:56',
  1674. '14:56',
  1675. '15:56',
  1676. '16:56',
  1677. '17:56 '
  1678. ],
  1679. series: [{
  1680. name: '功率',
  1681. 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,
  1682. 13, 12.8
  1683. ],
  1684. color: '#4BB94B',
  1685. textColor: '#FFFFFF',
  1686. textSize: this.seriesTextSize,
  1687. format: val => {
  1688. return val + 'kwh';
  1689. },
  1690. index: 0,
  1691. legendShape: 'circle'
  1692. },
  1693. {
  1694. name: '风速',
  1695. 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,
  1696. 23, 22.8
  1697. ],
  1698. color: '#E82E2F',
  1699. textColor: '#FFFFFF',
  1700. textSize: this.seriesTextSize,
  1701. format: val => {
  1702. return val + 'km/h';
  1703. },
  1704. index: 1,
  1705. legendShape: 'circle'
  1706. },
  1707. {
  1708. name: '理论功率',
  1709. 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,
  1710. 33, 32.8
  1711. ],
  1712. color: '#F5A83C',
  1713. textColor: '#FFFFFF',
  1714. textSize: this.seriesTextSize,
  1715. format: val => {
  1716. return val + 'kwh';
  1717. },
  1718. index: 0,
  1719. legendShape: 'circle'
  1720. },
  1721. {
  1722. name: '预测功率',
  1723. 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],
  1724. color: '#4A80B1',
  1725. textColor: '#FFFFFF',
  1726. textSize: this.seriesTextSize,
  1727. format: val => {
  1728. return val + 'kwh';
  1729. },
  1730. index: 1,
  1731. legendShape: 'circle'
  1732. }
  1733. ]
  1734. };
  1735. let LineD = {
  1736. categories: [
  1737. ' 17:26',
  1738. '18:56',
  1739. '19:56',
  1740. '20:56',
  1741. '21:56',
  1742. '22:56',
  1743. '23:56',
  1744. '00:56',
  1745. '01:56',
  1746. '02:56',
  1747. '03:56',
  1748. '04:56',
  1749. '05:56',
  1750. '06:56',
  1751. '07:56',
  1752. '08:56',
  1753. '09:56',
  1754. '10:56',
  1755. '11:56',
  1756. '12:56',
  1757. '13:56',
  1758. '14:56',
  1759. '15:56',
  1760. '16:56',
  1761. '17:56 '
  1762. ],
  1763. series: [{
  1764. name: '功率',
  1765. 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,
  1766. 13, 12.8
  1767. ],
  1768. color: '#4BB94B',
  1769. textColor: '#FFFFFF',
  1770. textSize: this.seriesTextSize,
  1771. format: val => {
  1772. return val + 'kwh';
  1773. },
  1774. index: 0,
  1775. legendShape: 'circle'
  1776. },
  1777. {
  1778. name: '风速',
  1779. 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,
  1780. 23, 22.8
  1781. ],
  1782. color: '#E82E2F',
  1783. textColor: '#FFFFFF',
  1784. textSize: this.seriesTextSize,
  1785. format: val => {
  1786. return val + 'km/h';
  1787. },
  1788. index: 1,
  1789. legendShape: 'circle'
  1790. },
  1791. {
  1792. name: '理论功率',
  1793. 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,
  1794. 33, 32.8
  1795. ],
  1796. color: '#F5A83C',
  1797. textColor: '#FFFFFF',
  1798. textSize: this.seriesTextSize,
  1799. format: val => {
  1800. return val + 'kwh';
  1801. },
  1802. index: 0,
  1803. legendShape: 'circle'
  1804. },
  1805. {
  1806. name: '预测功率',
  1807. 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],
  1808. color: '#4A80B1',
  1809. textColor: '#FFFFFF',
  1810. textSize: this.seriesTextSize,
  1811. format: val => {
  1812. return val + 'kwh';
  1813. },
  1814. index: 1,
  1815. legendShape: 'circle'
  1816. }
  1817. ]
  1818. };
  1819. let LineE = {
  1820. categories: [
  1821. ' 17:26',
  1822. '18:56',
  1823. '19:56',
  1824. '20:56',
  1825. '21:56',
  1826. '22:56',
  1827. '23:56',
  1828. '00:56',
  1829. '01:56',
  1830. '02:56',
  1831. '03:56',
  1832. '04:56',
  1833. '05:56',
  1834. '06:56',
  1835. '07:56',
  1836. '08:56',
  1837. '09:56',
  1838. '10:56',
  1839. '11:56',
  1840. '12:56',
  1841. '13:56',
  1842. '14:56',
  1843. '15:56',
  1844. '16:56',
  1845. '17:56 '
  1846. ],
  1847. series: [{
  1848. name: '功率',
  1849. 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,
  1850. 13, 12.8
  1851. ],
  1852. color: '#4BB94B',
  1853. textColor: '#FFFFFF',
  1854. textSize: this.seriesTextSize,
  1855. format: val => {
  1856. return val + 'kwh';
  1857. },
  1858. index: 0,
  1859. legendShape: 'circle'
  1860. },
  1861. {
  1862. name: '风速',
  1863. 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,
  1864. 23, 22.8
  1865. ],
  1866. color: '#E82E2F',
  1867. textColor: '#FFFFFF',
  1868. textSize: this.seriesTextSize,
  1869. format: val => {
  1870. return val + 'km/h';
  1871. },
  1872. index: 1,
  1873. legendShape: 'circle'
  1874. },
  1875. {
  1876. name: '理论功率',
  1877. 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,
  1878. 33, 32.8
  1879. ],
  1880. color: '#F5A83C',
  1881. textColor: '#FFFFFF',
  1882. textSize: this.seriesTextSize,
  1883. format: val => {
  1884. return val + 'kwh';
  1885. },
  1886. index: 0,
  1887. legendShape: 'circle'
  1888. },
  1889. {
  1890. name: '预测功率',
  1891. 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],
  1892. color: '#4A80B1',
  1893. textColor: '#FFFFFF',
  1894. textSize: this.seriesTextSize,
  1895. format: val => {
  1896. return val + 'kwh';
  1897. },
  1898. index: 1,
  1899. legendShape: 'circle'
  1900. }
  1901. ]
  1902. };
  1903. this.showWindStationCardLineA1('windStationCanvasLineA', LineA1);
  1904. this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  1905. this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  1906. this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  1907. this.showWindStationCardLineA5('windStationCanvasLineE', LineE);
  1908. },
  1909. showWindStationCardLineA1(canvasId, chartData) {
  1910. var _self = this;
  1911. canvaLineB1 = new uCharts({
  1912. $this: _self,
  1913. canvasId: canvasId,
  1914. type: 'line',
  1915. fontSize: 11,
  1916. legend: {
  1917. show: true,
  1918. position: 'top',
  1919. float: 'right',
  1920. fontColor: 'silver',
  1921. itemGap: '9',
  1922. itemWidth: '3'
  1923. },
  1924. dataLabel: false,
  1925. dataPointShape: false,
  1926. background: '#FFFFFF',
  1927. pixelRatio: _self.windStationCardPixelRatio,
  1928. categories: chartData.categories,
  1929. series: chartData.series,
  1930. animation: true,
  1931. xAxis: {
  1932. disableGrid:true,
  1933. type: 'grid',
  1934. gridColor: 'silver',
  1935. fontColor: 'silver',
  1936. gridType: 'solid',
  1937. gridColor: '#2E2E2E',
  1938. axisLineColor: '#2E2E2E',
  1939. labelCount: '3'
  1940. // itemCount:"3"
  1941. },
  1942. yAxis: {
  1943. data: [{
  1944. type: 'value',
  1945. fontColor: 'silver',
  1946. disabled: false, //y轴轴线
  1947. min: 0,
  1948. max: 40,
  1949. position: 'left',
  1950. axisLineColor: '#2E2E2E',
  1951. title: ' 风速:(km/h)',
  1952. titleFontColor: 'silver'
  1953. },
  1954. {
  1955. fontColor: 'silver',
  1956. disabled: false, //y轴轴线
  1957. min: 0,
  1958. max: 40,
  1959. position: 'right',
  1960. axisLineColor: '#2E2E2E',
  1961. title: '功率:(kwh)',
  1962. titleFontColor: 'silver'
  1963. }
  1964. ],
  1965. disabled:true,
  1966. gridColor: '#2E2E2E',
  1967. splitNumber: 4,
  1968. gridType: 'solid',
  1969. dashLength: 8,
  1970. showTitle: 'true',
  1971. format: val => {
  1972. return val.toFixed(0) + '元';
  1973. }
  1974. },
  1975. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  1976. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  1977. padding:[10,0,0,0],//画布填充边距,顺序为上右下左,同css,但必须4位
  1978. extra: {
  1979. line: {
  1980. type: 'line',
  1981. width: '1'
  1982. }
  1983. }
  1984. });
  1985. },
  1986. showWindStationCardLineA2(canvasId, chartData) {
  1987. var _self = this;
  1988. canvaLineB2 = new uCharts({
  1989. $this: _self,
  1990. canvasId: canvasId,
  1991. type: 'line',
  1992. fontSize: 11,
  1993. legend: {
  1994. show: true,
  1995. position: 'top',
  1996. float: 'right',
  1997. fontColor: 'silver',
  1998. itemGap: '9',
  1999. itemWidth: '3'
  2000. },
  2001. dataLabel: false,
  2002. dataPointShape: false,
  2003. background: '#FFFFFF',
  2004. pixelRatio: _self.windStationCardPixelRatio,
  2005. categories: chartData.categories,
  2006. series: chartData.series,
  2007. animation: true,
  2008. xAxis: {
  2009. disableGrid:true,
  2010. type: 'grid',
  2011. gridColor: 'silver',
  2012. fontColor: 'silver',
  2013. gridType: 'solid',
  2014. gridColor: '#2E2E2E',
  2015. axisLineColor: '#2E2E2E',
  2016. labelCount: '3'
  2017. // itemCount:"3"
  2018. },
  2019. yAxis: {
  2020. data: [{
  2021. type: 'value',
  2022. fontColor: 'silver',
  2023. disabled: false, //y轴轴线
  2024. min: 0,
  2025. max: 40,
  2026. position: 'left',
  2027. axisLineColor: '#2E2E2E',
  2028. title: ' 风速:(km/h)',
  2029. titleFontColor: 'silver'
  2030. },
  2031. {
  2032. fontColor: 'silver',
  2033. disabled: false, //y轴轴线
  2034. min: 0,
  2035. max: 40,
  2036. position: 'right',
  2037. axisLineColor: '#2E2E2E',
  2038. title: '功率:(kwh)',
  2039. titleFontColor: 'silver'
  2040. }
  2041. ],
  2042. disabled:true,
  2043. gridColor: '#2E2E2E',
  2044. splitNumber: 4,
  2045. gridType: 'solid',
  2046. dashLength: 8,
  2047. showTitle: 'true',
  2048. format: val => {
  2049. return val.toFixed(0) + '元';
  2050. }
  2051. },
  2052. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2053. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2054. padding:[10,0,0,0],//画布填充边距,顺序为上右下左,同css,但必须4位
  2055. extra: {
  2056. line: {
  2057. type: 'line',
  2058. width: '1'
  2059. }
  2060. }
  2061. });
  2062. },
  2063. showWindStationCardLineA3(canvasId, chartData) {
  2064. var _self = this;
  2065. canvaLineB3 = new uCharts({
  2066. $this: _self,
  2067. canvasId: canvasId,
  2068. type: 'line',
  2069. fontSize: 11,
  2070. legend: {
  2071. show: true,
  2072. position: 'top',
  2073. float: 'right',
  2074. fontColor: 'silver',
  2075. itemGap: '9',
  2076. itemWidth: '3'
  2077. },
  2078. dataLabel: false,
  2079. dataPointShape: false,
  2080. background: '#FFFFFF',
  2081. pixelRatio: _self.windStationCardPixelRatio,
  2082. categories: chartData.categories,
  2083. series: chartData.series,
  2084. animation: true,
  2085. xAxis: {
  2086. disableGrid:true,
  2087. type: 'grid',
  2088. gridColor: 'silver',
  2089. fontColor: 'silver',
  2090. gridType: 'solid',
  2091. gridColor: '#2E2E2E',
  2092. axisLineColor: '#2E2E2E',
  2093. labelCount: '3'
  2094. // itemCount:"3"
  2095. },
  2096. yAxis: {
  2097. data: [{
  2098. type: 'value',
  2099. fontColor: 'silver',
  2100. disabled: false, //y轴轴线
  2101. min: 0,
  2102. max: 40,
  2103. position: 'left',
  2104. axisLineColor: '#2E2E2E',
  2105. title: ' 风速:(km/h)',
  2106. titleFontColor: 'silver'
  2107. },
  2108. {
  2109. fontColor: 'silver',
  2110. disabled: false, //y轴轴线
  2111. min: 0,
  2112. max: 40,
  2113. position: 'right',
  2114. axisLineColor: '#2E2E2E',
  2115. title: '功率:(kwh)',
  2116. titleFontColor: 'silver'
  2117. }
  2118. ],
  2119. disabled:true,
  2120. gridColor: '#2E2E2E',
  2121. splitNumber: 4,
  2122. gridType: 'solid',
  2123. dashLength: 8,
  2124. showTitle: 'true',
  2125. format: val => {
  2126. return val.toFixed(0) + '元';
  2127. }
  2128. },
  2129. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2130. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2131. padding:[10,0,0,0],//画布填充边距,顺序为上右下左,同css,但必须4位
  2132. extra: {
  2133. line: {
  2134. type: 'line',
  2135. width: '1'
  2136. }
  2137. }
  2138. });
  2139. },
  2140. showWindStationCardLineA4(canvasId, chartData) {
  2141. var _self = this;
  2142. canvaLineB4 = new uCharts({
  2143. $this: _self,
  2144. canvasId: canvasId,
  2145. type: 'line',
  2146. fontSize: 11,
  2147. legend: {
  2148. show: true,
  2149. position: 'top',
  2150. float: 'right',
  2151. fontColor: 'silver',
  2152. itemGap: '9',
  2153. itemWidth: '3'
  2154. },
  2155. dataLabel: false,
  2156. dataPointShape: false,
  2157. background: '#FFFFFF',
  2158. pixelRatio: _self.windStationCardPixelRatio,
  2159. categories: chartData.categories,
  2160. series: chartData.series,
  2161. animation: true,
  2162. xAxis: {
  2163. disableGrid:true,
  2164. type: 'grid',
  2165. gridColor: 'silver',
  2166. fontColor: 'silver',
  2167. gridType: 'solid',
  2168. gridColor: '#2E2E2E',
  2169. axisLineColor: '#2E2E2E',
  2170. labelCount: '3'
  2171. // itemCount:"3"
  2172. },
  2173. yAxis: {
  2174. data: [{
  2175. type: 'value',
  2176. fontColor: 'silver',
  2177. disabled: false, //y轴轴线
  2178. min: 0,
  2179. max: 40,
  2180. position: 'left',
  2181. axisLineColor: '#2E2E2E',
  2182. title: ' 风速:(km/h)',
  2183. titleFontColor: 'silver'
  2184. },
  2185. {
  2186. fontColor: 'silver',
  2187. disabled: false, //y轴轴线
  2188. min: 0,
  2189. max: 40,
  2190. position: 'right',
  2191. axisLineColor: '#2E2E2E',
  2192. title: '功率:(kwh)',
  2193. titleFontColor: 'silver'
  2194. }
  2195. ],
  2196. disabled:true,
  2197. gridColor: '#2E2E2E',
  2198. splitNumber: 4,
  2199. gridType: 'solid',
  2200. dashLength: 8,
  2201. showTitle: 'true',
  2202. format: val => {
  2203. return val.toFixed(0) + '元';
  2204. }
  2205. },
  2206. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2207. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2208. padding:[10,0,0,0],//画布填充边距,顺序为上右下左,同css,但必须4位
  2209. extra: {
  2210. line: {
  2211. type: 'line',
  2212. width: '1'
  2213. }
  2214. }
  2215. });
  2216. },
  2217. showWindStationCardLineA5(canvasId, chartData) {
  2218. var _self = this;
  2219. canvaLineB5 = new uCharts({
  2220. $this: _self,
  2221. canvasId: canvasId,
  2222. type: 'line',
  2223. fontSize: 11,
  2224. legend: {
  2225. show: true,
  2226. position: 'top',
  2227. float: 'right',
  2228. fontColor: 'silver',
  2229. itemGap: '9',
  2230. itemWidth: '3'
  2231. },
  2232. dataLabel: false,
  2233. dataPointShape: false,
  2234. background: '#FFFFFF',
  2235. pixelRatio: _self.windStationCardPixelRatio,
  2236. categories: chartData.categories,
  2237. series: chartData.series,
  2238. animation: true,
  2239. xAxis: {
  2240. disableGrid:true,
  2241. type: 'grid',
  2242. gridColor: 'silver',
  2243. fontColor: 'silver',
  2244. gridType: 'solid',
  2245. gridColor: '#2E2E2E',
  2246. axisLineColor: '#2E2E2E',
  2247. labelCount: '3'
  2248. // itemCount:"3"
  2249. },
  2250. yAxis: {
  2251. data: [{
  2252. type: 'value',
  2253. fontColor: 'silver',
  2254. disabled: false, //y轴轴线
  2255. min: 0,
  2256. max: 40,
  2257. position: 'left',
  2258. axisLineColor: '#2E2E2E',
  2259. title: ' 风速:(km/h)',
  2260. titleFontColor: 'silver'
  2261. },
  2262. {
  2263. fontColor: 'silver',
  2264. disabled: false, //y轴轴线
  2265. min: 0,
  2266. max: 40,
  2267. position: 'right',
  2268. axisLineColor: '#2E2E2E',
  2269. title: '功率:(kwh)',
  2270. titleFontColor: 'silver'
  2271. }
  2272. ],
  2273. disabled:true,
  2274. gridColor: '#2E2E2E',
  2275. splitNumber: 4,
  2276. gridType: 'solid',
  2277. dashLength: 8,
  2278. showTitle: 'true',
  2279. format: val => {
  2280. return val.toFixed(0) + '元';
  2281. }
  2282. },
  2283. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2284. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2285. padding:[10,0,0,0],//画布填充边距,顺序为上右下左,同css,但必须4位
  2286. extra: {
  2287. line: {
  2288. type: 'line',
  2289. width: '1'
  2290. }
  2291. }
  2292. });
  2293. },
  2294. }
  2295. };
  2296. </script>
  2297. <style>
  2298. .speedPowerDiagram {
  2299. width: 100px;
  2300. height: 30px;
  2301. user-select: text;
  2302. -webkit-user-select: text;
  2303. -moz-user-select: text;
  2304. -ms-user-select: text;
  2305. color: silver;
  2306. float: left;
  2307. margin-top: 18px;
  2308. margin-left: 9px;
  2309. font-size: 11px;
  2310. }
  2311. .monthlyUtilizationHours {
  2312. width: 160px;
  2313. height: 30px;
  2314. margin-top: 20px;
  2315. /* background-color: #161616; */
  2316. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2317. color: silver;
  2318. margin-left: 9px;
  2319. text-align: center;
  2320. padding-top: 7px;
  2321. font-size: 12px;
  2322. }
  2323. .yearlyUtilizationHours {
  2324. width: 160px;
  2325. height: 30px;
  2326. margin-top: 10px;
  2327. /* background-color: #161616; */
  2328. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2329. color: silver;
  2330. margin-left: 9px;
  2331. text-align: center;
  2332. padding-top: 7px;
  2333. font-size: 12px;
  2334. }
  2335. .comprehensiveServicePowerConsumptionRate {
  2336. width: 160px;
  2337. height: 30px;
  2338. /* margin-top: 10px; */
  2339. /* background-color: #161616; */
  2340. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2341. color: silver;
  2342. margin-left: 200px;
  2343. margin-top: -70px;
  2344. text-align: center;
  2345. padding-top: 7px;
  2346. font-size: 12px;
  2347. float: left;
  2348. }
  2349. .equipmentAvailability {
  2350. width: 160px;
  2351. height: 30px;
  2352. /* margin-top: 10px; */
  2353. /* background-color: #161616; */
  2354. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2355. color: silver;
  2356. margin-left: 200px;
  2357. margin-top: -30px;
  2358. text-align: center;
  2359. padding-top: 7px;
  2360. font-size: 12px;
  2361. float: left;
  2362. }
  2363. .sulfurDioxideEmissionReduction {
  2364. width: 160px;
  2365. height: 30px;
  2366. /* margin-top: 10px; */
  2367. /* background-color: #161616; */
  2368. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2369. color: silver;
  2370. margin-left: 380px;
  2371. margin-top: -70px;
  2372. text-align: center;
  2373. padding-top: 7px;
  2374. font-size: 12px;
  2375. float: left;
  2376. }
  2377. .carbonDioxideReduction {
  2378. width: 160px;
  2379. height: 30px;
  2380. /* margin-top: 10px; */
  2381. /* background-color: #161616; */
  2382. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2383. color: silver;
  2384. margin-left: 380px;
  2385. margin-top: -30px;
  2386. text-align: center;
  2387. padding-top: 7px;
  2388. font-size: 12px;
  2389. float: left;
  2390. }
  2391. .waterSaving {
  2392. width: 160px;
  2393. height: 30px;
  2394. /* margin-top: 10px; */
  2395. /* background-color: #161616; */
  2396. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2397. color: silver;
  2398. margin-left: 560px;
  2399. margin-top: -70px;
  2400. text-align: center;
  2401. padding-top: 7px;
  2402. font-size: 12px;
  2403. float: left;
  2404. }
  2405. .saveStandardCoal {
  2406. width: 160px;
  2407. height: 30px;
  2408. /* margin-top: 10px; */
  2409. /* background-color: #161616; */
  2410. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2411. color: silver;
  2412. margin-left: 560px;
  2413. margin-top: -30px;
  2414. text-align: center;
  2415. padding-top: 7px;
  2416. font-size: 12px;
  2417. float: left;
  2418. }
  2419. .mttr {
  2420. width: 160px;
  2421. height: 30px;
  2422. /* margin-top: 10px; */
  2423. /* background-color: #161616; */
  2424. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2425. color: silver;
  2426. margin-left: 740px;
  2427. margin-top: -70px;
  2428. text-align: center;
  2429. padding-top: 7px;
  2430. font-size: 12px;
  2431. float: left;
  2432. }
  2433. .mtbf {
  2434. width: 160px;
  2435. height: 30px;
  2436. /* margin-top: 10px; */
  2437. /* background-color: #161616; */
  2438. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2439. color: silver;
  2440. margin-left: 740px;
  2441. margin-top: -30px;
  2442. text-align: center;
  2443. padding-top: 7px;
  2444. font-size: 12px;
  2445. float: left;
  2446. }
  2447. .horizontalSlider {
  2448. white-space: nowrap;
  2449. width: 100%;
  2450. height: 100px;
  2451. background-color: #242424;
  2452. clear: both;
  2453. /* margin-top: 540px; */
  2454. }
  2455. .slide {
  2456. width: 920px;
  2457. height: 100px;
  2458. background-color: #242424;
  2459. }
  2460. .qiun-charts {
  2461. width: 750upx;
  2462. height: 400upx;
  2463. }
  2464. .charts {
  2465. width: 750upx;
  2466. height: 400upx;
  2467. }
  2468. .uchartTitle {
  2469. position: absolute;
  2470. left: 9px;
  2471. top: 605px;
  2472. user-select: text;
  2473. -webkit-user-select: text;
  2474. -moz-user-select: text;
  2475. -ms-user-select: text;
  2476. color: silver;
  2477. font-size: 12px;
  2478. }
  2479. .Histogram {
  2480. width: 100%;
  2481. height: 300px;
  2482. background-color: #242424;
  2483. margin-top: 10px;
  2484. float: left;
  2485. }
  2486. .HistogramTitle{
  2487. width: calc(100% - 9px);
  2488. height: 30px;
  2489. line-height: 30px;
  2490. font-size: 11px;
  2491. color: silver;
  2492. margin-left: 9px;
  2493. }
  2494. .lineChart {
  2495. width: 100%;
  2496. height: 225px;
  2497. background-color: #242424;
  2498. margin-top: 10px;
  2499. float: left;
  2500. }
  2501. body {
  2502. font-family:'方正兰亭细黑_GBK';
  2503. font-size: 20px;
  2504. color: silver;
  2505. background: #000;
  2506. }
  2507. @font-face {
  2508. font-family:'方正兰亭细黑_GBK';
  2509. src: url(../../static/方正兰亭细黑_GBK.TTF);
  2510. }
  2511. page {
  2512. background-color: #1f1f1f;
  2513. font-family:'方正兰亭细黑_GBK';
  2514. overflow-x: hidden;
  2515. }
  2516. .top {
  2517. width: 100%;
  2518. height: 130upx;
  2519. padding-top: 5upx;
  2520. background-color: #1f1f1f;
  2521. position: fixed;
  2522. top: 0px;
  2523. left: 0px;
  2524. z-index: 100;
  2525. }
  2526. .threeLine {
  2527. width: 50px;
  2528. height: 45px;
  2529. float: left;
  2530. }
  2531. .text {
  2532. width: calc(100% - 100px);
  2533. height: 45px;
  2534. float: left;
  2535. user-select: text;
  2536. -webkit-user-select: text;
  2537. -moz-user-select: text;
  2538. -ms-user-select: text;
  2539. color: silver;
  2540. line-height: 45px;
  2541. margin-top: 11px;
  2542. font-size: 18px;
  2543. }
  2544. .notice {
  2545. width: 50px;
  2546. height: 45px;
  2547. float: left;
  2548. }
  2549. .plus {
  2550. width: 30px;
  2551. height: 45px;
  2552. float: right;
  2553. color: white;
  2554. font-size: 35px;
  2555. line-height: 45px;
  2556. text-align: right;
  2557. margin-top: 11px;
  2558. margin-right: 2.5%;
  2559. }
  2560. .textWindpowerstation{
  2561. width: 180px;
  2562. height: 45px;
  2563. float: left;
  2564. text-align: center;
  2565. margin-left: 18px;
  2566. }
  2567. .time {
  2568. clear: both;
  2569. background-color: #242424;
  2570. margin-top: 80px;
  2571. width: 100%;
  2572. height: 30px;
  2573. /* float: left; */
  2574. }
  2575. .timeimageshizhong {
  2576. width: 30px;
  2577. height: 20px;
  2578. margin-top: 5px;
  2579. float: left;
  2580. }
  2581. .timeText {
  2582. width: 62%;
  2583. height: 30px;
  2584. float: left;
  2585. line-height: 30px;
  2586. font-size: 15px;
  2587. margin-left: 15px;
  2588. user-select: text;
  2589. -webkit-user-select: text;
  2590. -moz-user-select: text;
  2591. -ms-user-select: text;
  2592. color: silver;
  2593. }
  2594. .timeIcon {
  2595. width: 25px;
  2596. height: 30px;
  2597. float: right;
  2598. margin-right: 2.5%;
  2599. /* margin-left: 5px; */
  2600. }
  2601. .timeIconImage {
  2602. width: 100%;
  2603. height: 25px;
  2604. margin-top: 1px;
  2605. }
  2606. .timeIconText {
  2607. width: 100%;
  2608. height: 25px;
  2609. text-align: center;
  2610. font-size: 12px;
  2611. }
  2612. .cardinstallgreenSecurity {
  2613. margin-left: 9px;
  2614. margin-top: 9px;
  2615. margin-bottom: 9px;
  2616. width: 30%;
  2617. height: 78px;
  2618. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  2619. border-radius: 5px;
  2620. float: left;
  2621. /* font-family: "STKaiti"; */
  2622. }
  2623. .cardinstalltitle {
  2624. width: 100%;
  2625. height: 40px;
  2626. text-align: center;
  2627. user-select: text;
  2628. -webkit-user-select: text;
  2629. -moz-user-select: text;
  2630. -ms-user-select: text;
  2631. font-size: 14px;
  2632. color: silver;
  2633. line-height: 40px;
  2634. float: left;
  2635. }
  2636. .cardinstallnumber {
  2637. /* font-weight: bold; */
  2638. width: 100%;
  2639. height: 40px;
  2640. text-align: center;
  2641. user-select: text;
  2642. -webkit-user-select: text;
  2643. -moz-user-select: text;
  2644. -ms-user-select: text;
  2645. color: silver;
  2646. font-size: 16px;
  2647. /* color: #449618; */
  2648. line-height: 40px;
  2649. }
  2650. .cardinstallgreenEquipment {
  2651. margin-right: 11px;
  2652. margin-top: 10px;
  2653. width: 30%;
  2654. height: 78px;
  2655. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2656. border-radius: 5px;
  2657. float: right;
  2658. /* font-family: "STKaiti"; */
  2659. }
  2660. .cardinstallgreen {
  2661. margin-left: 9px;
  2662. width: 30%;
  2663. height: 78px;
  2664. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  2665. border-radius: 5px;
  2666. float: left;
  2667. }
  2668. .cardinstallblue {
  2669. margin-top: 9px;
  2670. margin-left: 9px;
  2671. width: 30%;
  2672. height: 78px;
  2673. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  2674. border-radius: 5px;
  2675. float: left;
  2676. }
  2677. .cardinstallblueright {
  2678. margin-right: 11px;
  2679. margin-top: 10px;
  2680. width: 30%;
  2681. height: 78px;
  2682. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  2683. border-radius: 5px;
  2684. float: right;
  2685. }
  2686. .cardinstalltitlegreen {
  2687. width: 100%;
  2688. height: 25px;
  2689. text-align: center;
  2690. /* margin-left: 37px; */
  2691. user-select: text;
  2692. -webkit-user-select: text;
  2693. -moz-user-select: text;
  2694. -ms-user-select: text;
  2695. font-size: 14px;
  2696. color: silver;
  2697. line-height: 25px;
  2698. /* float: left; */
  2699. }
  2700. .cardinstallnumbergreen {
  2701. width: 100%;
  2702. height: 25px;
  2703. text-align: center;
  2704. user-select: text;
  2705. -webkit-user-select: text;
  2706. -moz-user-select: text;
  2707. -ms-user-select: text;
  2708. font-size: 20px;
  2709. color: white;
  2710. /* color: #449618; */
  2711. line-height: 25px;
  2712. float: left;
  2713. }
  2714. .cardinstallnumbergreenmin {
  2715. margin-left: 2px;
  2716. width: 45%;
  2717. height: 20px;
  2718. user-select: text;
  2719. -webkit-user-select: text;
  2720. -moz-user-select: text;
  2721. -ms-user-select: text;
  2722. font-size: 12px;
  2723. color: silver;
  2724. /* color: #449618; */
  2725. float: left;
  2726. }
  2727. .cardinstallnumbergreenmax {
  2728. /* font-weight: bold; */
  2729. margin-right: 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: #449618; */
  2739. float: right;
  2740. }
  2741. .greenMinText {
  2742. line-height: 20px;
  2743. float: left;
  2744. margin-left: 40px;
  2745. }
  2746. .greenMaxText {
  2747. line-height: 20px;
  2748. float: left;
  2749. }
  2750. .cardinstallnumberred {
  2751. width: 100%;
  2752. height: 25px;
  2753. text-align: center;
  2754. user-select: text;
  2755. -webkit-user-select: text;
  2756. -moz-user-select: text;
  2757. -ms-user-select: text;
  2758. font-size: 20px;
  2759. color: white;
  2760. /* color: #E93131; */
  2761. line-height: 25px;
  2762. float: left;
  2763. }
  2764. .cardinstallnumberredmin {
  2765. margin-left: 2px;
  2766. width: 45%;
  2767. height: 20px;
  2768. user-select: text;
  2769. -webkit-user-select: text;
  2770. -moz-user-select: text;
  2771. -ms-user-select: text;
  2772. font-size: 12px;
  2773. color: silver;
  2774. /* color: #E93131; */
  2775. float: left;
  2776. }
  2777. .cardinstallnumberredmax {
  2778. margin-right: 2px;
  2779. width: 45%;
  2780. height: 20px;
  2781. user-select: text;
  2782. -webkit-user-select: text;
  2783. -moz-user-select: text;
  2784. -ms-user-select: text;
  2785. font-size: 12px;
  2786. color: silver;
  2787. /* color: #E93131; */
  2788. float: right;
  2789. }
  2790. .redMinText {
  2791. line-height: 20px;
  2792. float: right;
  2793. }
  2794. .redMaxText {
  2795. line-height: 20px;
  2796. float: left;
  2797. }
  2798. .electricityCard {
  2799. width: 100%;
  2800. height: 100px;
  2801. background-color: #242424;
  2802. /* height: 185px; */
  2803. float: left;
  2804. margin-top: 20rpx;
  2805. }
  2806. .speedPower {
  2807. width: 100%;
  2808. height: 180px;
  2809. background-color: #242424;
  2810. float: left;
  2811. margin-top: 20rpx;
  2812. }
  2813. .cardinstallgreenSpeed {
  2814. margin-top: 9px;
  2815. margin-left: 9px;
  2816. width: 46%;
  2817. height: 78px;
  2818. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  2819. border-radius: 5px;
  2820. float: left;
  2821. }
  2822. .cardinstallredSpeed {
  2823. margin-top: 8px;
  2824. margin-left: 2.5%;
  2825. width: 46%;
  2826. height: 78px;
  2827. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2828. border-radius: 5px;
  2829. float: left;
  2830. }
  2831. .cardinstalltitleRed {
  2832. width: 100%;
  2833. height: 25px;
  2834. text-align: center;
  2835. /* margin-left: 45px; */
  2836. user-select: text;
  2837. -webkit-user-select: text;
  2838. -moz-user-select: text;
  2839. -ms-user-select: text;
  2840. font-size: 14px;
  2841. color: silver;
  2842. line-height: 25px;
  2843. /* float: left; */
  2844. }
  2845. .textWhitekuangSpeed {
  2846. color: silver;
  2847. float: right ;
  2848. margin-right: 70px;
  2849. }
  2850. .textWhitekuang {
  2851. color: silver;
  2852. float: right;
  2853. margin-right: 85px;
  2854. }
  2855. .textWhite {
  2856. color: white;
  2857. float: right;
  2858. width: 24px;
  2859. text-align: right;
  2860. }
  2861. .textWhite2 {
  2862. color: white;
  2863. float: left;
  2864. text-align: right;
  2865. }
  2866. .textSilver {
  2867. user-select: text;
  2868. -webkit-user-select: text;
  2869. -moz-user-select: text;
  2870. -ms-user-select: text;
  2871. color: silver;
  2872. float: left;
  2873. }
  2874. .InformationCard {
  2875. margin-top: 10px;
  2876. width: 100%;
  2877. height: 70px;
  2878. background-color: #242424;
  2879. float: left;
  2880. }
  2881. .informationCardAll {
  2882. width: 95%;
  2883. margin-left: 2.5%;
  2884. margin-top: 10px;
  2885. height: 60px;
  2886. float: left;
  2887. }
  2888. .informationCardTextOne {
  2889. width: 100%;
  2890. height: 35px;
  2891. float: left;
  2892. margin-top: -10px;
  2893. }
  2894. .informationCardTextNo1{
  2895. /* margin-left: 2%; */
  2896. width: 115px;
  2897. height: 35px;
  2898. font-size: 13px;
  2899. line-height: 35px;
  2900. float: left;
  2901. }
  2902. .informationCardText {
  2903. /* margin-left: 2%; */
  2904. width: 115px;
  2905. height: 35px;
  2906. line-height: 35px;
  2907. user-select: text;
  2908. -webkit-user-select: text;
  2909. -moz-user-select: text;
  2910. -ms-user-select: text;
  2911. color: silver;
  2912. font-size: 13px;
  2913. float: left;
  2914. }
  2915. .informationCardTextzj {
  2916. /* margin-left: 43%; */
  2917. width: 115px;
  2918. height: 35px;
  2919. line-height: 35px;
  2920. user-select: text;
  2921. -webkit-user-select: text;
  2922. -moz-user-select: text;
  2923. -ms-user-select: text;
  2924. color: silver;
  2925. font-size: 13px;
  2926. float: right;
  2927. /* margin-right: 1%; */
  2928. }
  2929. .informationCardTextTwo {
  2930. width: 100%;
  2931. height: 35px;
  2932. float: left;
  2933. user-select: text;
  2934. -webkit-user-select: text;
  2935. -moz-user-select: text;
  2936. -ms-user-select: text;
  2937. color: silver;
  2938. }
  2939. .informationCardText2 {
  2940. /* margin-left: 6%; */
  2941. margin-left: calc(50% - 175px);
  2942. width: 115px;
  2943. height: 35px;
  2944. font-size: 13px;
  2945. line-height: 35px;
  2946. float: left;
  2947. }
  2948. .informationCardText3 {
  2949. /* margin-left: 6%; */
  2950. margin-left: calc(50% - 175px);
  2951. width: 120px;
  2952. height: 35px;
  2953. font-size: 13px;
  2954. line-height: 35px;
  2955. float: left;
  2956. }
  2957. .AccessCardNumber {
  2958. width: 30%;
  2959. height: 35px;
  2960. float: left;
  2961. line-height: 35px;
  2962. text-align: center;
  2963. font-size: 12px;
  2964. user-select: text;
  2965. -webkit-user-select: text;
  2966. -moz-user-select: text;
  2967. -ms-user-select: text;
  2968. color: silver;
  2969. }
  2970. .AccessCardText {
  2971. width: 30%;
  2972. height: 35px;
  2973. float: left;
  2974. line-height: 35px;
  2975. text-align: center;
  2976. font-size: 12px;
  2977. user-select: text;
  2978. -webkit-user-select: text;
  2979. -moz-user-select: text;
  2980. -ms-user-select: text;
  2981. color: silver;
  2982. }
  2983. .AccessCardimage {
  2984. margin-left: 5px;
  2985. width: 30%;
  2986. height: 35px;
  2987. float: left;
  2988. }
  2989. .interfaceCard {
  2990. margin-top: 10px;
  2991. width: 100%;
  2992. height: 85px;
  2993. background-color: #242424;
  2994. float: left;
  2995. }
  2996. .interfaceCardSmallTop {
  2997. margin-top: 5px;
  2998. width: 100%;
  2999. height: 35px;
  3000. float: left;
  3001. }
  3002. .interfaceCardSmall {
  3003. margin-left: 8px;
  3004. width: 30%;
  3005. height: 35px;
  3006. float: left;
  3007. }
  3008. .progressBarLeftText {
  3009. user-select: text;
  3010. -webkit-user-select: text;
  3011. -moz-user-select: text;
  3012. -ms-user-select: text;
  3013. color: silver;
  3014. font-size: 12px;
  3015. float: left;
  3016. margin-left: 5px;
  3017. }
  3018. .progressBarRightText {
  3019. user-select: text;
  3020. -webkit-user-select: text;
  3021. -moz-user-select: text;
  3022. -ms-user-select: text;
  3023. color: silver;
  3024. font-size: 12px;
  3025. float: right;
  3026. margin-right: 5px;
  3027. }
  3028. .progressBar {
  3029. margin-top: 10px;
  3030. width: 100%;
  3031. height: 115px;
  3032. background-color: #242424;
  3033. float: left;
  3034. }
  3035. .progressBarAll {
  3036. margin-left: 9px;
  3037. width: calc(100% - 5%);
  3038. height: 60px;
  3039. float: left;
  3040. }
  3041. .progressBarText {
  3042. text-align: center;
  3043. width: 50%;
  3044. height: 30px;
  3045. line-height: 30px;
  3046. user-select: text;
  3047. -webkit-user-select: text;
  3048. -moz-user-select: text;
  3049. -ms-user-select: text;
  3050. color: silver;
  3051. font-size: 12px;
  3052. float: left;
  3053. }
  3054. .progressBarOne {
  3055. width: 100%;
  3056. height: 30px;
  3057. float: left;
  3058. }
  3059. .progressBarLeft {
  3060. width: 25%;
  3061. height: 30px;
  3062. line-height: 30px;
  3063. user-select: text;
  3064. -webkit-user-select: text;
  3065. -moz-user-select: text;
  3066. -ms-user-select: text;
  3067. color: silver;
  3068. font-size: 12px;
  3069. float: left;
  3070. }
  3071. .progressBarRight {
  3072. width: 25%;
  3073. height: 30px;
  3074. user-select: text;
  3075. -webkit-user-select: text;
  3076. -moz-user-select: text;
  3077. -ms-user-select: text;
  3078. color: silver;
  3079. font-size: 12px;
  3080. line-height: 30px;
  3081. float: right;
  3082. }
  3083. /* 风电场卡片css */
  3084. .windStation {
  3085. clear: both;
  3086. width: calc(100% - 18px);
  3087. margin-left: 9px;
  3088. height: 320px;
  3089. color: silver;
  3090. margin-bottom: 120px;
  3091. /* background-color: #242424; */
  3092. }
  3093. .scrollWindStationCard {
  3094. white-space: nowrap;
  3095. }
  3096. .windStationCardContainer {
  3097. width: 1295px;
  3098. height: 350px;
  3099. margin-top: 10%;
  3100. }
  3101. .windStationCard {
  3102. width: 250px;
  3103. height: 100%;
  3104. margin-right: 9px;
  3105. float: left;
  3106. background-color: #242424;
  3107. }
  3108. .windStationTitle {
  3109. width: 90%;
  3110. height: 30px;
  3111. line-height: 30px;
  3112. font-size: 12px;
  3113. margin-left: 5px;
  3114. }
  3115. .powerAndSpeedContainer {
  3116. width: 100%;
  3117. height: 90px;
  3118. }
  3119. .powerAndSpeedRed {
  3120. margin-top: 8px;
  3121. margin-left: 2%;
  3122. margin-right: 2%;
  3123. width: 46%;
  3124. height: 37px;
  3125. line-height: 37px;
  3126. text-align: center;
  3127. font-size: 12px;
  3128. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3129. border-radius: 5px;
  3130. float: left;
  3131. }
  3132. .powerAndSpeedRed span {
  3133. color: white;
  3134. }
  3135. .HQChart {
  3136. width: 100%;
  3137. height: 100px;
  3138. margin-top: 8px;
  3139. }
  3140. .UChartContainer {
  3141. width: 250px;
  3142. height: 150px;
  3143. margin-top: 8px;
  3144. }
  3145. .windStationUChart {
  3146. width: 250px;
  3147. height: 150px;
  3148. position: absolute;
  3149. }
  3150. .windStationQiun-charts {
  3151. width: 250px;
  3152. height: 150px;
  3153. background-color: #242424;
  3154. }
  3155. .windStationCharts {
  3156. width: 250px;
  3157. height: 150px;
  3158. background-color: #242424;
  3159. }
  3160. .UChartTitle {
  3161. position: relative;
  3162. top: -2px;
  3163. left: 2px;
  3164. font-size: 12px;
  3165. width: 100px;
  3166. }
  3167. .xTime {
  3168. position: relative;
  3169. top: 90px;
  3170. left: 222px;
  3171. font-size: 8px;
  3172. width: 30px;
  3173. }
  3174. .fanStatusContainer {
  3175. width: 100%;
  3176. height: 70px;
  3177. }
  3178. .fanStatus {
  3179. width: 32%;
  3180. height: 30px;
  3181. margin-top: 5px;
  3182. margin-right: 0.5%;
  3183. margin-left: 0.5%;
  3184. float: left;
  3185. }
  3186. .statusIcon {
  3187. width: 22px;
  3188. height: 30px;
  3189. margin-left: 3px;
  3190. float: left;
  3191. }
  3192. .fanStatus {
  3193. height: 30px;
  3194. line-height: 30px;
  3195. font-size: 12px;
  3196. }
  3197. .AffectedPowerText{
  3198. width: 55px;
  3199. height: 25px;
  3200. float: left;
  3201. margin-left: 2px;
  3202. line-height: 25px;
  3203. }
  3204. .AffectedPower{
  3205. margin-left: 11px;
  3206. width: 20%;
  3207. height: 25px;
  3208. float: left;
  3209. }
  3210. .performancePowerText{
  3211. width: 55px;
  3212. height: 25px;
  3213. float: left;
  3214. margin-left: 2px;
  3215. line-height: 25px;
  3216. }
  3217. .performancePower{
  3218. margin-left: 11px;
  3219. width: 20%;
  3220. height: 25px;
  3221. float: left;
  3222. }
  3223. .limitedPowerText{
  3224. width: 55px;
  3225. height: 25px;
  3226. float: left;
  3227. margin-left: 2px;
  3228. line-height: 25px;
  3229. }
  3230. .limitedPower{
  3231. margin-left: 9px;
  3232. width: 20%;
  3233. height: 25px;
  3234. float: left;
  3235. }
  3236. .maintenancePowerText{
  3237. width: 55px;
  3238. height: 25px;
  3239. float: left;
  3240. margin-left: 2px;
  3241. line-height: 25px;
  3242. }
  3243. .maintenancePower{
  3244. margin-left: 30px;
  3245. width: 20%;
  3246. height: 25px;
  3247. float: left;
  3248. }
  3249. .faultPowerText{
  3250. width: 55px;
  3251. height: 25px;
  3252. float: left;
  3253. margin-left: 2px;
  3254. line-height: 25px;
  3255. }
  3256. .faultPower{
  3257. width: 20%;
  3258. height: 25px;
  3259. float: left;
  3260. margin-left: 11px;
  3261. }
  3262. .powerGenerationText {
  3263. width: 30px;
  3264. height: 25px;
  3265. float: left;
  3266. margin-left: 2px;
  3267. line-height: 25px;
  3268. }
  3269. .powerGeneration {
  3270. width: 20%;
  3271. height: 25px;
  3272. float: left;
  3273. margin-left: 11px;
  3274. }
  3275. .directGenerationText {
  3276. width: 30px;
  3277. height: 25px;
  3278. float: left;
  3279. margin-left: 2px;
  3280. line-height: 25px;
  3281. }
  3282. .directGeneration {
  3283. width: 20%;
  3284. height: 25px;
  3285. float: left;
  3286. margin-left: 9px;
  3287. }
  3288. .choice {
  3289. width: 100%;
  3290. height: 80px;
  3291. float: left;
  3292. user-select: text;
  3293. -webkit-user-select: text;
  3294. -moz-user-select: text;
  3295. -ms-user-select: text;
  3296. color: silver;
  3297. font-size: 12px;
  3298. }
  3299. .speedPowerDiagram {
  3300. width: 100px;
  3301. height: 30px;
  3302. user-select: text;
  3303. -webkit-user-select: text;
  3304. -moz-user-select: text;
  3305. -ms-user-select: text;
  3306. color: silver;
  3307. float: left;
  3308. margin-top: 18px;
  3309. margin-left: 9px;
  3310. font-size: 11px;
  3311. }
  3312. .qiun-chart {
  3313. margin-top: 50px;
  3314. width: 750upx;
  3315. height: 400upx;
  3316. }
  3317. .chart {
  3318. width: 750upx;
  3319. height: 400upx;
  3320. }
  3321. .DrawerPage {
  3322. position: fixed;
  3323. width: 100vw;
  3324. height: 100vh;
  3325. left: 0vw;
  3326. background-color: #1f1f1f;
  3327. transition: all 0.4s;
  3328. }
  3329. .DrawerPage.show {
  3330. transform: scale(0.9, 0.9);
  3331. left: 85vw;
  3332. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  3333. transform-origin: 0;
  3334. }
  3335. .DrawerWindow {
  3336. position: absolute;
  3337. width: 85vw;
  3338. height: 100vh;
  3339. left: 0;
  3340. top: 0;
  3341. transform: scale(0.9, 0.9) translateX(-100%);
  3342. opacity: 0;
  3343. pointer-events: none;
  3344. transition: all 0.4s;
  3345. padding: 100upx 0;
  3346. }
  3347. .DrawerWindow.show {
  3348. transform: scale(1, 1) translateX(0%);
  3349. opacity: 1;
  3350. pointer-events: all;
  3351. }
  3352. .DrawerClose {
  3353. position: absolute;
  3354. width: 40vw;
  3355. height: 100vh;
  3356. right: 0;
  3357. top: 0;
  3358. color: transparent;
  3359. padding-bottom: 30upx;
  3360. display: flex;
  3361. align-items: flex-end;
  3362. justify-content: center;
  3363. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  3364. letter-spacing: 5px;
  3365. font-size: 50upx;
  3366. opacity: 0;
  3367. pointer-events: none;
  3368. transition: all 0.4s;
  3369. }
  3370. .DrawerClose.show {
  3371. opacity: 1;
  3372. pointer-events: all;
  3373. width: 15vw;
  3374. color: #fff;
  3375. }
  3376. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  3377. width: 64upx;
  3378. height: 64upx;
  3379. line-height: 64upx;
  3380. margin: 0;
  3381. display: inline-block;
  3382. }
  3383. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  3384. margin: 0;
  3385. }
  3386. .DrawerPage .nav {
  3387. flex: 1;
  3388. }
  3389. .DrawerPage .nav .cu-item.cur {
  3390. border-bottom: 0;
  3391. position: relative;
  3392. }
  3393. .DrawerPage .nav .cu-item.cur::after {
  3394. content: "";
  3395. width: 10upx;
  3396. height: 10upx;
  3397. background-color: currentColor;
  3398. position: absolute;
  3399. bottom: 10upx;
  3400. border-radius: 10upx;
  3401. left: 0;
  3402. right: 0;
  3403. margin: auto;
  3404. }
  3405. .DrawerPage .cu-bar.tabbar .action {
  3406. flex: initial;
  3407. }
  3408. </style>