Index.vue 129 KB

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