1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787 |
- <template>
- <view>
- <u-popup v-model="popShow1" duration="10" mode="bottom" border-radius="16">
-
- <view class="popShow1">
- <view class="title">
- {{companyInfo.name}}
- </view>
- <view class="popShowList">
- <scroll-view scroll-y="true" style="height: 500rpx;" >
-
- <view class="popShowItem" v-for="(item,i) in childCompanyList.list"
- @click="change3(i)"
- :class="{
- index:item.id==childInfo.id
- }" >
-
- <view class="online" :class="'online'+item.online">
- <view class="name">{{item.name}}</view>
- <view class="onlineChild" v-if="item.online==0"><view class="dot"></view>离线</view>
- <view class="onlineChild" v-if="item.online==1"><view class="dot"></view>在线</view>
- <view class="onlineChild" v-if="item.online==2">【多表】</view>
- <view class="onlineChild" v-if="item.online==3">【无表】</view>
- </view>
-
- <u-icon name="arrow-right" size="24" color="#838383"></u-icon>
-
-
- </view>
- <u-divider nonetext="暂无数据" border-color="#CFD2D5">已经到底了</u-divider>
-
- </scroll-view>
- </view>
- </view>
-
- </u-popup>
- <u-picker-select title="日期选择" :maskCloseAble="true" v-model="tabsFrom.show2" :defaultTime="tabsFrom.show2Index" :endYear="endYear"
- mode="time" :params="params" @confirm="selector2confirm" @cancel="selector2cancel"
- @reset="selector2reset">
- </u-picker-select>
- <!--
- <u-select title="" v-model="tabsFrom.show1" :defaultValue="[current2]"
- :list="childCompanyList.list" value-name="id" label-name="name"
- @confirm="selector1confirm" >
- </u-select>
- -->
- <!-- 导航栏 -->
- <view class="navbar">
- <view class="title" v-if="companyInfotype==4">
- 能源管理
- <span style="padding-left: 4px;" >
- |
- </span>
- <span style="padding-left: 4px;" >
- {{datacompanyInfo.name}}
- </span>
- </view>
- <view class="title" v-else>
- 能源管理
- <span style="padding-left: 4px;" v-if="companyList.length>1&¤t!=0">
- |
- </span>
- <span style="padding-left: 4px;" v-if="companyList.length>1&¤t!=0">
-
- <template v-if="kWhList.length==1">
- {{kWhList[0].name}}
- </template>
- <template v-else>
- <!-- {{childList.length==1? : childInfo.name}} -->
- {{companyInfo.name}}
- </template>
- </span>
- <span style="padding-left: 4px;" v-if="companyList.length==1">
- |
- </span>
- <span style="padding-left: 4px;" v-if="companyList.length==1">
-
- <template v-if="kWhList.length==1">
- {{kWhList[0].name}}
- </template>
- <template v-else>
- {{childList.length==1?companyInfo.name : childInfo.name}}
- </template>
- </span>
-
- </view>
- </view>
- <view class="tabs-box tabs-box2" v-if="companyInfotype==4&&readingMeterNum&&monitorMeterNum" >
-
- <view class="tabs2" :class="'tabs-len-2'"
- :style="{width: '100%', }">
- <u-tabs-one :gutter="32"
- :list="companyInfotypeList" :is-scroll="false" active-color="#fff" inactive-color="#CCE2FF"
- bg-color="#1677FF" :current="1" @change="companyInfotypeChange"></u-tabs-one>
- </view>
-
- </view>
-
- <!-- 标签 -->
- <view class="tabs-box" v-else >
-
- <view class="tabs" :class="'tabs-len-'+merchantList1.length" v-show="companyList.length>1"
- :style="{width: companyList.length>3 ? '' : '100%'}">
- <u-tabs-one v-if="utabsone"
- :list="merchantList1" :is-scroll="false" active-color="#fff" inactive-color="#CCE2FF"
- bg-color="#1677FF" :current="current" @change="change"></u-tabs-one>
- </view>
- <view class="more" @click="popShow=true" v-if="companyList.length >= 4">
- <u-icon name="arrow-down" color="#fff" size="40"></u-icon>
- </view>
- </view>
- <!-- 标签弹出层 -->
- <u-popup v-model="popShow" duration="10" mode="top" :negative-top="88" border-radius="16">
- <view class="popup-tabs">
- <view class="tabs">
- <u-tabs
- :list="merchantList1" :is-scroll="false" :current="current" @change="change"></u-tabs>
- </view>
- <view class="more">
- <u-icon name="arrow-up" color="#777777" size="40" @click="popShow=false"></u-icon>
- </view>
- </view>
- <view class="tabs-options">
- <view class="item" v-for="(item, index) in merchantList2" :key="index"
- @click="merchantChange(item,index)">
- {{item.name}}
- </view>
- </view>
- </u-popup>
-
- <view class="main electronicMonitoring-123" v-show="kWhList.length==1" style="padding:32rpx 0;">
-
- <view class="electronicMonitoring-title3"
- v-if="companyType==5"
- v-show="childList&&childList.length>1" >
- <view style="padding:0 32rpx;">
- <u-tabs-one height="60" v-if="utabsone&&childList&&childList.length"
- :currentIndexBl="true" bg-color="#f2f4f6" key="B" :showBar="false"
- :list="childList" :is-scroll="false" :current="current2" @change="change2"></u-tabs-one>
-
- </view>
-
- </view>
- <view class="electronicMonitoring-title"
- @click="titleCk"
- v-else-if="childList&&childList.length>0" >
-
- <view class="view">
-
- {{childListName}}
- <template v-if="kWhList&&kWhList.length==1">
- <view class=" view dotview online0" v-if="!kWhList[0].online">
- <view class="dot online0"></view>
- <view class="text online0">离线</view>
- </view>
-
- <view class="view dotview online1" v-else>
- <view class="dot online1"></view>
- <view class="text online1">在线</view>
- </view>
- </template>
- <template v-if="kWhList&&kWhList.length>1">
-
-
- <view class="dotview view " >
- <!-- <view class="dot on-line"></view> -->
- <view class="text online2">【多表】</view>
- </view>
- </template>
- </view>
- <view v-show="childList.length>1"
- style="color: #777777;font-size: 24rpx;display: flex;align-items: center;"
- class="view">
- 切换<u-icon name="arrow-down" color="#777777"></u-icon>
- </view>
- </view>
- <electronicMonitoring v-show="kWhList.length" :ref="'refMyEm'+companyId"></electronicMonitoring>
-
- <u-divider :isnone="kWhList.length==0" nonetext="暂无数据" border-color="#CFD2D5">已经到底了</u-divider>
-
- </view>
-
- <view class="main current-123" v-show="(kWhList.length!=1)">
-
- <view class="electronicMonitoring-title"
- @click="titleCk"
- v-if="companyType==1"
- v-show="childList&&childList.length>0" >
-
-
- <view class="view">
-
- {{childListName}}
- <template v-if="kWhList&&kWhList.length>1">
-
-
- <view class="dotview view " >
- <!-- <view class="dot on-line"></view> -->
- <view class="text online2">【多表】</view>
- </view>
- </template>
- </view>
- <view v-show="childList.length>1"
- style="color: #777777;font-size: 24rpx;display: flex;align-items: center;"
- class="view">
- 切换<u-icon name="arrow-down" color="#777777"></u-icon>
- </view>
- </view>
- <view class="electronicMonitoring-title2"
- v-else
- v-show="childList&&childList.length>1" >
-
- <u-tabs-one height="60" :showBar="false" v-if="utabsone&&childList&&childList.length"
- :currentIndexBl="true" bg-color="#f2f4f6" key="A"
- :list="childList" :is-scroll="false" :current="current2" @change="change2"></u-tabs-one>
- </view>
-
-
- <!-- 电表运行情况 -->
- <view class="statistics-1 statistics point-meteroperation" v-show="anchorpointShow('point-meteroperation')">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 设备运行情况
- </view>
- <view class="check-all" @click="toEquipmentConditionMonitoring">
- 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <view class="item">
- <view v-if="alarmsForm.okNum||alarmsForm.errorNum">
- <u-circle-progress width="88" borderWidth="12" active-color="#2979ff" :percent="(alarmsForm.okNum/(alarmsForm.okNum+alarmsForm.errorNum)*100)">
- <view class="u-progress-content">
- <image class="img" style="width: 32rpx;height: 32rpx;margin-top: 8rpx;"
- src="@/assets/img/statistics/fa5-bolt-fas.svg"></image>
- </view>
- </u-circle-progress>
- </view>
- <!-- 累计 -->
- <view class="total">
-
- <view class="total2">
- 运行电表
-
- </view>
- <view class="total1">
-
- <view class="normal">
- 正常 <span style="color:#19be6b;margin: 0 8rpx;">{{alarmsForm.okNum}}</span> 台
- </view>
- <view class="abnormal">
- 异常 <span style="color:red;margin: 0 8rpx;">{{alarmsForm.errorNum}}</span> 台
- </view>
- </view>
- <view class="total2" v-if="false">
- 本月累计触发告警 <text class="total-number">{{alarmsForm.errorMonthNum}}</text> 次
- </view>
- </view>
- </view>
- <view class="item" v-if="alarmsFormWater.okNum||alarmsFormWater.errorNum">
- <view>
- <u-circle-progress width="88" borderWidth="12" active-color="#00B962" :percent="alarmsFormWater.okNum/(alarmsFormWater.okNum+alarmsFormWater.errorNum)*100">
- <view class="u-progress-content">
- <image class="img" style="width: 32rpx;height: 32rpx;margin-top: 8rpx;"
- src="@/assets/img/statistics/fas fa-tint.svg"></image>
- </view>
- </u-circle-progress>
- </view>
- <!-- 累计 -->
- <view class="total">
-
- <view class="total2">
- 运行水表
-
- </view>
- <view class="total1">
-
- <view class="normal">
- 正常 <span style="color:#19be6b;margin: 0 8rpx;">{{alarmsFormWater.okNum}}</span> 台
- </view>
- <view class="abnormal">
- 异常 <span style="color:red;margin: 0 8rpx;">{{alarmsFormWater.errorNum}}</span> 台
- </view>
- </view>
- <view class="total2" v-if="false">
- 本月累计触发告警 <text class="total-number">{{alarmsForm.errorMonthNum}}</text> 次
-
-
- </view>
- </view>
- </view>
- </view>
-
- <view class="" v-show="companyId==''&&companyList.length>1&&datacompanyInfo.type=='2'">
- <!-- 电表运行情况 -->
- <view class="statistics-1 statistics" >
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- <!-- 在用园区与产权单位 -->
- 园区&产权单位
- </view>
-
- </view>
- <view class=" contractList" >
- <view class="contractListClass" v-for="(item,i) in companyList" :key="i"
- @click="change(i+1)">
- <view class="contractListClass1">
- {{item.name}}
- </view>
- <view class="contractListClass2">
- <u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
-
-
- </view>
- </view>
- </view>
-
- <view class="point-PlatformRevenue" v-show="anchorpointShow('point-PlatformRevenue')" >
- <!-- 电表运行情况 -->
- <view class="statistics-1 statistics statistics-3" >
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- {{!companyId?'平台':'园区营增'}}收入(元)
- </view>
-
- </view>
- <view class=" contractList" >
- <view class="content"
- style="display: flex;justify-content: center;margin: 40px 0;"
- v-if="!getPlatformRevenueReady">
-
- <div class="uni-toast" style="display: flex;font-size: 60rpx; color: rgb(192, 196, 204);" >
- <i class="uni-icon_toast uni-loading"
- style="
- width: 80rpx;
- height: 80rpx;
-
- "
- ></i><p class="uni-toast__content"> </p>加载中...</div>
-
- </view>
- <!-- -->
- <view class="contractListClass" v-for="(item,i) in platformRevenueList"
-
- @click="gotoUrl('/pages/platformRevenueStatistics/platformRevenueStatistics?id='+item.companyId+'&companyId='+companyId)"
- :key="i"
- >
- <view class="contractListClass1">
- <view class="class1">{{item.companyName}}</view>
- <view class="class2">{{month}}月预计收入</view>
- </view>
- <view class="contractListClass2">
- {{item.totalFee}}
- <u-icon name="arrow-right" style="margin-left: 12rpx;" size="24" color="#838383"></u-icon>
- </view>
- </view>
-
-
- </view>
- </view>
- </view>
-
- <view class="">
- <!-- 电表运行情况 -->
- <view class="statistics-1 statistics point-TenantManagement" v-show="anchorpointShow('point-TenantManagement')">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 租户管理预警
- </view>
-
- </view>
- <view class=" contractList">
- <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=1&companyId='+companyId)">
- <view class="contractListClass1">
- <image class="img" src="@/assets/img/riLine-wallet-2-line.svg"></image>
- 账户余额不足 <span class="tenantListNum">{{tenantListNum1}}</span> 家
-
- </view>
- <view class="contractListClass2">
- <u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=2&companyId='+companyId)">
- <view class="contractListClass1">
- <!-- <image class="img" src="@/assets/img/riLine-time-line2.svg"></image> -->
- <u-icon name="warning" class="img" size="32" color="#ef8132"></u-icon>
- 租赁费催缴提醒 <span class="tenantListNum">{{tenantListNum2}}</span> 家<span>(即将到期)</span>
-
- </view>
- <view class="contractListClass2">
- <u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <view class="contractListClass" @click="gotoUrl('/pages/tenantList/contractList?query=3&companyId='+companyId)">
- <view class="contractListClass1">
- <image class="img" src="@/assets/img/riLine-time-line2.svg"></image>
- 租赁费催缴提醒 <span class="tenantListNum">{{tenantListNum3}}</span> 家<span>(已到期)</span>
-
- </view>
- <view class="contractListClass2">
- <u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- <!-- 统计2 异常告警记录 -->
- <view class="statistics-2 statistics point-Poweroutagereminder" v-show="anchorpointShow('point-Poweroutagereminder')" >
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 租户断电提醒
- </view>
- <view class="check-all" @click="gotoUrl('/pages/tenantList/remindList?id='+companyId)">
- 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <u-divider :isnone="abnormalRecordsList.length==0" nonetext="无记录"
- border-color="#fff"></u-divider>
- <!-- 异常 -->
- <view class="abnormal-item" v-for="(item,index) in abnormalRecordsList"
- :key="index"
-
- >
- <!-- @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)"
- -->
- <view class="item-title">
-
- <view class="name">
- <span v-if="item.level==1" class="level level1 ">一级</span>
- <span v-if="item.level==2" class="level level2">二级</span>
-
- {{item.content}}
- </view>
- <view class="date" style="display: flex; justify-content: space-between;margin-top: 4rpx;">
- <view>{{item.title}}</view>
- <view>{{item.createTime}}</view>
-
- </view>
- </view>
-
- </view>
-
-
- </view>
- <!-- 能源管理 -->
- <view v-show="companyId" class="statistics statistics-manage">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 能源管理
- </view>
- <view class="check-all switchWater" >
-
- <view class="s s1" :class="showAccountantWater?'':'index'"
- @click="showAccountantWaterBtn(0)" >电表</view>
- <view class="s s2" :class="showAccountantWater?'index':''"
- @click="showAccountantWaterBtn(1)" >水表</view>
- </view>
- </view>
-
- <!-- 图表 -->
- <view class="chart" v-show="getHomePageManageshowLoading">
- <view class="u-subsection">
- <u-subsection :list="list" :current="homePageManageType" @change="sectionChange"
- font-size="24"></u-subsection>
- <view style="margin-top: 18rpx;" v-if="homePageManageType==5&&tabsFrom.show2Text">
- 指定时间:{{tabsFrom.show2Text}}
- </view>
- </view>
- <view class="incomeExpenditureClass point-Accountant" v-show="anchorpointShow('point-Accountant')" >
- <view class="incomeRow" >
- <view class="isOpenClass" @click="isOpen1=!isOpen1">
- <view class="isOpenClass1">收支统计</view>
- <view class="isOpenClass2">
- <span class="span">{{isOpen1?'收起':'展开'}}</span>
- <u-icon name="arrow-up" color="rgb(164 156 156)" v-show="isOpen1" size="24"></u-icon>
- <u-icon name="arrow-down" color="rgb(164 156 156)" v-show="!isOpen1" size="24"></u-icon>
-
- </view>
- </view>
- </view>
- <view class="incomeRow" v-show="isOpen1" >
- <view class="income1">
- <view class="income11">
- 收入(元)
- </view>
- <view class="income12">
- {{incomeExpenditureObj.incomeFee}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 支出(元)
- </view>
- <view class="income12">
- {{incomeExpenditureObj.expenditureFee}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 营收(元)
- </view>
- <view class="income12" :style="incomeExpenditureObj.differenceFee>=0?'color:red':'color:#52b8aa'">
- {{incomeExpenditureObj.differenceFee>0?'+':''}}{{incomeExpenditureObj.differenceFee}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- </view>
- <view class="incomeRow" v-show="isOpen1" >
- <view class="income1">
- <view class="income11">
- 增收电量(度)
- </view>
- <view class="income12">
- {{incomeExpenditureObj.addKwh}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 减支电量(度)
- </view>
- <view class="income12">
- {{incomeExpenditureObj.minusKwh}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 增收减支电量(度)
- </view>
- <view class="income12" :style="incomeExpenditureObj.addMinusKwh>=0?'color:red':'color:#52b8aa'">
- {{incomeExpenditureObj.addMinusKwh>0?'+':''}}{{incomeExpenditureObj.addMinusKwh}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- </view>
- <view class="incomeRow" v-show="isOpen1" >
- <view class="income1">
- <view class="income11">
- 营增收入(元)
- </view>
- <view class="income12" style="color:#52b8aa">
- {{incomeExpenditureObj.totalFee}}
- <span class="income121" v-if="!incomeExpenditureObj.id">加载中...</span>
- </view>
- </view>
- <view class="income2">
- <view class="income11">
- 代缴费收入(元)
- </view>
- <view class="income12" style="color:#52b8aa">
- <view class="income12-1"></view>
- <view class="income12-2">
- {{incomeExpenditureObj.proxyFee}}
-
- </view>
- <view class="income12-3" @click="gotoUrl('/pages/proxy/proxyList?companyId='+companyId+'&sp='+childInfo.sp+'&type='+homePageManageType)" >
- <u>查看明细</u>
- </view>
-
- </view>
- </view>
-
- </view>
-
- </view>
-
- <view class="incomeExpenditureClass point-Accountant" v-show="anchorpointShow('point-Accountant-water')" >
- <view class="incomeRow" >
- <view class="isOpenClass" @click="isOpen1=!isOpen1">
- <view class="isOpenClass1">收支统计</view>
- <view class="isOpenClass2">
- <span class="span">{{isOpen1?'收起':'展开'}}</span>
- <u-icon name="arrow-up" color="rgb(164 156 156)" v-show="isOpen1" size="24"></u-icon>
- <u-icon name="arrow-down" color="rgb(164 156 156)" v-show="!isOpen1" size="24"></u-icon>
-
- </view>
- </view>
- </view>
- <view class="incomeRow" v-show="isOpen1">
- <view class="income1">
- <view class="income11">
- 收入(元)
- </view>
- <view class="income12">
- {{incomeExpenditureObjWater.incomeFee}}
- <span class="income121" v-if="!incomeExpenditureObjWater.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 支出(元)
- </view>
- <view class="income12">
- {{incomeExpenditureObjWater.expenditureFee}}
- <span class="income121" v-if="!incomeExpenditureObjWater.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 营收(元)
- </view>
- <view class="income12" :style="incomeExpenditureObjWater.differenceFee>=0?'color:red':'color:#52b8aa'">
- {{incomeExpenditureObjWater.differenceFee>0?'+':''}}{{incomeExpenditureObjWater.differenceFee}}
- <span class="income121" v-if="!incomeExpenditureObjWater.id">加载中...</span>
- </view>
- </view>
- </view>
- <view class="incomeRow" v-show="isOpen1">
-
- <view class="income1" style="width: 200%;">
- <view class="income11">
- 节约用水量(立方米)
- </view>
- <view class="income12" :style="incomeExpenditureObjWater.saveWaterConsumption>=0?'color:red':'color:#52b8aa'">
- {{incomeExpenditureObjWater.saveWaterConsumption}}
- <span class="income121" v-if="!incomeExpenditureObjWater.id">加载中...</span>
- </view>
- </view>
- <view class="income1">
- <view class="income11">
- 节约水费(元)
- </view>
- <view class="income12">
- {{incomeExpenditureObjWater.saveWaterFee}}
- <span class="income121" v-if="!incomeExpenditureObjWater.id">加载中...</span>
- </view>
- </view>
-
- </view>
-
-
- </view>
-
-
- <view v-show="anchorpointShow('point-Electricityconsumptiontype')" >
- <view class="incomeRow" >
- <view class="isOpenClass point-Electricityconsumptiontype" @click="isOpen2=!isOpen2">
- <view class="isOpenClass1">用电类型</view>
- <view class="isOpenClass2">
- <span class="span">{{isOpen2?'收起':'展开'}}</span>
- <u-icon name="arrow-up" color="rgb(164 156 156)" v-show="isOpen2" size="24"></u-icon>
- <u-icon name="arrow-down" color="rgb(164 156 156)" v-show="!isOpen2" size="24"></u-icon>
-
- </view>
- </view>
- </view>
- <view class="chat-box " v-show="isOpen2" id="barEcharts-statistics" >
-
- </view>
- </view>
-
- </view>
- <view class="search" v-if="false">
- <view class="switch">
- <u-switch v-model="checked" size="40"></u-switch><text>只看离线表</text>
- </view>
- <view class="search-box">
- <input type="text" placeholder="请输入电表查询" />
- <view class="icon">
- <img src="@/assets/img/riLine-search-line 1.svg" alt="" />
- </view>
- </view>
- </view>
- <view class="incomeExpenditureClass">
-
-
- <view class="incomeRow" >
- <view class="isOpenClass point-devices"
- v-show="anchorpointShow('point-devices')"
- style="padding: 0 16px;" v-if="getHomePageManageReady||getHomePageManageReadyWater" @click="isOpen3=!isOpen3">
- <view class="isOpenClass1">设备列表</view>
- <view class="isOpenClass2"><span class="span">{{isOpen3?'收起':'展开'}}</span>
- <u-icon name="arrow-up" color="rgb(164 156 156)" v-show="isOpen3" size="24"></u-icon>
- <u-icon name="arrow-down" color="rgb(164 156 156)" v-show="!isOpen3" size="24"></u-icon>
-
- </view>
- </view>
- </view>
- </view>
- <!-- 电表统计 -->
- <Tree-Body :meterList="meterList" ref="mytree"
- class="" v-show="isOpen3&&anchorpointShow('point-devices')&&!this.showAccountantWater"
- :showPark="homePageManageObj.showPark"
- :childInfo="childInfo"
- @query="getHomePageManageChildMeterA"
- v-if="getHomePageManageReady"
- :role="codes&&codes.indexOf('switch')!=-1"
- @switchBtn="switchBtnApi"
- ></Tree-Body>
-
- <Tree-Body-Water :meterList="meterListWater" ref="mytreeWater"
- class="" v-show="isOpen3&&anchorpointShow('point-devices')&&this.showAccountantWater"
- :showPark="homePageManageObjWater.showPark"
- :childInfo="childInfo"
- @query="getHomePageManageChildMeterB"
- v-if="getHomePageManageReadyWater"
- :role="codes&&codes.indexOf('switch')!=-1"
- @switchBtn="switchBtnApiWater"
- ></Tree-Body-Water>
-
- <template v-if="anchorpointShow('point-devices')">
-
-
- <view class="content"
- style="display: flex;justify-content: center;margin: 40px 0;"
- v-if="!getHomePageManageshowLoading">
-
- <div class="uni-toast" style="display: flex;font-size: 60rpx; color: rgb(192, 196, 204);" >
- <i class="uni-icon_toast uni-loading"
- style="
- width: 80rpx;
- height: 80rpx;
-
- "
- ></i><p class="uni-toast__content"> </p>加载中...</div>
-
- </view>
- <view class="content" v-else-if="getHomePageManageshowLoading&&(meterList.length == 0&&!showAccountantWater||meterListWater.length == 0&&showAccountantWater)">
- <u-divider :isnone="true" nonetext="无记录"
- border-color="#fff"></u-divider>
- </view>
- </template>
- </view>
-
- <!-- 用电量 -->
- <view class="statistics-e statistics" v-if="(!companyId)">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 用电量 (度)
- </view>
- <view class="check-all" @click="toEquipmentElectricity">
- 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <view class="content" style="display: flex;justify-content: center;margin: 40px 0;"
- v-if="getHomePageKwhshowLoading">
-
- <div class="uni-toast" style="display: flex;font-size: 60rpx; color: rgb(192, 196, 204);" >
- <i class="uni-icon_toast uni-loading"
- style="
- width: 80rpx;
- height: 80rpx;
-
- "
- ></i><p class="uni-toast__content"> </p>加载中...</div>
-
- </view>
- <view class="content" v-else-if="!getHomePageKwhshowLoading&&kWhListHome.length == 0">
- <u-divider :isnone="true" nonetext="无记录"
- border-color="#fff"></u-divider>
- </view>
-
- <view class="content" v-else >
- <view class="electricity">
- <view class="item" v-for="(item, index) in kWhListHome" :key="index"
- @click="toElectronicMonitoring(item)">
- <view class="item-content">
- <view class="equipment">
- <view class="equipment1 ">
- {{replaceLastTwoWords(item.name)}}
- </view>
- <view class="equipment2">
- {{item.installationAddressSimple}}
- </view>
- <view class="state" v-if="!item.online">
- <!-- <view class="dot off-line"></view> -->
- <view class="text">离线</view>
- </view>
- <view class="state state2" v-else>
- <!-- <view class="dot on-line"></view> -->
- <view class="text">在线</view>
- </view>
- </view>
- <view class="electricity">
- <view class="electricity-item electricity-item-day">
- <view class="date">
- 今日
- </view>
- <view class="number">
- {{item.thisDayKwh}}
- </view>
- </view>
- <view class="electricity-item">
- <view class="date">
- 本月
- </view>
- <view class="number">
- {{item.thisMonthKwh}}
- </view>
- </view>
- <view class="electricity-item">
- <view class="date">
- 上月
- </view>
- <view class="number">
- {{item.lastMonthKwh}}
- </view>
- </view>
- </view>
- </view>
- <view class="more">
- <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- <!-- 用电量 -->
- <view class="statistics-e statistics" v-if="(!companyId)&&kWhListHomeWater.length">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 用水量 (立方米)
- </view>
- <view class="check-all" @click="toEquipmentElectricityWater()">
- 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <view class="content" style="display: flex;justify-content: center;margin: 40px 0;"
- v-if="getHomePageKwhshowLoadingWater">
-
- <div class="uni-toast" style="display: flex;font-size: 60rpx; color: rgb(192, 196, 204);" >
- <i class="uni-icon_toast uni-loading"
- style="
- width: 80rpx;
- height: 80rpx;
-
- "
- ></i><p class="uni-toast__content"> </p>加载中...</div>
-
- </view>
- <view class="content" v-else-if="!getHomePageKwhshowLoadingWater&&kWhListHomeWater.length == 0">
- <u-divider :isnone="true" nonetext="无记录"
- border-color="#fff"></u-divider>
- </view>
-
- <view class="content" v-else >
- <view class="electricity">
-
- <view class="item" v-for="(item, index) in kWhListHomeWater" :key="index"
- @click="toElectronicMonitoringWater(item)">
- <view class="item-content">
- <view class="equipment">
- <view class="equipment1 ">
- {{replaceLastTwoWords(item.name)}}
- </view>
-
- <view class="equipment2">
- {{item.installationAddressSimple}}
- </view>
-
-
-
-
-
- <view class="state state2" v-if="item.online||item.transportType == 2">
- <!-- <view class="dot on-line"></view> -->
- <view class="text">在线</view>
- </view>
- <view class="state" v-else>
- <!-- <view class="dot off-line"></view> -->
- <view class="text">离线</view>
- </view>
-
- </view>
- <view class="electricity">
- <view class="electricity-item electricity-item-day">
-
- <view class="date">
- 今日
- </view>
- <view class="number">
- {{item.thisDayTotalConsumption}}
- </view>
- </view>
- <view class="electricity-item">
-
- <view class="date">
- 本月
- </view>
- <view class="number">
- {{item.thisMonthTotalConsumption}}
- </view>
- </view>
- <view class="electricity-item">
-
- <view class="date">
- 上月
- </view>
- <view class="number">
- {{item.lastMonthTotalConsumption}}
- </view>
- </view>
-
-
-
- </view>
- </view>
-
- <view class="more">
- <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
- </view>
- </view>
- </view>
-
- </view>
-
-
-
- </view>
-
- <!-- 异常设备排名 -->
- <view class="statistics statistics-ranking" v-if="false">
- <view class="title">
- <view class="icon">
- <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
- </view>
- <view class="text">
- 异常设备排名
- </view>
- <view class="check-all">
- 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
- </view>
- </view>
- <!-- 合计 -->
- <view class="total">
- 本年度共有<text> 42</text>次设备异常告警
- </view>
- <view class="ranking-main">
- <view class="item" v-for="(item,i) in 3" :key="i"
- @click="gotoUrl('/pages/equipmentDataMonitoring/electronicMonitoring?id='+'&name=')">
- <view class="ranking">
- 1
- </view>
- <view class="name">
- <view class="name1">
- 荆鹏软件园01
- </view>
- <view class="name2">
- 荆鹏集团
- </view>
- </view>
- <view class="time">
- 5次
- </view>
- </view>
- </view>
- <!-- 查看全部排名 -->
- <!-- <view class="check-all" @click="gotoUrl('/pages/abnormal/abnormalDeviceRanking')">
- 查看全部排名 <u-icon name="arrow-down" size="24" color="rgba(119,119,119,1)"></u-icon>
- </view> -->
- </view>
- <u-divider nonetext="暂无数据" border-color="#CFD2D5">已经到底了</u-divider>
-
- </view>
- <view class="anchorpoint" v-show="anchorpointListNum>3">
- <view class="point"
- v-for="(item,i) in anchorpointList" :key="i"
- @click="anchorpointCk(item)" v-show="anchorpointShow(item.key)"
- :class="{ index: anchorpointIndex==item.key }" v-html="anchorpointHtml(item.name)" >
-
- </view>
- </view>
- <energyCenterTabbar :current="0"></energyCenterTabbar>
- </view>
- </template>
- <script>
-
- import {
- parseUnixTime,
- beforeTimeStamp,
- getWeek,newDate
- } from '@/apis/utils'
- import energyCenterTabbar from '@/components/energyCenterTabbar.vue'
- import electronicMonitoring from '@/pages/equipmentDataMonitoring/electronicMonitoring.vue'
-
-
- import * as echarts from 'echarts';
-
- import * as API_water from '@/apis/pagejs/water.js'
-
- import * as API_index from '@/apis/pagejs/index.js'
- import * as API_tenantList from '@/apis/pagejs/tenantList.js'
-
- import * as API from '@/apis/pagejs/energyManage.js'
- import TreeBody from '@/components/tree/tree-body.vue';
- import TreeBodyWater from '@/components/treeWater/tree-body.vue';
-
- export default {
- components: {
- energyCenterTabbar,TreeBody,electronicMonitoring,TreeBodyWater
- },
- data() {
- return {
- abnormalRecordsList: [],
- queryDate: '',
-
- alarmsPercent: 0,
- alarmsForm: {
- okNum: 0,
- errorNum: 0,
- errorMonthNum: 0
- }, // 累计报警
- alarmsFormWater: {
- okNum: 0,
- errorNum: 0,
- errorMonthNum: 0
- }, // 累计报警
- companyId: '', // 商户ID
- pageIndexe: 1, // 设备数据检测
- totalPagee: 1,
- deviceList: [],
- pageIndexp: 1, // 用电量
- totalPagep: 1,
- kWhList: [],
- kWhListHome: [],
- kWhListHomeWater: [],
- codes: '', // 判断:reading用电量 detector设备数据检测
- merchantList1: [], // 商户
- merchantList2: [],
- companyListMain: [],
- companyList: [],
- datacompanyInfo:{},
- companyInfotypeCurrent:1,
- companyInfotypeList:[
- {
- name: '变压器巡检仪'
- },
- {
- name: '费控电表计量仪'
- }
- ],
- popShow: false,
- popShowtest: true,
- current: 0,
- current2: 0,
- myLineChart: null, // 图表
- myBarChart: null,
- myPieChart: null,
- intervalId: null, // 用于存储间隔ID
- intervalReady: false, // 用于存储间隔ID
- list: [{
- name: '上月',
- value: "2"
- },
- {
- name: '当月',
- value: "1"
- },
- {
- name: '今日',
- value: "4"
- }, {
- name: '当年',
- value: "3"
- }, {
- name: '合计',
- value: "0"
- },
- {
- name: '指定时间',
- value: "10"
- }
- ],
- checked: false,
- homePageManageType: 2,
- meterList: [],
- meterListWater: [],
- showPark:false,
- meterListShow:{},
- homePageManageObjWater:{},
- homePageManageObj: {
- chargeKwh: 0,
- lostKwh: 0,
- parkKwh: 0,
- freeKwh:0,
- publicKwh:0,
- },
- endYear: '',
- params: {
- year: true,
- month: true,
- day: false,
- hour: false,
- minute: false,
- second: false
- },
- value: '2',
- clickType: -1,
- tabsFrom: {
- show1: false,
- show1Index: 0,
- show2Index: '',
- show2: false,
- show1Text: "全部类型",
- show2Text: "",
-
- },
- getHomePageManageReady:false,
- getHomePageManageReadyWater:false,
- utabsone:true,
-
- incomeExpenditureObj:{},
- incomeExpenditureObjWater:{},
- getHomePageKwhshowLoading:false,
- getHomePageKwhshowLoadingWater:false,
- getHomePageManageshowLoading:false,
- companyInfotype:0,
- readingMeterNum:0, //计量仪
- monitorMeterNum:0, //巡检仪
- tenantListNum0:0,
- tenantListNum1:0,
- tenantListNum2:0,
- tenantListNum3:0,
- childList:[],
- childInfo:{},
- companyInfo:{},
- month:0,
- platformRevenueList:[],
- getPlatformRevenueReady:false,
- anchorpointIndex:"",
- anchorpointNum:0,
- isOpen1:true,
- isOpen2:true,
- isOpen3:true,
- showAccountantWater:false,
- anchorpointList:[
- {
- key:"point-meteroperation",name:"运行电表"
- },
- {
- key:"point-PlatformRevenue",name:"收入统计"
- },
-
- {
- key:"point-TenantManagement",name:"租户管理"
- },
- {
- key:"point-Poweroutagereminder",name:"断电提醒"
- },
- {
- key:"point-Accountant",name:"收支统计"
- }
- ,
- {
- key:"point-Accountant-water",name:"收支统计"
- },{
- key:"point-Electricityconsumptiontype",name:"用电类型"
- },{
- key:"point-devices",name:"设备列表"
- }
- ],
- childCompanyList:{
- id:"",
- list:[]
- },
- popShow1:false,
- userInfo:{},
- }
- },
- onLoad() {
- var date = new Date();
- var year = date.getFullYear();
- var month = date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
- this.month=date.getMonth() + 1
- this.endYear = new Date().getFullYear();
- this.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
- this.datacompanyInfo=this.carhelp.getPersonInfoPlus().companyInfo
- this.userInfo=this.carhelp.getPersonInfo()
-
- this.getfindByOpenId();
-
-
- },
- onReady() {
-
- },
- onUnload(){
- this.clearTimer(); // 组件销毁前清除定时器
-
- //console.log("组件销毁前清除定时器")
- },
-
- beforeDestroy() {
- this.clearTimer(); // 组件销毁前清除定时器
-
- //console.log("组件销毁前清除定时器")
- },
-
-
- onHide(){
- this.intervalReady=false
- this.clearTimer();
- },
- onShow(){
- // if(!this.intervalReady&&this.companyList.length>1){
- // this.startInterval();
- // }
- },
- computed:{
- anchorpointListNum(){
- var num=0;
- this.anchorpointList.forEach((item)=>{
- if(this.anchorpointShow(item.key)){
- num+=1;
- }
- })
- return num
- },
- incomeExpenditureBl(){
- //var bl=(this.childInfo.sp==1 ||this.childInfo.type!=4&&(this.childInfo.styleTemplate==1))&&!this.userInfo.authorizedMeterEnabled
- var bl=(this.childInfo.sp==1 ||this.childInfo.type!=4&&(this.childInfo.styleTemplate==1||true))&&!this.userInfo.authorizedMeterEnabled
-
- return bl;
- },
- childListName(){
- return this.childInfo.name;
- },
- companyType(){
-
- return this.companyInfo.type;
- }
- },
- onPageScroll(e) {
- this.anchorpointNum=e.scrollTop
-
- },
- methods: {
- showAccountantWaterBtn(bl){
- this.showAccountantWater=bl
- this.getHomePageManage(0,this.companyId)
- },
- anchorpointShow(key){
-
- if(this.childInfo.sp==1||this.companyId==''){
- if(key=='point-meteroperation'){
-
- return true
- }
- if(key=='point-PlatformRevenue'){
- return this.getPlatformRevenueBl()
- }
- if(key=='point-TenantManagement0'){
-
-
- return this.codes&&this.codes.indexOf('property')!=-1
- }
- if(key=='point-TenantManagement'){
-
-
- return (this.companyListMain.length==1||this.companyId)&&this.anchorpointShow('point-TenantManagement0')
- }
- if(key=='point-Poweroutagereminder'){
-
-
- return this.anchorpointShow('point-TenantManagement')&&(this.tenantListNum0)
- }
-
- }else{
- if(key=='point-Electricityconsumptiontype'){
- return this.incomeExpenditureBl&&this.childInfo.sp!=1&&!this.showAccountantWater
- }
-
- }
-
- if(this.companyId&&(this.kWhList.length!=1)){
-
- if(key=='point-Accountant'){
- //console.log("point-Accountantpoint-Accountantpoint-Accountantpoint-Accountant")
- return this.incomeExpenditureBl&&!this.showAccountantWater
- }
- if(key=='point-Accountant-water'){
- //console.log("point-Accountantpoint-Accountantpoint-Accountantpoint-Accountant")
- return this.incomeExpenditureBl&&this.showAccountantWater
- }
- if(this.childInfo.sp!=1){
-
- if(key=='point-devices'){
- return true
- //&&!this.showAccountantWater
- }
- }
- }
-
-
- return false
- },
- anchorpointHtml(str){
- if (!str || str.length === 0) {
- return str; // 如果字符串为空或未定义,则直接返回
- }
-
- let result = '';
- for (let i = 0; i < str.length; i += 2) {
- result += str.substr(i, 2) + (i < str.length - 2 ? '<br/>' : '');
- }
-
- return result;
- },
- anchorpointCk(item){
- this.anchorpointIndex=item.key
- //const info = uni.getSystemInfoSync();
- let that = this;
- uni.createSelectorQuery().select("."+item.key).boundingClientRect(function(res){//定位到你要的class的位置
- // console.log("标签获取====>",item.key+JSON.stringify(res),info.windowHeight)
- var num=that.anchorpointNum+res.top-70
- uni.pageScrollTo({
- scrollTop:num,
- duration: 300
- });
- }).exec()
- },
- titleCk() {
- if(this.childCompanyList.id==this.companyInfo.id){
- this.popShow1 = true
- }else{
- this.getChildCompanyList()
- }
-
- },
- getChildCompanyList(){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.childCompanyList({
- companyId:this.companyInfo.id
- }).then((response) => {
- uni.hideLoading();
- this.childCompanyList={
- id:this.companyInfo.id,
- list:response.data.companyInfoList
- }
- this.popShow1 = true
- //this.getTenantListReady=true
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- stateBl(timekey,day){
- var get=newDate(timekey)
- var time=new Date()
- if(!day){
-
- return time>get;
- }else{
-
- var get2=newDate(timekey)
- get2.setDate(get2.getDate() - day)
- //console.log(timekey)
- return get2<time&&get>time;
- }
- },
- selectTypeMethod(tenant,selectType){
- var selectType1=this.selectType;
- if(selectType){
- selectType1=selectType;
- }
-
- // if(){
-
- // }
- if(true){
- var bl=false;
- for(var j in tenant.tenantContractList){
-
-
- var tenant1=tenant.tenantContractList[j]
- ////console.log(tenant1.autoDeductFee)
- // if(tenant1.autoDeductFee!=true){
- // continue;
- // }
- if(selectType1==0){
-
- return true
- }
- if(selectType1==1){
- if(tenant1.autoDeductFee!=true){
- continue;
- }
- return tenant.balance<tenant.minBalance
- }
- for(var k in tenant1.contractItemList){
-
- var item=tenant1.contractItemList[k]
- ////console.log(item.prepaidEndTime)
-
- if(item.paymentMethod==1&&item.name!='电费'){
-
- if(selectType1==2){
- if(item.prepaidEndTime&&this.stateBl(item.prepaidEndTime,30)){
- bl=true;
- }
- }
- if(selectType1==3){
- if(item.prepaidEndTime&&this.stateBl(item.prepaidEndTime)){
- bl=true;
- }
- if(item.prepaidEndTime==null){
- bl=true;
- }
- }
-
- }
- }
-
- }
- return bl
- }
- },
- getTenantList(companyId){
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- this.tenantListNum1=0
- this.tenantListNum2=0
- this.tenantListNum3=0
- API_tenantList.tenantContractList({
- companyId:this.childInfo.id,
- queryParent:(this.childInfo.sp==1)?1:0
- }).then((response) => {
- uni.hideLoading();
-
- //this.getTenantListReady=true
- var tenantList=response.data.tenantInfoList;
- this.tenantListNum0=tenantList.length
-
- for(var i in tenantList){
- var obj=tenantList[i]
- if(this.selectTypeMethod(obj,1)){
- this.tenantListNum1++;
- }
-
-
- if(this.selectTypeMethod(obj,2)){
- this.tenantListNum2++;
- }
- if(this.selectTypeMethod(obj,3)){
- this.tenantListNum3++;
- }
- }
- this.getAbnormalAlarmRecord(this.companyId);
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- //绑定权限
- getfindByOpenId() {
-
- API_index.findByOpenId({
- openId: this.carhelp.getOpenId()
- }).then((response) => {
-
- if(response.data&&response.data.companyInfo){
- this.datacompanyInfo=response.data.companyInfo
- this.companyInfotype = response.data.companyInfo.type;
- if(this.companyInfotype==4){
- this.getFindMeterList()
- }
-
-
- }
- if(response.data){
- var token = response ? response.data.token : '';
- this.carhelp.setPersonInfo(response.data.regUser );
-
- this.carhelp.setToken(token);
- this.carhelp.setPersonInfoPlus(response.data);
-
- this.codes =response.data.regUser.codes
-
-
- }
- this.userInfo=this.carhelp.getPersonInfo()
- this.getCompanyInfoList();
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getFindMeterList(){
-
- API.findMeterList().then((response) => {
- //readingMeterNum 计量仪 //monitorMeterNum 巡检仪
- this.readingMeterNum=response.data.readingMeterNum
- this.monitorMeterNum=response.data.monitorMeterNum
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- switchBtnApiMethodWater(node,key){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API_water.remoteSwitch({
- meterId:node.id,
- enabled:key
- }).then((res) => {
- uni.hideLoading();
- node.switchStatus=key
-
- }).catch(error => {
-
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- switchBtnApiMethod(node,key){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.remoteSwitch({
- meterId:node.id,
- enabled:key
- }).then((res) => {
- uni.hideLoading();
- node.switchStatus=key
-
- }).catch(error => {
-
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- switchBtnApi(node,key){
- uni.showModal({
- confirmColor:`${key?'#3CC51F':'red'}`,
- confirmText:`${key?'开启':'关闭'}`,
- content: `确认是否要"${key?'开启':'关闭'}"${this.replaceLastTwoWords(node.name)}`,
- title: "提示",
- success:res=> {
- if(res.confirm){
- this.switchBtnApiMethod(node,key);
- }
- }
- })
- //console.log(node,key)
- },
- switchBtnApiWater(node,key){
- uni.showModal({
- confirmColor:`${key?'#3CC51F':'red'}`,
- confirmText:`${key?'开启':'关闭'}`,
- content: `确认是否要"${key?'开启':'关闭'}"${this.replaceLastTwoWords(node.name)}`,
- title: "提示",
- success:res=> {
- if(res.confirm){
- this.switchBtnApiMethodWater(node,key);
- }
- }
- })
- //console.log(node,key)
- },
- getIncomeExpenditureWater(companyId){
- API_water.incomeExpenditure({
- //parentMeterId:item.id,
- queryDate:this.queryDate,
- companyId: companyId,
- type: this.list[this.homePageManageType].value,
- queryParent:this.childInfo.sp==1?1:0
- }).then((response) => {
-
- if(this.companyId!=companyId){
- return
- }
- this.incomeExpenditureObjWater=response.data
- this.incomeExpenditureObjWater.id=1
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getIncomeExpenditure(companyId){
-
- if(!(this.anchorpointShow('point-Accountant')||this.anchorpointShow('point-Accountant-water'))){
- return
- }
-
- API.incomeExpenditure({
- //parentMeterId:item.id,
- queryDate:this.queryDate,
- companyId: companyId,
- type: this.list[this.homePageManageType].value,
- queryParent:this.childInfo.sp==1?1:0
- }).then((response) => {
-
- if(this.companyId!=companyId){
- return
- }
- this.incomeExpenditureObj=response.data
- this.incomeExpenditureObj.id=1
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
-
-
- },
- // getHomePageManageChildMeter(item,bl,companyId) {
- // if(this.showAccountantWater){
- // this.getHomePageManageChildMeterB(item,bl,companyId)
- // }else{
- // this.getHomePageManageChildMeterA(item,bl,companyId)
- // }
- // },
- getHomePageManageChildMeterB(item,bl,companyId) {
- if(!this.anchorpointShow('point-devices')){
- return
- }
-
- if(!companyId){
- companyId=this.companyId
- }
- if(!bl){
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- }
-
- API_water.meterChildManage({
- parentMeterId:item.id,
- queryDate:this.queryDate,
- companyId: companyId,
- type: this.list[this.homePageManageType].value
- }).then((response) => {
- // if(!bl){
- // uni.hideLoading();
- // }
- // this.meterList = response.data.meterList;
- // if(!this.meterListShow.id){
- // this.meterListShow.id=1
- // this.recursionList(this.meterList)
- // }
- if(this.companyId!=companyId){
- return
- }
-
- var childMeterList=response.data.childMeterList
- item.childMeterList=childMeterList
-
-
- if(!bl){
- for(var i in childMeterList){
- var obj=childMeterList[i]
- this.getHomePageManageChildMeterB(obj,true,this.companyId)
- }
- }
-
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- // 设备数据监测
- getHomePageManageChildMeterA(item,bl,companyId) {
-
-
- if(!this.anchorpointShow('point-devices')){
- return
- }
-
- if(!companyId){
- companyId=this.companyId
- }
- if(!bl){
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- }
-
- API.homePageManageChildMeter({
- parentMeterId:item.id,
- queryDate:this.queryDate,
- companyId: companyId,
- type: this.list[this.homePageManageType].value
- }).then((response) => {
- // if(!bl){
- // uni.hideLoading();
- // }
- // this.meterList = response.data.meterList;
- // if(!this.meterListShow.id){
- // this.meterListShow.id=1
- // this.recursionList(this.meterList)
- // }
- if(this.companyId!=companyId){
- return
- }
-
- var childMeterList=response.data.childMeterList
- item.childMeterList=childMeterList
-
-
- if(!bl){
- for(var i in childMeterList){
- var obj=childMeterList[i]
- this.getHomePageManageChildMeterA(obj,true,this.companyId)
- }
- }
-
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- recursionList(list){
- if(list){
- for(var i in list){
- var obj=list[i]
-
- this.meterListShow[obj.id]=false
- this.recursionList(obj.childMeterList)
- }
- }
- },
- ifBtnShow(item){
- return this.meterListShow[item.id]
- },
- showBtn(item){
- var key=this.meterListShow[item.id];
-
- this.$set(this.meterListShow,item.id,!key)
- //console.log("showBtn,",key)
-
- this.$forceUpdate()
- },
- selector2reset(e) {
- //console.log(e)
- this.tabsFrom.show2Text = '全部时间'
- this.tabsFrom.show2Index = '';
-
- if (e.day) {
- this.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
-
- this.getHomePageManage(0,this.companyId);
- } else {
-
- this.homePageManageType = this.clickType;
- if (this.homePageManageType != 5) {
- this.list[5].name = '指定时间';
- }
- this.getHomePageManage(0,this.companyId);
- }
- },
- selector2cancel() {
- if(this.clickType != -1) {
-
- }
- this.homePageManageType = this.clickType;
- },
- selector2confirm(e) {
- this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
-
- this.tabsFrom.show2Index = e.year + "-" + e.month
- if (e.day) {
- this.tabsFrom.show2Text += e.day + "日"
- this.tabsFrom.show2Index += '-' + e.day
-
- this.queryDateMethod(this.tabsFrom.show2Index, true)
- } else {
- this.queryDateMethod(this.tabsFrom.show2Index, false)
- }
- },
- queryDateMethod(queryTime, day) {
- this.homePageManageType = "5";
-
- if (day) {
- this.queryDate = queryTime;
- this.list[5].value = '9';
- } else {
-
- this.queryDate = queryTime + "-01";
-
-
- this.list[5].value = '10';
- }
- //this.list[5].name = queryTime;
- this.getHomePageManage(0,this.companyId);
- },
- clearTimer() {
- if (this.intervalId) {
- clearInterval(this.intervalId); // 清除定时器
- this.intervalId = null; // 重置定时器ID
- }
- },
- startInterval() {
- this.clearTimer(); // 组件销毁前清除定时器
-
-
- this.intervalId = setInterval(() => {
-
- this.getHomePageKwh('', true)
- }, 60000);
- },
- merchantChangeApi() {
-
- this.popShow=false
- this.getHomePageManageshowLoading=false;
- this.meterList=[]
- if (this.companyId) {
-
-
- this.getHomePageKwh(this.companyId,true)
-
- }else{
- this.kWhList=[]
-
-
-
- }
- if(this.anchorpointShow('point-PlatformRevenue')){
- this.getPlatformRevenue(this.companyId)
-
- }
- if(this.anchorpointShow('point-TenantManagement')){
- this.getTenantList(this.companyId)
-
- }
- this.getDeviceStatus(this.companyId)
- },
- companyInfotypeChange(index){
- if(index!=this.companyInfotypeCurrent){
- var url=""
- if(process.car.NODE_ENV=='dev'){
-
- url='http://localhost:8081/#/'
-
- }else if(process.car.NODE_ENV=='test'){
-
- url='https://dgj.hbjp.com.cn/charging-prod/jp-housekeep-electric-test/#/'
-
- }else{
- url='https://dgj.hbjp.com.cn/charging-prod/jp-housekeep-electric/#/'
-
- }
-
- window.location.href=url+"pages/statistics/statistics"
- }
- },
- change(index) {
-
- this.current = index;
- this.current2=0;
- this.childList=[]
- var company= this.merchantList1[index]
-
- if(company.id!=''){
- if(company.childList){
- this.childList=[
- ...company.childList
- ];
- if(company.type==5){
- this.childList.unshift({
- id: company.id,
- name: '综合统计',
- sp:1
- });
-
- }
- }
-
-
-
- if(this.childList&&this.childList.length){
- this.companyId = this.childList[0].id;
- this.childInfo=this.childList[0]
- }else{
- this.childList=[]
- this.companyId =company.id
- this.childInfo=company
- }
-
-
- }else{
- this.companyId =''
-
- }
- console.log(this.childInfo)
- this.companyInfo=company;
-
- this.merchantChangeApi()
- },
- change2(index) {
-
- this.current2=index;
-
- this.companyId = this.childList[this.current2].id;
-
- this.childInfo=this.childList[this.current2]
-
- this.merchantChangeApi()
- },
- change3(index) {
-
- //this.current2=index;
-
- this.companyId = this.childCompanyList.list[index].id;
-
- this.childInfo=this.childCompanyList.list[index]
- this.popShow1=false;
- this.merchantChangeApi()
- },
- merchantChange(company, index) {
-
- if(this.current==0){
- this.current=1;
- }
- var m = company;
- var n = this.merchantList1[this.current];
- this.merchantList1[this.current] = m;
- this.merchantList2[index] = n;
- //this.$forceUpdate()
- this.utabsone=false
- this.companyId = company.id;
-
- this.companyInfo=company
-
- //console.log(company.type+"!!!!!!!!")
-
- if(company.id!=''){
- if(company.childList){
- this.childList=company.childList;
-
- if(company.type==5){
- this.childList.unshift({
- id: company.id,
- name: '综合统计',
- sp:1
- });
-
- }
- }
-
- if(this.childList&&this.childList.length){
- this.companyId = this.childList[0].id;
- this.childInfo=this.childList[0]
- }else{
- this.childList=[]
- this.companyId =company.id
- this.childInfo=company
- }
- }else{
- this.companyId =''
- }
-
- this.merchantChangeApi()
- this.popShow = false;
- },
-
- getCompanyInfoList() {
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- API.deviceCompanyList().then((response) => {
- //uni.hideLoading();
- var list = response.data.companyInfoList;
- this.companyListMain=response.data.companyInfoList;
- var mList1 = [];
- var mList2 = [];
- var sp=0
- var id=""
- if(list.length==1&&list[0].childList&&list[0].childList.length){
- list=list[0].childList
-
- sp=1;
-
- id=this.companyListMain[0].id
- this.companyId=id
- }
-
- mList1.push({
- id:id,
- name: '全部',
- sp:sp
- });
-
- for (var i = 0; i < list.length; i++) {
- if (i >= 3) {
- mList2.push(list[i]);
- } else {
- mList1.push(list[i]);
- }
- }
-
- this.companyList = list;
-
-
- if(this.companyList&&this.companyList.length&&this.companyList.length==1){
-
- this.childList=list[0].childList
- if(!this.childList){
- this.childList=[]
- }
- // this.childList=[
-
- // ...list[0].childList,
- // {
- // name:'创客公寓',
- // id:''
- // },
- // {
- // name:'创客公寓',
- // id:''
- // }
- // ]
- }
- if(sp==1){
-
-
- this.childInfo=this.companyListMain[0]
- this.companyInfo=this.companyListMain[0]
- this.childInfo.sp=1
- this.getHomePageKwh('')
- // this.companyInfo.sp=1
- }else if(this.companyList.length==1&&this.childList.length==0){
- this.companyId=this.companyList[0].id
-
- this.childInfo=this.companyList[0]
- this.companyInfo=this.companyList[0]
-
- }else if(this.companyList.length==1){
- this.companyId=this.childList[0].id
-
- this.childInfo=this.childList[0]
- this.companyInfo=this.companyList[0]
-
-
-
- }else{
- this.getHomePageKwh('')
- }
-
- this.merchantList1 = mList1;
- this.merchantList2 = mList2;
- this.merchantChangeApi()
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- sectionChange(index) {
- this.clickType = this.homePageManageType ;
- this.homePageManageType = index;
- if (index == 5) {
- this.tabsFrom.show2 = true;
- //this.params.day = false;
- } else {
- this.list[5].name = '指定时间'
- this.getHomePageManage(0,this.companyId)
- }
-
-
- },
- getHomePageManage(bl,companyId) {
- if(this.showAccountantWater){
- //水表
- this.getHomePageManageB(bl,companyId)
-
- }else{
- //电表
- this.getHomePageManageA(bl,companyId)
-
- }
-
-
-
- },
- getHomePageManageB(bl,companyId) {
-
- this.getHomePageManageReadyWater=false
- if(bl){
- this.getHomePageManageshowLoading=false
-
- }else{
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- }
-
- this.incomeExpenditureObj={}
- var type=this.list[this.homePageManageType].value
-
- API_water.meterManage({
- queryDate:this.queryDate,
- companyId: companyId ,
- type: type
- }).then((response) => {
- this.getHomePageManageReadyWater=true
- if(bl){
-
- this.getHomePageManageshowLoading=true
- }else{
- uni.hideLoading();
- }
-
- if(this.companyId!=companyId){
- return
- }
-
-
- this.meterListWater = response.data.meterList;
- ////console.log(this.meterList)
- this.homePageManageObjWater = response.data;
- //this.$forceUpdate()
- if(this.incomeExpenditureBl){
- //&&this.homePageManageObj.showPark
- // this.myBarChart=null;
- // this.$nextTick(()=>{
- // this.getBarCharts()
- // })
-
- this.getIncomeExpenditureWater(this.companyId);
-
- }
-
-
-
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getHomePageManageA(bl,companyId) {
- if(this.myBarChart){
- this.myBarChart.clear()
- }
- this.getHomePageManageReady=false
- if(bl){
- this.getHomePageManageshowLoading=false
-
- }else{
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- }
-
- this.incomeExpenditureObj={}
- var type=this.list[this.homePageManageType].value
-
- API.homePageManage({
- queryDate:this.queryDate,
- companyId: companyId ,
- type: type
- }).then((response) => {
- this.getHomePageManageReady=true
- if(bl){
-
- this.getHomePageManageshowLoading=true
- }else{
- uni.hideLoading();
- }
-
- if(this.companyId!=companyId){
- return
- }
-
-
- this.meterList = response.data.meterList;
- ////console.log(this.meterList)
- this.homePageManageObj = response.data;
- //this.$forceUpdate()
- if(this.incomeExpenditureBl){
- //&&this.homePageManageObj.showPark
- this.myBarChart=null;
- this.$nextTick(()=>{
- this.getBarCharts()
- })
-
- this.getIncomeExpenditure(this.companyId);
-
- }
-
-
-
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
-
- // 报警
- getAbnormalAlarmRecord(companyId) {
- if(this.anchorpointShow('point-Poweroutagereminder')){
-
- }else{
- return
- }
- API.remindList({
-
- configId: '',
- pageIndex: 1,
- pageSize: 3,
- companyId: this.childInfo.id,
- queryParent:this.childInfo.sp?1:0
- }).then((response) => {
- if(this.companyId!=companyId){
- return
- }
- this.abnormalRecordsList = response.data.data;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- selector1confirm(e) {
- //this.getHomePageKwh()
-
- //console.log(e)
- this.companyId=e[0].value
-
- this.current2=e[0].i
-
- this.childInfo=this.childList[this.current2];
- uni.showLoading()
-
- this.merchantChangeApi()
- },
- // 用电量
- getHomePageKwh( companyId,interval) {
-
-
- if (!interval) {
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- this.getHomePageKwhshowLoading=true;
- }
-
- API.homePageKwh({
- pageIndex: 1,
- pageSize: 5,
- companyId:companyId,
- queryKwh:companyId?0:1,//是否查电量 默认查
- queryXn:companyId?1:'',//是否查虚拟表 默认不查
- }).then((response) => {
- if (!interval) {
- //uni.hideLoading();
- this.getHomePageKwhshowLoading=false;
- }
- if(this.companyId!=companyId){
- return
- }
- if(companyId){
- this.kWhList = response.data.data;
-
- if(this.kWhList.length==1){
-
- var item=this.kWhList[0];
- this.$refs['refMyEm'+companyId].init({
- id:item.id,
- name:item.name,
- companyId:item.companyId,
-
- ref:1,
- })
- setTimeout(()=>{
- this.$nextTick(()=>{
- this.utabsone=true
- })
- },200)
-
- }else{
- this.getHomePageManage(1,this.companyId)
-
-
- }
- }else{
- this.getHomePageKwhWater(companyId,interval)
- this.kWhListHome= response.data.data;
- if (!interval) {
- //this.startInterval(); // 组件挂载后开始间隔
- }else{
- this.intervalReady=true
- }
- setTimeout(()=>{
- this.$nextTick(()=>{
- this.utabsone=true
- })
- },200)
- }
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
-
- },
- // 用电量
- getHomePageKwhWater( companyId,interval) {
-
-
-
- if (!interval) {
- // uni.showLoading({
- // title: "加载中",
- // mask: true,
- // })
- this.getHomePageKwhshowLoadingWater=true;
- }
-
- API_water.waterConsumption({
- pageIndex: 1,
- pageSize: 5,
- companyId:companyId,
-
- }).then((response) => {
- if (!interval) {
- //uni.hideLoading();
- this.getHomePageKwhshowLoadingWater=false;
- }
- if(this.companyId!=companyId){
- return
- }
- this.kWhListHomeWater= response.data.data;
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getPlatformRevenueBl(){
-
- return this.datacompanyInfo.type=='2'
- },
- getPlatformRevenue(companyId){
- if(this.getPlatformRevenueBl()){
-
- }else{
-
- return
- }
- this.platformRevenueList=[]
- this.getPlatformRevenueReady=false
- var queryDate =parseUnixTime(new Date(), '{y}-{m}-1');
- API.platformRevenue({
- queryDate:queryDate,
- companyId:companyId,
- queryParent:this.childInfo.sp==1?1:0
- }).then((response) => {
- if(companyId!=this.companyId){
- return
- }
- this.getPlatformRevenueReady=true
- this.platformRevenueList=response.data.incomeList
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- // 累计报警
- getDeviceStatus(companyId) {
- this.alarmsForm ={
- okNum:0,errorNum:0
- }
-
- API.deviceStatus({
- companyId: companyId,
- queryParent:this.childInfo.sp==1?1:0
- }).then((response) => {
-
- if(this.companyId!=companyId){
- return
- }
- setTimeout(()=>{
- this.$nextTick(()=>{
- this.utabsone=true
- })
- },200)
- this.alarmsForm = response.data;
- if (this.alarmsForm.okNum != 0) {
-
- }
- // this.alarmsPercent = this.alarmsForm.okNum / (this.alarmsForm.okNum + this.alarmsForm
- // .errorNum) * 100;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
-
- this.alarmsFormWater ={
- okNum:0,errorNum:0
- }
-
- API_water.deviceStatusOperation({
- companyId: companyId,
- queryParent:this.childInfo.sp==1?1:0
- }).then((response) => {
-
- if(this.companyId!=companyId){
- return
- }
-
- this.alarmsFormWater = response.data;
-
- // this.alarmsPercent = this.alarmsForm.okNum / (this.alarmsForm.okNum + this.alarmsForm
- // .errorNum) * 100;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
-
- },
- // 故障类型
- getBarCharts() {
- if (!this.myBarChart) {
- this.myBarChart = echarts.init(document.getElementById('barEcharts-statistics'),null,{
- width:uni.upx2px(620),height:uni.upx2px(740)
- });
- }
- this.myBarChart.clear()
- var data=[
-
-
- {
- name:"总表电量",
- key:"parkKwh",
- color:"#307af6"
- },
- {
- name:"计费电量",
- key:"chargeKwh",
- color:"#52b8aa"
- },
- {
- name:"自用电量",
- key:"freeKwh",
- color:"#53b56b"
- },
- {
- name:"公用电量",
- key:"publicKwh",
- color:"#ef8132"
- },
-
- {
- name:"电损量",
- key:"lostKwh",
- color:"#dc4441"
- }
- ]
- var dataName=[]
- var dataSeries=[]
- for(var i in data){
- var it=data[i]
- dataName.push(it.name)
- dataSeries.push({})
- }
- for(var i in data){
- var it=data[i]
- dataSeries[data.length-i-1]={
- name:it.name,
- type: 'bar',
- itemStyle:{
- color:it.color
- },
- data: [
-
- this.homePageManageObj[it.key]
- ],
- coordinateSystem: 'polar',
- label: {
- show: true,
- position: 'start',
- formatter: '{c}度'
- }
- }
-
- }
-
-
-
-
-
-
-
- var option = {
-
- polar: {
- center:['50%','58%'],
- radius:[25, '80%']
- },
- angleAxis: {
-
- startAngle: 75,
- label: {
- rotate: 45, // 旋转标签,使得重叠的概率降低
- // margin: 5 // 设置标签与轴线之间的距离,增加空间
- }
- },
-
- legend: {
- itemGap:5,
-
- data: dataName,
- //orient :'vertical'
- },
- radiusAxis: {
- type: 'category',
- data: ['']
- },
- tooltip: {},
-
- series: dataSeries
- };
- //console.log(option)
- this.myBarChart.setOption(option);
- },
-
- toDataMonitoringList() {
- uni.navigateTo({
- url: '/pages/equipmentDataMonitoring/dataMonitoring-list'
- })
- },
- toEquipmentConditionMonitoring() {
- uni.navigateTo({
- url: '/pages/equipmentInformation/equipmentConditionMonitoring?companyId='+this.companyId
- })
- },
- toWorkOrderManagement() {
-
- uni.navigateTo({
- url: '/pages/workOrderManagement/workOrderManagement'
- })
- },
- toEquipmentElectricity() {
- uni.navigateTo({
- url: '/pages/equipmentDataMonitoring/equipmentElectricity?companyId=' + this.companyId
- })
- },
- toEquipmentElectricityWater() {
- uni.navigateTo({
- url: '/pages/equipmentDataMonitoring/equipmentElectricityWater?companyId=' + this.companyId
- })
- },
- toElectronicMonitoring(item) {
- uni.navigateTo({
- url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id + '&name=' + item
- .name +
- '&companyId=' + item.companyId
- })
- },
- toElectronicMonitoringWater(item) {
- uni.navigateTo({
- url: '/pages/equipmentDataMonitoring/electronicMonitoringWater?id=' + item.id + '&name=' + item
- .name +
- '&companyId=' + item.companyId
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .incomeExpenditureClass{
-
- width: 100%;
- //padding:16rpx 0;
- .incomeRow{
- display: flex;
- justify-content: space-evenly;
- }
- .income1:last-child{
- .income11,.income12{
- border-right: 1px solid #c5c3c3;
-
- }
-
- }
- .income2{
- width: 200% !important;
- .income12{
- display: flex;
- justify-content: space-between;
- border-right: 1px solid #c5c3c3;
-
- .income12-1{
- width: 100%;
- }
- .income12-1{
- width: 100%;
- }
- .income12-3{
- width: 100%;
- color: rgba(22,119,255,1);
- font-size: 28rpx;
- }
- }
- }
- .income1,.income2{
- .income121{
- font-size: 24rpx;
- color:#c5c3c3;
- }
- width: 100%;
- text-align: center;
- .income11{
- padding:6rpx 0;
- background-color: #1677FF ;
- color:#fff;
- font-size: 26rpx;
- white-space: pre;
- border-top: 1px solid #c5c3c3;
- border-left: 1px solid #c5c3c3;
- }
-
- .income12{
- padding:6rpx 0;
- border-top: 1px solid #c5c3c3;
- border-bottom: 1px solid #c5c3c3;
- border-left: 1px solid #c5c3c3;
- font-size: 40rpx;
- line-height: 56rpx;
- }
-
- }
-
-
- }
-
- /deep/.u-drawer-content {
- margin-top: 88rpx;
- }
- .popup-tabs {
- background-color: #fff;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-top: 32rpx;
- padding-right: 32rpx;
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- .tabs {
- width: 88%;
- }
- }
- // /deep/.u-tab-item {
- // width: 25% !important;
- // flex: none !important;
- // }
- .tabs-box{
- .tabs-len-1{
-
- }
- .tabs-len-2{
- /deep/.u-tab-item {
- // max-width: 39% !important;
- // flex: none !important;
- }
- }
- .tabs-len-3{
- /deep/.u-tab-item {
- max-width: 39% !important;
- flex: none !important;
- }
- }
- .tabs-len-4{
- /deep/.u-tab-item {
- max-width: 26% !important;
- flex: none !important;
- }
- }
- .tabs{
- /deep/.u-tab-item:first-child {
- width: 20% !important;
- flex: none !important;
- }
-
- }
- }
- // /deep/.u-tab-item2 {
- // width: 33% !important;
- // flex: none !important;
- // }
- .tabs-options {
- display: flex;
- padding: 24rpx 32rpx 0;
- flex-wrap: wrap;
- .item {
- width: 25%;
- margin-bottom: 40rpx;
- }
- }
- // 导航栏
- .navbar {
-
-
- background-color: rgba(22, 119, 255, 1);
- color: #fff;
- line-height: 88rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 32rpx;
- color: rgba(255, 255, 255, 1);
- font-size: 36rpx;
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- z-index: 999999;
- font-weight: bold;
- .title{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .img {
- width: 48rpx;
- height: 48rpx;
- vertical-align: middle;
- }
- }
- // 标签
- .tabs-box {
- padding: 32rpx 0;
- margin-top: 66rpx;
- padding-right: 32rpx;
- background-color: rgba(22, 119, 255, 1);
- display: flex;
- align-items: center;
- justify-content: space-between;
- .tabs {
- width: 97%;
- }
- .more{
- padding-right: 12rpx;
- }
- }
- .main {
- border-radius: 16px 16px 0px 0px;
- background: linear-gradient(180deg, rgba(242, 244, 246, 1) 61%, rgba(255, 255, 255, 0) 100%);
- margin-top: -24rpx;
- padding: 32rpx 32rpx 32rpx 20rpx;
- .statistics {
- border-radius: 8px;
- background-color: rgba(255, 255, 255, 1);
- box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
- margin-bottom: 24rpx;
- padding: 40rpx;
- .title {
- display: flex;
- align-items: center;
- margin-bottom: 16rpx;
- .img {
- width: 36rpx;
- height: 36rpx;
- vertical-align: middle;
- border-radius: 999px;
- }
- .change {
- display: flex;
- align-items: center;
- .change-img {
- width: 32rpx;
- height: 32rpx;
- vertical-align: middle;
- }
- text {
- margin-left: 8rpx;
- }
- }
- .text {
- color: rgba(16, 16, 16, 1);
- font-size: 36rpx;
- margin-left: 16rpx;
- font-weight: bold;
- }
- .change {
- margin-left: 16rpx;
- font-size: 24rpx;
- color: #838383;
- }
- .check-all {
- margin-left: auto;
- color: rgba(131, 131, 131, 1);
- font-size: 24rpx;
- }
- }
- }
- .switchWater{
- display: flex;
- margin-left: 8px;
- .s{
- border: 1px solid rgba(22,132,252,1);
-
- color:rgba(22,132,252,1);
- padding: 2px 8px;
-
- }
- .s2{
- border-radius: 0 4px 4px 0;
- }
- .s1{
- border-radius: 4px 0 0 4px;
-
- }
- .index{
- background-color:rgba(22,132,252,1);
- color: #fff;
- }
- }
- // 用电量
- .statistics-e {
- padding: 40rpx;
- .electricity {
- background-color: #fff;
- .item:last-of-type {
- border: none;
- padding-bottom: 0;
- }
- .item {
- padding: 16rpx 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-bottom: 1px solid rgba(245, 245, 245, 1);
- .item-content {
- width: 93%;
- }
- .equipment {
- display: flex;
- align-items: center;
- .equipment1 {
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- max-width: 40%;
- font-weight: bold;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .equipment2 {
- color: rgba(119, 119, 119, 1);
- margin-left: 16rpx;
- max-width: 40%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- // 状态
- .state {
- white-space: pre;
- //width: 64rpx;
- //height: 36rpx;
- padding: 0 4rpx;
- line-height: 36rpx;
- border-radius: 8rpx;
- font-size: 22rpx;
- text-align: center;
- border: 1px solid rgba(255, 123, 0, 1);
- color: rgba(255, 123, 0, 1);
- margin-left: auto;
- // .dot {
- // margin-right: 8rpx;
- // width: 16rpx;
- // height: 16rpx;
- // background-color: rgba(255, 123, 0, 1);
- // border-radius: 999px;
- // margin-left: auto;
- // }
- }
- .state2 {
- border: 1px solid rgba(0, 185, 98, 1);
- color: rgba(0, 185, 98, 1);
- }
- .electricity {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 8rpx;
- text-align: center;
- .electricity-item {
- display: flex;
- align-items: center;
- width: 33.3%;
- height: 40rpx;
- line-height: 40rpx;
- .number {
- color: rgba(51, 51, 51, 1);
- font-weight: bold;
- font-size: 24rpx;
- margin-left: 8rpx;
- }
- .date {
- color: rgba(119, 119, 119, 1);
- font-size: 24rpx;
- }
- }
- }
- }
- }
- }
- // 统计1
- .statistics-1 {
- background-color: rgba(255, 255, 255, 1);
- width: 100%;
- padding: 24rpx;
- box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
- border-radius: 8px;
- margin-bottom: 24rpx;
- .item {
- margin-top: 24rpx;
- display: flex;
- align-items: center;
- .item-progess {
-
-
- }
- .total {
- margin-left: 24rpx;
- color: rgba(119, 119, 119, 1);
- .total1 {
- display: flex;
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- font-weight: bold;
- .normal {
- margin-bottom: 12rpx;
- }
- }
- .total2 {
- color: rgba(119, 119, 119, 1);
- }
- .abnormal {
- margin-left: 24rpx;
- }
- }
- .total-number {
- color: rgba(255, 123, 0, 1);
- margin: 0 8rpx;
- font-weight: bold;
- }
- }
- }
- // 统计2异常报警记录
- .statistics-2 {
- .abnormal-item:last-of-type {
- border-bottom: none !important;
- padding-bottom: 0;
- }
- .abnormal-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 16rpx;
- border-bottom: 1px solid rgba(245, 245, 245, 1);
- .item-title {
- .level{
- color:#fff;
-
- border-radius: 8rpx;
- font-weight: 400;
- padding: 4rpx 8rpx;
- font-size: 22rpx;
- margin-right: 2px;
- }
- .level1{
- background: red;
- }
- .level2{
- background-color: rgba(255,123,0,1);
- }
- color: rgba(51, 51, 51, 1);
- width: 100%;
- .img {
- width: 32rpx;
- height: 32rpx;
- margin-right: 8rpx;
- }
- .name {
- color: rgba(51, 51, 51, 1);
- font-weight: bold;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .date {
- color: rgba(119, 119, 119, 1);
- font-size: 24rpx;
- }
- }
- .item-value {
- text-align: right;
- display: flex;
- align-items: center;
- .more {
- margin-left: 8rpx;
- }
- .value1 {
- font-weight: bold;
- color: rgba(51, 51, 51, 1);
- }
- .value2 {
- color: rgba(119, 119, 119, 1);
- font-size: 24rpx;
- }
- }
- }
- }
-
- .statistics-3 {
-
- }
-
- .statistics-4 {
-
- }
-
- // 异常设备排名
- .statistics-ranking {
- .total {
- color: rgba(16, 16, 16, 1);
- padding-left: 52rpx;
- text {
- color: #1677FF;
- padding: 0 8rpx;
- }
- }
- .ranking-main {
- margin-top: 40rpx;
- border-radius: 16px;
- background-color: #fff;
- .item:last-of-type {
- margin-bottom: 0;
- }
- .item {
- display: flex;
- align-items: center;
- margin-bottom: 32rpx;
- .ranking {
- color: rgba(16, 16, 16, 1);
- font-weight: bold;
- }
- .icon {
- width: 72rpx;
- height: 72rpx;
- border-radius: 4px;
- background-color: rgba(219, 234, 255, 1);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-left: 24rpx;
- .img {
- width: 48rpx;
- height: 48rpx;
- }
- }
- .name {
- margin-left: 16rpx;
- .name1 {
- color: rgba(51, 51, 51, 1);
- font-weight: bold;
- }
- .name2 {
- color: rgba(119, 119, 119, 1);
- font-size: 24rpx;
- margin-top: 4rpx;
- }
- }
- .time {
- color: rgba(16, 16, 16, 1);
- margin-left: auto;
- font-weight: bold;
- }
- }
- }
- // 查看全部排名
- .check-all {
- text-align: center;
- color: rgba(119, 119, 119, 1);
- font-size: 12px;
- }
- }
- // 能源管理
- .statistics-manage {
- padding: 40rpx 0;
- .title,
- .chart,
- .search,
- .meter-statistic {
- padding: 0 32rpx;
- }
- // 图表
- .chart {
- padding-top: 32rpx;
- border-top: 1px solid rgba(242, 242, 242, 1);
- /deep/.u-subsection {
- padding: 2px;
- }
- /deep/.u-item {
- padding: 0;
- font-size: 24rpx
- }
- .chat-box {
- //margin-top: 24rpx;
- width: 100%;
- //height: 480rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
- .search {
- border-top: 1px solid rgba(242, 242, 242, 1);
- border-bottom: 1px solid rgba(242, 242, 242, 1);
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 40rpx 32rpx;
- .switch {
- display: flex;
- align-items: center;
- text {
- margin-left: 8rpx;
- color: rgba(51, 51, 51, 1);
- }
- }
- .search-box {
- border-radius: 50px;
- background-color: rgba(242, 244, 246, 1);
- color: rgba(136, 136, 136, 1);
- height: 56rpx;
- line-height: 56rpx;
- padding-left: 16rpx;
- padding-right: 8rpx;
- flex: 1;
- margin-left: 28rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- uni-input {
- height: 56rpx;
- line-height: 56rpx !important;
- font-size: 28rpx;
- width: 75%;
- }
- .icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 64rpx;
- height: 40rpx;
- border-radius: 50px;
- background-color: rgba(22, 119, 255, 1);
- }
- }
- }
- }
- // 电表统计
- .meter-statistic {
- margin-top: 32rpx;
- .meter-statistic-main{
- display: flex;
- align-items: center;
- }
- .sum {
-
- .meter-name {
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- margin-left: 8rpx;
- font-weight: bold;
- }
- .icon {
- margin-right: 8rpx;
- img {
- width: 40rpx;
- height: 40rpx;
- vertical-align: middle;
- }
- }
- .meter-state {
- margin-left: 8rpx;
- width: 64rpx;
- height: 36rpx;
- line-height: 36rpx;
- border-radius: 4px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(0, 185, 98, 1);
- font-size: 22rpx;
- text-align: center;
- border: 1px solid rgba(0, 185, 98, 1);
- }
- .meter-state2 {
- border: 1px solid rgba(255, 123, 0, 1);
- color: rgba(255, 123, 0, 1);
- }
- .meter-number {
- margin-left: auto;
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- /deep/.u-icon--right {
- margin-left: 8rpx;
- }
- }
- }
- .sum2 {
- padding: 0 32rpx;
- margin-top: 8rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- color: rgba(119, 119, 119, 1);
- }
- .value {
- color: rgba(119, 119, 119, 1);
- }
- }
- // 一级表
- .first-level {
- padding-left: 16rpx;
- margin-top: 20rpx;
-
- .meter-name {
- font-size: 28rpx
- }
- }
- .first-level-list{
- width: 100%;
- display: flex;
- align-items: center;
- }
- // 二级表
- .second-level {
- padding-left: 32rpx;
- margin-top: 20rpx;
- .meter-name {
- font-size: 24rpx
- }
- }
- .else-switch {
- padding-left: 72rpx;
- .meter-name {
- font-size: 24rpx
- }
- .item {
- margin-top: 24rpx;
- }
- }
- }
- }
- /deep/.u-drawer {
- z-index: 999 !important;
- }
-
- .contractList{
- font-weight: bold;
- .contractListClass{
- display: flex;
- margin-top:16rpx;
- justify-content: space-between;
- color: rgba(51,51,51,1);
- .img{
- width: 32rpx;
- height: 32rpx;
- margin-right: 18rpx;
- }
- .contractListClass1{
- display: flex;
- align-items: center;
- }
- .tenantListNum{
- margin: 0 8rpx;
- color:#FF7B00 ;
- }
-
- }
- }
-
- .statistics-3 {
- .contractListClass{
- .contractListClass1{
- display: block;
- .class1{
- font-size: 28rpx;
- color: rgba(51,51,51,1);
- }
- .class2{
- font-size: 24rpx;
- color: rgba(119,119,119,1);
-
- }
- }
- .contractListClass2{
- font-size: 40rpx;
- color: rgba(16,16,16,1);
- font-weight: bold;
-
- display: flex;
- align-items: center;
- }
- }
-
-
- }
-
-
- .statistics-4 {
-
-
- }
- .electronicMonitoring-title2{
- margin-bottom: 16rpx;
- }
- .electronicMonitoring-title3{
-
- }
- .electronicMonitoring-title{
- display: flex;
- margin: 0px 32rpx;
- // background: #fff;
- // border: 1px solid #bbbbbb;
- border-radius: 4px;
- padding: 4px;
- //background: linear-gradient(180deg, #bbd8ff 0%, white 63%);
- justify-content: space-between;
- font-size:32rpx;
- font-weight: bold;
- .view{
- display: flex;
- justify-content: space-between;
- margin-right: 12rpx;
- }
- // 状态
- .state {
- white-space: pre;
- //width: 64rpx;
- //height: 36rpx;
- padding: 0 4rpx;
- line-height: 36rpx;
- border-radius: 8rpx;
- font-size: 22rpx;
- text-align: center;
- border: 1px solid rgba(255, 123, 0, 1);
- color: rgba(255, 123, 0, 1);
-
-
- // .dot {
- // margin-right: 8rpx;
-
- // width: 16rpx;
- // height: 16rpx;
- // background-color: rgba(255, 123, 0, 1);
- // border-radius: 999px;
- // margin-left: auto;
-
- // }
-
-
- }
-
- .state2 {
- border: 1px solid rgba(0, 185, 98, 1);
- color: rgba(0, 185, 98, 1);
- }
- }
- .current-123{
- .electronicMonitoring-title{
- margin: 8rpx 0rpx 32rpx 0;
- }
- }
- .electronicMonitoring-123{
-
- }
-
- .anchorpoint{
- .index{
- color: rgba(22,119,255,1);
- }
- background-color: rgba(0,0,0,0.25);
- margin-top: 20rpx;
- display: flex;
-
- /* text-decoration: underline; */
- // z-index: 999;
-
- text-align: center;
- position: fixed;
- /* top: 40px; */
- top: 200rpx;
- right: 0px;
-
-
- font-size: 24rpx;
- //background: linear-gradient(95deg, #FF9800, #FF5722);
- //box-shadow: 0 4rpx 24rpx 0 #FF5722;
- //padding-top: 8px;
- color: #fff;
- border-radius: 25px;
-
- flex-direction: column;
- align-items: flex-end;
- .point{
- padding: 16rpx;
- }
- .point:last-child{
- padding-bottom: 36rpx;;
-
- }
- .point:first-child{
- padding-top: 36rpx;
- }
- }
-
- .isOpenClass{
- display: flex;
- width: 100%;
- justify-content: space-between;
- margin: 12rpx 0;
- align-items: center;
- .isOpenClass1{
- font-size: 28rpx;
- font-weight: bold;
- padding-bottom: 8rpx;
- color: rgba(51,51,51,1);
- }
- .isOpenClass2{
- font-size: 24rpx;
- color: rgba(131,131,131,1);
- .span{
- margin-right: 8rpx;
- }
- }
- }
- .popShow1{
- background-color: #f2f4f6;
- padding: 32rpx;
- .popShowList{
- border-radius: 8px;
- padding:0 10rpx;
- background-color: #FFF;
- }
- .title{
- text-align: center;
- font-size: 44rpx;
- padding: 20rpx;
- font-weight: bold;
- }
- .popShowItem:first-child{
- padding-top: 38rpx;
- }
- .popShowItem{
-
- font-size: 32rpx;
- display: flex;
- margin: 24rpx;
- justify-content: space-between;
- }
-
- .onlineChild{
- margin:0 8rpx;
- display: flex;
- align-items: center;
- font-size: 28rpx;
- }
-
- .online{
- display: flex;
-
-
- .name{
- color: #777777 ;
-
- }
- }
- .index{
- .name{
- color: #1677ff;
- font-weight: bold;
- }
- }
-
- }
- .online0{
- color: #ff7b00;
- }
- .online2{
- color: #009688;
- }
- .online3{
- color: #9E9E9E;
- }
- .online1{
- color: #00b962;
- .dot{
- background-color: #00b962;
- }
- }
- .dotview{
- display: flex;
- font-size: 28rpx;
- align-items: center;
- margin:0 8rpx;
- .text{
- font-size: 28rpx;
- font-weight: 400;
- }
- }
- .dot{
- margin:0 8rpx;
- width: 16rpx;
- height:16rpx;
- background-color: #ff7b00;
- border-radius: 999px;
- margin-left: auto;
- }
- </style>
|