Index.vue 85 KB

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