Index.vue 85 KB

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