Index.vue 135 KB

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