Index.vue 90 KB

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