Index.vue 84 KB

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