Index.vue 84 KB

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