Index.vue 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213
  1. <template>
  2. <view class="content">
  3. <cu-custom bgColor="bg-blacks" :isBack="false">
  4. <block slot="right">
  5. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
  6. </block>
  7. <block slot="right">
  8. <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
  9. <view class="cu-tag looknumber" style="margin-top: -2%;">
  10. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  11. </view>
  12. </view>
  13. </block>
  14. <block slot="right">
  15. </block>
  16. <block slot="content">{{address}}</block>
  17. <block slot="right">
  18. <view class="plus" @tap="showModal" data-target="viewModal">+</view>
  19. </block>
  20. </cu-custom>
  21. <!-- 抽屉组件 -->
  22. <div>
  23. <drawer ref="drawer"></drawer>
  24. </div>
  25. <div class="plusDrawer" @tap="hideModal">
  26. <plusDrawer ref="plusDrawer"></plusDrawer>
  27. </div>
  28. <scroll-view scroll-y class="DrawerPage" :class="modalName == 'viewModal' ? 'show' : ''">
  29. <!--时间组件-->
  30. <view class="time">
  31. <view class="timeimageshizhong" @tap="common.navTo('/components/weatherProphet/WeatherProphet')">
  32. <image src="../../static/picture/dafeng.png" style="width: 20px;height: 20px;margin-left: 10px;"></image>
  33. </view>
  34. <view class="timeText">推荐时间:{{dateNow}}</view>
  35. <view class="timeIcon">
  36. <image src="../../static/picture/qingwhite.png" style="width: 25px;height: 25px;"></image>
  37. </view>
  38. </view>
  39. <!--电量卡片-->
  40. <view class="InformationCard">
  41. <view class="informationCardAll">
  42. <view class="informationCardTextOne">
  43. <view class="informationCardText">
  44. <view class="textSilver" @tap="
  45. common.navTo(
  46. '/components/detail/Detail?callTargetName=安全天数&callTargetUnit=天&pointKey=' +
  47. windpowerstationdetail.target_comprehensive_indicators.aqts_real.ednaId
  48. )
  49. ">
  50. 安全天数(天):
  51. </view>
  52. <view class="textWhite">
  53. {{ windpowerstationdetail.target_comprehensive_indicators.aqts }}
  54. </view>
  55. </view>
  56. <view class="informationCardTextzj">
  57. <view class="textSilver" @tap="
  58. common.navTo(
  59. '/components/detail/Detail?callTargetName=装机容量&callTargetUnit=mv&pointKey=' +
  60. windpowerstationdetail.target_comprehensive_indicators.zjrl_real.ednaId
  61. )
  62. ">
  63. 装机容量(mv):
  64. </view>
  65. <view class="textWhite3">
  66. {{ windpowerstationdetail.target_comprehensive_indicators.zjrl }}
  67. </view>
  68. </view>
  69. </view>
  70. <view class="informationCardTextTwo">
  71. <view class="informationCardTextNo1">
  72. <view class="textSilver" @tap="
  73. common.navTo(
  74. '/components/detail/Detail?callTargetName=日发电量&callTargetUnit=kwh&pointKey=' +
  75. windpowerstationdetail.target_comprehensive_indicators.rfdl_real.ednaId
  76. )
  77. ">
  78. 日发(万kwh):
  79. </view>
  80. <view class="textWhite">
  81. {{ windpowerstationdetail.target_comprehensive_indicators.rfdl }}
  82. </view>
  83. </view>
  84. <view class="informationCardText3">
  85. <view class="textSilver" @tap="
  86. common.navTo(
  87. '/components/detail/Detail?callTargetName=预测发电量&callTargetUnit=kwh&pointKey=' +
  88. windpowerstationdetail.target_comprehensive_indicators.ycfdl_real.ednaId
  89. )
  90. ">
  91. 预测发(万kwh):
  92. </view>
  93. <view class="textWhite2">
  94. {{ windpowerstationdetail.target_comprehensive_indicators.ycfdl }}
  95. </view>
  96. </view>
  97. <view class="informationCardText2">
  98. <view class="textSilver" @tap="
  99. common.navTo(
  100. '/components/detail/Detail?callTargetName=上网电量&callTargetUnit=kwh&pointKey=' +
  101. windpowerstationdetail.target_comprehensive_indicators.swdl_real.ednaId
  102. )
  103. ">
  104. 上网(万kwh):
  105. </view>
  106. <view class="textWhite">
  107. {{ windpowerstationdetail.target_comprehensive_indicators.swdl }}
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <!--风速卡片-->
  114. <view class="speedPower">
  115. <view class="cardinstallredSpeed" @tap="
  116. common.navTo(
  117. '/components/detail/Detail?callTargetName=平均风速&callTargetUnit=kw/h&pointKey=' + windpowerstationdetail.target_windSpeed_power.pjfs_real.ednaId
  118. )
  119. ">
  120. <view class="cardinstalltitleRed">
  121. 平均风速(m/s)
  122. <!-- <view class="textWhitekuangSpeed">(m/s)</view> -->
  123. </view>
  124. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.pjfs }}</view>
  125. <view class="cardinstallnumberredmin">
  126. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.pjfsMin }}</view>
  127. </view>
  128. <view class="cardinstallnumberredmax">
  129. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.pjfsMax }}</view>
  130. </view>
  131. </view>
  132. <view class="cardinstallredSpeed" @tap="
  133. common.navTo(
  134. '/components/detail/Detail?callTargetName=预测风速&callTargetUnit=kw/h&pointKey=' + windpowerstationdetail.target_windSpeed_power.ycfs_real.ednaId
  135. )
  136. ">
  137. <view class="cardinstalltitleRed">
  138. 预测风速(m/s)
  139. <!-- <view class="textWhitekuangSpeed">(m/s)</view> -->
  140. </view>
  141. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.ycfs }}</view>
  142. <view class="cardinstallnumberredmin">
  143. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.ycfsMin }}</view>
  144. </view>
  145. <view class="cardinstallnumberredmax">
  146. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.ycfsMax }}</view>
  147. </view>
  148. </view>
  149. <view class="cardinstallredSpeed" @tap="
  150. common.navTo(
  151. '/components/detail/Detail?callTargetName=实际功率&callTargetUnit=kw&pointKey=' + windpowerstationdetail.target_windSpeed_power.sjgl_real.ednaId
  152. )
  153. ">
  154. <view class="cardinstalltitleRed">
  155. 实际功率(万kw)
  156. <!-- <view class="textWhitekuang">(kw)</view> -->
  157. </view>
  158. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.sjgl }}</view>
  159. <view class="cardinstallnumberredmin">
  160. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.sjglMin }}</view>
  161. </view>
  162. <view class="cardinstallnumberredmax">
  163. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.sjglMax }}</view>
  164. </view>
  165. </view>
  166. <view class="cardinstallredSpeed" @tap="
  167. common.navTo(
  168. '/components/detail/Detail?callTargetName=理论功率&callTargetUnit=kw&pointKey=' + windpowerstationdetail.target_windSpeed_power.llgl_real.ednaId
  169. )
  170. ">
  171. <view class="cardinstalltitleRed">
  172. 理论功率(万kw)
  173. <!-- <view class="textWhitekuang">(kw)</view> -->
  174. </view>
  175. <view class="cardinstallnumberred">{{ windpowerstationdetail.target_windSpeed_power.llgl }}</view>
  176. <view class="cardinstallnumberredmin">
  177. <view class="redMinText">min: {{ windpowerstationdetail.target_windSpeed_power.llglMin }}</view>
  178. </view>
  179. <view class="cardinstallnumberredmax">
  180. <view class="redMaxText">max: {{ windpowerstationdetail.target_windSpeed_power.llglMax }}</view>
  181. </view>
  182. </view>
  183. </view>
  184. <!--接入卡片-->
  185. <view class="interfaceCard">
  186. <view class="interfaceCardSmallTop">
  187. <view class="interfaceCardSmall">
  188. <view class="AccessCardimage">
  189. <image src="../../static/picture/001.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  190. </view>
  191. <view class="AccessCardText">接入</view>
  192. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.jr }}</view>
  193. </view>
  194. <view class="interfaceCardSmall">
  195. <view class="AccessCardimage">
  196. <image src="../../static/picture/002.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  197. </view>
  198. <view class="AccessCardText">待机</view>
  199. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.dj }}</view>
  200. </view>
  201. <view class="interfaceCardSmall">
  202. <view class="AccessCardimage">
  203. <image src="../../static/picture/003.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  204. </view>
  205. <view class="AccessCardText">运行</view>
  206. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.yx }}</view>
  207. </view>
  208. </view>
  209. <view class="interfaceCardSmallTop">
  210. <view class="interfaceCardSmall">
  211. <view class="AccessCardimage">
  212. <image src="../../static/picture/004.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  213. </view>
  214. <view class="AccessCardText">故障</view>
  215. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.gz }}</view>
  216. </view>
  217. <view class="interfaceCardSmall">
  218. <view class="AccessCardimage">
  219. <image src="../../static/picture/005.png" style="width: 18px;height:18px;margin-top: 9px;margin-left: 7px;"></image>
  220. </view>
  221. <view class="AccessCardText">维护</view>
  222. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.wh }}</view>
  223. </view>
  224. <view class="interfaceCardSmall">
  225. <view class="AccessCardimage">
  226. <image src="../../static/picture/006.png" style="width: 18px;height:19px;margin-top: 9px;margin-left: 7px;"></image>
  227. </view>
  228. <view class="AccessCardText">离线</view>
  229. <view class="AccessCardNumber">{{ windpowerstationdetail.index_windturbine_status.lx }}</view>
  230. </view>
  231. </view>
  232. </view>
  233. <!--进度条-->
  234. <view class="progressBar">
  235. <view class="progressBarAll">
  236. <view class="progressBarOne">
  237. <view class="progressBarLeft">
  238. <view class="progressBarLeftText">{{ windpowerstationdetail.index_electricQuantity.yfdl }}kwh</view>
  239. </view>
  240. <view class="progressBarText">月计划发电量进度条</view>
  241. <view class="progressBarRight">
  242. <view class="progressBarRightText">{{ windpowerstationdetail.index_electricQuantity.yjhfdl }}kwh</view>
  243. </view>
  244. </view>
  245. <view class="cu-progress round radius striped active">
  246. <view class="bg-olive" :style="[{ width: loading ? monthOlive : '' }]"></view>
  247. <view class="bg-angrey" :style="[{ width: loading ? monthAngrey : '' }]"></view>
  248. </view>
  249. </view>
  250. <view class="progressBarAll">
  251. <view class="progressBarOne">
  252. <view class="progressBarLeft">
  253. <view class="progressBarLeftText">{{ windpowerstationdetail.index_electricQuantity.nfdl }}kwh</view>
  254. </view>
  255. <view class="progressBarText">年计划发电量进度条</view>
  256. <view class="progressBarRight">
  257. <view class="progressBarRightText">{{ windpowerstationdetail.index_electricQuantity.njhfdl }}kwh</view>
  258. </view>
  259. </view>
  260. <view class="cu-progress round radius striped active">
  261. <view class="bg-olive" :style="[{ width: loading ? yearOlive : '' }]"></view>
  262. <view class="bg-angrey" :style="[{ width: loading ? yearAngrey : '' }]"></view>
  263. </view>
  264. </view>
  265. </view>
  266. <scroll-view scroll-x class="horizontalSlider">
  267. <view class="slide">
  268. <view class="monthlyUtilizationHours" @tap="
  269. common.navTo(
  270. '/components/detail/Detail?callTargetName=月利用小时&callTargetUnit=h&pointKey=' +
  271. windpowerstationdetail.index_target_basic_indicators.ylyxs_real.ednaId
  272. )
  273. ">
  274. 月利用小时(h):{{ windpowerstationdetail.index_target_basic_indicators.ylyxs }}
  275. </view>
  276. <view class="yearlyUtilizationHours" @tap="
  277. common.navTo(
  278. '/components/detail/Detail?callTargetName=年利用小时&callTargetUnit=h&pointKey=' +
  279. windpowerstationdetail.index_target_basic_indicators.nlyxs_real.ednaId
  280. )
  281. ">
  282. 年利用小时(h):{{ windpowerstationdetail.index_target_basic_indicators.nlyxs }}
  283. </view>
  284. <view class="comprehensiveServicePowerConsumptionRate" @tap="
  285. common.navTo(
  286. '/components/detail/Detail?callTargetName=综合厂利用率&callTargetUnit=%&pointKey=' +
  287. windpowerstationdetail.index_target_basic_indicators.zhcydl_real.ednaId
  288. )
  289. ">
  290. 综合厂用电率(%):{{ windpowerstationdetail.index_target_basic_indicators.zhcydl }}
  291. </view>
  292. <view class="equipmentAvailability" @tap="
  293. common.navTo(
  294. '/components/detail/Detail?callTargetName=设备可利用率&callTargetUnit=%&pointKey=' +
  295. windpowerstationdetail.index_target_basic_indicators.sbklyl_real.ednaId
  296. )
  297. ">
  298. 设备可利用率(%):{{ windpowerstationdetail.index_target_basic_indicators.sbklyl }}
  299. </view>
  300. <view class="sulfurDioxideEmissionReduction" @tap="
  301. common.navTo(
  302. '/components/detail/Detail?callTargetName= 减排二氧化硫&callTargetUnit=吨&pointKey=' +
  303. windpowerstationdetail.index_target_basic_indicators.jpeyhl_real.ednaId
  304. )
  305. ">
  306. 减排二氧化硫(吨):{{ windpowerstationdetail.index_target_basic_indicators.jpeyhl }}
  307. </view>
  308. <view class="carbonDioxideReduction" @tap="
  309. common.navTo(
  310. '/components/detail/Detail?callTargetName=减排二氧化碳&callTargetUnit=吨&pointKey=' +
  311. windpowerstationdetail.index_target_basic_indicators.jpeyht_real.ednaId
  312. )
  313. ">
  314. 减排二氧化碳(吨):{{ windpowerstationdetail.index_target_basic_indicators.jpeyht }}
  315. </view>
  316. <view class="waterSaving" @tap="
  317. common.navTo(
  318. '/components/detail/Detail?callTargetName=节约用水&callTargetUnit=吨&pointKey=' +
  319. windpowerstationdetail.index_target_basic_indicators.jyys_real.ednaId
  320. )
  321. ">
  322. 节约用水(吨):{{ windpowerstationdetail.index_target_basic_indicators.jyys }}
  323. </view>
  324. <view class="saveStandardCoal" @tap="
  325. common.navTo(
  326. '/components/detail/Detail?callTargetName=节约标煤&callTargetUnit=吨&pointKey=' +
  327. windpowerstationdetail.index_target_basic_indicators.jybm_real.ednaId
  328. )
  329. ">
  330. 节约标煤(吨):{{ windpowerstationdetail.index_target_basic_indicators.jybm }}
  331. </view>
  332. <view class="mttr" @tap="
  333. common.navTo(
  334. '/components/detail/Detail?callTargetName=mttr&callTargetUnit=h&pointKey=' + windpowerstationdetail.index_target_basic_indicators.mttr_real.ednaId
  335. )
  336. ">
  337. mttr(h):{{ windpowerstationdetail.index_target_basic_indicators.mttr }}
  338. </view>
  339. <view class="mtbf" @tap="
  340. common.navTo(
  341. '/components/detail/Detail?callTargetName=mtbf&callTargetUnit=h&pointKey=' + windpowerstationdetail.index_target_basic_indicators.mtbf_real.ednaId
  342. )
  343. ">
  344. mtbf(h):{{ windpowerstationdetail.index_target_basic_indicators.mtbf }}
  345. </view>
  346. </view>
  347. </scroll-view>
  348. <!--折线图-->
  349. <view class="lineChart">
  350. <view class="qiun-charts">
  351. <view class="speedPowerDiagram">风速功率曲线图</view>
  352. <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchstart="touchLineA"></canvas>
  353. </view>
  354. </view>
  355. <!-- 柱状图 -->
  356. <view class="Histogram">
  357. <view class="HistogramTitle">五项损失柱状图</view>
  358. <view class="choice">
  359. <view class="directGeneration">
  360. <image src="../../static/picture/dianliang/dianlianglan.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  361. <view class="directGenerationText" @click="directGeneration()">应发</view>
  362. </view>
  363. <view class="powerGeneration">
  364. <image src="../../static/picture/dianliang/dianlianglv.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  365. <view class="powerGenerationText" @click="powerGeneration()">日发</view>
  366. </view>
  367. <view class="faultPower">
  368. <image src="../../static/picture/dianliang/dianlianghong.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  369. <view class="faultPowerText" @click="faultPower()">故障损失</view>
  370. </view>
  371. <view class="maintenancePower">
  372. <image src="../../static/picture/dianliang/dianliangcheng.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  373. <view class="maintenancePowerText" @click="maintenancePower()">检修损失</view>
  374. </view>
  375. <view class="limitedPower">
  376. <image src="../../static/picture/dianliang/dianliangfen.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  377. <view class="limitedPowerText" @click="limitedPower()">限电损失</view>
  378. </view>
  379. <view class="performancePower">
  380. <image src="../../static/picture/dianliang/dianliangzi.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  381. <view class="performancePowerText" @click="performancePower()">性能损失</view>
  382. </view>
  383. <view class="AffectedPower">
  384. <image src="../../static/picture/dianliang/dianlianghui.png" style="width: 18px;height: 18px;float: left;margin-top: 4px;"></image>
  385. <view class="AffectedPowerText" @click="AffectedPower()">受累损失</view>
  386. </view>
  387. </view>
  388. <view class="qiun-chart"><canvas canvas-id="canvasColumnStack" id="canvasColumnStack" class="chart" @touchstart="touchColumn"></canvas></view>
  389. </view>
  390. <!-- 风电场卡片 -->
  391. <view class="windStation">
  392. <scroll-view scroll-x class="scrollWindStationCard">
  393. <view class="windStationCardContainer">
  394. <view v-for="(item,index) in plusDrawerList" :key="index">
  395. <WindFarmcard ref="windFarmcard"></WindFarmcard>
  396. </view>
  397. </view>
  398. </scroll-view>
  399. <!-- 底导航栏挡住部分显示 -->
  400. <view style="width: 100%; height: 60px; background-color: #242424;"></view>
  401. </view>
  402. </scroll-view>
  403. <view class="DrawerClose" :class="modalName == 'viewModal' ? 'show' : ''" @tap="hideModal"><text class="cuIcon-pullright"></text></view>
  404. </view>
  405. </template>
  406. <script>
  407. import plusDrawer from '../../components/drawer/plusDrawer.vue';
  408. import drawer from '../../components/drawer/threeLineDrawer.vue';
  409. import uCharts from '../../components/tools/u-charts/u-charts.js';
  410. import WindFarmcard from '../../components/windFarmcard/WindFarmcard.vue';
  411. var _self;
  412. var canvaLineA = null;
  413. var canvaColumn = null;
  414. var canvaLineB1 = null;
  415. var canvaLineB2 = null;
  416. var canvaLineB3 = null;
  417. var canvaLineB4 = null;
  418. var canvaLineB5 = null;
  419. export default {
  420. components: {
  421. drawer: drawer,
  422. plusDrawer: plusDrawer,
  423. WindFarmcard: WindFarmcard
  424. },
  425. data: function() {
  426. return {
  427. c1: {
  428. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18'],
  429. series: [{
  430. name: '应发电量(万kwh)',
  431. data: [0, 0, 0, 0, 0, 0, 0],
  432. color: '#007BF9'
  433. },
  434. {
  435. name: '日发电量(万kwh)',
  436. data: [18, 13, 12, 17, 13, 7, 11],
  437. color: '#4EB64E'
  438. },
  439. {
  440. name: '故障损失电量(万kwh)',
  441. data: [17, 15, 17, 21, 16, 8, 10],
  442. color: '#F14E51'
  443. },
  444. {
  445. name: '检修损失电量(万kwh)',
  446. data: [14, 17, 19, 20, 6, 14, 12],
  447. color: '#FF6B3E'
  448. },
  449. {
  450. name: '限电损失电量(万kwh)',
  451. data: [14, 17, 19, 20, 6, 14, 12],
  452. color: '#DC62D2'
  453. },
  454. {
  455. name: '性能损失电量(万kwh)',
  456. data: [15, 17, 19, 20, 6, 4, 12],
  457. color: '#9DA3F6'
  458. },
  459. {
  460. name: '受累损失电量(万kwh)',
  461. data: [14, 17, 19, 20, 6, 4, 12],
  462. color: '#9E9E9E'
  463. }
  464. ]
  465. },
  466. key_aqts: '',
  467. fdcstatusmodule: {
  468. fdcstatusmodule: ''
  469. },
  470. index_windStation_cardmodule: {
  471. index_windStation_cardmodule: ''
  472. },
  473. index_curve_columnar_five_lossmodule: {
  474. index_curve_columnar_five_lossmodule: ''
  475. },
  476. index_curve_columnar_windSpeed_powermodule: {
  477. index_curve_columnar_windSpeed_powermodule: ''
  478. },
  479. badge: 22,
  480. drawerList: [],
  481. permissionsInformation: [],
  482. plusDrawerList: [],
  483. leftNavigationtitle: '监视功能分组',
  484. modalName: null,
  485. address: '河北能源集团',
  486. windPowerStationId: '',
  487. inconList: ['form', 'favor', 'question', 'edit'],
  488. minaverageSpeed: '12',
  489. maxaverageSpeed: '25',
  490. loading: false,
  491. cWidth: '',
  492. cHeight: '',
  493. pixelRatio: 1,
  494. serverData: '',
  495. dayHair: false,
  496. fault: false,
  497. overhaul: false,
  498. powerLimitation: false,
  499. performance: false,
  500. toBeInvolved: false,
  501. Xzuobiao: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18'],
  502. rifa: [18, 13, 12, 17, 13, 7, 11],
  503. guzhang: [17, 15, 17, 21, 16, 8, 10],
  504. jianxiu: [14, 17, 19, 20, 6, 14, 12],
  505. xiandian: [14, 17, 19, 20, 6, 14, 12],
  506. xingneng: [15, 17, 19, 20, 6, 4, 12],
  507. shoulei: [14, 17, 19, 20, 6, 4, 12],
  508. clickFlag: 'stack',
  509. windStationCardCWidth: '',
  510. windStationCardCHeight: '',
  511. windStationCardPixelRatio: 1,
  512. monthOlive: '',
  513. monthAngrey: '',
  514. yearOlive: '',
  515. yearAngrey: '',
  516. FDC: 'CL_FDC',
  517. socketTask_target_comprehensive_indicators: '',
  518. socketTask_target_windSpeed_power: '',
  519. socketTask_index_windturbine_status: '',
  520. socketTask_index_electricQuantity: '',
  521. socketTask_index_target_basic_indicators: '',
  522. socketTask_index_curve_columnar_five_loss: '',
  523. socketTask_index_curve_columnar_windSpeed_power: '',
  524. windpowerstationdetail: {
  525. target_comprehensive_indicators: '',
  526. target_windSpeed_power: '',
  527. index_windturbine_status: '',
  528. index_electricQuantity: '',
  529. index_target_basic_indicators: ''
  530. },
  531. module: true,
  532. cardmodule: true,
  533. dateNow: "",
  534. windFielddata:[],
  535. windFieldsituation: [],
  536. lineChartdata:[],
  537. };
  538. },
  539. created: function() {
  540. this.timeNow();
  541. this.viewUserid();
  542. this.monitoringAuthority();
  543. this.judgeWindfield();
  544. this.address = this.dataprocessing.getWindPowerStationName();
  545. this.FDC = this.dataprocessing.getWindPowerStationId();
  546. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  547. },
  548. onLoad: function() {
  549. let that = this;
  550. setTimeout(function() {
  551. that.loading = true;
  552. }, 500);
  553. _self = this;
  554. this.address = this.dataprocessing.getWindPowerStationName();
  555. this.FDC = this.dataprocessing.getWindPowerStationId();
  556. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  557. this.cWidth = uni.upx2px(750);
  558. this.cHeight = uni.upx2px(400);
  559. this.getServerData();
  560. this.getColumnData();
  561. this.windStationCardCWidth = 250;
  562. this.windStationCardCHeight = 150;
  563. this.target_comprehensive_indicators();
  564. this.index_electricQuantity();
  565. this.index_target_basic_indicators();
  566. this.index_curve_columnar_five_loss();
  567. this.target_windSpeed_power();
  568. this.index_windturbine_status();
  569. this.getWindStationCardData();
  570. this.index_curve_columnar_windSpeed_power();
  571. this.index_windStation_card(); /* P6F8与P6F4冲突 */
  572. },
  573. computed: {
  574. backStageIp: function() {
  575. return this.$store.state.wholeSituationBackStageIp;
  576. },
  577. backStagePort: function() {
  578. return this.$store.state.wholeSituationBackStagePort;
  579. },
  580. windpowerstationNameToId: function() {
  581. return this.$store.state.windpowerstationNameToId;
  582. }
  583. },
  584. onHide() {
  585. this.$refs.drawer.closeDrawer();
  586. this.hideModal();
  587. },
  588. onShow: function() {
  589. this.address = this.dataprocessing.getWindPowerStationName();
  590. this.FDC = this.dataprocessing.getWindPowerStationId();
  591. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  592. this.viewUserid();
  593. this.monitoringAuthority();
  594. this.judgeWindfield();
  595. },
  596. methods: {
  597. timeNow() {
  598. this.getTimeFormat();
  599. this.dateNow = new Date().Format('yyyy年MM月dd hh:mm');
  600. setTimeout(function() {
  601. this.dateNow = new Date().Format('yyyy年MM月dd hh:mm');
  602. }, 60000);
  603. },
  604. viewUserid: function() {
  605. this.plusDrawerList = uni.getStorageSync('plusList');
  606. let _this = this;
  607. for (let i = 0; i < _this.plusDrawerList.length; i++) {
  608. _this.$refs.windFarmcard[i].getWindfieldid(_this.plusDrawerList[i]);
  609. }
  610. },
  611. judgeWindfield:function(){
  612. this.plusDrawerList = uni.getStorageSync('plusList');
  613. let _this = this;
  614. for (let i = 0; i < _this.plusDrawerList.length; i++) {
  615. _this.$refs.windFarmcard[i].getWindfieldid(_this.plusDrawerList[i]);
  616. }
  617. },
  618. monitoringAuthority: function() {
  619. this.drawerList = uni.getStorageSync('leftlist1');
  620. },
  621. async index_curve_columnar_five_loss() {
  622. Date.prototype.Format = function(fmt) {
  623. var o = {
  624. 'M+': this.getMonth() + 1, //月份
  625. 'd+': this.getDate(), //日
  626. 'h+': this.getHours(), //小时
  627. 'm+': this.getMinutes(), //分
  628. 's+': this.getSeconds(), //秒
  629. 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
  630. S: this.getMilliseconds() //毫秒
  631. };
  632. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
  633. for (var k in o)
  634. if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
  635. k]).substr(('' + o[k]).length));
  636. return fmt;
  637. };
  638. let _this = this;
  639. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  640. this.socketTask_index_curve_columnar_five_loss = uni.connectSocket({
  641. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  642. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_7',
  643. success(data) {
  644. console.log('websocket连接成功');
  645. }
  646. });
  647. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  648. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  649. this.socketTask_index_curve_columnar_five_loss.onOpen(res => {
  650. console.log('WebSocket连接正常打开中...!');
  651. this.is_open_socket = true;
  652. // 注:只有连接正常打开中 ,才能正常收到消息
  653. this.socketTask_index_curve_columnar_five_loss.onMessage(res => {
  654. //console.log("收到服务器内容:" + res.data);
  655. _this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule = JSON.parse(res.data);
  656. let ColumnStack = this.c1;
  657. if (this.dayHair) {
  658. ColumnStack = {
  659. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  660. series: [{
  661. name: '日发电量(万kwh)',
  662. data: [18, 13, 12, 17, 13, 7, 11, 15, 13],
  663. color: '#4EB64E'
  664. }]
  665. };
  666. ColumnStack.categories = [];
  667. ColumnStack.series[0].data = [];
  668. for (let i = 0; i < this.rifa.length; i++) {
  669. ColumnStack.categories.push(this.Xzuobiao[i]);
  670. // console.log(ColumnStack.categories)
  671. ColumnStack.series[0].data.push(this.rifa[i]);
  672. // console.log(ColumnStack.series[1].data)
  673. }
  674. }
  675. if (this.fault) {
  676. ColumnStack = {
  677. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  678. series: [{
  679. name: '故障损失电量(万kwh)',
  680. data: [17, 15, 17, 21, 16, 8, 10, 17, 11],
  681. color: '#F14E51'
  682. }]
  683. };
  684. ColumnStack.categories = [];
  685. ColumnStack.series[0].data = [];
  686. for (let i = 0; i < this.guzhang.length; i++) {
  687. ColumnStack.categories.push(this.Xzuobiao[i]);
  688. // console.log(ColumnStack.categories)
  689. ColumnStack.series[0].data.push(this.guzhang[i]);
  690. // console.log(ColumnStack.series[1].data)
  691. }
  692. }
  693. if (this.overhaul) {
  694. ColumnStack = {
  695. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  696. series: [{
  697. name: '检修损失电量(万kwh)',
  698. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  699. color: '#FF6B3E'
  700. }]
  701. };
  702. ColumnStack.categories = [];
  703. ColumnStack.series[0].data = [];
  704. for (let i = 0; i < this.jianxiu.length; i++) {
  705. ColumnStack.categories.push(this.Xzuobiao[i]);
  706. // console.log(ColumnStack.categories)
  707. ColumnStack.series[0].data.push(this.jianxiu[i]);
  708. // console.log(ColumnStack.series[1].data)
  709. }
  710. }
  711. if (this.powerLimitation) {
  712. ColumnStack = {
  713. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  714. series: [{
  715. name: '限电损失电量(万kwh)',
  716. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  717. color: '#DC62D2'
  718. }]
  719. };
  720. ColumnStack.categories = [];
  721. ColumnStack.series[0].data = [];
  722. for (let i = 0; i < this.xiandian.length; i++) {
  723. ColumnStack.categories.push(this.Xzuobiao[i]);
  724. // console.log(ColumnStack.categories)
  725. ColumnStack.series[0].data.push(this.xiandian[i]);
  726. // console.log(ColumnStack.series[1].data)
  727. }
  728. }
  729. if (this.performance) {
  730. ColumnStack = {
  731. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  732. series: [{
  733. name: '性能损失电量(万kwh)',
  734. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  735. color: '#9DA3F6'
  736. }]
  737. };
  738. ColumnStack.categories = [];
  739. ColumnStack.series[0].data = [];
  740. for (let i = 0; i < this.xingneng.length; i++) {
  741. ColumnStack.categories.push(this.Xzuobiao[i]);
  742. // console.log(ColumnStack.categories)
  743. ColumnStack.series[0].data.push(this.xingneng[i]);
  744. // console.log(ColumnStack.series[1].data)
  745. }
  746. }
  747. if (this.toBeInvolved) {
  748. ColumnStack = {
  749. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  750. series: [{
  751. name: '受累损失电量(万kwh)',
  752. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  753. color: '#9E9E9E'
  754. }]
  755. };
  756. ColumnStack.categories = [];
  757. ColumnStack.series[0].data = [];
  758. for (let i = 0; i < this.shoulei.length; i++) {
  759. ColumnStack.categories.push(this.Xzuobiao[i]);
  760. // console.log(ColumnStack.categories)
  761. ColumnStack.series[0].data.push(this.shoulei[i]);
  762. // console.log(ColumnStack.series[1].data)
  763. }
  764. }
  765. ColumnStack.categories = [];
  766. //ColumnStack.series[0].data=[];
  767. ColumnStack.series[1].data = [];
  768. ColumnStack.series[2].data = [];
  769. ColumnStack.series[3].data = [];
  770. ColumnStack.series[4].data = [];
  771. ColumnStack.series[5].data = [];
  772. ColumnStack.series[6].data = [];
  773. /* LineA.series[0].name=this.targetName; */
  774. _this.Xzuobiao = [];
  775. _this.rifa = [];
  776. _this.guzhang = [];
  777. _this.jianxiu = [];
  778. _this.xiandian = [];
  779. _this.xingneng = [];
  780. _this.shoulei = [];
  781. for (var i = 0; i < _this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  782. .length; i++) {
  783. let time = new Date(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  784. [i].time).Format('MM/dd');
  785. ColumnStack.categories.push(time);
  786. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  787. //ColumnStack.series[0].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value7);
  788. ColumnStack.series[1].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  789. _this.FDC][i].value1);
  790. ColumnStack.series[2].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  791. _this.FDC][i].value2);
  792. ColumnStack.series[3].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  793. _this.FDC][i].value3);
  794. ColumnStack.series[4].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  795. _this.FDC][i].value4);
  796. ColumnStack.series[5].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  797. _this.FDC][i].value5);
  798. ColumnStack.series[6].data.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[
  799. _this.FDC][i].value6);
  800. _this.Xzuobiao.push(time);
  801. // _this.$set(_this.rifa,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value1);
  802. // _this.$set(_this.guzhang,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value2);
  803. // _this.$set(_this.jianxiu,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value3);
  804. // _this.$set(_this.xiandian,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value4);
  805. // _this.$set(_this.xingneng,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value5);
  806. // _this.$set(_this.shoulei,i,_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][i].value6);
  807. _this.rifa.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC][
  808. i
  809. ].value1);
  810. _this.guzhang.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  811. [i].value2);
  812. _this.jianxiu.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  813. [i].value3);
  814. _this.xiandian.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  815. [i].value4);
  816. _this.xingneng.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  817. [i].value5);
  818. _this.shoulei.push(_this.index_curve_columnar_five_lossmodule.index_curve_columnar_five_lossmodule[_this.FDC]
  819. [i].value6);
  820. //ColumnStack.series[1].data.push(_this.rifa[i]);
  821. }
  822. _this.showColumnStack('canvasColumnStack', ColumnStack);
  823. });
  824. });
  825. },
  826. /* async index_windStation_card() {
  827. let _this = this;
  828. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  829. this.socketTask_index_windStation_card = uni.connectSocket({
  830. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  831. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_8',
  832. success(data) {
  833. console.log('websocket连接成功');
  834. }
  835. });
  836. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  837. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  838. this.socketTask_index_windStation_card.onOpen(res => {
  839. console.log('WebSocket连接正常打开中...!');
  840. this.is_open_socket = true;
  841. // 注:只有连接正常打开中 ,才能正常收到消息
  842. this.socketTask_index_windStation_card.onMessage(res => {
  843. //console.log("收到服务器内容:" + res.data);
  844. _this.index_windStation_cardmodule.index_windStation_cardmodule = JSON.parse(res.data);
  845. console.log();
  846. });
  847. });
  848. }, */
  849. async index_windStation_card() {
  850. let _this = this;
  851. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  852. this.socketTask_index_windStation_card = uni.connectSocket({
  853. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  854. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_8',
  855. success(data) {
  856. console.log('websocket连接成功');
  857. }
  858. });
  859. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  860. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  861. this.socketTask_index_windStation_card.onOpen(res => {
  862. console.log('WebSocket连接正常打开中...!');
  863. this.is_open_socket = true;
  864. // 注:只有连接正常打开中 ,才能正常收到消息
  865. this.socketTask_index_windStation_card.onMessage(res => {
  866. //console.log("收到服务器内容:" + res.data);
  867. let json = JSON.parse(res.data);
  868. for (let x in json) {
  869. _this.windFielddata.push(json[x])
  870. }
  871. for(let i=0;i<_this.plusDrawerList.length;i++){
  872. _this.$refs.windFarmcard[i].getWindfielddata(_this.windFielddata[i]);
  873. }
  874. _this.cardmodule = false;
  875. });
  876. });
  877. },
  878. async index_curve_columnar_windSpeed_power() {
  879. Date.prototype.Format = function(fmt) {
  880. var o = {
  881. 'M+': this.getMonth() + 1, //月份
  882. 'd+': this.getDate(), //日
  883. 'h+': this.getHours(), //小时
  884. 'm+': this.getMinutes(), //分
  885. 's+': this.getSeconds(), //秒
  886. 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
  887. S: this.getMilliseconds() //毫秒
  888. };
  889. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
  890. for (var k in o)
  891. if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
  892. k]).substr(('' + o[k]).length));
  893. return fmt;
  894. };
  895. let _this = this;
  896. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  897. this.socketTask_index_curve_columnar_windSpeed_power = uni.connectSocket({
  898. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  899. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_6',
  900. /* url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_7/functionNumber_4', */
  901. success(data) {
  902. console.log('websocket连接成功');
  903. }
  904. });
  905. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  906. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  907. this.socketTask_index_curve_columnar_windSpeed_power.onOpen(res => {
  908. console.log('WebSocket连接正常打开中...!');
  909. this.is_open_socket = true;
  910. // 注:只有连接正常打开中 ,才能正常收到消息
  911. this.socketTask_index_curve_columnar_windSpeed_power.onMessage(res => {
  912. //console.log("收到服务器内容:" + res.data);
  913. let json = JSON.parse(res.data);
  914. console.log(json);
  915. for(let x in json){
  916. _this.lineChartdata.push(json[x]);
  917. }
  918. for(let i=0;i<_this.plusDrawerList.length;i++){
  919. _this.$refs.windFarmcard[i].getUchartData(_this.lineChartdata[i]);
  920. }
  921. console.log("---");
  922. let LineA = {
  923. categories: [],
  924. series: [{
  925. name: '功率',
  926. data: [],
  927. color: '#4BB94B',
  928. textColor: '#FFFFFF',
  929. textSize: this.seriesTextSize,
  930. format: val => {
  931. return val + 'kwh';
  932. },
  933. index: 0,
  934. legendShape: 'circle'
  935. },
  936. {
  937. name: '风速',
  938. data: [],
  939. color: '#E82E2F',
  940. textColor: '#FFFFFF',
  941. textSize: this.seriesTextSize,
  942. format: val => {
  943. return val + 'm/s';
  944. },
  945. index: 1,
  946. legendShape: 'circle'
  947. },
  948. {
  949. name: '理论功率',
  950. data: [],
  951. color: '#F5A83C',
  952. textColor: '#FFFFFF',
  953. textSize: this.seriesTextSize,
  954. format: val => {
  955. return val + 'kwh';
  956. },
  957. index: 0,
  958. legendShape: 'circle'
  959. },
  960. {
  961. name: '预测功率',
  962. data: [],
  963. color: '#4A80B1',
  964. textColor: '#FFFFFF',
  965. textSize: this.seriesTextSize,
  966. format: val => {
  967. return val + 'kwh';
  968. },
  969. index: 1,
  970. legendShape: 'circle'
  971. }
  972. ]
  973. };
  974. let LineB = {
  975. categories: [],
  976. series: [{
  977. name: '功率',
  978. data: [],
  979. color: '#4BB94B',
  980. textColor: '#FFFFFF',
  981. textSize: this.seriesTextSize,
  982. format: val => {
  983. return val + 'kwh';
  984. },
  985. index: 0,
  986. legendShape: 'circle'
  987. },
  988. {
  989. name: '风速',
  990. data: [],
  991. color: '#E82E2F',
  992. textColor: '#FFFFFF',
  993. textSize: this.seriesTextSize,
  994. format: val => {
  995. return val + 'm/s';
  996. },
  997. index: 1,
  998. legendShape: 'circle'
  999. },
  1000. {
  1001. name: '理论功率',
  1002. data: [],
  1003. color: '#F5A83C',
  1004. textColor: '#FFFFFF',
  1005. textSize: this.seriesTextSize,
  1006. format: val => {
  1007. return val + 'kwh';
  1008. },
  1009. index: 0,
  1010. legendShape: 'circle'
  1011. },
  1012. {
  1013. name: '预测功率',
  1014. data: [],
  1015. color: '#4A80B1',
  1016. textColor: '#FFFFFF',
  1017. textSize: this.seriesTextSize,
  1018. format: val => {
  1019. return val + 'kwh';
  1020. },
  1021. index: 1,
  1022. legendShape: 'circle'
  1023. }
  1024. ]
  1025. };
  1026. let LineC = {
  1027. categories: [],
  1028. series: [{
  1029. name: '功率',
  1030. data: [],
  1031. color: '#4BB94B',
  1032. textColor: '#FFFFFF',
  1033. textSize: this.seriesTextSize,
  1034. format: val => {
  1035. return val + 'kwh';
  1036. },
  1037. index: 0,
  1038. legendShape: 'circle'
  1039. },
  1040. {
  1041. name: '风速',
  1042. data: [],
  1043. color: '#E82E2F',
  1044. textColor: '#FFFFFF',
  1045. textSize: this.seriesTextSize,
  1046. format: val => {
  1047. return val + 'm/s';
  1048. },
  1049. index: 1,
  1050. legendShape: 'circle'
  1051. },
  1052. {
  1053. name: '理论功率',
  1054. data: [],
  1055. color: '#F5A83C',
  1056. textColor: '#FFFFFF',
  1057. textSize: this.seriesTextSize,
  1058. format: val => {
  1059. return val + 'kwh';
  1060. },
  1061. index: 0,
  1062. legendShape: 'circle'
  1063. },
  1064. {
  1065. name: '预测功率',
  1066. data: [],
  1067. color: '#4A80B1',
  1068. textColor: '#FFFFFF',
  1069. textSize: this.seriesTextSize,
  1070. format: val => {
  1071. return val + 'kwh';
  1072. },
  1073. index: 1,
  1074. legendShape: 'circle'
  1075. }
  1076. ]
  1077. };
  1078. let LineD = {
  1079. categories: [],
  1080. series: [{
  1081. name: '功率',
  1082. data: [],
  1083. color: '#4BB94B',
  1084. textColor: '#FFFFFF',
  1085. textSize: this.seriesTextSize,
  1086. format: val => {
  1087. return val + 'kwh';
  1088. },
  1089. index: 0,
  1090. legendShape: 'circle'
  1091. },
  1092. {
  1093. name: '风速',
  1094. data: [],
  1095. color: '#E82E2F',
  1096. textColor: '#FFFFFF',
  1097. textSize: this.seriesTextSize,
  1098. format: val => {
  1099. return val + 'm/s';
  1100. },
  1101. index: 1,
  1102. legendShape: 'circle'
  1103. },
  1104. {
  1105. name: '理论功率',
  1106. data: [],
  1107. color: '#F5A83C',
  1108. textColor: '#FFFFFF',
  1109. textSize: this.seriesTextSize,
  1110. format: val => {
  1111. return val + 'kwh';
  1112. },
  1113. index: 0,
  1114. legendShape: 'circle'
  1115. },
  1116. {
  1117. name: '预测功率',
  1118. data: [],
  1119. color: '#4A80B1',
  1120. textColor: '#FFFFFF',
  1121. textSize: this.seriesTextSize,
  1122. format: val => {
  1123. return val + 'kwh';
  1124. },
  1125. index: 1,
  1126. legendShape: 'circle'
  1127. }
  1128. ]
  1129. };
  1130. let LineE = {
  1131. categories: [],
  1132. series: [{
  1133. name: '功率',
  1134. data: [],
  1135. color: '#4BB94B',
  1136. textColor: '#FFFFFF',
  1137. textSize: this.seriesTextSize,
  1138. format: val => {
  1139. return val + 'kwh';
  1140. },
  1141. index: 0,
  1142. legendShape: 'circle'
  1143. },
  1144. {
  1145. name: '风速',
  1146. data: [],
  1147. color: '#E82E2F',
  1148. textColor: '#FFFFFF',
  1149. textSize: this.seriesTextSize,
  1150. format: val => {
  1151. return val + 'm/s';
  1152. },
  1153. index: 1,
  1154. legendShape: 'circle'
  1155. },
  1156. {
  1157. name: '理论功率',
  1158. data: [],
  1159. color: '#F5A83C',
  1160. textColor: '#FFFFFF',
  1161. textSize: this.seriesTextSize,
  1162. format: val => {
  1163. return val + 'kwh';
  1164. },
  1165. index: 0,
  1166. legendShape: 'circle'
  1167. },
  1168. {
  1169. name: '预测功率',
  1170. data: [],
  1171. color: '#4A80B1',
  1172. textColor: '#FFFFFF',
  1173. textSize: this.seriesTextSize,
  1174. format: val => {
  1175. return val + 'kwh';
  1176. },
  1177. index: 1,
  1178. legendShape: 'circle'
  1179. }
  1180. ]
  1181. };
  1182. let Line = {
  1183. categories: [],
  1184. series: [{
  1185. name: '功率',
  1186. data: [],
  1187. color: '#4BB94B',
  1188. textColor: '#FFFFFF',
  1189. textSize: this.seriesTextSize,
  1190. format: val => {
  1191. return val + 'kwh';
  1192. },
  1193. index: 0,
  1194. legendShape: 'circle'
  1195. },
  1196. {
  1197. name: '风速',
  1198. data: [],
  1199. color: '#E82E2F',
  1200. textColor: '#FFFFFF',
  1201. textSize: this.seriesTextSize,
  1202. format: val => {
  1203. return val + 'm/s';
  1204. },
  1205. index: 1,
  1206. legendShape: 'circle'
  1207. },
  1208. {
  1209. name: '理论功率',
  1210. data: [],
  1211. color: '#F5A83C',
  1212. textColor: '#FFFFFF',
  1213. textSize: this.seriesTextSize,
  1214. format: val => {
  1215. return val + 'kwh';
  1216. },
  1217. index: 0,
  1218. legendShape: 'circle'
  1219. },
  1220. {
  1221. name: '预测功率',
  1222. data: [],
  1223. color: '#4A80B1',
  1224. textColor: '#FFFFFF',
  1225. textSize: this.seriesTextSize,
  1226. format: val => {
  1227. return val + 'kwh';
  1228. },
  1229. index: 1,
  1230. legendShape: 'circle'
  1231. }
  1232. ]
  1233. };
  1234. Line.categories = [];
  1235. Line.series[0].data = [];
  1236. /* LineA.series[0].name=this.targetName; */
  1237. console.log(_this.FDC);
  1238. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1239. _this.FDC]['gl'].length; i++) {
  1240. let time = new Date(
  1241. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1242. 'gl'
  1243. ][i].pointTime * 1000
  1244. ).Format('hh');
  1245. Line.categories.push(time);
  1246. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1247. Line.series[0].data.push(
  1248. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1249. 'gl'
  1250. ][i].pointValueInDouble
  1251. );
  1252. Line.series[1].data.push(
  1253. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1254. 'fs'
  1255. ][i].pointValueInDouble
  1256. );
  1257. Line.series[2].data.push(
  1258. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1259. 'llgl'
  1260. ][i].pointValueInDouble
  1261. );
  1262. Line.series[3].data.push(
  1263. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[_this.FDC][
  1264. 'ycgl'
  1265. ][i].pointValueInDouble
  1266. );
  1267. }
  1268. LineA.categories = [];
  1269. LineA.series[0].data = [];
  1270. /* LineA.series[0].name=this.targetName; */
  1271. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1272. 'CL_FDC']['gl'].length; i++) {
  1273. let time = new Date(
  1274. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1275. 'gl'
  1276. ][i].pointTime * 1000
  1277. ).Format('hh');
  1278. LineA.categories.push(time);
  1279. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1280. LineA.series[0].data.push(
  1281. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1282. 'gl'
  1283. ][i].pointValueInDouble
  1284. );
  1285. LineA.series[1].data.push(
  1286. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1287. 'fs'
  1288. ][i].pointValueInDouble
  1289. );
  1290. LineA.series[2].data.push(
  1291. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1292. 'llgl'
  1293. ][i].pointValueInDouble
  1294. );
  1295. LineA.series[3].data.push(
  1296. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['CL_FDC'][
  1297. 'ycgl'
  1298. ][i].pointValueInDouble
  1299. );
  1300. }
  1301. LineB.categories = [];
  1302. LineB.series[0].data = [];
  1303. /* LineA.series[0].name=this.targetName; */
  1304. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1305. 'DX_FDC']['gl'].length; i++) {
  1306. let time = new Date(
  1307. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1308. 'gl'
  1309. ][i].pointTime * 1000
  1310. ).Format('hh');
  1311. LineB.categories.push(time);
  1312. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1313. LineB.series[0].data.push(
  1314. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1315. 'gl'
  1316. ][i].pointValueInDouble
  1317. );
  1318. LineB.series[1].data.push(
  1319. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1320. 'fs'
  1321. ][i].pointValueInDouble
  1322. );
  1323. LineB.series[2].data.push(
  1324. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1325. 'llgl'
  1326. ][i].pointValueInDouble
  1327. );
  1328. LineB.series[3].data.push(
  1329. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['DX_FDC'][
  1330. 'ycgl'
  1331. ][i].pointValueInDouble
  1332. );
  1333. }
  1334. LineC.categories = [];
  1335. LineC.series[0].data = [];
  1336. /* LineA.series[0].name=this.targetName; */
  1337. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1338. 'KB_FDC']['gl'].length; i++) {
  1339. let time = new Date(
  1340. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1341. 'gl'
  1342. ][i].pointTime * 1000
  1343. ).Format('hh');
  1344. LineC.categories.push(time);
  1345. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1346. LineC.series[0].data.push(
  1347. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1348. 'gl'
  1349. ][i].pointValueInDouble
  1350. );
  1351. LineC.series[1].data.push(
  1352. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1353. 'fs'
  1354. ][i].pointValueInDouble
  1355. );
  1356. LineC.series[2].data.push(
  1357. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1358. 'llgl'
  1359. ][i].pointValueInDouble
  1360. );
  1361. LineC.series[3].data.push(
  1362. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['KB_FDC'][
  1363. 'ycgl'
  1364. ][i].pointValueInDouble
  1365. );
  1366. }
  1367. /* LineD.categories = [];
  1368. LineD.series[0].data = [];
  1369. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1370. 'QS_FDC']['gl'].length; i++) {
  1371. let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1372. 'QS_FDC']['gl'][i].pointTime * 1000).Format(
  1373. 'hh'
  1374. );
  1375. LineD.categories.push(time);
  1376. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1377. LineD.series[0].data.push(
  1378. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1379. 'gl'
  1380. ][i].pointValueInDouble
  1381. );
  1382. LineD.series[1].data.push(
  1383. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1384. 'fs'
  1385. ][i].pointValueInDouble
  1386. );
  1387. LineD.series[2].data.push(
  1388. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1389. 'llgl'
  1390. ][i].pointValueInDouble
  1391. );
  1392. LineD.series[3].data.push(
  1393. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['QS_FDC'][
  1394. 'ycgl'
  1395. ][i].pointValueInDouble
  1396. );
  1397. }
  1398. LineE.categories = [];
  1399. LineE.series[0].data = [];
  1400. for (var i = 0; i < _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1401. 'XS_FDC']['gl'].length; i++) {
  1402. let time = new Date(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule[
  1403. 'XS_FDC']['gl'][i].pointTime * 1000).Format(
  1404. 'hh'
  1405. );
  1406. LineE.categories.push(time);
  1407. //console.log(_this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['MHS_FDC']['gl'][i].pointValueInDouble);
  1408. LineE.series[0].data.push(
  1409. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1410. 'gl'
  1411. ][i].pointValueInDouble
  1412. );
  1413. LineE.series[1].data.push(
  1414. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1415. 'fs'
  1416. ][i].pointValueInDouble
  1417. );
  1418. LineE.series[2].data.push(
  1419. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1420. 'llgl'
  1421. ][i].pointValueInDouble
  1422. );
  1423. LineE.series[3].data.push(
  1424. _this.index_curve_columnar_windSpeed_powermodule.index_curve_columnar_windSpeed_powermodule['XS_FDC'][
  1425. 'ycgl'
  1426. ][i].pointValueInDouble
  1427. );
  1428. } */
  1429. _this.showLineA('canvasLineA', Line);
  1430. _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
  1431. // _this.showWindStationCardLineA1('windStationCanvasLineA', LineA);
  1432. _this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  1433. _this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  1434. /*
  1435. _this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  1436. _this.showWindStationCardLineA5('windStationCanvasLineE', LineE); */
  1437. });
  1438. });
  1439. },
  1440. openDrawer: function() {
  1441. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
  1442. },
  1443. closeDrawer: function() {
  1444. this.drawerIsShow = false;
  1445. },
  1446. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  1447. uni.setStorageSync('windpowerstationName', windpowerstationName);
  1448. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  1449. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  1450. //this.common.goback('/pages/index/Index');
  1451. },
  1452. getWindPowerStationNameToSessionStorage() {
  1453. uni.getStorageSync('windpowerstationName');
  1454. return uni.getStorageSync('windpowerstationName');
  1455. },
  1456. showModal(e) {
  1457. this.modalName = e.currentTarget.dataset.target;
  1458. this.viewUserid();
  1459. this.monitoringAuthority();
  1460. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  1461. },
  1462. hideModal() {
  1463. this.modalName = null;
  1464. this.$refs.plusDrawer.hideModal(this.modalName);
  1465. },
  1466. async target_comprehensive_indicators() {
  1467. let _this = this;
  1468. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1469. this.socketTask_target_comprehensive_indicators = uni.connectSocket({
  1470. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1471. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_1',
  1472. success(data) {
  1473. console.log('websocket连接成功');
  1474. }
  1475. });
  1476. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1477. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1478. this.socketTask_target_comprehensive_indicators.onOpen(res => {
  1479. console.log('WebSocket连接正常打开中...!');
  1480. this.is_open_socket = true;
  1481. // 注:只有连接正常打开中 ,才能正常收到消息
  1482. this.socketTask_target_comprehensive_indicators.onMessage(res => {
  1483. //console.log("收到服务器内容:" + res.data);
  1484. _this.windpowerstationdetail.target_comprehensive_indicators = JSON.parse(res.data)[_this.FDC];
  1485. console.log();
  1486. });
  1487. });
  1488. // 这里仅是事件监听【如果socket关闭了会执行】
  1489. /* this.socketTask_comprehensive_target.onClose(() => {
  1490. uni.request({
  1491. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1492. success: (res) => {
  1493. }
  1494. });
  1495. }) */
  1496. },
  1497. async target_windSpeed_power() {
  1498. let _this = this;
  1499. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1500. this.socketTask_target_windSpeed_power = uni.connectSocket({
  1501. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1502. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_2',
  1503. success(data) {
  1504. console.log('websocket连接成功');
  1505. }
  1506. });
  1507. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1508. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1509. this.socketTask_target_windSpeed_power.onOpen(res => {
  1510. console.log('WebSocket连接正常打开中...!');
  1511. this.is_open_socket = true;
  1512. // 注:只有连接正常打开中 ,才能正常收到消息
  1513. this.socketTask_target_windSpeed_power.onMessage(res => {
  1514. //console.log("收到服务器内容:" + res.data);
  1515. _this.windpowerstationdetail.target_windSpeed_power = JSON.parse(res.data)[_this.FDC];
  1516. });
  1517. });
  1518. // 这里仅是事件监听【如果socket关闭了会执行】
  1519. /* this.socketTask_comprehensive_target.onClose(() => {
  1520. uni.request({
  1521. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1522. success: (res) => {
  1523. }
  1524. });
  1525. }) */
  1526. },
  1527. async index_windturbine_status() {
  1528. let _this = this;
  1529. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1530. this.socketTask_index_windturbine_status = uni.connectSocket({
  1531. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1532. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_3',
  1533. success(data) {
  1534. console.log('websocket连接成功');
  1535. }
  1536. });
  1537. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1538. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1539. this.socketTask_index_windturbine_status.onOpen(res => {
  1540. console.log('WebSocket连接正常打开中...!');
  1541. this.is_open_socket = true;
  1542. // 注:只有连接正常打开中 ,才能正常收到消息
  1543. this.socketTask_index_windturbine_status.onMessage(res => {
  1544. //console.log("收到服务器内容:" + res.data);
  1545. _this.windpowerstationdetail.index_windturbine_status = JSON.parse(res.data)[_this.FDC];
  1546. // _this.fdcstatusmodule.fdcstatusmodule = JSON.parse(res.data);
  1547. let json = JSON.parse(res.data);
  1548. for (let x in json) {
  1549. _this.windFieldsituation.push(json[x]);
  1550. }
  1551. for(let i=0;i<_this.plusDrawerList.length;i++){
  1552. _this.$refs.windFarmcard[i].getHoursWeatherData(_this.windFieldsituation[i]);
  1553. }
  1554. _this.cardmodule = false;
  1555. console.log("---");
  1556. _this.module = false;
  1557. });
  1558. });
  1559. // 这里仅是事件监听【如果socket关闭了会执行】
  1560. /* this.socketTask_comprehensive_target.onClose(() => {
  1561. uni.request({
  1562. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1563. success: (res) => {
  1564. }
  1565. });
  1566. }) */
  1567. },
  1568. async index_electricQuantity() {
  1569. let _this = this;
  1570. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1571. this.socketTask_index_electricQuantity = uni.connectSocket({
  1572. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1573. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_4',
  1574. success(data) {
  1575. console.log('websocket连接成功');
  1576. }
  1577. });
  1578. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1579. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1580. this.socketTask_index_electricQuantity.onOpen(res => {
  1581. console.log('WebSocket连接正常打开中...!');
  1582. this.is_open_socket = true;
  1583. // 注:只有连接正常打开中 ,才能正常收到消息
  1584. this.socketTask_index_electricQuantity.onMessage(res => {
  1585. //console.log("收到服务器内容:" + res.data);
  1586. _this.windpowerstationdetail.index_electricQuantity = JSON.parse(res.data)[_this.FDC];
  1587. _this.monthOlive = (_this.windpowerstationdetail.index_electricQuantity.yfdl / 10000) * 100 + '%';
  1588. _this.monthAngrey = (1 - _this.windpowerstationdetail.index_electricQuantity.yfdl / 10000) * 100 + '%';
  1589. _this.yearOlive = (_this.windpowerstationdetail.index_electricQuantity.nfdl / 100000) * 100 + '%';
  1590. _this.yearAngrey = (1 - _this.windpowerstationdetail.index_electricQuantity.nfdl / 100000) * 100 + '%';
  1591. });
  1592. });
  1593. // 这里仅是事件监听【如果socket关闭了会执行】
  1594. /* this.socketTask_comprehensive_target.onClose(() => {
  1595. uni.request({
  1596. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1597. success: (res) => {
  1598. }
  1599. });
  1600. }) */
  1601. },
  1602. async index_target_basic_indicators() {
  1603. let _this = this;
  1604. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1605. this.socketTask_index_target_basic_indicators = uni.connectSocket({
  1606. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1607. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_6/functionNumber_5',
  1608. success(data) {
  1609. console.log('websocket连接成功');
  1610. }
  1611. });
  1612. let windpowerstationid = uni.getStorageSync('windpowerstationName');
  1613. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1614. this.socketTask_index_target_basic_indicators.onOpen(res => {
  1615. console.log('WebSocket连接正常打开中...!');
  1616. this.is_open_socket = true;
  1617. // 注:只有连接正常打开中 ,才能正常收到消息
  1618. this.socketTask_index_target_basic_indicators.onMessage(res => {
  1619. //console.log("收到服务器内容:" + res.data);
  1620. _this.windpowerstationdetail.index_target_basic_indicators = JSON.parse(res.data)[_this.FDC];
  1621. });
  1622. });
  1623. // 这里仅是事件监听【如果socket关闭了会执行】
  1624. /* this.socketTask_comprehensive_target.onClose(() => {
  1625. uni.request({
  1626. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  1627. success: (res) => {
  1628. }
  1629. });
  1630. }) */
  1631. },
  1632. getServerData() {
  1633. // 折线图
  1634. let LineA = {
  1635. categories: [
  1636. ' 17:26',
  1637. '18:56',
  1638. '19:56',
  1639. '20:56',
  1640. '21:56',
  1641. '22:56',
  1642. '23:56',
  1643. '00:56',
  1644. '01:56',
  1645. '02:56',
  1646. '03:56',
  1647. '04:56',
  1648. '05:56',
  1649. '06:56',
  1650. '07:56',
  1651. '08:56',
  1652. '09:56',
  1653. '10:56',
  1654. '11:56',
  1655. '12:56',
  1656. '13:56',
  1657. '14:56',
  1658. '15:56',
  1659. '16:56',
  1660. '17:56 '
  1661. ],
  1662. series: [{
  1663. name: '功率',
  1664. data: [],
  1665. color: '#4BB94B',
  1666. textColor: '#FFFFFF',
  1667. textSize: this.seriesTextSize,
  1668. format: val => {
  1669. return val + 'kwh';
  1670. },
  1671. index: 0,
  1672. legendShape: 'circle'
  1673. },
  1674. {
  1675. name: '风速',
  1676. data: [],
  1677. color: '#E82E2F',
  1678. textColor: '#FFFFFF',
  1679. textSize: this.seriesTextSize,
  1680. format: val => {
  1681. return val + 'm/s';
  1682. },
  1683. index: 1,
  1684. legendShape: 'circle'
  1685. },
  1686. {
  1687. name: '理论功率',
  1688. data: [],
  1689. color: '#F5A83C',
  1690. textColor: '#FFFFFF',
  1691. textSize: this.seriesTextSize,
  1692. format: val => {
  1693. return val + 'kwh';
  1694. },
  1695. index: 0,
  1696. legendShape: 'circle'
  1697. },
  1698. {
  1699. name: '预测功率',
  1700. data: [],
  1701. color: '#4A80B1',
  1702. textColor: '#FFFFFF',
  1703. textSize: this.seriesTextSize,
  1704. format: val => {
  1705. return val + 'kwh';
  1706. },
  1707. index: 1,
  1708. legendShape: 'circle'
  1709. }
  1710. ]
  1711. };
  1712. this.showLineA('canvasLineA', LineA);
  1713. },
  1714. showLineA(canvasId, chartData) {
  1715. var _self = this;
  1716. canvaLineA = new uCharts({
  1717. $this: _self,
  1718. canvasId: canvasId,
  1719. type: 'line',
  1720. fontSize: 11,
  1721. legend: {
  1722. show: true,
  1723. position: 'top',
  1724. float: 'right',
  1725. fontColor: 'silver',
  1726. itemGap: '4',
  1727. itemWidth: '3'
  1728. },
  1729. dataLabel: false,
  1730. dataPointShape: false,
  1731. background: '#FFFFFF',
  1732. pixelRatio: _self.pixelRatio,
  1733. categories: chartData.categories,
  1734. series: chartData.series,
  1735. animation: true,
  1736. xAxis: {
  1737. type: 'grid',
  1738. gridColor: 'silver',
  1739. fontColor: 'silver',
  1740. gridType: 'solid',
  1741. gridColor: '#2E2E2E',
  1742. axisLineColor: '#2E2E2E',
  1743. labelCount: '3'
  1744. // itemCount:"3"
  1745. },
  1746. yAxis: {
  1747. data: [{
  1748. type: 'value',
  1749. fontColor: 'silver',
  1750. disabled: false, //y轴轴线
  1751. min: 0,
  1752. max: 40,
  1753. position: 'left',
  1754. axisLineColor: '#2E2E2E',
  1755. title: ' 风速:(m/s)',
  1756. titleFontColor: 'silver'
  1757. },
  1758. {
  1759. fontColor: 'silver',
  1760. disabled: false, //y轴轴线
  1761. min: 0,
  1762. max: 40,
  1763. position: 'right',
  1764. axisLineColor: '#2E2E2E',
  1765. title: '功率:(kwh)',
  1766. titleFontColor: 'silver'
  1767. }
  1768. ],
  1769. gridColor: '#2E2E2E',
  1770. splitNumber: 4,
  1771. gridType: 'solid',
  1772. dashLength: 8,
  1773. showTitle: 'true',
  1774. format: val => {
  1775. return val.toFixed(0) + '元';
  1776. }
  1777. },
  1778. width: _self.cWidth * _self.pixelRatio,
  1779. height: _self.cHeight * _self.pixelRatio,
  1780. extra: {
  1781. line: {
  1782. type: 'line',
  1783. width: '1'
  1784. }
  1785. }
  1786. });
  1787. },
  1788. AffectedPower() {
  1789. (this.toBeInvolved = true), (this.performance = false);
  1790. this.powerLimitation = false;
  1791. this.overhaul = false;
  1792. this.dayHair = false;
  1793. this.fault = false;
  1794. this.clickFlag = 'group';
  1795. this.getColumnData();
  1796. },
  1797. performancePower() {
  1798. this.performance = true;
  1799. this.powerLimitation = false;
  1800. (this.toBeInvolved = false), (this.overhaul = false);
  1801. this.dayHair = false;
  1802. this.fault = false;
  1803. this.clickFlag = 'group';
  1804. this.getColumnData();
  1805. },
  1806. limitedPower() {
  1807. (this.toBeInvolved = false), (this.powerLimitation = true);
  1808. this.performance = false;
  1809. this.overhaul = false;
  1810. this.dayHair = false;
  1811. this.fault = false;
  1812. this.clickFlag = 'group';
  1813. this.getColumnData();
  1814. },
  1815. maintenancePower() {
  1816. (this.toBeInvolved = false), (this.overhaul = true);
  1817. this.performance = false;
  1818. this.dayHair = false;
  1819. this.fault = false;
  1820. this.powerLimitation = false;
  1821. this.clickFlag = 'group';
  1822. this.getColumnData();
  1823. },
  1824. directGeneration() {
  1825. (this.toBeInvolved = false), (this.dayHair = false);
  1826. this.performance = false;
  1827. this.fault = false;
  1828. this.overhaul = false;
  1829. this.powerLimitation = false;
  1830. this.clickFlag = 'stack';
  1831. this.getColumnData();
  1832. },
  1833. powerGeneration() {
  1834. (this.toBeInvolved = false), (this.dayHair = true);
  1835. this.performance = false;
  1836. this.fault = false;
  1837. this.overhaul = false;
  1838. this.powerLimitation = false;
  1839. this.clickFlag = 'group';
  1840. this.getColumnData();
  1841. },
  1842. faultPower() {
  1843. (this.toBeInvolved = false), (this.fault = true);
  1844. this.performance = false;
  1845. this.dayHair = false;
  1846. this.overhaul = false;
  1847. this.powerLimitation = false;
  1848. this.clickFlag = 'group';
  1849. this.getColumnData();
  1850. },
  1851. getColumnData() {
  1852. let ColumnStack = this.c1;
  1853. if (this.dayHair) {
  1854. ColumnStack = {
  1855. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1856. series: [{
  1857. name: '日发电量(万kwh)',
  1858. data: [18, 13, 12, 17, 13, 7, 11, 15, 13],
  1859. color: '#4EB64E'
  1860. }]
  1861. };
  1862. ColumnStack.categories = [];
  1863. ColumnStack.series[0].data = [];
  1864. for (let i = 0; i < this.rifa.length; i++) {
  1865. ColumnStack.categories.push(this.Xzuobiao[i]);
  1866. // console.log(ColumnStack.categories)
  1867. ColumnStack.series[0].data.push(this.rifa[i]);
  1868. // console.log(ColumnStack.series[1].data)
  1869. }
  1870. }
  1871. if (this.fault) {
  1872. ColumnStack = {
  1873. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1874. series: [{
  1875. name: '故障损失电量(万kwh)',
  1876. data: [17, 15, 17, 21, 16, 8, 10, 17, 11],
  1877. color: '#F14E51'
  1878. }]
  1879. };
  1880. ColumnStack.categories = [];
  1881. ColumnStack.series[0].data = [];
  1882. for (let i = 0; i < this.guzhang.length; i++) {
  1883. ColumnStack.categories.push(this.Xzuobiao[i]);
  1884. // console.log(ColumnStack.categories)
  1885. ColumnStack.series[0].data.push(this.guzhang[i]);
  1886. // console.log(ColumnStack.series[1].data)
  1887. }
  1888. }
  1889. if (this.overhaul) {
  1890. ColumnStack = {
  1891. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1892. series: [{
  1893. name: '检修损失电量(万kwh)',
  1894. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1895. color: '#FF6B3E'
  1896. }]
  1897. };
  1898. ColumnStack.categories = [];
  1899. ColumnStack.series[0].data = [];
  1900. for (let i = 0; i < this.jianxiu.length; i++) {
  1901. ColumnStack.categories.push(this.Xzuobiao[i]);
  1902. // console.log(ColumnStack.categories)
  1903. ColumnStack.series[0].data.push(this.jianxiu[i]);
  1904. // console.log(ColumnStack.series[1].data)
  1905. }
  1906. }
  1907. if (this.powerLimitation) {
  1908. ColumnStack = {
  1909. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1910. series: [{
  1911. name: '限电损失电量(万kwh)',
  1912. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1913. color: '#DC62D2'
  1914. }]
  1915. };
  1916. ColumnStack.categories = [];
  1917. ColumnStack.series[0].data = [];
  1918. for (let i = 0; i < this.xiandian.length; i++) {
  1919. ColumnStack.categories.push(this.Xzuobiao[i]);
  1920. // console.log(ColumnStack.categories)
  1921. ColumnStack.series[0].data.push(this.xiandian[i]);
  1922. // console.log(ColumnStack.series[1].data)
  1923. }
  1924. }
  1925. if (this.performance) {
  1926. ColumnStack = {
  1927. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1928. series: [{
  1929. name: '性能损失电量(万kwh)',
  1930. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1931. color: '#9DA3F6'
  1932. }]
  1933. };
  1934. ColumnStack.categories = [];
  1935. ColumnStack.series[0].data = [];
  1936. for (let i = 0; i < this.xingneng.length; i++) {
  1937. ColumnStack.categories.push(this.Xzuobiao[i]);
  1938. // console.log(ColumnStack.categories)
  1939. ColumnStack.series[0].data.push(this.xingneng[i]);
  1940. // console.log(ColumnStack.series[1].data)
  1941. }
  1942. }
  1943. if (this.toBeInvolved) {
  1944. ColumnStack = {
  1945. categories: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18', '04/19', '04/20'],
  1946. series: [{
  1947. name: '受累损失电量(万kwh)',
  1948. data: [14, 17, 19, 20, 6, 14, 12, 14, 10],
  1949. color: '#9E9E9E'
  1950. }]
  1951. };
  1952. ColumnStack.categories = [];
  1953. ColumnStack.series[0].data = [];
  1954. for (let i = 0; i < this.shoulei.length; i++) {
  1955. ColumnStack.categories.push(this.Xzuobiao[i]);
  1956. // console.log(ColumnStack.categories)
  1957. ColumnStack.series[0].data.push(this.shoulei[i]);
  1958. // console.log(ColumnStack.series[1].data)
  1959. }
  1960. }
  1961. this.showColumnStack('canvasColumnStack', ColumnStack);
  1962. },
  1963. showColumnStack(canvasId, chartData) {
  1964. var _self = this;
  1965. canvaColumn = new uCharts({
  1966. $this: _self,
  1967. canvasId: canvasId,
  1968. type: 'column',
  1969. legend: {
  1970. show: false
  1971. },
  1972. fontSize: 11,
  1973. background: '#FFFFFF',
  1974. pixelRatio: _self.pixelRatio,
  1975. animation: true,
  1976. categories: chartData.categories,
  1977. series: chartData.series,
  1978. xAxis: {
  1979. disableGrid: true,
  1980. gridColor: 'silver',
  1981. fontColor: 'silver'
  1982. },
  1983. yAxis: {
  1984. data: [{
  1985. type: 'value',
  1986. fontColor: 'silver',
  1987. disabled: false, //y轴轴线
  1988. min: 0,
  1989. max: 60,
  1990. axisLineColor: '#2E2E2E',
  1991. title: ' 电量:(kwh)',
  1992. titleFontColor: 'silver'
  1993. }],
  1994. gridColor: '#2E2E2E',
  1995. splitNumber: 5,
  1996. gridType: 'solid',
  1997. dashLength: 8,
  1998. showTitle: false
  1999. //disabled:true
  2000. },
  2001. dataLabel: false,
  2002. width: _self.cWidth * _self.pixelRatio,
  2003. height: _self.cHeight * _self.pixelRatio,
  2004. extra: {
  2005. column: {
  2006. type: _self.clickFlag,
  2007. width: '13'
  2008. }
  2009. }
  2010. });
  2011. },
  2012. touchColumn(e) {
  2013. let _this = this;
  2014. canvaColumn.showToolTip(e, {
  2015. format: function(item, category) {
  2016. if (item.name == '应发电量(万kwh)') {
  2017. return '';
  2018. } else {
  2019. return category + ' ' + item.name + ':' + item.data;
  2020. }
  2021. }
  2022. });
  2023. },
  2024. touchLineA(e) {
  2025. canvaLineA.showToolTip(e, {
  2026. format: function(item, category) {
  2027. return category + ' ' + item.name + ':' + item.data;
  2028. }
  2029. });
  2030. },
  2031. touchLineB1(e) {
  2032. canvaLineB1.showToolTip(e, {
  2033. format: function(item, category) {
  2034. return category + ' ' + item.name + ':' + item.data;
  2035. }
  2036. });
  2037. },
  2038. touchLineB2(e) {
  2039. canvaLineB2.showToolTip(e, {
  2040. format: function(item, category) {
  2041. return category + ' ' + item.name + ':' + item.data;
  2042. }
  2043. });
  2044. },
  2045. touchLineB3(e) {
  2046. canvaLineB3.showToolTip(e, {
  2047. format: function(item, category) {
  2048. return category + ' ' + item.name + ':' + item.data;
  2049. }
  2050. });
  2051. },
  2052. touchLineB4(e) {
  2053. canvaLineB4.showToolTip(e, {
  2054. format: function(item, category) {
  2055. return category + ' ' + item.name + ':' + item.data;
  2056. }
  2057. });
  2058. },
  2059. touchLineB5(e) {
  2060. canvaLineB5.showToolTip(e, {
  2061. format: function(item, category) {
  2062. return category + ' ' + item.name + ':' + item.data;
  2063. }
  2064. });
  2065. },
  2066. moveLineA(e) {
  2067. canvaLineA.scroll(e);
  2068. },
  2069. getWindStationCardData: function() {
  2070. let LineA1 = {
  2071. categories: [
  2072. ' 17:26',
  2073. '18:56',
  2074. '19:56',
  2075. '20:56',
  2076. '21:56',
  2077. '22:56',
  2078. '23:56',
  2079. '00:56',
  2080. '01:56',
  2081. '02:56',
  2082. '03:56',
  2083. '04:56',
  2084. '05:56',
  2085. '06:56',
  2086. '07:56',
  2087. '08:56',
  2088. '09:56',
  2089. '10:56',
  2090. '11:56',
  2091. '12:56',
  2092. '13:56',
  2093. '14:56',
  2094. '15:56',
  2095. '16:56',
  2096. '17:56 '
  2097. ],
  2098. series: [{
  2099. name: '功率',
  2100. data: [],
  2101. color: '#4BB94B',
  2102. textColor: '#FFFFFF',
  2103. textSize: this.seriesTextSize,
  2104. format: val => {
  2105. return val + 'kwh';
  2106. },
  2107. index: 0,
  2108. legendShape: 'circle'
  2109. },
  2110. {
  2111. name: '风速',
  2112. data: [],
  2113. color: '#E82E2F',
  2114. textColor: '#FFFFFF',
  2115. textSize: this.seriesTextSize,
  2116. format: val => {
  2117. return val + 'm/s';
  2118. },
  2119. index: 1,
  2120. legendShape: 'circle'
  2121. },
  2122. {
  2123. name: '理论功率',
  2124. data: [],
  2125. color: '#F5A83C',
  2126. textColor: '#FFFFFF',
  2127. textSize: this.seriesTextSize,
  2128. format: val => {
  2129. return val + 'kwh';
  2130. },
  2131. index: 0,
  2132. legendShape: 'circle'
  2133. },
  2134. {
  2135. name: '预测功率',
  2136. data: [],
  2137. color: '#4A80B1',
  2138. textColor: '#FFFFFF',
  2139. textSize: this.seriesTextSize,
  2140. format: val => {
  2141. return val + 'kwh';
  2142. },
  2143. index: 1,
  2144. legendShape: 'circle'
  2145. }
  2146. ]
  2147. };
  2148. let LineB = {
  2149. categories: [
  2150. ' 17:26',
  2151. '18:56',
  2152. '19:56',
  2153. '20:56',
  2154. '21:56',
  2155. '22:56',
  2156. '23:56',
  2157. '00:56',
  2158. '01:56',
  2159. '02:56',
  2160. '03:56',
  2161. '04:56',
  2162. '05:56',
  2163. '06:56',
  2164. '07:56',
  2165. '08:56',
  2166. '09:56',
  2167. '10:56',
  2168. '11:56',
  2169. '12:56',
  2170. '13:56',
  2171. '14:56',
  2172. '15:56',
  2173. '16:56',
  2174. '17:56 '
  2175. ],
  2176. series: [{
  2177. name: '功率',
  2178. data: [],
  2179. color: '#4BB94B',
  2180. textColor: '#FFFFFF',
  2181. textSize: this.seriesTextSize,
  2182. format: val => {
  2183. return val + 'kwh';
  2184. },
  2185. index: 0,
  2186. legendShape: 'circle'
  2187. },
  2188. {
  2189. name: '风速',
  2190. data: [],
  2191. color: '#E82E2F',
  2192. textColor: '#FFFFFF',
  2193. textSize: this.seriesTextSize,
  2194. format: val => {
  2195. return val + 'm/s';
  2196. },
  2197. index: 1,
  2198. legendShape: 'circle'
  2199. },
  2200. {
  2201. name: '理论功率',
  2202. data: [],
  2203. color: '#F5A83C',
  2204. textColor: '#FFFFFF',
  2205. textSize: this.seriesTextSize,
  2206. format: val => {
  2207. return val + 'kwh';
  2208. },
  2209. index: 0,
  2210. legendShape: 'circle'
  2211. },
  2212. {
  2213. name: '预测功率',
  2214. data: [],
  2215. color: '#4A80B1',
  2216. textColor: '#FFFFFF',
  2217. textSize: this.seriesTextSize,
  2218. format: val => {
  2219. return val + 'kwh';
  2220. },
  2221. index: 1,
  2222. legendShape: 'circle'
  2223. }
  2224. ]
  2225. };
  2226. let LineC = {
  2227. categories: [
  2228. ' 17:26',
  2229. '18:56',
  2230. '19:56',
  2231. '20:56',
  2232. '21:56',
  2233. '22:56',
  2234. '23:56',
  2235. '00:56',
  2236. '01:56',
  2237. '02:56',
  2238. '03:56',
  2239. '04:56',
  2240. '05:56',
  2241. '06:56',
  2242. '07:56',
  2243. '08:56',
  2244. '09:56',
  2245. '10:56',
  2246. '11:56',
  2247. '12:56',
  2248. '13:56',
  2249. '14:56',
  2250. '15:56',
  2251. '16:56',
  2252. '17:56 '
  2253. ],
  2254. series: [{
  2255. name: '功率',
  2256. data: [],
  2257. color: '#4BB94B',
  2258. textColor: '#FFFFFF',
  2259. textSize: this.seriesTextSize,
  2260. format: val => {
  2261. return val + 'kwh';
  2262. },
  2263. index: 0,
  2264. legendShape: 'circle'
  2265. },
  2266. {
  2267. name: '风速',
  2268. data: [],
  2269. color: '#E82E2F',
  2270. textColor: '#FFFFFF',
  2271. textSize: this.seriesTextSize,
  2272. format: val => {
  2273. return val + 'm/s';
  2274. },
  2275. index: 1,
  2276. legendShape: 'circle'
  2277. },
  2278. {
  2279. name: '理论功率',
  2280. data: [],
  2281. color: '#F5A83C',
  2282. textColor: '#FFFFFF',
  2283. textSize: this.seriesTextSize,
  2284. format: val => {
  2285. return val + 'kwh';
  2286. },
  2287. index: 0,
  2288. legendShape: 'circle'
  2289. },
  2290. {
  2291. name: '预测功率',
  2292. data: [],
  2293. color: '#4A80B1',
  2294. textColor: '#FFFFFF',
  2295. textSize: this.seriesTextSize,
  2296. format: val => {
  2297. return val + 'kwh';
  2298. },
  2299. index: 1,
  2300. legendShape: 'circle'
  2301. }
  2302. ]
  2303. };
  2304. let LineD = {
  2305. categories: [
  2306. ' 17:26',
  2307. '18:56',
  2308. '19:56',
  2309. '20:56',
  2310. '21:56',
  2311. '22:56',
  2312. '23:56',
  2313. '00:56',
  2314. '01:56',
  2315. '02:56',
  2316. '03:56',
  2317. '04:56',
  2318. '05:56',
  2319. '06:56',
  2320. '07:56',
  2321. '08:56',
  2322. '09:56',
  2323. '10:56',
  2324. '11:56',
  2325. '12:56',
  2326. '13:56',
  2327. '14:56',
  2328. '15:56',
  2329. '16:56',
  2330. '17:56 '
  2331. ],
  2332. series: [{
  2333. name: '功率',
  2334. data: [],
  2335. color: '#4BB94B',
  2336. textColor: '#FFFFFF',
  2337. textSize: this.seriesTextSize,
  2338. format: val => {
  2339. return val + 'kwh';
  2340. },
  2341. index: 0,
  2342. legendShape: 'circle'
  2343. },
  2344. {
  2345. name: '风速',
  2346. data: [],
  2347. color: '#E82E2F',
  2348. textColor: '#FFFFFF',
  2349. textSize: this.seriesTextSize,
  2350. format: val => {
  2351. return val + 'm/s';
  2352. },
  2353. index: 1,
  2354. legendShape: 'circle'
  2355. },
  2356. {
  2357. name: '理论功率',
  2358. data: [],
  2359. color: '#F5A83C',
  2360. textColor: '#FFFFFF',
  2361. textSize: this.seriesTextSize,
  2362. format: val => {
  2363. return val + 'kwh';
  2364. },
  2365. index: 0,
  2366. legendShape: 'circle'
  2367. },
  2368. {
  2369. name: '预测功率',
  2370. data: [],
  2371. color: '#4A80B1',
  2372. textColor: '#FFFFFF',
  2373. textSize: this.seriesTextSize,
  2374. format: val => {
  2375. return val + 'kwh';
  2376. },
  2377. index: 1,
  2378. legendShape: 'circle'
  2379. }
  2380. ]
  2381. };
  2382. let LineE = {
  2383. categories: [
  2384. ' 17:26',
  2385. '18:56',
  2386. '19:56',
  2387. '20:56',
  2388. '21:56',
  2389. '22:56',
  2390. '23:56',
  2391. '00:56',
  2392. '01:56',
  2393. '02:56',
  2394. '03:56',
  2395. '04:56',
  2396. '05:56',
  2397. '06:56',
  2398. '07:56',
  2399. '08:56',
  2400. '09:56',
  2401. '10:56',
  2402. '11:56',
  2403. '12:56',
  2404. '13:56',
  2405. '14:56',
  2406. '15:56',
  2407. '16:56',
  2408. '17:56 '
  2409. ],
  2410. series: [{
  2411. name: '功率',
  2412. data: [],
  2413. color: '#4BB94B',
  2414. textColor: '#FFFFFF',
  2415. textSize: this.seriesTextSize,
  2416. format: val => {
  2417. return val + 'kwh';
  2418. },
  2419. index: 0,
  2420. legendShape: 'circle'
  2421. },
  2422. {
  2423. name: '风速',
  2424. data: [],
  2425. color: '#E82E2F',
  2426. textColor: '#FFFFFF',
  2427. textSize: this.seriesTextSize,
  2428. format: val => {
  2429. return val + 'm/s';
  2430. },
  2431. index: 1,
  2432. legendShape: 'circle'
  2433. },
  2434. {
  2435. name: '理论功率',
  2436. data: [],
  2437. color: '#F5A83C',
  2438. textColor: '#FFFFFF',
  2439. textSize: this.seriesTextSize,
  2440. format: val => {
  2441. return val + 'kwh';
  2442. },
  2443. index: 0,
  2444. legendShape: 'circle'
  2445. },
  2446. {
  2447. name: '预测功率',
  2448. data: [],
  2449. color: '#4A80B1',
  2450. textColor: '#FFFFFF',
  2451. textSize: this.seriesTextSize,
  2452. format: val => {
  2453. return val + 'kwh';
  2454. },
  2455. index: 1,
  2456. legendShape: 'circle'
  2457. }
  2458. ]
  2459. };
  2460. this.showWindStationCardLineA1('windStationCanvasLineA', LineA1);
  2461. this.showWindStationCardLineA2('windStationCanvasLineB', LineB);
  2462. this.showWindStationCardLineA3('windStationCanvasLineC', LineC);
  2463. this.showWindStationCardLineA4('windStationCanvasLineD', LineD);
  2464. this.showWindStationCardLineA5('windStationCanvasLineE', LineE);
  2465. },
  2466. showWindStationCardLineA1(canvasId, chartData) {
  2467. var _self = this;
  2468. canvaLineB1 = new uCharts({
  2469. $this: _self,
  2470. canvasId: canvasId,
  2471. type: 'line',
  2472. fontSize: 11,
  2473. legend: {
  2474. show: true,
  2475. position: 'top',
  2476. float: 'right',
  2477. fontColor: 'silver',
  2478. itemGap: '9',
  2479. itemWidth: '3'
  2480. },
  2481. dataLabel: false,
  2482. dataPointShape: false,
  2483. background: '#FFFFFF',
  2484. pixelRatio: _self.windStationCardPixelRatio,
  2485. categories: chartData.categories,
  2486. series: chartData.series,
  2487. animation: true,
  2488. xAxis: {
  2489. disableGrid: true,
  2490. type: 'grid',
  2491. gridColor: 'silver',
  2492. fontColor: 'silver',
  2493. gridType: 'solid',
  2494. gridColor: '#2E2E2E',
  2495. axisLineColor: '#2E2E2E',
  2496. labelCount: '3'
  2497. // itemCount:"3"
  2498. },
  2499. yAxis: {
  2500. data: [{
  2501. type: 'value',
  2502. fontColor: 'silver',
  2503. disabled: false, //y轴轴线
  2504. min: 0,
  2505. max: 40,
  2506. position: 'left',
  2507. axisLineColor: '#2E2E2E',
  2508. title: ' 风速:(m/s)',
  2509. titleFontColor: 'silver'
  2510. },
  2511. {
  2512. fontColor: 'silver',
  2513. disabled: false, //y轴轴线
  2514. min: 0,
  2515. max: 40,
  2516. position: 'right',
  2517. axisLineColor: '#2E2E2E',
  2518. title: '功率:(kwh)',
  2519. titleFontColor: 'silver'
  2520. }
  2521. ],
  2522. disabled: true,
  2523. gridColor: '#2E2E2E',
  2524. splitNumber: 4,
  2525. gridType: 'solid',
  2526. dashLength: 8,
  2527. showTitle: 'true',
  2528. format: val => {
  2529. return val.toFixed(0) + '元';
  2530. }
  2531. },
  2532. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2533. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2534. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2535. extra: {
  2536. line: {
  2537. type: 'line',
  2538. width: '1'
  2539. }
  2540. }
  2541. });
  2542. },
  2543. showWindStationCardLineA2(canvasId, chartData) {
  2544. var _self = this;
  2545. canvaLineB2 = new uCharts({
  2546. $this: _self,
  2547. canvasId: canvasId,
  2548. type: 'line',
  2549. fontSize: 11,
  2550. legend: {
  2551. show: true,
  2552. position: 'top',
  2553. float: 'right',
  2554. fontColor: 'silver',
  2555. itemGap: '9',
  2556. itemWidth: '3'
  2557. },
  2558. dataLabel: false,
  2559. dataPointShape: false,
  2560. background: '#FFFFFF',
  2561. pixelRatio: _self.windStationCardPixelRatio,
  2562. categories: chartData.categories,
  2563. series: chartData.series,
  2564. animation: true,
  2565. xAxis: {
  2566. disableGrid: true,
  2567. type: 'grid',
  2568. gridColor: 'silver',
  2569. fontColor: 'silver',
  2570. gridType: 'solid',
  2571. gridColor: '#2E2E2E',
  2572. axisLineColor: '#2E2E2E',
  2573. labelCount: '3'
  2574. // itemCount:"3"
  2575. },
  2576. yAxis: {
  2577. data: [{
  2578. type: 'value',
  2579. fontColor: 'silver',
  2580. disabled: false, //y轴轴线
  2581. min: 0,
  2582. max: 40,
  2583. position: 'left',
  2584. axisLineColor: '#2E2E2E',
  2585. title: ' 风速:(m/s)',
  2586. titleFontColor: 'silver'
  2587. },
  2588. {
  2589. fontColor: 'silver',
  2590. disabled: false, //y轴轴线
  2591. min: 0,
  2592. max: 40,
  2593. position: 'right',
  2594. axisLineColor: '#2E2E2E',
  2595. title: '功率:(kwh)',
  2596. titleFontColor: 'silver'
  2597. }
  2598. ],
  2599. disabled: true,
  2600. gridColor: '#2E2E2E',
  2601. splitNumber: 4,
  2602. gridType: 'solid',
  2603. dashLength: 8,
  2604. showTitle: 'true',
  2605. format: val => {
  2606. return val.toFixed(0) + '元';
  2607. }
  2608. },
  2609. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2610. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2611. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2612. extra: {
  2613. line: {
  2614. type: 'line',
  2615. width: '1'
  2616. }
  2617. }
  2618. });
  2619. },
  2620. showWindStationCardLineA3(canvasId, chartData) {
  2621. var _self = this;
  2622. canvaLineB3 = new uCharts({
  2623. $this: _self,
  2624. canvasId: canvasId,
  2625. type: 'line',
  2626. fontSize: 11,
  2627. legend: {
  2628. show: true,
  2629. position: 'top',
  2630. float: 'right',
  2631. fontColor: 'silver',
  2632. itemGap: '9',
  2633. itemWidth: '3'
  2634. },
  2635. dataLabel: false,
  2636. dataPointShape: false,
  2637. background: '#FFFFFF',
  2638. pixelRatio: _self.windStationCardPixelRatio,
  2639. categories: chartData.categories,
  2640. series: chartData.series,
  2641. animation: true,
  2642. xAxis: {
  2643. disableGrid: true,
  2644. type: 'grid',
  2645. gridColor: 'silver',
  2646. fontColor: 'silver',
  2647. gridType: 'solid',
  2648. gridColor: '#2E2E2E',
  2649. axisLineColor: '#2E2E2E',
  2650. labelCount: '3'
  2651. // itemCount:"3"
  2652. },
  2653. yAxis: {
  2654. data: [{
  2655. type: 'value',
  2656. fontColor: 'silver',
  2657. disabled: false, //y轴轴线
  2658. min: 0,
  2659. max: 40,
  2660. position: 'left',
  2661. axisLineColor: '#2E2E2E',
  2662. title: ' 风速:(m/s)',
  2663. titleFontColor: 'silver'
  2664. },
  2665. {
  2666. fontColor: 'silver',
  2667. disabled: false, //y轴轴线
  2668. min: 0,
  2669. max: 40,
  2670. position: 'right',
  2671. axisLineColor: '#2E2E2E',
  2672. title: '功率:(kwh)',
  2673. titleFontColor: 'silver'
  2674. }
  2675. ],
  2676. disabled: true,
  2677. gridColor: '#2E2E2E',
  2678. splitNumber: 4,
  2679. gridType: 'solid',
  2680. dashLength: 8,
  2681. showTitle: 'true',
  2682. format: val => {
  2683. return val.toFixed(0) + '元';
  2684. }
  2685. },
  2686. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2687. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2688. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2689. extra: {
  2690. line: {
  2691. type: 'line',
  2692. width: '1'
  2693. }
  2694. }
  2695. });
  2696. },
  2697. showWindStationCardLineA4(canvasId, chartData) {
  2698. var _self = this;
  2699. canvaLineB4 = new uCharts({
  2700. $this: _self,
  2701. canvasId: canvasId,
  2702. type: 'line',
  2703. fontSize: 11,
  2704. legend: {
  2705. show: true,
  2706. position: 'top',
  2707. float: 'right',
  2708. fontColor: 'silver',
  2709. itemGap: '9',
  2710. itemWidth: '3'
  2711. },
  2712. dataLabel: false,
  2713. dataPointShape: false,
  2714. background: '#FFFFFF',
  2715. pixelRatio: _self.windStationCardPixelRatio,
  2716. categories: chartData.categories,
  2717. series: chartData.series,
  2718. animation: true,
  2719. xAxis: {
  2720. disableGrid: true,
  2721. type: 'grid',
  2722. gridColor: 'silver',
  2723. fontColor: 'silver',
  2724. gridType: 'solid',
  2725. gridColor: '#2E2E2E',
  2726. axisLineColor: '#2E2E2E',
  2727. labelCount: '3'
  2728. // itemCount:"3"
  2729. },
  2730. yAxis: {
  2731. data: [{
  2732. type: 'value',
  2733. fontColor: 'silver',
  2734. disabled: false, //y轴轴线
  2735. min: 0,
  2736. max: 40,
  2737. position: 'left',
  2738. axisLineColor: '#2E2E2E',
  2739. title: ' 风速:(m/s)',
  2740. titleFontColor: 'silver'
  2741. },
  2742. {
  2743. fontColor: 'silver',
  2744. disabled: false, //y轴轴线
  2745. min: 0,
  2746. max: 40,
  2747. position: 'right',
  2748. axisLineColor: '#2E2E2E',
  2749. title: '功率:(kwh)',
  2750. titleFontColor: 'silver'
  2751. }
  2752. ],
  2753. disabled: true,
  2754. gridColor: '#2E2E2E',
  2755. splitNumber: 4,
  2756. gridType: 'solid',
  2757. dashLength: 8,
  2758. showTitle: 'true',
  2759. format: val => {
  2760. return val.toFixed(0) + '元';
  2761. }
  2762. },
  2763. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2764. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2765. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2766. extra: {
  2767. line: {
  2768. type: 'line',
  2769. width: '1'
  2770. }
  2771. }
  2772. });
  2773. },
  2774. showWindStationCardLineA5(canvasId, chartData) {
  2775. var _self = this;
  2776. canvaLineB5 = new uCharts({
  2777. $this: _self,
  2778. canvasId: canvasId,
  2779. type: 'line',
  2780. fontSize: 11,
  2781. legend: {
  2782. show: true,
  2783. position: 'top',
  2784. float: 'right',
  2785. fontColor: 'silver',
  2786. itemGap: '9',
  2787. itemWidth: '3'
  2788. },
  2789. dataLabel: false,
  2790. dataPointShape: false,
  2791. background: '#FFFFFF',
  2792. pixelRatio: _self.windStationCardPixelRatio,
  2793. categories: chartData.categories,
  2794. series: chartData.series,
  2795. animation: true,
  2796. xAxis: {
  2797. disableGrid: true,
  2798. type: 'grid',
  2799. gridColor: 'silver',
  2800. fontColor: 'silver',
  2801. gridType: 'solid',
  2802. gridColor: '#2E2E2E',
  2803. axisLineColor: '#2E2E2E',
  2804. labelCount: '3'
  2805. // itemCount:"3"
  2806. },
  2807. yAxis: {
  2808. data: [{
  2809. type: 'value',
  2810. fontColor: 'silver',
  2811. disabled: false, //y轴轴线
  2812. min: 0,
  2813. max: 40,
  2814. position: 'left',
  2815. axisLineColor: '#2E2E2E',
  2816. title: ' 风速:(m/s)',
  2817. titleFontColor: 'silver'
  2818. },
  2819. {
  2820. fontColor: 'silver',
  2821. disabled: false, //y轴轴线
  2822. min: 0,
  2823. max: 40,
  2824. position: 'right',
  2825. axisLineColor: '#2E2E2E',
  2826. title: '功率:(kwh)',
  2827. titleFontColor: 'silver'
  2828. }
  2829. ],
  2830. disabled: true,
  2831. gridColor: '#2E2E2E',
  2832. splitNumber: 4,
  2833. gridType: 'solid',
  2834. dashLength: 8,
  2835. showTitle: 'true',
  2836. format: val => {
  2837. return val.toFixed(0) + '元';
  2838. }
  2839. },
  2840. width: _self.windStationCardCWidth * _self.windStationCardPixelRatio,
  2841. height: _self.windStationCardCHeight * _self.windStationCardPixelRatio,
  2842. padding: [10, 0, 0, 0], //画布填充边距,顺序为上右下左,同css,但必须4位
  2843. extra: {
  2844. line: {
  2845. type: 'line',
  2846. width: '1'
  2847. }
  2848. }
  2849. });
  2850. }
  2851. }
  2852. };
  2853. </script>
  2854. <style>
  2855. .textSmail {
  2856. font-size: 12px;
  2857. transform: scale(0.8);
  2858. }
  2859. .speedPowerDiagram {
  2860. width: 100px;
  2861. height: 30px;
  2862. user-select: text;
  2863. -webkit-user-select: text;
  2864. -moz-user-select: text;
  2865. -ms-user-select: text;
  2866. color: silver;
  2867. float: left;
  2868. margin-top: 18px;
  2869. margin-left: 9px;
  2870. font-size: 11px;
  2871. }
  2872. .monthlyUtilizationHours {
  2873. width: 160px;
  2874. height: 30px;
  2875. margin-top: 20px;
  2876. /* background-color: #161616; */
  2877. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2878. color: silver;
  2879. margin-left: 9px;
  2880. text-align: center;
  2881. padding-top: 7px;
  2882. font-size: 12px;
  2883. }
  2884. .yearlyUtilizationHours {
  2885. width: 160px;
  2886. height: 30px;
  2887. margin-top: 10px;
  2888. /* background-color: #161616; */
  2889. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2890. color: silver;
  2891. margin-left: 9px;
  2892. text-align: center;
  2893. padding-top: 7px;
  2894. font-size: 12px;
  2895. }
  2896. .comprehensiveServicePowerConsumptionRate {
  2897. width: 160px;
  2898. height: 30px;
  2899. /* margin-top: 10px; */
  2900. /* background-color: #161616; */
  2901. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2902. color: silver;
  2903. margin-left: 200px;
  2904. margin-top: -70px;
  2905. text-align: center;
  2906. padding-top: 7px;
  2907. font-size: 12px;
  2908. float: left;
  2909. }
  2910. .equipmentAvailability {
  2911. width: 160px;
  2912. height: 30px;
  2913. /* margin-top: 10px; */
  2914. /* background-color: #161616; */
  2915. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2916. color: silver;
  2917. margin-left: 200px;
  2918. margin-top: -30px;
  2919. text-align: center;
  2920. padding-top: 7px;
  2921. font-size: 12px;
  2922. float: left;
  2923. }
  2924. .sulfurDioxideEmissionReduction {
  2925. width: 160px;
  2926. height: 30px;
  2927. /* margin-top: 10px; */
  2928. /* background-color: #161616; */
  2929. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2930. color: silver;
  2931. margin-left: 380px;
  2932. margin-top: -70px;
  2933. text-align: center;
  2934. padding-top: 7px;
  2935. font-size: 12px;
  2936. float: left;
  2937. }
  2938. .carbonDioxideReduction {
  2939. width: 160px;
  2940. height: 30px;
  2941. /* margin-top: 10px; */
  2942. /* background-color: #161616; */
  2943. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2944. color: silver;
  2945. margin-left: 380px;
  2946. margin-top: -30px;
  2947. text-align: center;
  2948. padding-top: 7px;
  2949. font-size: 12px;
  2950. float: left;
  2951. }
  2952. .waterSaving {
  2953. width: 160px;
  2954. height: 30px;
  2955. /* margin-top: 10px; */
  2956. /* background-color: #161616; */
  2957. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2958. color: silver;
  2959. margin-left: 560px;
  2960. margin-top: -70px;
  2961. text-align: center;
  2962. padding-top: 7px;
  2963. font-size: 12px;
  2964. float: left;
  2965. }
  2966. .saveStandardCoal {
  2967. width: 160px;
  2968. height: 30px;
  2969. /* margin-top: 10px; */
  2970. /* background-color: #161616; */
  2971. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2972. color: silver;
  2973. margin-left: 560px;
  2974. margin-top: -30px;
  2975. text-align: center;
  2976. padding-top: 7px;
  2977. font-size: 12px;
  2978. float: left;
  2979. }
  2980. .mttr {
  2981. width: 160px;
  2982. height: 30px;
  2983. /* margin-top: 10px; */
  2984. /* background-color: #161616; */
  2985. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  2986. color: silver;
  2987. margin-left: 740px;
  2988. margin-top: -70px;
  2989. text-align: center;
  2990. padding-top: 7px;
  2991. font-size: 12px;
  2992. float: left;
  2993. }
  2994. .mtbf {
  2995. width: 160px;
  2996. height: 30px;
  2997. /* margin-top: 10px; */
  2998. /* background-color: #161616; */
  2999. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3000. color: silver;
  3001. margin-left: 740px;
  3002. margin-top: -30px;
  3003. text-align: center;
  3004. padding-top: 7px;
  3005. font-size: 12px;
  3006. float: left;
  3007. }
  3008. .horizontalSlider {
  3009. white-space: nowrap;
  3010. width: 100%;
  3011. height: 100px;
  3012. background-color: #242424;
  3013. clear: both;
  3014. /* margin-top: 540px; */
  3015. }
  3016. .slide {
  3017. width: 920px;
  3018. height: 100px;
  3019. background-color: #242424;
  3020. }
  3021. .qiun-charts {
  3022. width: 750upx;
  3023. height: 400upx;
  3024. }
  3025. .charts {
  3026. width: 750upx;
  3027. height: 400upx;
  3028. }
  3029. .uchartTitle {
  3030. position: absolute;
  3031. left: 9px;
  3032. top: 605px;
  3033. user-select: text;
  3034. -webkit-user-select: text;
  3035. -moz-user-select: text;
  3036. -ms-user-select: text;
  3037. color: silver;
  3038. font-size: 12px;
  3039. }
  3040. .Histogram {
  3041. width: 100%;
  3042. height: 300px;
  3043. background-color: #242424;
  3044. margin-top: 10px;
  3045. float: left;
  3046. }
  3047. .HistogramTitle {
  3048. width: calc(100% - 9px);
  3049. height: 30px;
  3050. line-height: 30px;
  3051. font-size: 11px;
  3052. color: silver;
  3053. margin-left: 9px;
  3054. }
  3055. .lineChart {
  3056. width: 100%;
  3057. height: 225px;
  3058. background-color: #242424;
  3059. margin-top: 10px;
  3060. float: left;
  3061. }
  3062. body {
  3063. font-family: '方正兰亭细黑_GBK';
  3064. font-size: 20px;
  3065. color: silver;
  3066. background: #000;
  3067. }
  3068. @font-face {
  3069. font-family: '方正兰亭细黑_GBK';
  3070. src: url(../../static/fzltxh.TTF);
  3071. }
  3072. page {
  3073. background-color: #1f1f1f;
  3074. font-family: '方正兰亭细黑_GBK';
  3075. overflow-x: hidden;
  3076. }
  3077. .top {
  3078. width: 100%;
  3079. height: 130upx;
  3080. padding-top: 5%;
  3081. background-color: #1f1f1f;
  3082. position: fixed;
  3083. top: 0px;
  3084. left: 0px;
  3085. z-index: 100;
  3086. }
  3087. .threeLine {
  3088. width: 50px;
  3089. height: 45px;
  3090. float: left;
  3091. }
  3092. .text {
  3093. width: calc(100% - 100px);
  3094. height: 45px;
  3095. float: left;
  3096. user-select: text;
  3097. -webkit-user-select: text;
  3098. -moz-user-select: text;
  3099. -ms-user-select: text;
  3100. color: silver;
  3101. line-height: 45px;
  3102. margin-top: 11px;
  3103. font-size: 18px;
  3104. }
  3105. .notice {
  3106. width: 50px;
  3107. height: 45px;
  3108. float: left;
  3109. margin-left: -60%;
  3110. margin-top: 6%;
  3111. }
  3112. .plus {
  3113. width: 30px;
  3114. height: 45px;
  3115. float: right;
  3116. color: white;
  3117. font-size: 35px;
  3118. line-height: 45px;
  3119. text-align: right;
  3120. margin-right: 2.5%;
  3121. }
  3122. .textWindpowerstation {
  3123. width: 180px;
  3124. height: 45px;
  3125. float: left;
  3126. text-align: center;
  3127. margin-left: 18px;
  3128. }
  3129. .time {
  3130. clear: both;
  3131. background-color: #242424;
  3132. width: 100%;
  3133. height: 30px;
  3134. /* float: left; */
  3135. }
  3136. .timeimageshizhong {
  3137. width: 30px;
  3138. height: 20px;
  3139. margin-top: 5px;
  3140. float: left;
  3141. }
  3142. .timeText {
  3143. width: 62%;
  3144. height: 30px;
  3145. float: left;
  3146. line-height: 30px;
  3147. font-size: 15px;
  3148. margin-left: 15px;
  3149. user-select: text;
  3150. -webkit-user-select: text;
  3151. -moz-user-select: text;
  3152. -ms-user-select: text;
  3153. color: silver;
  3154. }
  3155. .timeIcon {
  3156. width: 25px;
  3157. height: 30px;
  3158. float: right;
  3159. margin-right: 2.5%;
  3160. /* margin-left: 5px; */
  3161. }
  3162. .timeIconImage {
  3163. width: 100%;
  3164. height: 25px;
  3165. margin-top: 1px;
  3166. }
  3167. .timeIconText {
  3168. width: 100%;
  3169. height: 25px;
  3170. text-align: center;
  3171. font-size: 12px;
  3172. }
  3173. .cardinstallgreenSecurity {
  3174. margin-left: 9px;
  3175. margin-top: 9px;
  3176. margin-bottom: 9px;
  3177. width: 30%;
  3178. height: 78px;
  3179. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3180. border-radius: 5px;
  3181. float: left;
  3182. /* font-family: "STKaiti"; */
  3183. }
  3184. .cardinstalltitle {
  3185. width: 100%;
  3186. height: 40px;
  3187. text-align: center;
  3188. user-select: text;
  3189. -webkit-user-select: text;
  3190. -moz-user-select: text;
  3191. -ms-user-select: text;
  3192. font-size: 14px;
  3193. color: silver;
  3194. line-height: 40px;
  3195. float: left;
  3196. }
  3197. .cardinstallnumber {
  3198. /* font-weight: bold; */
  3199. width: 100%;
  3200. height: 40px;
  3201. text-align: center;
  3202. user-select: text;
  3203. -webkit-user-select: text;
  3204. -moz-user-select: text;
  3205. -ms-user-select: text;
  3206. color: silver;
  3207. font-size: 16px;
  3208. /* color: #449618; */
  3209. line-height: 40px;
  3210. }
  3211. .cardinstallgreenEquipment {
  3212. margin-right: 11px;
  3213. margin-top: 10px;
  3214. width: 30%;
  3215. height: 78px;
  3216. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3217. border-radius: 5px;
  3218. float: right;
  3219. /* font-family: "STKaiti"; */
  3220. }
  3221. .cardinstallgreen {
  3222. margin-left: 9px;
  3223. width: 30%;
  3224. height: 78px;
  3225. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3226. border-radius: 5px;
  3227. float: left;
  3228. }
  3229. .cardinstallblue {
  3230. margin-top: 9px;
  3231. margin-left: 9px;
  3232. width: 30%;
  3233. height: 78px;
  3234. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  3235. border-radius: 5px;
  3236. float: left;
  3237. }
  3238. .cardinstallblueright {
  3239. margin-right: 11px;
  3240. margin-top: 10px;
  3241. width: 30%;
  3242. height: 78px;
  3243. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(10, 82, 156, 0.2) 100%);
  3244. border-radius: 5px;
  3245. float: right;
  3246. }
  3247. .cardinstalltitlegreen {
  3248. width: 100%;
  3249. height: 25px;
  3250. text-align: center;
  3251. /* margin-left: 37px; */
  3252. user-select: text;
  3253. -webkit-user-select: text;
  3254. -moz-user-select: text;
  3255. -ms-user-select: text;
  3256. font-size: 14px;
  3257. color: silver;
  3258. line-height: 25px;
  3259. /* float: left; */
  3260. }
  3261. .cardinstallnumbergreen {
  3262. width: 100%;
  3263. height: 25px;
  3264. text-align: center;
  3265. user-select: text;
  3266. -webkit-user-select: text;
  3267. -moz-user-select: text;
  3268. -ms-user-select: text;
  3269. font-size: 20px;
  3270. color: white;
  3271. /* color: #449618; */
  3272. line-height: 25px;
  3273. float: left;
  3274. }
  3275. .cardinstallnumbergreenmin {
  3276. margin-left: 2px;
  3277. width: 55%;
  3278. height: 20px;
  3279. user-select: text;
  3280. -webkit-user-select: text;
  3281. -moz-user-select: text;
  3282. -ms-user-select: text;
  3283. font-size: 12px;
  3284. color: silver;
  3285. /* color: #449618; */
  3286. float: left;
  3287. }
  3288. .cardinstallnumbergreenmax {
  3289. /* font-weight: bold; */
  3290. margin-right: 2px;
  3291. width: 40%;
  3292. height: 20px;
  3293. user-select: text;
  3294. -webkit-user-select: text;
  3295. -moz-user-select: text;
  3296. -ms-user-select: text;
  3297. font-size: 12px;
  3298. color: silver;
  3299. /* color: #449618; */
  3300. float: right;
  3301. }
  3302. .greenMinText {
  3303. line-height: 20px;
  3304. float: left;
  3305. margin-left: 40px;
  3306. }
  3307. .greenMaxText {
  3308. line-height: 20px;
  3309. float: left;
  3310. }
  3311. .cardinstallnumberred {
  3312. width: 100%;
  3313. height: 25px;
  3314. text-align: center;
  3315. user-select: text;
  3316. -webkit-user-select: text;
  3317. -moz-user-select: text;
  3318. -ms-user-select: text;
  3319. font-size: 20px;
  3320. color: white;
  3321. /* color: #E93131; */
  3322. line-height: 25px;
  3323. float: left;
  3324. }
  3325. .cardinstallnumberredmin {
  3326. margin-left: 2px;
  3327. width: 45%;
  3328. height: 20px;
  3329. user-select: text;
  3330. -webkit-user-select: text;
  3331. -moz-user-select: text;
  3332. -ms-user-select: text;
  3333. font-size: 12px;
  3334. color: silver;
  3335. /* color: #E93131; */
  3336. float: left;
  3337. }
  3338. .cardinstallnumberredmax {
  3339. margin-right: 2px;
  3340. width: 45%;
  3341. height: 20px;
  3342. user-select: text;
  3343. -webkit-user-select: text;
  3344. -moz-user-select: text;
  3345. -ms-user-select: text;
  3346. font-size: 12px;
  3347. color: silver;
  3348. /* color: #E93131; */
  3349. float: right;
  3350. }
  3351. .redMinText {
  3352. line-height: 20px;
  3353. float: right;
  3354. }
  3355. .redMaxText {
  3356. line-height: 20px;
  3357. float: left;
  3358. }
  3359. .electricityCard {
  3360. width: 100%;
  3361. height: 100px;
  3362. background-color: #242424;
  3363. /* height: 185px; */
  3364. float: left;
  3365. margin-top: 20rpx;
  3366. }
  3367. .speedPower {
  3368. width: 100%;
  3369. height: 180px;
  3370. background-color: #242424;
  3371. float: left;
  3372. margin-top: 20rpx;
  3373. }
  3374. .cardinstallgreenSpeed {
  3375. margin-top: 9px;
  3376. margin-left: 9px;
  3377. width: 46%;
  3378. height: 78px;
  3379. background: -webkit-linear-gradient(top, rgba(133, 145, 132, 0.1) 0%, rgba(66, 130, 61, 0.2) 100%);
  3380. border-radius: 5px;
  3381. float: left;
  3382. }
  3383. .cardinstallredSpeed {
  3384. margin-top: 8px;
  3385. margin-left: 2.5%;
  3386. width: 46%;
  3387. height: 78px;
  3388. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3389. border-radius: 5px;
  3390. float: left;
  3391. }
  3392. .cardinstalltitleRed {
  3393. width: 100%;
  3394. height: 25px;
  3395. text-align: center;
  3396. /* margin-left: 45px; */
  3397. user-select: text;
  3398. -webkit-user-select: text;
  3399. -moz-user-select: text;
  3400. -ms-user-select: text;
  3401. font-size: 14px;
  3402. color: silver;
  3403. line-height: 25px;
  3404. /* float: left; */
  3405. }
  3406. .textWhitekuangSpeed {
  3407. color: silver;
  3408. float: right;
  3409. margin-right: 70px;
  3410. }
  3411. .textWhitekuang {
  3412. color: silver;
  3413. float: right;
  3414. margin-right: 85px;
  3415. }
  3416. .textWhite {
  3417. color: white;
  3418. float: right;
  3419. font-size: 10px;
  3420. margin-right:3.5%;
  3421. transform: scale(0.975);
  3422. /* text-align: right; */
  3423. }
  3424. .textWhite2 {
  3425. color: white;
  3426. float: right;
  3427. margin-right: 15%;
  3428. transform: scale(0.975);
  3429. }
  3430. .textWhite3 {
  3431. color: white;
  3432. float: right;
  3433. margin-right: 3.5%;
  3434. transform: scale(0.975);
  3435. }
  3436. .textSilver {
  3437. user-select: text;
  3438. -webkit-user-select: text;
  3439. -moz-user-select: text;
  3440. -ms-user-select: text;
  3441. color: silver;
  3442. float: left;
  3443. }
  3444. .InformationCard {
  3445. margin-top: 0px;
  3446. width: 100%;
  3447. height: 70px;
  3448. background-color: #242424;
  3449. float: left;
  3450. }
  3451. .informationCardAll {
  3452. width: 95%;
  3453. margin-left: 2.5%;
  3454. margin-top: 10px;
  3455. height: 60px;
  3456. float: left;
  3457. }
  3458. .informationCardTextOne {
  3459. width: 100%;
  3460. height: 35px;
  3461. float: left;
  3462. margin-top: -10px;
  3463. }
  3464. .informationCardTextNo1 {
  3465. /* margin-left: 2%; */
  3466. width: 115px;
  3467. height: 35px;
  3468. font-size: 10px;
  3469. line-height: 35px;
  3470. font-size: 10px;
  3471. transform: scale(0.975);
  3472. float: left;
  3473. }
  3474. .informationCardText {
  3475. /* margin-left: 2%; */
  3476. width: 115px;
  3477. height: 35px;
  3478. line-height: 35px;
  3479. user-select: text;
  3480. -webkit-user-select: text;
  3481. -moz-user-select: text;
  3482. -ms-user-select: text;
  3483. color: silver;
  3484. font-size: 10px;
  3485. transform: scale(0.975);
  3486. float: left;
  3487. }
  3488. .informationCardTextzj {
  3489. /* margin-left: 43%; */
  3490. width: 115px;
  3491. height: 35px;
  3492. line-height: 35px;
  3493. user-select: text;
  3494. -webkit-user-select: text;
  3495. -moz-user-select: text;
  3496. -ms-user-select: text;
  3497. color: silver;
  3498. font-size: 10px;
  3499. transform: scale(0.975);
  3500. float: right;
  3501. }
  3502. .informationCardTextTwo {
  3503. width: 100%;
  3504. height: 35px;
  3505. float: left;
  3506. user-select: text;
  3507. -webkit-user-select: text;
  3508. -moz-user-select: text;
  3509. -ms-user-select: text;
  3510. color: silver;
  3511. }
  3512. .informationCardText2 {
  3513. /* margin-left: 6%; */
  3514. margin-left: calc(50% - 190px);
  3515. width: 115px;
  3516. height: 35px;
  3517. font-size: 10px;
  3518. line-height: 35px;
  3519. transform: scale(0.975);
  3520. float: left;
  3521. }
  3522. .informationCardText3 {
  3523. /* margin-left: 6%; */
  3524. margin-left: calc(50% - 170px);
  3525. width: 130px;
  3526. height: 35px;
  3527. font-size: 10px;
  3528. line-height: 35px;
  3529. transform: scale(0.975);
  3530. float: left;
  3531. }
  3532. .AccessCardNumber {
  3533. width: 30%;
  3534. height: 35px;
  3535. float: left;
  3536. line-height: 35px;
  3537. text-align: center;
  3538. font-size: 12px;
  3539. user-select: text;
  3540. -webkit-user-select: text;
  3541. -moz-user-select: text;
  3542. -ms-user-select: text;
  3543. color: silver;
  3544. }
  3545. .AccessCardText {
  3546. width: 30%;
  3547. height: 35px;
  3548. float: left;
  3549. line-height: 35px;
  3550. text-align: center;
  3551. font-size: 12px;
  3552. user-select: text;
  3553. -webkit-user-select: text;
  3554. -moz-user-select: text;
  3555. -ms-user-select: text;
  3556. color: silver;
  3557. }
  3558. .AccessCardimage {
  3559. margin-left: 5px;
  3560. width: 30%;
  3561. height: 35px;
  3562. float: left;
  3563. }
  3564. .interfaceCard {
  3565. margin-top: 10px;
  3566. width: 100%;
  3567. height: 85px;
  3568. background-color: #242424;
  3569. float: left;
  3570. }
  3571. .interfaceCardSmallTop {
  3572. margin-top: 5px;
  3573. width: 100%;
  3574. height: 35px;
  3575. float: left;
  3576. }
  3577. .interfaceCardSmall {
  3578. margin-left: 8px;
  3579. width: 30%;
  3580. height: 35px;
  3581. float: left;
  3582. }
  3583. .progressBarLeftText {
  3584. user-select: text;
  3585. -webkit-user-select: text;
  3586. -moz-user-select: text;
  3587. -ms-user-select: text;
  3588. color: silver;
  3589. font-size: 12px;
  3590. float: left;
  3591. margin-left: 5px;
  3592. }
  3593. .progressBarRightText {
  3594. user-select: text;
  3595. -webkit-user-select: text;
  3596. -moz-user-select: text;
  3597. -ms-user-select: text;
  3598. color: silver;
  3599. font-size: 12px;
  3600. float: right;
  3601. margin-right: 5px;
  3602. }
  3603. .progressBar {
  3604. margin-top: 10px;
  3605. width: 100%;
  3606. height: 115px;
  3607. background-color: #242424;
  3608. float: left;
  3609. }
  3610. .progressBarAll {
  3611. margin-left: 9px;
  3612. width: calc(100% - 5%);
  3613. height: 60px;
  3614. float: left;
  3615. }
  3616. .progressBarText {
  3617. text-align: center;
  3618. width: 50%;
  3619. height: 30px;
  3620. line-height: 30px;
  3621. user-select: text;
  3622. -webkit-user-select: text;
  3623. -moz-user-select: text;
  3624. -ms-user-select: text;
  3625. color: silver;
  3626. font-size: 12px;
  3627. float: left;
  3628. }
  3629. .progressBarOne {
  3630. width: 100%;
  3631. height: 30px;
  3632. float: left;
  3633. }
  3634. .progressBarLeft {
  3635. width: 25%;
  3636. height: 30px;
  3637. line-height: 30px;
  3638. user-select: text;
  3639. -webkit-user-select: text;
  3640. -moz-user-select: text;
  3641. -ms-user-select: text;
  3642. color: silver;
  3643. font-size: 12px;
  3644. float: left;
  3645. }
  3646. .progressBarRight {
  3647. width: 25%;
  3648. height: 30px;
  3649. user-select: text;
  3650. -webkit-user-select: text;
  3651. -moz-user-select: text;
  3652. -ms-user-select: text;
  3653. color: silver;
  3654. font-size: 12px;
  3655. line-height: 30px;
  3656. float: right;
  3657. }
  3658. /* 风电场卡片css */
  3659. .windStation {
  3660. clear: both;
  3661. width: calc(100% - 18px);
  3662. margin-left: 9px;
  3663. height: 320px;
  3664. color: silver;
  3665. margin-bottom: 120px;
  3666. /* background-color: #242424; */
  3667. }
  3668. .scrollWindStationCard {
  3669. white-space: nowrap;
  3670. }
  3671. .windStationCardContainer {
  3672. width: 1295px;
  3673. height: 350px;
  3674. margin-top: 10px;
  3675. }
  3676. .windStationCard {
  3677. width: 250px;
  3678. height: 100%;
  3679. margin-right: 9px;
  3680. float: left;
  3681. background-color: #242424;
  3682. }
  3683. .windStationTitle {
  3684. width: 90%;
  3685. height: 30px;
  3686. line-height: 30px;
  3687. font-size: 12px;
  3688. margin-left: 5px;
  3689. }
  3690. .powerAndSpeedContainer {
  3691. width: 100%;
  3692. height: 90px;
  3693. }
  3694. .powerAndSpeedRed {
  3695. margin-top: 8px;
  3696. margin-left: 2%;
  3697. margin-right: 2%;
  3698. width: 46%;
  3699. height: 37px;
  3700. line-height: 37px;
  3701. text-align: left;
  3702. font-size: 12px;
  3703. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  3704. border-radius: 5px;
  3705. float: left;
  3706. }
  3707. .powerAndSpeedRedText {
  3708. margin-left: 2%;
  3709. float: left;
  3710. }
  3711. .powerAndSpeedRed span {
  3712. color: white;
  3713. }
  3714. .HQChart {
  3715. width: 100%;
  3716. height: 100px;
  3717. margin-top: 8px;
  3718. }
  3719. .UChartContainer {
  3720. width: 250px;
  3721. height: 150px;
  3722. margin-top: 8px;
  3723. }
  3724. .windStationUChart {
  3725. width: 250px;
  3726. height: 150px;
  3727. position: absolute;
  3728. }
  3729. .windStationQiun-charts {
  3730. width: 250px;
  3731. height: 150px;
  3732. background-color: #242424;
  3733. }
  3734. .windStationCharts {
  3735. width: 250px;
  3736. height: 150px;
  3737. background-color: #242424;
  3738. }
  3739. .UChartTitle {
  3740. position: relative;
  3741. top: -2px;
  3742. left: 2px;
  3743. font-size: 12px;
  3744. width: 100px;
  3745. }
  3746. .xTime {
  3747. position: relative;
  3748. top: 90px;
  3749. left: 222px;
  3750. font-size: 8px;
  3751. width: 30px;
  3752. }
  3753. .fanStatusContainer {
  3754. width: 100%;
  3755. height: 70px;
  3756. }
  3757. .fanStatus {
  3758. width: 32%;
  3759. height: 30px;
  3760. margin-top: 5px;
  3761. margin-right: 0.5%;
  3762. margin-left: 0.5%;
  3763. float: left;
  3764. }
  3765. .statusIcon {
  3766. width: 22px;
  3767. height: 30px;
  3768. margin-left: 3px;
  3769. float: left;
  3770. }
  3771. .fanStatus {
  3772. height: 30px;
  3773. line-height: 30px;
  3774. font-size: 12px;
  3775. }
  3776. .AffectedPowerText {
  3777. width: 55px;
  3778. height: 25px;
  3779. float: left;
  3780. margin-left: 2px;
  3781. line-height: 25px;
  3782. }
  3783. .AffectedPower {
  3784. width: 24.5%;
  3785. height: 25px;
  3786. float: left;
  3787. }
  3788. .performancePowerText {
  3789. width: 55px;
  3790. height: 25px;
  3791. float: left;
  3792. margin-left: 2px;
  3793. line-height: 25px;
  3794. }
  3795. .performancePower {
  3796. width: 24.5%;
  3797. height: 25px;
  3798. float: left;
  3799. }
  3800. .limitedPowerText {
  3801. width: 55px;
  3802. height: 25px;
  3803. float: left;
  3804. margin-left: 2px;
  3805. line-height: 25px;
  3806. }
  3807. .limitedPower {
  3808. margin-left: 1.2%;
  3809. width: 24.5%;
  3810. height: 25px;
  3811. float: left;
  3812. }
  3813. .maintenancePowerText {
  3814. width: 55px;
  3815. height: 25px;
  3816. float: left;
  3817. margin-left: 2px;
  3818. line-height: 25px;
  3819. }
  3820. .maintenancePower {
  3821. margin-left: 2px;
  3822. width: 24.5%;
  3823. height: 25px;
  3824. float: left;
  3825. }
  3826. .faultPowerText {
  3827. width: 55px;
  3828. height: 25px;
  3829. float: left;
  3830. margin-left: 2px;
  3831. line-height: 25px;
  3832. }
  3833. .faultPower {
  3834. width: 24.5%;
  3835. height: 25px;
  3836. float: left;
  3837. }
  3838. .powerGenerationText {
  3839. width: 55px;
  3840. height: 25px;
  3841. float: left;
  3842. margin-left: 2px;
  3843. line-height: 25px;
  3844. }
  3845. .powerGeneration {
  3846. width: 24.5%;
  3847. height: 25px;
  3848. float: left;
  3849. }
  3850. .directGenerationText {
  3851. width: 55px;
  3852. height: 25px;
  3853. float: left;
  3854. margin-left: 2px;
  3855. line-height: 25px;
  3856. }
  3857. .directGeneration {
  3858. width: 24.5%;
  3859. height: 25px;
  3860. float: left;
  3861. margin-left: 1.3%;
  3862. }
  3863. .choice {
  3864. width: 100%;
  3865. height: 80px;
  3866. float: left;
  3867. user-select: text;
  3868. -webkit-user-select: text;
  3869. -moz-user-select: text;
  3870. -ms-user-select: text;
  3871. color: silver;
  3872. font-size: 12px;
  3873. }
  3874. .speedPowerDiagram {
  3875. width: 100px;
  3876. height: 30px;
  3877. user-select: text;
  3878. -webkit-user-select: text;
  3879. -moz-user-select: text;
  3880. -ms-user-select: text;
  3881. color: silver;
  3882. float: left;
  3883. margin-top: 18px;
  3884. margin-left: 9px;
  3885. font-size: 11px;
  3886. }
  3887. .qiun-chart {
  3888. margin-top: 50px;
  3889. width: 750upx;
  3890. height: 400upx;
  3891. }
  3892. .chart {
  3893. width: 750upx;
  3894. height: 400upx;
  3895. }
  3896. .DrawerPage {
  3897. position: fixed;
  3898. width: 100vw;
  3899. height: 100vh;
  3900. left: 0vw;
  3901. background-color: #1f1f1f;
  3902. transition: all 0.4s;
  3903. }
  3904. .DrawerPage.show {
  3905. transform: scale(0.9, 0.9);
  3906. left: 85vw;
  3907. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  3908. transform-origin: 0;
  3909. }
  3910. .DrawerWindow {
  3911. position: absolute;
  3912. width: 85vw;
  3913. height: 100vh;
  3914. left: 0;
  3915. top: 0;
  3916. transform: scale(0.9, 0.9) translateX(-100%);
  3917. opacity: 0;
  3918. pointer-events: none;
  3919. transition: all 0.4s;
  3920. padding: 100upx 0;
  3921. }
  3922. .DrawerWindow.show {
  3923. transform: scale(1, 1) translateX(0%);
  3924. opacity: 1;
  3925. pointer-events: all;
  3926. }
  3927. .DrawerClose {
  3928. position: absolute;
  3929. width: 40vw;
  3930. height: 100vh;
  3931. right: 0;
  3932. top: 0;
  3933. color: transparent;
  3934. padding-bottom: 30upx;
  3935. display: flex;
  3936. align-items: flex-end;
  3937. justify-content: center;
  3938. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  3939. letter-spacing: 5px;
  3940. font-size: 50upx;
  3941. opacity: 0;
  3942. pointer-events: none;
  3943. transition: all 0.4s;
  3944. }
  3945. .DrawerClose.show {
  3946. opacity: 1;
  3947. pointer-events: all;
  3948. width: 15vw;
  3949. color: #fff;
  3950. }
  3951. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  3952. width: 64upx;
  3953. height: 64upx;
  3954. line-height: 64upx;
  3955. margin: 0;
  3956. display: inline-block;
  3957. }
  3958. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  3959. margin: 0;
  3960. }
  3961. .DrawerPage .nav {
  3962. flex: 1;
  3963. }
  3964. .DrawerPage .nav .cu-item.cur {
  3965. border-bottom: 0;
  3966. position: relative;
  3967. }
  3968. .DrawerPage .nav .cu-item.cur::after {
  3969. content: '';
  3970. width: 10upx;
  3971. height: 10upx;
  3972. background-color: currentColor;
  3973. position: absolute;
  3974. bottom: 10upx;
  3975. border-radius: 10upx;
  3976. left: 0;
  3977. right: 0;
  3978. margin: auto;
  3979. }
  3980. .DrawerPage .cu-bar.tabbar .action {
  3981. flex: initial;
  3982. }
  3983. </style>