Index.vue 135 KB

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