Index.vue 84 KB

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