Index.vue 129 KB

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