移动储能车V1版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-service.js 280KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197
  1. if (typeof Promise !== "undefined" && !Promise.prototype.finally) {
  2. Promise.prototype.finally = function(callback) {
  3. const promise = this.constructor;
  4. return this.then(
  5. (value) => promise.resolve(callback()).then(() => value),
  6. (reason) => promise.resolve(callback()).then(() => {
  7. throw reason;
  8. })
  9. );
  10. };
  11. }
  12. ;
  13. if (typeof uni !== "undefined" && uni && uni.requireGlobal) {
  14. const global2 = uni.requireGlobal();
  15. ArrayBuffer = global2.ArrayBuffer;
  16. Int8Array = global2.Int8Array;
  17. Uint8Array = global2.Uint8Array;
  18. Uint8ClampedArray = global2.Uint8ClampedArray;
  19. Int16Array = global2.Int16Array;
  20. Uint16Array = global2.Uint16Array;
  21. Int32Array = global2.Int32Array;
  22. Uint32Array = global2.Uint32Array;
  23. Float32Array = global2.Float32Array;
  24. Float64Array = global2.Float64Array;
  25. BigInt64Array = global2.BigInt64Array;
  26. BigUint64Array = global2.BigUint64Array;
  27. }
  28. ;
  29. if (uni.restoreGlobal) {
  30. uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
  31. }
  32. (function(vue) {
  33. "use strict";
  34. function formatAppLog(type, filename, ...args) {
  35. if (uni.__log__) {
  36. uni.__log__(type, filename, ...args);
  37. } else {
  38. console[type].apply(console, [...args, filename]);
  39. }
  40. }
  41. function resolveEasycom(component, easycom) {
  42. return typeof component === "string" ? easycom : component;
  43. }
  44. const popup = {
  45. data() {
  46. return {};
  47. },
  48. created() {
  49. this.popup = this.getParent();
  50. },
  51. methods: {
  52. /**
  53. * 获取父元素实例
  54. */
  55. getParent(name = "uniPopup") {
  56. let parent = this.$parent;
  57. let parentName = parent.$options.name;
  58. while (parentName !== name) {
  59. parent = parent.$parent;
  60. if (!parent)
  61. return false;
  62. parentName = parent.$options.name;
  63. }
  64. return parent;
  65. }
  66. }
  67. };
  68. const _export_sfc = (sfc, props) => {
  69. const target = sfc.__vccOpts || sfc;
  70. for (const [key, val] of props) {
  71. target[key] = val;
  72. }
  73. return target;
  74. };
  75. const _sfc_main$d = {
  76. name: "uniPopupMessage",
  77. mixins: [popup],
  78. props: {
  79. /**
  80. * 主题 success/warning/info/error 默认 success
  81. */
  82. type: {
  83. type: String,
  84. default: "success"
  85. },
  86. /**
  87. * 消息文字
  88. */
  89. message: {
  90. type: String,
  91. default: ""
  92. },
  93. /**
  94. * 显示时间,设置为 0 则不会自动关闭
  95. */
  96. duration: {
  97. type: Number,
  98. default: 3e3
  99. },
  100. maskShow: {
  101. type: Boolean,
  102. default: false
  103. }
  104. },
  105. data() {
  106. return {};
  107. },
  108. created() {
  109. this.popup.maskShow = this.maskShow;
  110. this.popup.messageChild = this;
  111. },
  112. methods: {
  113. timerClose() {
  114. if (this.duration === 0)
  115. return;
  116. clearTimeout(this.timer);
  117. this.timer = setTimeout(() => {
  118. this.popup.close();
  119. }, this.duration);
  120. }
  121. }
  122. };
  123. function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
  124. return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-message" }, [
  125. vue.createElementVNode(
  126. "view",
  127. {
  128. class: vue.normalizeClass(["uni-popup-message__box fixforpc-width", "uni-popup__" + $props.type])
  129. },
  130. [
  131. vue.renderSlot(_ctx.$slots, "default", {}, () => [
  132. vue.createElementVNode(
  133. "text",
  134. {
  135. class: vue.normalizeClass(["uni-popup-message-text", "uni-popup__" + $props.type + "-text"])
  136. },
  137. vue.toDisplayString($props.message),
  138. 3
  139. /* TEXT, CLASS */
  140. )
  141. ], true)
  142. ],
  143. 2
  144. /* CLASS */
  145. )
  146. ]);
  147. }
  148. const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c], ["__scopeId", "data-v-a4566996"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue"]]);
  149. class MPAnimation {
  150. constructor(options, _this) {
  151. this.options = options;
  152. this.animation = uni.createAnimation({
  153. ...options
  154. });
  155. this.currentStepAnimates = {};
  156. this.next = 0;
  157. this.$ = _this;
  158. }
  159. _nvuePushAnimates(type, args) {
  160. let aniObj = this.currentStepAnimates[this.next];
  161. let styles = {};
  162. if (!aniObj) {
  163. styles = {
  164. styles: {},
  165. config: {}
  166. };
  167. } else {
  168. styles = aniObj;
  169. }
  170. if (animateTypes1.includes(type)) {
  171. if (!styles.styles.transform) {
  172. styles.styles.transform = "";
  173. }
  174. let unit = "";
  175. if (type === "rotate") {
  176. unit = "deg";
  177. }
  178. styles.styles.transform += `${type}(${args + unit}) `;
  179. } else {
  180. styles.styles[type] = `${args}`;
  181. }
  182. this.currentStepAnimates[this.next] = styles;
  183. }
  184. _animateRun(styles = {}, config = {}) {
  185. let ref = this.$.$refs["ani"].ref;
  186. if (!ref)
  187. return;
  188. return new Promise((resolve, reject) => {
  189. nvueAnimation.transition(ref, {
  190. styles,
  191. ...config
  192. }, (res) => {
  193. resolve();
  194. });
  195. });
  196. }
  197. _nvueNextAnimate(animates, step = 0, fn) {
  198. let obj = animates[step];
  199. if (obj) {
  200. let {
  201. styles,
  202. config
  203. } = obj;
  204. this._animateRun(styles, config).then(() => {
  205. step += 1;
  206. this._nvueNextAnimate(animates, step, fn);
  207. });
  208. } else {
  209. this.currentStepAnimates = {};
  210. typeof fn === "function" && fn();
  211. this.isEnd = true;
  212. }
  213. }
  214. step(config = {}) {
  215. this.animation.step(config);
  216. return this;
  217. }
  218. run(fn) {
  219. this.$.animationData = this.animation.export();
  220. this.$.timer = setTimeout(() => {
  221. typeof fn === "function" && fn();
  222. }, this.$.durationTime);
  223. }
  224. }
  225. const animateTypes1 = [
  226. "matrix",
  227. "matrix3d",
  228. "rotate",
  229. "rotate3d",
  230. "rotateX",
  231. "rotateY",
  232. "rotateZ",
  233. "scale",
  234. "scale3d",
  235. "scaleX",
  236. "scaleY",
  237. "scaleZ",
  238. "skew",
  239. "skewX",
  240. "skewY",
  241. "translate",
  242. "translate3d",
  243. "translateX",
  244. "translateY",
  245. "translateZ"
  246. ];
  247. const animateTypes2 = ["opacity", "backgroundColor"];
  248. const animateTypes3 = ["width", "height", "left", "right", "top", "bottom"];
  249. animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => {
  250. MPAnimation.prototype[type] = function(...args) {
  251. this.animation[type](...args);
  252. return this;
  253. };
  254. });
  255. function createAnimation(option, _this) {
  256. if (!_this)
  257. return;
  258. clearTimeout(_this.timer);
  259. return new MPAnimation(option, _this);
  260. }
  261. const _sfc_main$c = {
  262. name: "uniTransition",
  263. emits: ["click", "change"],
  264. props: {
  265. show: {
  266. type: Boolean,
  267. default: false
  268. },
  269. modeClass: {
  270. type: [Array, String],
  271. default() {
  272. return "fade";
  273. }
  274. },
  275. duration: {
  276. type: Number,
  277. default: 300
  278. },
  279. styles: {
  280. type: Object,
  281. default() {
  282. return {};
  283. }
  284. },
  285. customClass: {
  286. type: String,
  287. default: ""
  288. },
  289. onceRender: {
  290. type: Boolean,
  291. default: false
  292. }
  293. },
  294. data() {
  295. return {
  296. isShow: false,
  297. transform: "",
  298. opacity: 1,
  299. animationData: {},
  300. durationTime: 300,
  301. config: {}
  302. };
  303. },
  304. watch: {
  305. show: {
  306. handler(newVal) {
  307. if (newVal) {
  308. this.open();
  309. } else {
  310. if (this.isShow) {
  311. this.close();
  312. }
  313. }
  314. },
  315. immediate: true
  316. }
  317. },
  318. computed: {
  319. // 生成样式数据
  320. stylesObject() {
  321. let styles = {
  322. ...this.styles,
  323. "transition-duration": this.duration / 1e3 + "s"
  324. };
  325. let transform = "";
  326. for (let i in styles) {
  327. let line = this.toLine(i);
  328. transform += line + ":" + styles[i] + ";";
  329. }
  330. return transform;
  331. },
  332. // 初始化动画条件
  333. transformStyles() {
  334. return "transform:" + this.transform + ";opacity:" + this.opacity + ";" + this.stylesObject;
  335. }
  336. },
  337. created() {
  338. this.config = {
  339. duration: this.duration,
  340. timingFunction: "ease",
  341. transformOrigin: "50% 50%",
  342. delay: 0
  343. };
  344. this.durationTime = this.duration;
  345. },
  346. methods: {
  347. /**
  348. * ref 触发 初始化动画
  349. */
  350. init(obj = {}) {
  351. if (obj.duration) {
  352. this.durationTime = obj.duration;
  353. }
  354. this.animation = createAnimation(Object.assign(this.config, obj), this);
  355. },
  356. /**
  357. * 点击组件触发回调
  358. */
  359. onClick() {
  360. this.$emit("click", {
  361. detail: this.isShow
  362. });
  363. },
  364. /**
  365. * ref 触发 动画分组
  366. * @param {Object} obj
  367. */
  368. step(obj, config = {}) {
  369. if (!this.animation)
  370. return;
  371. for (let i in obj) {
  372. try {
  373. if (typeof obj[i] === "object") {
  374. this.animation[i](...obj[i]);
  375. } else {
  376. this.animation[i](obj[i]);
  377. }
  378. } catch (e) {
  379. formatAppLog("error", "at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148", `方法 ${i} 不存在`);
  380. }
  381. }
  382. this.animation.step(config);
  383. return this;
  384. },
  385. /**
  386. * ref 触发 执行动画
  387. */
  388. run(fn) {
  389. if (!this.animation)
  390. return;
  391. this.animation.run(fn);
  392. },
  393. // 开始过度动画
  394. open() {
  395. clearTimeout(this.timer);
  396. this.transform = "";
  397. this.isShow = true;
  398. let { opacity, transform } = this.styleInit(false);
  399. if (typeof opacity !== "undefined") {
  400. this.opacity = opacity;
  401. }
  402. this.transform = transform;
  403. this.$nextTick(() => {
  404. this.timer = setTimeout(() => {
  405. this.animation = createAnimation(this.config, this);
  406. this.tranfromInit(false).step();
  407. this.animation.run();
  408. this.$emit("change", {
  409. detail: this.isShow
  410. });
  411. }, 20);
  412. });
  413. },
  414. // 关闭过度动画
  415. close(type) {
  416. if (!this.animation)
  417. return;
  418. this.tranfromInit(true).step().run(() => {
  419. this.isShow = false;
  420. this.animationData = null;
  421. this.animation = null;
  422. let { opacity, transform } = this.styleInit(false);
  423. this.opacity = opacity || 1;
  424. this.transform = transform;
  425. this.$emit("change", {
  426. detail: this.isShow
  427. });
  428. });
  429. },
  430. // 处理动画开始前的默认样式
  431. styleInit(type) {
  432. let styles = {
  433. transform: ""
  434. };
  435. let buildStyle = (type2, mode) => {
  436. if (mode === "fade") {
  437. styles.opacity = this.animationType(type2)[mode];
  438. } else {
  439. styles.transform += this.animationType(type2)[mode] + " ";
  440. }
  441. };
  442. if (typeof this.modeClass === "string") {
  443. buildStyle(type, this.modeClass);
  444. } else {
  445. this.modeClass.forEach((mode) => {
  446. buildStyle(type, mode);
  447. });
  448. }
  449. return styles;
  450. },
  451. // 处理内置组合动画
  452. tranfromInit(type) {
  453. let buildTranfrom = (type2, mode) => {
  454. let aniNum = null;
  455. if (mode === "fade") {
  456. aniNum = type2 ? 0 : 1;
  457. } else {
  458. aniNum = type2 ? "-100%" : "0";
  459. if (mode === "zoom-in") {
  460. aniNum = type2 ? 0.8 : 1;
  461. }
  462. if (mode === "zoom-out") {
  463. aniNum = type2 ? 1.2 : 1;
  464. }
  465. if (mode === "slide-right") {
  466. aniNum = type2 ? "100%" : "0";
  467. }
  468. if (mode === "slide-bottom") {
  469. aniNum = type2 ? "100%" : "0";
  470. }
  471. }
  472. this.animation[this.animationMode()[mode]](aniNum);
  473. };
  474. if (typeof this.modeClass === "string") {
  475. buildTranfrom(type, this.modeClass);
  476. } else {
  477. this.modeClass.forEach((mode) => {
  478. buildTranfrom(type, mode);
  479. });
  480. }
  481. return this.animation;
  482. },
  483. animationType(type) {
  484. return {
  485. fade: type ? 0 : 1,
  486. "slide-top": `translateY(${type ? "0" : "-100%"})`,
  487. "slide-right": `translateX(${type ? "0" : "100%"})`,
  488. "slide-bottom": `translateY(${type ? "0" : "100%"})`,
  489. "slide-left": `translateX(${type ? "0" : "-100%"})`,
  490. "zoom-in": `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`,
  491. "zoom-out": `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})`
  492. };
  493. },
  494. // 内置动画类型与实际动画对应字典
  495. animationMode() {
  496. return {
  497. fade: "opacity",
  498. "slide-top": "translateY",
  499. "slide-right": "translateX",
  500. "slide-bottom": "translateY",
  501. "slide-left": "translateX",
  502. "zoom-in": "scale",
  503. "zoom-out": "scale"
  504. };
  505. },
  506. // 驼峰转中横线
  507. toLine(name) {
  508. return name.replace(/([A-Z])/g, "-$1").toLowerCase();
  509. }
  510. }
  511. };
  512. function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
  513. return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
  514. ref: "ani",
  515. animation: $data.animationData,
  516. class: vue.normalizeClass($props.customClass),
  517. style: vue.normalizeStyle($options.transformStyles),
  518. onClick: _cache[0] || (_cache[0] = (...args) => $options.onClick && $options.onClick(...args))
  519. }, [
  520. vue.renderSlot(_ctx.$slots, "default")
  521. ], 14, ["animation"])), [
  522. [vue.vShow, $data.isShow]
  523. ]);
  524. }
  525. const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-transition/components/uni-transition/uni-transition.vue"]]);
  526. const _sfc_main$b = {
  527. name: "uniPopup",
  528. components: {},
  529. emits: ["change", "maskClick"],
  530. props: {
  531. // 开启动画
  532. animation: {
  533. type: Boolean,
  534. default: true
  535. },
  536. // 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
  537. // message: 消息提示 ; dialog : 对话框
  538. type: {
  539. type: String,
  540. default: "center"
  541. },
  542. // maskClick
  543. isMaskClick: {
  544. type: Boolean,
  545. default: null
  546. },
  547. // TODO 2 个版本后废弃属性 ,使用 isMaskClick
  548. maskClick: {
  549. type: Boolean,
  550. default: null
  551. },
  552. backgroundColor: {
  553. type: String,
  554. default: "none"
  555. },
  556. safeArea: {
  557. type: Boolean,
  558. default: true
  559. },
  560. maskBackgroundColor: {
  561. type: String,
  562. default: "rgba(0, 0, 0, 0.4)"
  563. },
  564. borderRadius: {
  565. type: String
  566. }
  567. },
  568. watch: {
  569. /**
  570. * 监听type类型
  571. */
  572. type: {
  573. handler: function(type) {
  574. if (!this.config[type])
  575. return;
  576. this[this.config[type]](true);
  577. },
  578. immediate: true
  579. },
  580. isDesktop: {
  581. handler: function(newVal) {
  582. if (!this.config[newVal])
  583. return;
  584. this[this.config[this.type]](true);
  585. },
  586. immediate: true
  587. },
  588. /**
  589. * 监听遮罩是否可点击
  590. * @param {Object} val
  591. */
  592. maskClick: {
  593. handler: function(val) {
  594. this.mkclick = val;
  595. },
  596. immediate: true
  597. },
  598. isMaskClick: {
  599. handler: function(val) {
  600. this.mkclick = val;
  601. },
  602. immediate: true
  603. },
  604. // H5 下禁止底部滚动
  605. showPopup(show) {
  606. }
  607. },
  608. data() {
  609. return {
  610. duration: 300,
  611. ani: [],
  612. showPopup: false,
  613. showTrans: false,
  614. popupWidth: 0,
  615. popupHeight: 0,
  616. config: {
  617. top: "top",
  618. bottom: "bottom",
  619. center: "center",
  620. left: "left",
  621. right: "right",
  622. message: "top",
  623. dialog: "center",
  624. share: "bottom"
  625. },
  626. maskClass: {
  627. position: "fixed",
  628. bottom: 0,
  629. top: 0,
  630. left: 0,
  631. right: 0,
  632. backgroundColor: "rgba(0, 0, 0, 0.4)"
  633. },
  634. transClass: {
  635. backgroundColor: "transparent",
  636. borderRadius: this.borderRadius || "0",
  637. position: "fixed",
  638. left: 0,
  639. right: 0
  640. },
  641. maskShow: true,
  642. mkclick: true,
  643. popupstyle: "top"
  644. };
  645. },
  646. computed: {
  647. getStyles() {
  648. let res = { backgroundColor: this.bg };
  649. if (this.borderRadius || "0") {
  650. res = Object.assign(res, { borderRadius: this.borderRadius });
  651. }
  652. return res;
  653. },
  654. isDesktop() {
  655. return this.popupWidth >= 500 && this.popupHeight >= 500;
  656. },
  657. bg() {
  658. if (this.backgroundColor === "" || this.backgroundColor === "none") {
  659. return "transparent";
  660. }
  661. return this.backgroundColor;
  662. }
  663. },
  664. mounted() {
  665. const fixSize = () => {
  666. const {
  667. windowWidth,
  668. windowHeight,
  669. windowTop,
  670. safeArea,
  671. screenHeight,
  672. safeAreaInsets
  673. } = uni.getSystemInfoSync();
  674. this.popupWidth = windowWidth;
  675. this.popupHeight = windowHeight + (windowTop || 0);
  676. if (safeArea && this.safeArea) {
  677. this.safeAreaInsets = safeAreaInsets.bottom;
  678. } else {
  679. this.safeAreaInsets = 0;
  680. }
  681. };
  682. fixSize();
  683. },
  684. // TODO vue3
  685. unmounted() {
  686. this.setH5Visible();
  687. },
  688. activated() {
  689. this.setH5Visible(!this.showPopup);
  690. },
  691. deactivated() {
  692. this.setH5Visible(true);
  693. },
  694. created() {
  695. if (this.isMaskClick === null && this.maskClick === null) {
  696. this.mkclick = true;
  697. } else {
  698. this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick;
  699. }
  700. if (this.animation) {
  701. this.duration = 300;
  702. } else {
  703. this.duration = 0;
  704. }
  705. this.messageChild = null;
  706. this.clearPropagation = false;
  707. this.maskClass.backgroundColor = this.maskBackgroundColor;
  708. },
  709. methods: {
  710. setH5Visible(visible = true) {
  711. },
  712. /**
  713. * 公用方法,不显示遮罩层
  714. */
  715. closeMask() {
  716. this.maskShow = false;
  717. },
  718. /**
  719. * 公用方法,遮罩层禁止点击
  720. */
  721. disableMask() {
  722. this.mkclick = false;
  723. },
  724. // TODO nvue 取消冒泡
  725. clear(e) {
  726. e.stopPropagation();
  727. this.clearPropagation = true;
  728. },
  729. open(direction) {
  730. if (this.showPopup) {
  731. return;
  732. }
  733. let innerType = ["top", "center", "bottom", "left", "right", "message", "dialog", "share"];
  734. if (!(direction && innerType.indexOf(direction) !== -1)) {
  735. direction = this.type;
  736. }
  737. if (!this.config[direction]) {
  738. formatAppLog("error", "at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298", "缺少类型:", direction);
  739. return;
  740. }
  741. this[this.config[direction]]();
  742. this.$emit("change", {
  743. show: true,
  744. type: direction
  745. });
  746. },
  747. close(type) {
  748. this.showTrans = false;
  749. this.$emit("change", {
  750. show: false,
  751. type: this.type
  752. });
  753. clearTimeout(this.timer);
  754. this.timer = setTimeout(() => {
  755. this.showPopup = false;
  756. }, 300);
  757. },
  758. // TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容
  759. touchstart() {
  760. this.clearPropagation = false;
  761. },
  762. onTap() {
  763. if (this.clearPropagation) {
  764. this.clearPropagation = false;
  765. return;
  766. }
  767. this.$emit("maskClick");
  768. if (!this.mkclick)
  769. return;
  770. this.close();
  771. },
  772. /**
  773. * 顶部弹出样式处理
  774. */
  775. top(type) {
  776. this.popupstyle = this.isDesktop ? "fixforpc-top" : "top";
  777. this.ani = ["slide-top"];
  778. this.transClass = {
  779. position: "fixed",
  780. left: 0,
  781. right: 0,
  782. backgroundColor: this.bg,
  783. borderRadius: this.borderRadius || "0"
  784. };
  785. if (type)
  786. return;
  787. this.showPopup = true;
  788. this.showTrans = true;
  789. this.$nextTick(() => {
  790. if (this.messageChild && this.type === "message") {
  791. this.messageChild.timerClose();
  792. }
  793. });
  794. },
  795. /**
  796. * 底部弹出样式处理
  797. */
  798. bottom(type) {
  799. this.popupstyle = "bottom";
  800. this.ani = ["slide-bottom"];
  801. this.transClass = {
  802. position: "fixed",
  803. left: 0,
  804. right: 0,
  805. bottom: 0,
  806. paddingBottom: this.safeAreaInsets + "px",
  807. backgroundColor: this.bg,
  808. borderRadius: this.borderRadius || "0"
  809. };
  810. if (type)
  811. return;
  812. this.showPopup = true;
  813. this.showTrans = true;
  814. },
  815. /**
  816. * 中间弹出样式处理
  817. */
  818. center(type) {
  819. this.popupstyle = "center";
  820. this.ani = ["zoom-out", "fade"];
  821. this.transClass = {
  822. position: "fixed",
  823. display: "flex",
  824. flexDirection: "column",
  825. bottom: 0,
  826. left: 0,
  827. right: 0,
  828. top: 0,
  829. justifyContent: "center",
  830. alignItems: "center",
  831. borderRadius: this.borderRadius || "0"
  832. };
  833. if (type)
  834. return;
  835. this.showPopup = true;
  836. this.showTrans = true;
  837. },
  838. left(type) {
  839. this.popupstyle = "left";
  840. this.ani = ["slide-left"];
  841. this.transClass = {
  842. position: "fixed",
  843. left: 0,
  844. bottom: 0,
  845. top: 0,
  846. backgroundColor: this.bg,
  847. borderRadius: this.borderRadius || "0",
  848. display: "flex",
  849. flexDirection: "column"
  850. };
  851. if (type)
  852. return;
  853. this.showPopup = true;
  854. this.showTrans = true;
  855. },
  856. right(type) {
  857. this.popupstyle = "right";
  858. this.ani = ["slide-right"];
  859. this.transClass = {
  860. position: "fixed",
  861. bottom: 0,
  862. right: 0,
  863. top: 0,
  864. backgroundColor: this.bg,
  865. borderRadius: this.borderRadius || "0",
  866. display: "flex",
  867. flexDirection: "column"
  868. };
  869. if (type)
  870. return;
  871. this.showPopup = true;
  872. this.showTrans = true;
  873. }
  874. }
  875. };
  876. function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
  877. const _component_uni_transition = resolveEasycom(vue.resolveDynamicComponent("uni-transition"), __easycom_0$3);
  878. return $data.showPopup ? (vue.openBlock(), vue.createElementBlock(
  879. "view",
  880. {
  881. key: 0,
  882. class: vue.normalizeClass(["uni-popup", [$data.popupstyle, $options.isDesktop ? "fixforpc-z-index" : ""]])
  883. },
  884. [
  885. vue.createElementVNode(
  886. "view",
  887. {
  888. onTouchstart: _cache[1] || (_cache[1] = (...args) => $options.touchstart && $options.touchstart(...args))
  889. },
  890. [
  891. $data.maskShow ? (vue.openBlock(), vue.createBlock(_component_uni_transition, {
  892. key: "1",
  893. name: "mask",
  894. "mode-class": "fade",
  895. styles: $data.maskClass,
  896. duration: $data.duration,
  897. show: $data.showTrans,
  898. onClick: $options.onTap
  899. }, null, 8, ["styles", "duration", "show", "onClick"])) : vue.createCommentVNode("v-if", true),
  900. vue.createVNode(_component_uni_transition, {
  901. key: "2",
  902. "mode-class": $data.ani,
  903. name: "content",
  904. styles: $data.transClass,
  905. duration: $data.duration,
  906. show: $data.showTrans,
  907. onClick: $options.onTap
  908. }, {
  909. default: vue.withCtx(() => [
  910. vue.createElementVNode(
  911. "view",
  912. {
  913. class: vue.normalizeClass(["uni-popup__wrapper", [$data.popupstyle]]),
  914. style: vue.normalizeStyle($options.getStyles),
  915. onClick: _cache[0] || (_cache[0] = (...args) => $options.clear && $options.clear(...args))
  916. },
  917. [
  918. vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
  919. ],
  920. 6
  921. /* CLASS, STYLE */
  922. )
  923. ]),
  924. _: 3
  925. /* FORWARDED */
  926. }, 8, ["mode-class", "styles", "duration", "show", "onClick"])
  927. ],
  928. 32
  929. /* NEED_HYDRATION */
  930. )
  931. ],
  932. 2
  933. /* CLASS */
  934. )) : vue.createCommentVNode("v-if", true);
  935. }
  936. const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-4dd3c44b"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup/uni-popup.vue"]]);
  937. const control = async (data) => {
  938. try {
  939. const response2 = await uni.$http.post(`/api/v1/items/rt/${data.id}`, data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
  940. formatAppLog("log", "at api/api.js:6", response2);
  941. if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
  942. uni.removeStorageSync("token");
  943. login$1();
  944. return response2.data;
  945. }
  946. return response2.data;
  947. } catch (error) {
  948. formatAppLog("log", "at api/api.js:19", error);
  949. login$1();
  950. return response.data;
  951. }
  952. };
  953. const getuidatas = async (data) => {
  954. try {
  955. const response2 = await uni.$http.get("/api/v1/uidatas/rt/uis/3224a3eb-2375-4dfc-99ce-b182edd30996", data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
  956. formatAppLog("log", "at api/api.js:33", response2);
  957. uni.showToast({
  958. title: response2.data.msg,
  959. icon: "none",
  960. // 使用 'none' 图标来表示失败
  961. duration: 2e3
  962. // 显示时长,单位为毫秒
  963. });
  964. if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
  965. uni.removeStorageSync("token");
  966. login$1();
  967. return response2.data;
  968. }
  969. return response2.data;
  970. } catch (error) {
  971. formatAppLog("log", "at api/api.js:52", error);
  972. login$1();
  973. return response.data;
  974. }
  975. };
  976. const getfaultsList = async (data) => {
  977. try {
  978. const response2 = await uni.$http.get("/api/v1/faults", data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
  979. formatAppLog("log", "at api/api.js:67", response2.data);
  980. if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
  981. uni.removeStorageSync("token");
  982. login$1();
  983. return response2.data;
  984. }
  985. return response2.data;
  986. } catch (error) {
  987. formatAppLog("error", "at api/api.js:80", "Network request failed:", error);
  988. formatAppLog("log", "at api/api.js:81", error);
  989. uni.removeStorageSync("token");
  990. login$1();
  991. return response.data;
  992. }
  993. };
  994. const login$1 = async (start, count) => {
  995. try {
  996. formatAppLog("log", "at api/api.js:95", "login request");
  997. const response2 = await uni.$http.post(
  998. "/api/v1/login",
  999. { name: "dexnui", pwd: "dexn1001" },
  1000. { "Content-Type": "application/json;charset=utf-8" }
  1001. );
  1002. formatAppLog("log", "at api/api.js:98", response2);
  1003. if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
  1004. return response2.data;
  1005. }
  1006. formatAppLog("log", "at api/api.js:107", response2.data);
  1007. uni.setStorageSync("token", response2.data.data.token);
  1008. return response2.data;
  1009. } catch (error) {
  1010. return response.data;
  1011. }
  1012. };
  1013. const getTime = (format = "yyyy/MM/dd hh:mm:ss") => {
  1014. const date = /* @__PURE__ */ new Date();
  1015. const year = date.getFullYear();
  1016. const month = ("0" + (date.getMonth() + 1)).slice(-2);
  1017. const day = ("0" + date.getDate()).slice(-2);
  1018. const hours = ("0" + date.getHours()).slice(-2);
  1019. const minutes = ("0" + date.getMinutes()).slice(-2);
  1020. const seconds = ("0" + date.getSeconds()).slice(-2);
  1021. return format.replace("yyyy", year).replace("MM", month).replace("dd", day).replace("hh", hours).replace("mm", minutes).replace("ss", seconds);
  1022. };
  1023. const _imports_0 = "/static/logo.png";
  1024. const _imports_1 = "/static/tite.png";
  1025. const _imports_2$1 = "/static/electricity.png";
  1026. const _imports_3$1 = "/static/choice1.png";
  1027. const _imports_4$3 = "/static/power1.png";
  1028. const _imports_5$2 = "/static/choice2.png";
  1029. const _imports_6$1 = "/static/direct1.png";
  1030. const _imports_7$1 = "/static/choice3.png";
  1031. const _imports_8$1 = "/static/DCpower1.png";
  1032. const _imports_9$1 = "/static/choice4.png";
  1033. const _imports_10$1 = "/static/system.png";
  1034. const _imports_11$1 = "/static/!.png";
  1035. const _sfc_main$a = {
  1036. data() {
  1037. return {
  1038. title: "",
  1039. uidatasdata: {},
  1040. uidatas: "",
  1041. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  1042. formatTimeid: "",
  1043. selectorid: 0,
  1044. messageText: ""
  1045. };
  1046. },
  1047. created() {
  1048. this.formatTimeid = setInterval(() => {
  1049. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  1050. this.formattedTime = getTime(customFormat);
  1051. }, 1e3);
  1052. },
  1053. mounted() {
  1054. },
  1055. onLoad() {
  1056. this.onfaultsList();
  1057. },
  1058. beforeUnmount() {
  1059. clearInterval(this.formatTimeid);
  1060. clearInterval(this.uidatas);
  1061. },
  1062. methods: {
  1063. onfaultsList() {
  1064. let data = {
  1065. ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
  1066. page: 1,
  1067. rows: 1e4
  1068. };
  1069. getuidatas(data).then((data2) => {
  1070. if (data2.status == "ok") {
  1071. this.uidatasdata = data2.data.list.reduce((obj, item) => {
  1072. let a = item.module;
  1073. let b = item[a];
  1074. let numericValue = parseFloat(b);
  1075. let roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
  1076. return {
  1077. ...obj,
  1078. [item.id]: roundedValue
  1079. };
  1080. }, {});
  1081. this.selectorid = this.uidatasdata.SysInstall_EssRunModeManual;
  1082. this.uidatas = setTimeout(() => {
  1083. this.onfaultsList();
  1084. }, 1e4);
  1085. } else {
  1086. this.uidatas = setTimeout(() => {
  1087. this.onfaultsList();
  1088. }, 1e4);
  1089. }
  1090. }).catch((error) => {
  1091. formatAppLog("log", "at pages/index/index.vue:133", error);
  1092. this.uidatasdata = {};
  1093. this.uidatas = setTimeout(() => {
  1094. this.onfaultsList();
  1095. }, 1e3);
  1096. });
  1097. },
  1098. onclick(e) {
  1099. formatAppLog("log", "at pages/index/index.vue:142", e);
  1100. if (this.uidatasdata.SysInstall_EssRunModeManual == e) {
  1101. if (this.uidatasdata.SysInstall_EssRunModeManual == 3) {
  1102. uni.redirectTo({
  1103. url: "/pages/home/index"
  1104. });
  1105. } else if (this.uidatasdata.SysInstall_EssRunModeManual == 2) {
  1106. uni.redirectTo({
  1107. url: "/pages/electricity/index"
  1108. });
  1109. } else if (this.uidatasdata.SysInstall_EssRunModeManual == 4) {
  1110. uni.redirectTo({
  1111. url: "/pages/supply/supply"
  1112. });
  1113. } else if (this.uidatasdata.SysInstall_EssRunModeManual == 1) {
  1114. uni.redirectTo({
  1115. url: "/pages/supplyss/supplyss"
  1116. });
  1117. }
  1118. } else {
  1119. if (this.uidatasdata.SysControl_RunCmd == 1 || this.uidatasdata.SysControl_Gun1RunCmd == 1 || this.uidatasdata.SysControl_Gun2RunCmd == 1) {
  1120. this.messageText = "请停止之前模式,在选择";
  1121. this.$refs.message.open();
  1122. return;
  1123. } else if (e == 3) {
  1124. if (this.uidatasdata.AC_Out_380V_125A_Status == 1) {
  1125. this.messageText = "需将AC输出端125A的开关手动断开";
  1126. this.$refs.message.open();
  1127. return;
  1128. } else if (this.uidatasdata.AC_Out_380V_63A_Status == 1) {
  1129. this.messageText = "需将AC输出端63A的开关手动断开";
  1130. this.$refs.message.open();
  1131. return;
  1132. } else if (this.uidatasdata.AC_Out_220V_16A_Status == 1) {
  1133. this.messageText = "需将AC输出端16A的开关手动断开";
  1134. this.$refs.message.open();
  1135. return;
  1136. } else {
  1137. uni.setStorageSync("selector", e);
  1138. this.pattern(e);
  1139. }
  1140. } else if (e == 2) {
  1141. if (this.uidatasdata.AC_In_380V_63A1_Status == 1) {
  1142. this.messageText = "需将AC输出端63A1的开关手动断开";
  1143. this.$refs.message.open();
  1144. return;
  1145. } else if (this.uidatasdata.AC_In_380V_63A2_Status == 1) {
  1146. this.messageText = "需将AC输出端63A2的开关手动断开";
  1147. this.$refs.message.open();
  1148. return;
  1149. } else {
  1150. uni.setStorageSync("selector", e);
  1151. this.pattern(e);
  1152. }
  1153. } else {
  1154. uni.setStorageSync("selector", e);
  1155. this.pattern(e);
  1156. }
  1157. }
  1158. },
  1159. pattern(unm) {
  1160. let data = {
  1161. id: "c32e6a80-9159-4f6e-9acc-8525cf177808",
  1162. issaveinitvalue: false,
  1163. value: unm + ""
  1164. // 直流供电=1,直流补电=4,交流供电=2,交流补电=3
  1165. };
  1166. control(data).then((data2) => {
  1167. formatAppLog("log", "at pages/index/index.vue:243", data2);
  1168. if (data2.status == "ok") {
  1169. if (unm == 3) {
  1170. uni.redirectTo({
  1171. url: "/pages/home/index"
  1172. });
  1173. } else if (unm == 2) {
  1174. uni.redirectTo({
  1175. url: "/pages/electricity/index"
  1176. });
  1177. } else if (unm == 4) {
  1178. uni.redirectTo({
  1179. url: "/pages/supply/supply"
  1180. });
  1181. } else if (unm == 1) {
  1182. uni.redirectTo({
  1183. url: "/pages/supplyss/supplyss"
  1184. });
  1185. }
  1186. } else {
  1187. uni.hideLoading();
  1188. uni.showToast({
  1189. title: "选择模式失败请重新选择",
  1190. icon: "warning",
  1191. duration: 2500
  1192. // 显示时长,单位为毫秒
  1193. });
  1194. }
  1195. });
  1196. },
  1197. system() {
  1198. uni.redirectTo({
  1199. url: "/pages/details/index"
  1200. });
  1201. }
  1202. }
  1203. };
  1204. function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
  1205. const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
  1206. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  1207. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  1208. vue.createElementVNode("view", { class: "top" }, [
  1209. vue.createElementVNode("image", {
  1210. class: "top_logo",
  1211. src: _imports_0,
  1212. mode: ""
  1213. }),
  1214. vue.createElementVNode("image", {
  1215. class: "tite",
  1216. src: _imports_1,
  1217. mode: ""
  1218. }),
  1219. vue.createElementVNode("view", { class: "time" }, [
  1220. vue.createElementVNode(
  1221. "view",
  1222. { class: "time_top" },
  1223. vue.toDisplayString($data.formattedTime),
  1224. 1
  1225. /* TEXT */
  1226. ),
  1227. vue.createElementVNode("view", { class: "time_bottom" }, [
  1228. vue.createElementVNode("view"),
  1229. vue.createElementVNode("view", { class: "time_bottom1" }, [
  1230. vue.createTextVNode(" 连接状态: "),
  1231. $data.uidatasdata.bms_ChgLinkSt ? (vue.openBlock(), vue.createElementBlock("view", {
  1232. key: 0,
  1233. class: "time_state"
  1234. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  1235. key: 1,
  1236. class: "time_state1"
  1237. }, " 离线 "))
  1238. ])
  1239. ])
  1240. ])
  1241. ]),
  1242. vue.createElementVNode("view", { class: "tap" }, [
  1243. vue.createElementVNode("view", { class: "tap_1" }, " AC "),
  1244. vue.createElementVNode("view", { class: "tap_2" }, " DC "),
  1245. vue.createElementVNode("view", { class: "tap_3" }, " System ")
  1246. ]),
  1247. vue.createElementVNode("view", { class: "power" }, [
  1248. vue.createElementVNode("view", {
  1249. class: "power_1",
  1250. onClick: _cache[0] || (_cache[0] = ($event) => $options.onclick(3))
  1251. }, [
  1252. $data.selectorid == 3 ? (vue.openBlock(), vue.createElementBlock("image", {
  1253. key: 0,
  1254. src: _imports_2$1,
  1255. mode: ""
  1256. })) : (vue.openBlock(), vue.createElementBlock("image", {
  1257. key: 1,
  1258. src: _imports_3$1,
  1259. mode: ""
  1260. }))
  1261. ]),
  1262. vue.createElementVNode("view", {
  1263. class: "power_1",
  1264. onClick: _cache[1] || (_cache[1] = ($event) => $options.onclick(2))
  1265. }, [
  1266. $data.selectorid == 2 ? (vue.openBlock(), vue.createElementBlock("image", {
  1267. key: 0,
  1268. src: _imports_4$3,
  1269. mode: ""
  1270. })) : (vue.openBlock(), vue.createElementBlock("image", {
  1271. key: 1,
  1272. src: _imports_5$2,
  1273. mode: ""
  1274. }))
  1275. ]),
  1276. vue.createElementVNode("view", {
  1277. class: "power_1",
  1278. onClick: _cache[2] || (_cache[2] = ($event) => $options.onclick(4))
  1279. }, [
  1280. $data.selectorid == 4 ? (vue.openBlock(), vue.createElementBlock("image", {
  1281. key: 0,
  1282. src: _imports_6$1,
  1283. mode: ""
  1284. })) : (vue.openBlock(), vue.createElementBlock("image", {
  1285. key: 1,
  1286. src: _imports_7$1,
  1287. mode: ""
  1288. }))
  1289. ]),
  1290. vue.createElementVNode("view", {
  1291. class: "power_1",
  1292. onClick: _cache[3] || (_cache[3] = ($event) => $options.onclick(1))
  1293. }, [
  1294. $data.selectorid == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  1295. key: 0,
  1296. src: _imports_8$1,
  1297. mode: ""
  1298. })) : (vue.openBlock(), vue.createElementBlock("image", {
  1299. key: 1,
  1300. src: _imports_9$1,
  1301. mode: ""
  1302. }))
  1303. ]),
  1304. vue.createElementVNode("view", {
  1305. class: "power_5",
  1306. onClick: _cache[4] || (_cache[4] = (...args) => $options.system && $options.system(...args))
  1307. }, [
  1308. vue.createElementVNode("image", {
  1309. src: _imports_10$1,
  1310. mode: ""
  1311. })
  1312. ])
  1313. ]),
  1314. this.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  1315. key: 0,
  1316. class: "power_6"
  1317. }, [
  1318. vue.createElementVNode("image", {
  1319. src: _imports_11$1,
  1320. mode: ""
  1321. }),
  1322. vue.createTextVNode("若想重新选择模式,请返回之前模式停止以后再重新选择! ")
  1323. ])) : vue.createCommentVNode("v-if", true),
  1324. vue.createVNode(
  1325. _component_uni_popup,
  1326. {
  1327. ref: "message",
  1328. type: "message"
  1329. },
  1330. {
  1331. default: vue.withCtx(() => [
  1332. vue.createVNode(_component_uni_popup_message, {
  1333. type: "error",
  1334. message: $data.messageText,
  1335. duration: 2500
  1336. }, null, 8, ["message"])
  1337. ]),
  1338. _: 1
  1339. /* STABLE */
  1340. },
  1341. 512
  1342. /* NEED_PATCH */
  1343. )
  1344. ]);
  1345. }
  1346. const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__scopeId", "data-v-1cf27b2a"], ["__file", "D:/project/esswisdom_ipad/pages/index/index.vue"]]);
  1347. const isObject = (val) => val !== null && typeof val === "object";
  1348. const defaultDelimiters = ["{", "}"];
  1349. class BaseFormatter {
  1350. constructor() {
  1351. this._caches = /* @__PURE__ */ Object.create(null);
  1352. }
  1353. interpolate(message, values, delimiters = defaultDelimiters) {
  1354. if (!values) {
  1355. return [message];
  1356. }
  1357. let tokens = this._caches[message];
  1358. if (!tokens) {
  1359. tokens = parse(message, delimiters);
  1360. this._caches[message] = tokens;
  1361. }
  1362. return compile(tokens, values);
  1363. }
  1364. }
  1365. const RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  1366. const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  1367. function parse(format, [startDelimiter, endDelimiter]) {
  1368. const tokens = [];
  1369. let position = 0;
  1370. let text = "";
  1371. while (position < format.length) {
  1372. let char = format[position++];
  1373. if (char === startDelimiter) {
  1374. if (text) {
  1375. tokens.push({ type: "text", value: text });
  1376. }
  1377. text = "";
  1378. let sub = "";
  1379. char = format[position++];
  1380. while (char !== void 0 && char !== endDelimiter) {
  1381. sub += char;
  1382. char = format[position++];
  1383. }
  1384. const isClosed = char === endDelimiter;
  1385. const type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown";
  1386. tokens.push({ value: sub, type });
  1387. } else {
  1388. text += char;
  1389. }
  1390. }
  1391. text && tokens.push({ type: "text", value: text });
  1392. return tokens;
  1393. }
  1394. function compile(tokens, values) {
  1395. const compiled = [];
  1396. let index = 0;
  1397. const mode = Array.isArray(values) ? "list" : isObject(values) ? "named" : "unknown";
  1398. if (mode === "unknown") {
  1399. return compiled;
  1400. }
  1401. while (index < tokens.length) {
  1402. const token = tokens[index];
  1403. switch (token.type) {
  1404. case "text":
  1405. compiled.push(token.value);
  1406. break;
  1407. case "list":
  1408. compiled.push(values[parseInt(token.value, 10)]);
  1409. break;
  1410. case "named":
  1411. if (mode === "named") {
  1412. compiled.push(values[token.value]);
  1413. } else {
  1414. {
  1415. console.warn(`Type of token '${token.type}' and format of value '${mode}' don't match!`);
  1416. }
  1417. }
  1418. break;
  1419. case "unknown":
  1420. {
  1421. console.warn(`Detect 'unknown' type of token!`);
  1422. }
  1423. break;
  1424. }
  1425. index++;
  1426. }
  1427. return compiled;
  1428. }
  1429. const LOCALE_ZH_HANS = "zh-Hans";
  1430. const LOCALE_ZH_HANT = "zh-Hant";
  1431. const LOCALE_EN = "en";
  1432. const LOCALE_FR = "fr";
  1433. const LOCALE_ES = "es";
  1434. const hasOwnProperty = Object.prototype.hasOwnProperty;
  1435. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  1436. const defaultFormatter = new BaseFormatter();
  1437. function include(str, parts) {
  1438. return !!parts.find((part) => str.indexOf(part) !== -1);
  1439. }
  1440. function startsWith(str, parts) {
  1441. return parts.find((part) => str.indexOf(part) === 0);
  1442. }
  1443. function normalizeLocale(locale, messages2) {
  1444. if (!locale) {
  1445. return;
  1446. }
  1447. locale = locale.trim().replace(/_/g, "-");
  1448. if (messages2 && messages2[locale]) {
  1449. return locale;
  1450. }
  1451. locale = locale.toLowerCase();
  1452. if (locale === "chinese") {
  1453. return LOCALE_ZH_HANS;
  1454. }
  1455. if (locale.indexOf("zh") === 0) {
  1456. if (locale.indexOf("-hans") > -1) {
  1457. return LOCALE_ZH_HANS;
  1458. }
  1459. if (locale.indexOf("-hant") > -1) {
  1460. return LOCALE_ZH_HANT;
  1461. }
  1462. if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) {
  1463. return LOCALE_ZH_HANT;
  1464. }
  1465. return LOCALE_ZH_HANS;
  1466. }
  1467. let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  1468. if (messages2 && Object.keys(messages2).length > 0) {
  1469. locales = Object.keys(messages2);
  1470. }
  1471. const lang = startsWith(locale, locales);
  1472. if (lang) {
  1473. return lang;
  1474. }
  1475. }
  1476. class I18n {
  1477. constructor({ locale, fallbackLocale, messages: messages2, watcher, formater: formater2 }) {
  1478. this.locale = LOCALE_EN;
  1479. this.fallbackLocale = LOCALE_EN;
  1480. this.message = {};
  1481. this.messages = {};
  1482. this.watchers = [];
  1483. if (fallbackLocale) {
  1484. this.fallbackLocale = fallbackLocale;
  1485. }
  1486. this.formater = formater2 || defaultFormatter;
  1487. this.messages = messages2 || {};
  1488. this.setLocale(locale || LOCALE_EN);
  1489. if (watcher) {
  1490. this.watchLocale(watcher);
  1491. }
  1492. }
  1493. setLocale(locale) {
  1494. const oldLocale = this.locale;
  1495. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  1496. if (!this.messages[this.locale]) {
  1497. this.messages[this.locale] = {};
  1498. }
  1499. this.message = this.messages[this.locale];
  1500. if (oldLocale !== this.locale) {
  1501. this.watchers.forEach((watcher) => {
  1502. watcher(this.locale, oldLocale);
  1503. });
  1504. }
  1505. }
  1506. getLocale() {
  1507. return this.locale;
  1508. }
  1509. watchLocale(fn) {
  1510. const index = this.watchers.push(fn) - 1;
  1511. return () => {
  1512. this.watchers.splice(index, 1);
  1513. };
  1514. }
  1515. add(locale, message, override = true) {
  1516. const curMessages = this.messages[locale];
  1517. if (curMessages) {
  1518. if (override) {
  1519. Object.assign(curMessages, message);
  1520. } else {
  1521. Object.keys(message).forEach((key) => {
  1522. if (!hasOwn(curMessages, key)) {
  1523. curMessages[key] = message[key];
  1524. }
  1525. });
  1526. }
  1527. } else {
  1528. this.messages[locale] = message;
  1529. }
  1530. }
  1531. f(message, values, delimiters) {
  1532. return this.formater.interpolate(message, values, delimiters).join("");
  1533. }
  1534. t(key, locale, values) {
  1535. let message = this.message;
  1536. if (typeof locale === "string") {
  1537. locale = normalizeLocale(locale, this.messages);
  1538. locale && (message = this.messages[locale]);
  1539. } else {
  1540. values = locale;
  1541. }
  1542. if (!hasOwn(message, key)) {
  1543. console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`);
  1544. return key;
  1545. }
  1546. return this.formater.interpolate(message[key], values).join("");
  1547. }
  1548. }
  1549. function watchAppLocale(appVm, i18n) {
  1550. if (appVm.$watchLocale) {
  1551. appVm.$watchLocale((newLocale) => {
  1552. i18n.setLocale(newLocale);
  1553. });
  1554. } else {
  1555. appVm.$watch(() => appVm.$locale, (newLocale) => {
  1556. i18n.setLocale(newLocale);
  1557. });
  1558. }
  1559. }
  1560. function getDefaultLocale() {
  1561. if (typeof uni !== "undefined" && uni.getLocale) {
  1562. return uni.getLocale();
  1563. }
  1564. if (typeof global !== "undefined" && global.getLocale) {
  1565. return global.getLocale();
  1566. }
  1567. return LOCALE_EN;
  1568. }
  1569. function initVueI18n(locale, messages2 = {}, fallbackLocale, watcher) {
  1570. if (typeof locale !== "string") {
  1571. const options = [
  1572. messages2,
  1573. locale
  1574. ];
  1575. locale = options[0];
  1576. messages2 = options[1];
  1577. }
  1578. if (typeof locale !== "string") {
  1579. locale = getDefaultLocale();
  1580. }
  1581. if (typeof fallbackLocale !== "string") {
  1582. fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN;
  1583. }
  1584. const i18n = new I18n({
  1585. locale,
  1586. fallbackLocale,
  1587. messages: messages2,
  1588. watcher
  1589. });
  1590. let t2 = (key, values) => {
  1591. if (typeof getApp !== "function") {
  1592. t2 = function(key2, values2) {
  1593. return i18n.t(key2, values2);
  1594. };
  1595. } else {
  1596. let isWatchedAppLocale = false;
  1597. t2 = function(key2, values2) {
  1598. const appVm = getApp().$vm;
  1599. if (appVm) {
  1600. appVm.$locale;
  1601. if (!isWatchedAppLocale) {
  1602. isWatchedAppLocale = true;
  1603. watchAppLocale(appVm, i18n);
  1604. }
  1605. }
  1606. return i18n.t(key2, values2);
  1607. };
  1608. }
  1609. return t2(key, values);
  1610. };
  1611. return {
  1612. i18n,
  1613. f(message, values, delimiters) {
  1614. return i18n.f(message, values, delimiters);
  1615. },
  1616. t(key, values) {
  1617. return t2(key, values);
  1618. },
  1619. add(locale2, message, override = true) {
  1620. return i18n.add(locale2, message, override);
  1621. },
  1622. watch(fn) {
  1623. return i18n.watchLocale(fn);
  1624. },
  1625. getLocale() {
  1626. return i18n.getLocale();
  1627. },
  1628. setLocale(newLocale) {
  1629. return i18n.setLocale(newLocale);
  1630. }
  1631. };
  1632. }
  1633. const en$1 = {
  1634. "uni-popup.cancel": "cancel",
  1635. "uni-popup.ok": "ok",
  1636. "uni-popup.placeholder": "pleace enter",
  1637. "uni-popup.title": "Hint",
  1638. "uni-popup.shareTitle": "Share to"
  1639. };
  1640. const zhHans$1 = {
  1641. "uni-popup.cancel": "取消",
  1642. "uni-popup.ok": "确定",
  1643. "uni-popup.placeholder": "请输入",
  1644. "uni-popup.title": "提示",
  1645. "uni-popup.shareTitle": "分享到"
  1646. };
  1647. const zhHant$1 = {
  1648. "uni-popup.cancel": "取消",
  1649. "uni-popup.ok": "確定",
  1650. "uni-popup.placeholder": "請輸入",
  1651. "uni-popup.title": "提示",
  1652. "uni-popup.shareTitle": "分享到"
  1653. };
  1654. const messages$1 = {
  1655. en: en$1,
  1656. "zh-Hans": zhHans$1,
  1657. "zh-Hant": zhHant$1
  1658. };
  1659. const {
  1660. t: t$1
  1661. } = initVueI18n(messages$1);
  1662. const _sfc_main$9 = {
  1663. name: "uniPopupDialog",
  1664. mixins: [popup],
  1665. emits: ["confirm", "close", "update:modelValue", "input"],
  1666. props: {
  1667. inputType: {
  1668. type: String,
  1669. default: "text"
  1670. },
  1671. showClose: {
  1672. type: Boolean,
  1673. default: true
  1674. },
  1675. modelValue: {
  1676. type: [Number, String],
  1677. default: ""
  1678. },
  1679. placeholder: {
  1680. type: [String, Number],
  1681. default: ""
  1682. },
  1683. type: {
  1684. type: String,
  1685. default: "error"
  1686. },
  1687. mode: {
  1688. type: String,
  1689. default: "base"
  1690. },
  1691. title: {
  1692. type: String,
  1693. default: ""
  1694. },
  1695. content: {
  1696. type: String,
  1697. default: ""
  1698. },
  1699. beforeClose: {
  1700. type: Boolean,
  1701. default: false
  1702. },
  1703. cancelText: {
  1704. type: String,
  1705. default: ""
  1706. },
  1707. confirmText: {
  1708. type: String,
  1709. default: ""
  1710. },
  1711. maxlength: {
  1712. type: Number,
  1713. default: -1
  1714. },
  1715. focus: {
  1716. type: Boolean,
  1717. default: true
  1718. }
  1719. },
  1720. data() {
  1721. return {
  1722. dialogType: "error",
  1723. val: ""
  1724. };
  1725. },
  1726. computed: {
  1727. okText() {
  1728. return this.confirmText || t$1("uni-popup.ok");
  1729. },
  1730. closeText() {
  1731. return this.cancelText || t$1("uni-popup.cancel");
  1732. },
  1733. placeholderText() {
  1734. return this.placeholder || t$1("uni-popup.placeholder");
  1735. },
  1736. titleText() {
  1737. return this.title || t$1("uni-popup.title");
  1738. }
  1739. },
  1740. watch: {
  1741. type(val) {
  1742. this.dialogType = val;
  1743. },
  1744. mode(val) {
  1745. if (val === "input") {
  1746. this.dialogType = "info";
  1747. }
  1748. },
  1749. value(val) {
  1750. if (this.maxlength != -1 && this.mode === "input") {
  1751. this.val = val.slice(0, this.maxlength);
  1752. } else {
  1753. this.val = val;
  1754. }
  1755. },
  1756. val(val) {
  1757. this.$emit("update:modelValue", val);
  1758. }
  1759. },
  1760. created() {
  1761. this.popup.disableMask();
  1762. if (this.mode === "input") {
  1763. this.dialogType = "info";
  1764. this.val = this.value;
  1765. this.val = this.modelValue;
  1766. } else {
  1767. this.dialogType = this.type;
  1768. }
  1769. },
  1770. methods: {
  1771. /**
  1772. * 点击确认按钮
  1773. */
  1774. onOk() {
  1775. if (this.mode === "input") {
  1776. this.$emit("confirm", this.val);
  1777. } else {
  1778. this.$emit("confirm");
  1779. }
  1780. if (this.beforeClose)
  1781. return;
  1782. this.popup.close();
  1783. },
  1784. /**
  1785. * 点击取消按钮
  1786. */
  1787. closeDialog() {
  1788. this.$emit("close");
  1789. if (this.beforeClose)
  1790. return;
  1791. this.popup.close();
  1792. },
  1793. close() {
  1794. this.popup.close();
  1795. }
  1796. }
  1797. };
  1798. function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
  1799. return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-dialog" }, [
  1800. vue.createElementVNode("view", { class: "uni-dialog-title" }, [
  1801. vue.createElementVNode(
  1802. "text",
  1803. {
  1804. class: vue.normalizeClass(["uni-dialog-title-text", ["uni-popup__" + $data.dialogType]])
  1805. },
  1806. vue.toDisplayString($options.titleText),
  1807. 3
  1808. /* TEXT, CLASS */
  1809. )
  1810. ]),
  1811. $props.mode === "base" ? (vue.openBlock(), vue.createElementBlock("view", {
  1812. key: 0,
  1813. class: "uni-dialog-content"
  1814. }, [
  1815. vue.renderSlot(_ctx.$slots, "default", {}, () => [
  1816. vue.createElementVNode(
  1817. "text",
  1818. { class: "uni-dialog-content-text" },
  1819. vue.toDisplayString($props.content),
  1820. 1
  1821. /* TEXT */
  1822. )
  1823. ], true)
  1824. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  1825. key: 1,
  1826. class: "uni-dialog-content"
  1827. }, [
  1828. vue.renderSlot(_ctx.$slots, "default", {}, () => [
  1829. vue.withDirectives(vue.createElementVNode("input", {
  1830. class: "uni-dialog-input",
  1831. maxlength: $props.maxlength,
  1832. "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.val = $event),
  1833. type: $props.inputType,
  1834. placeholder: $options.placeholderText,
  1835. focus: $props.focus
  1836. }, null, 8, ["maxlength", "type", "placeholder", "focus"]), [
  1837. [vue.vModelDynamic, $data.val]
  1838. ])
  1839. ], true)
  1840. ])),
  1841. vue.createElementVNode("view", { class: "uni-dialog-button-group" }, [
  1842. $props.showClose ? (vue.openBlock(), vue.createElementBlock("view", {
  1843. key: 0,
  1844. class: "uni-dialog-button",
  1845. onClick: _cache[1] || (_cache[1] = (...args) => $options.closeDialog && $options.closeDialog(...args))
  1846. }, [
  1847. vue.createElementVNode(
  1848. "text",
  1849. { class: "uni-dialog-button-text" },
  1850. vue.toDisplayString($options.closeText),
  1851. 1
  1852. /* TEXT */
  1853. )
  1854. ])) : vue.createCommentVNode("v-if", true),
  1855. vue.createElementVNode(
  1856. "view",
  1857. {
  1858. class: vue.normalizeClass(["uni-dialog-button", $props.showClose ? "uni-border-left" : ""]),
  1859. onClick: _cache[2] || (_cache[2] = (...args) => $options.onOk && $options.onOk(...args))
  1860. },
  1861. [
  1862. vue.createElementVNode(
  1863. "text",
  1864. { class: "uni-dialog-button-text uni-button-color" },
  1865. vue.toDisplayString($options.okText),
  1866. 1
  1867. /* TEXT */
  1868. )
  1869. ],
  1870. 2
  1871. /* CLASS */
  1872. )
  1873. ])
  1874. ]);
  1875. }
  1876. const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-d78c88b7"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"]]);
  1877. class Gauge {
  1878. constructor({
  1879. canvasId,
  1880. startAngle = 3.5 / 4 * Math.PI,
  1881. // 135
  1882. endAngle = 0.5 / 4 * Math.PI,
  1883. // 45
  1884. width = 180,
  1885. min = 0,
  1886. max = 100,
  1887. value = 0,
  1888. unit = "%",
  1889. showTick = false,
  1890. valueColor = "#555",
  1891. progressColor = "#f58220",
  1892. trackColor = "#F1F1F1",
  1893. lineWidth = 10
  1894. }) {
  1895. this.ctx = uni.createCanvasContext(canvasId);
  1896. this.startAngle = startAngle;
  1897. this.endAngle = endAngle;
  1898. this.width = width;
  1899. this.min = min;
  1900. this.max = max;
  1901. this.value = value;
  1902. this.unit = unit;
  1903. this.showTick = showTick;
  1904. this.valueColor = valueColor;
  1905. this.progressColor = progressColor;
  1906. this.trackColor = trackColor;
  1907. this.lineWidth = lineWidth;
  1908. this.radius = this.width / 2;
  1909. this.process = min || -1;
  1910. this.tickLength = this.max - this.min;
  1911. this.trackRadius = this.radius - this.lineWidth / 2;
  1912. this.tickRad = (2 * Math.PI - this.startAngle + this.endAngle) / this.tickLength;
  1913. this.start();
  1914. }
  1915. draw() {
  1916. this.ctx.translate(this.radius, this.radius);
  1917. this.drawTrack();
  1918. this.drawValueText();
  1919. this.drawProgress();
  1920. if (this.showTick) {
  1921. this.drawTick();
  1922. this.drawTickText();
  1923. }
  1924. this.ctx.draw();
  1925. }
  1926. // 轨迹圆环
  1927. drawTrack() {
  1928. this.ctx.save();
  1929. this.ctx.lineWidth = this.lineWidth;
  1930. this.ctx.strokeStyle = this.trackColor;
  1931. this.ctx.arc(0, 0, this.trackRadius, this.startAngle, this.endAngle);
  1932. this.ctx.stroke();
  1933. this.ctx.restore();
  1934. }
  1935. // 当前值显示
  1936. drawValueText() {
  1937. this.ctx.save();
  1938. this.ctx.fillStyle = this.valueColor;
  1939. this.ctx.font = "34px serif";
  1940. this.ctx.textAlign = "center";
  1941. this.ctx.textBaseline = "middle";
  1942. this.ctx.fillText(`${this.value}${this.unit}`, 0, 0);
  1943. this.ctx.restore();
  1944. }
  1945. // 进度圆环
  1946. drawProgress() {
  1947. this.ctx.save();
  1948. const valueRad = this.getValueRad();
  1949. this.ctx.beginPath();
  1950. this.ctx.lineWidth = this.lineWidth;
  1951. this.ctx.strokeStyle = typeof this.progressColor === "string" ? this.progressColor : this.getGradient(this.progressColor);
  1952. this.ctx.lineJoin = "round";
  1953. this.ctx.arc(0, 0, this.trackRadius, this.startAngle, valueRad);
  1954. this.ctx.stroke();
  1955. this.ctx.restore();
  1956. }
  1957. // 刻度线
  1958. drawTick() {
  1959. let deg = this.startAngle;
  1960. for (let i = this.min; i <= this.max; i++) {
  1961. this.ctx.save();
  1962. this.ctx.lineWidth = 1;
  1963. this.ctx.strokeStyle = "#999";
  1964. this.ctx.beginPath();
  1965. let x0 = (this.radius - this.lineWidth - 2) * Math.cos(deg);
  1966. let y0 = (this.radius - this.lineWidth - 2) * Math.sin(deg);
  1967. var x1 = (this.radius - this.lineWidth - 8) * Math.cos(deg);
  1968. var y1 = (this.radius - this.lineWidth - 8) * Math.sin(deg);
  1969. this.ctx.moveTo(x0, y0);
  1970. this.ctx.lineTo(x1, y1);
  1971. deg += this.tickRad;
  1972. this.ctx.stroke();
  1973. this.ctx.restore();
  1974. }
  1975. }
  1976. // 刻度值
  1977. drawTickText() {
  1978. let deg = this.startAngle;
  1979. for (let i = this.min; i <= this.max; i++) {
  1980. let x = (this.radius - this.lineWidth - 20) * Math.cos(deg);
  1981. let y = (this.radius - this.lineWidth - 20) * Math.sin(deg);
  1982. deg += this.tickRad;
  1983. this.ctx.save();
  1984. this.ctx.font = "12px serif";
  1985. this.ctx.fillStyle = "#999";
  1986. this.ctx.textAlign = "center";
  1987. this.ctx.textBaseline = "middle";
  1988. this.ctx.fillText(i, x, y);
  1989. this.ctx.restore();
  1990. }
  1991. }
  1992. // 当前值的弧度
  1993. getValueRad() {
  1994. if (this.value > this.max) {
  1995. return (this.max - this.min) * this.tickRad + this.startAngle;
  1996. }
  1997. return (this.process - this.min) * this.tickRad + this.startAngle;
  1998. }
  1999. start() {
  2000. let update = () => {
  2001. this.process = this.process + (this.max - this.min) / 100;
  2002. if (this.process > this.value) {
  2003. cancelAnimationFrame(update);
  2004. } else {
  2005. this.draw();
  2006. uni.requestAnimationFrame(update);
  2007. }
  2008. };
  2009. uni.requestAnimationFrame(update);
  2010. }
  2011. // 渐变
  2012. getGradient(colorList) {
  2013. let grd = this.ctx.createLinearGradient(0, 0, this.trackRadius, 0);
  2014. colorList.forEach((color, index) => {
  2015. grd.addColorStop(index / (colorList.length - 1), color);
  2016. });
  2017. return grd;
  2018. }
  2019. }
  2020. uni.requestAnimationFrame = function(callback) {
  2021. var lastTime = 0;
  2022. var currTime = (/* @__PURE__ */ new Date()).getTime();
  2023. var timeToCall = Math.max(0, 16 - (currTime - lastTime));
  2024. var id = setTimeout(function() {
  2025. callback(currTime + timeToCall);
  2026. }, timeToCall);
  2027. lastTime = currTime + timeToCall;
  2028. return id;
  2029. };
  2030. uni.cancelAnimationFrame = function(id) {
  2031. clearTimeout(id);
  2032. };
  2033. (function() {
  2034. var vendors = ["webkit", "moz", "ms", "o"];
  2035. for (var x = 0; x < vendors.length && !uni.requestAnimationFrame; ++x) {
  2036. uni.requestAnimationFrame = uni[vendors[x] + "RequestAnimationFrame"];
  2037. uni.cancelAnimationFrame = uni[vendors[x] + "CancelAnimationFrame"] || uni[vendors[x] + "CancelRequestAnimationFrame"];
  2038. }
  2039. if (!uni.requestAnimationFrame)
  2040. uni.requestAnimationFrame = function(callback) {
  2041. return setTimeout(callback, 16);
  2042. };
  2043. if (!uni.cancelAnimationFrame)
  2044. uni.cancelAnimationFrame = function(id) {
  2045. clearTimeout(id);
  2046. };
  2047. })();
  2048. const _imports_2 = "/static/dian1.png";
  2049. const _imports_3 = "/static/dian2.png";
  2050. const _imports_4$2 = "/static/che.png";
  2051. const _imports_5$1 = "/static/y8.png";
  2052. const _imports_6 = "/static/y6.png";
  2053. const _imports_7 = "/static/SOC.png";
  2054. const _imports_8 = "/static/Battery.png";
  2055. const _imports_9 = "/static/setup.png";
  2056. const _imports_10 = "/static/home.png";
  2057. const _imports_11 = "/static/home1.png";
  2058. const _sfc_main$8 = {
  2059. data() {
  2060. return {
  2061. successtype: "success",
  2062. confirmText: "确认启动",
  2063. title: "你确定要开启该设备吗?",
  2064. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  2065. value: "",
  2066. modeinput: "",
  2067. segmented: 1,
  2068. uidatasdata: {},
  2069. uidatas: "",
  2070. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  2071. formatTimeid: "",
  2072. faultsdata: [],
  2073. messageText: ""
  2074. };
  2075. },
  2076. onLoad() {
  2077. this.formatTimeid = setInterval(() => {
  2078. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  2079. this.formattedTime = getTime(customFormat);
  2080. }, 1e3);
  2081. },
  2082. mounted() {
  2083. this.onfaultsList();
  2084. this.onfaultsdata();
  2085. setTimeout(() => {
  2086. let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
  2087. new Gauge({
  2088. canvasId: "canvas2",
  2089. value: SOC,
  2090. lineWidth: 20,
  2091. progressColor: ["#B0D0FF", "#5B8FF9"],
  2092. valueColor: "blue"
  2093. });
  2094. }, 100);
  2095. },
  2096. beforeUnmount() {
  2097. clearInterval(this.uidatas);
  2098. clearInterval(this.formatTimeid);
  2099. },
  2100. methods: {
  2101. // 页面信息
  2102. onfaultsList() {
  2103. let data = {
  2104. ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
  2105. page: 1,
  2106. rows: 1e4
  2107. };
  2108. getuidatas(data).then((data2) => {
  2109. formatAppLog("log", "at pages/home/index.vue:559", data2);
  2110. if (data2.status == "ok") {
  2111. if (!data2.data.list) {
  2112. this.uidatas = setTimeout(() => {
  2113. this.onfaultsList();
  2114. }, 1e3);
  2115. }
  2116. this.uidatasdata = data2.data.list.reduce((obj, item) => {
  2117. let a = item.module;
  2118. let b = item[a];
  2119. let numericValue = parseFloat(b);
  2120. let roundedValue = "";
  2121. if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
  2122. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
  2123. } else {
  2124. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
  2125. }
  2126. return {
  2127. ...obj,
  2128. [item.id]: roundedValue
  2129. };
  2130. }, {});
  2131. formatAppLog("log", "at pages/home/index.vue:585", this.uidatasdata);
  2132. if (this.uidatasdata.AC_Out_380V_125A_Status == 1) {
  2133. this.messageText = "需将AC输出端125A的开关手动断开";
  2134. this.$refs.message.open();
  2135. } else if (this.uidatasdata.AC_Out_380V_63A_Status == 1) {
  2136. this.messageText = "需将AC输出端63A的开关手动断开";
  2137. this.$refs.message.open();
  2138. } else if (this.uidatasdata.AC_Out_220V_16A_Status == 1) {
  2139. this.messageText = "需将AC输出端16A的开关手动断开";
  2140. this.$refs.message.open();
  2141. }
  2142. this.uidatas = setTimeout(() => {
  2143. this.onfaultsList();
  2144. }, 1e3);
  2145. } else {
  2146. this.uidatasdata = {};
  2147. this.uidatas = setTimeout(() => {
  2148. this.onfaultsList();
  2149. }, 1e3);
  2150. }
  2151. }).catch((error) => {
  2152. formatAppLog("log", "at pages/home/index.vue:609", error);
  2153. this.uidatasdata = {};
  2154. this.uidatas = setTimeout(() => {
  2155. this.onfaultsList();
  2156. }, 1e3);
  2157. });
  2158. },
  2159. onfaultsdata() {
  2160. let data = {
  2161. page: 1,
  2162. rows: 1,
  2163. device: "",
  2164. starttime: "",
  2165. endtime: "",
  2166. rt: 1,
  2167. type: ""
  2168. };
  2169. getfaultsList(data).then((res) => {
  2170. formatAppLog("log", "at pages/home/index.vue:629", res);
  2171. if (res.status == "ok") {
  2172. this.faultsdata = res.data.list;
  2173. }
  2174. });
  2175. },
  2176. // 返回首页
  2177. onreturn() {
  2178. uni.redirectTo({
  2179. url: "/pages/index/index"
  2180. });
  2181. },
  2182. // 启动设备弹窗
  2183. dialogToggle() {
  2184. this.modeinput = "base";
  2185. this.successtype = "success";
  2186. this.confirmText = "确认启动";
  2187. this.title = "你确定要开启该设备吗?";
  2188. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  2189. this.$refs.alertDialog.open();
  2190. },
  2191. onstopit() {
  2192. this.modeinput = "base";
  2193. this.successtype = "error";
  2194. this.confirmText = "确认停止";
  2195. this.title = "你确定要停止该设备吗?";
  2196. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  2197. this.$refs.alertDialog.open();
  2198. },
  2199. onpower() {
  2200. this.modeinput = "input";
  2201. this.title = "功率给定";
  2202. this.$refs.alertDialog.open();
  2203. },
  2204. // 确定
  2205. dialogConfirm() {
  2206. let data = {};
  2207. if (this.title == "功率给定") {
  2208. data = {
  2209. id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
  2210. issaveinitvalue: false,
  2211. value: this.value
  2212. };
  2213. } else {
  2214. data = {
  2215. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  2216. issaveinitvalue: false,
  2217. value: this.confirmText == "确认启动" ? "1" : "0"
  2218. };
  2219. }
  2220. control(data).then((data2) => {
  2221. formatAppLog("log", "at pages/home/index.vue:684", data2);
  2222. if (data2.status == "ok") {
  2223. uni.showToast({
  2224. title: "操作成功",
  2225. icon: "none",
  2226. duration: 2e3
  2227. // 显示时长,单位为毫秒
  2228. });
  2229. } else {
  2230. uni.showToast({
  2231. title: "操作失败",
  2232. icon: "none",
  2233. // 使用 'none' 图标来表示失败
  2234. duration: 2e3
  2235. // 显示时长,单位为毫秒
  2236. });
  2237. }
  2238. });
  2239. },
  2240. dialogClose() {
  2241. this.$refs.alertDialog.close();
  2242. },
  2243. ontap(e) {
  2244. formatAppLog("log", "at pages/home/index.vue:706", e);
  2245. this.segmented = e;
  2246. }
  2247. }
  2248. };
  2249. function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
  2250. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  2251. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  2252. const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
  2253. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  2254. vue.createElementVNode("view", { class: "top" }, [
  2255. vue.createElementVNode("image", {
  2256. class: "top_logo",
  2257. src: _imports_0,
  2258. mode: ""
  2259. }),
  2260. vue.createElementVNode("image", {
  2261. class: "tite",
  2262. src: _imports_1,
  2263. mode: ""
  2264. }),
  2265. vue.createElementVNode("view", { class: "time" }, [
  2266. vue.createElementVNode(
  2267. "view",
  2268. { class: "time_top" },
  2269. vue.toDisplayString($data.formattedTime),
  2270. 1
  2271. /* TEXT */
  2272. ),
  2273. vue.createElementVNode("view", { class: "time_bottom" }, [
  2274. vue.createElementVNode("view"),
  2275. vue.createElementVNode("view", { class: "time_bottom1" }, [
  2276. vue.createTextVNode(" 连接状态: "),
  2277. $data.uidatasdata.AC_In_380V_63A1_Status ? (vue.openBlock(), vue.createElementBlock("view", {
  2278. key: 0,
  2279. class: "time_state"
  2280. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  2281. key: 1,
  2282. class: "time_state1"
  2283. }, " 离线 "))
  2284. ])
  2285. ])
  2286. ])
  2287. ]),
  2288. vue.createElementVNode("view", { class: "parameter" }, [
  2289. vue.createElementVNode("view", { class: "parameter_left" }, [
  2290. vue.createElementVNode("view", { class: "parameter_left1" }, [
  2291. vue.createElementVNode("canvas", {
  2292. class: "canvas",
  2293. "canvas-id": "canvas2"
  2294. }),
  2295. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  2296. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  2297. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  2298. ])
  2299. ]),
  2300. vue.createElementVNode("image", {
  2301. class: "parameter_leftdian1",
  2302. src: _imports_2,
  2303. alt: ""
  2304. }),
  2305. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  2306. vue.createElementVNode("image", {
  2307. src: _imports_3,
  2308. mode: ""
  2309. })
  2310. ]),
  2311. vue.createElementVNode("image", {
  2312. class: "parameter_leftche",
  2313. src: _imports_4$2,
  2314. mode: ""
  2315. }),
  2316. vue.createCommentVNode(' <image class="parameter_leftche1" src="../../static/fang.png" mode=""></image> '),
  2317. vue.createCommentVNode(' <image class="parameter_leftche" src="../../static/che.png" mode=""></image> '),
  2318. vue.createCommentVNode(' <image class="parameter_leftche2" src="../../static/che1.png" mode=""></image> '),
  2319. vue.createElementVNode("view", { class: "parameter_leftview" }, "交流补电"),
  2320. vue.createCommentVNode(' <view class="parameter_leftview">交流供电</view> '),
  2321. vue.createCommentVNode(' <view class="parameter_leftview">直流补电</view> '),
  2322. vue.createCommentVNode(' <view class="parameter_leftview">直流供电</view> ')
  2323. ]),
  2324. vue.createElementVNode("view", { class: "parameter_right" }, [
  2325. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  2326. vue.createElementVNode("view", { class: "parameter_1" }, [
  2327. vue.createElementVNode("view", { class: "parameter_2" }, [
  2328. vue.createElementVNode("view", { class: "parameter_3" }, [
  2329. vue.createElementVNode("view", { class: "parameter_4" }, [
  2330. $data.uidatasdata.AC_In_380V_63A1_Status == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  2331. key: 0,
  2332. src: _imports_5$1,
  2333. mode: ""
  2334. })) : (vue.openBlock(), vue.createElementBlock("image", {
  2335. key: 1,
  2336. src: _imports_6,
  2337. mode: ""
  2338. })),
  2339. vue.createTextVNode(" 63A1状态 ")
  2340. ]),
  2341. $data.uidatasdata.AC_In_380V_63A1_Status == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  2342. key: 0,
  2343. class: "parameter_51"
  2344. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  2345. key: 1,
  2346. class: "parameter_5"
  2347. }, " 断开 "))
  2348. ]),
  2349. vue.createElementVNode("view", { class: "parameter_3" }, [
  2350. vue.createElementVNode("view", { class: "parameter_4" }, [
  2351. $data.uidatasdata.AC_In_380V_63A2_Status == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  2352. key: 0,
  2353. src: _imports_5$1,
  2354. mode: ""
  2355. })) : (vue.openBlock(), vue.createElementBlock("image", {
  2356. key: 1,
  2357. src: _imports_6,
  2358. mode: ""
  2359. })),
  2360. vue.createTextVNode(" 63A2状态 ")
  2361. ]),
  2362. $data.uidatasdata.AC_In_380V_63A2_Status == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  2363. key: 0,
  2364. class: "parameter_51"
  2365. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  2366. key: 1,
  2367. class: "parameter_5"
  2368. }, " 断开 "))
  2369. ])
  2370. ]),
  2371. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  2372. vue.createElementVNode("image", {
  2373. src: _imports_7,
  2374. mode: ""
  2375. }),
  2376. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  2377. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  2378. vue.createElementVNode("view", null, [
  2379. vue.createElementVNode(
  2380. "text",
  2381. { class: "parameter_SOCright2" },
  2382. vue.toDisplayString($data.uidatasdata.SOC),
  2383. 1
  2384. /* TEXT */
  2385. ),
  2386. vue.createTextVNode(),
  2387. vue.createElementVNode("text", null, "%")
  2388. ])
  2389. ])
  2390. ]),
  2391. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  2392. vue.createElementVNode("image", {
  2393. src: _imports_8,
  2394. mode: ""
  2395. }),
  2396. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  2397. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  2398. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  2399. $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  2400. $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  2401. $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  2402. $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  2403. $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  2404. $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  2405. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  2406. ])
  2407. ])
  2408. ]),
  2409. vue.createElementVNode("view", { class: "parameter_state" }, [
  2410. vue.createElementVNode("image", {
  2411. src: _imports_9,
  2412. mode: ""
  2413. }),
  2414. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  2415. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  2416. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  2417. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  2418. $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  2419. $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  2420. $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  2421. $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  2422. $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  2423. $data.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  2424. ])
  2425. ])
  2426. ])
  2427. ])
  2428. ]),
  2429. vue.createElementVNode("view", { class: "parameter_tap" }, [
  2430. vue.createElementVNode(
  2431. "view",
  2432. {
  2433. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  2434. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  2435. },
  2436. " 交流信息 ",
  2437. 2
  2438. /* CLASS */
  2439. ),
  2440. vue.createElementVNode(
  2441. "view",
  2442. {
  2443. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  2444. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  2445. },
  2446. " 电池信息 ",
  2447. 2
  2448. /* CLASS */
  2449. ),
  2450. vue.createElementVNode(
  2451. "view",
  2452. {
  2453. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  2454. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  2455. },
  2456. " 统计信息 ",
  2457. 2
  2458. /* CLASS */
  2459. ),
  2460. vue.createElementVNode(
  2461. "view",
  2462. {
  2463. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  2464. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  2465. },
  2466. " 液冷信息 ",
  2467. 2
  2468. /* CLASS */
  2469. )
  2470. ]),
  2471. vue.createElementVNode("view", {
  2472. class: "parameter_zheng",
  2473. key: "index"
  2474. }, [
  2475. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  2476. key: 0,
  2477. class: "parameter_box"
  2478. }, [
  2479. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  2480. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2481. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
  2482. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2483. vue.createTextVNode(
  2484. vue.toDisplayString($data.uidatasdata.PCSPortAPhaseVoltage) + " ",
  2485. 1
  2486. /* TEXT */
  2487. ),
  2488. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2489. ])
  2490. ]),
  2491. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2492. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
  2493. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2494. vue.createTextVNode(
  2495. vue.toDisplayString($data.uidatasdata.PCSPortBPhaseVoltage) + " ",
  2496. 1
  2497. /* TEXT */
  2498. ),
  2499. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2500. ])
  2501. ]),
  2502. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2503. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
  2504. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2505. vue.createTextVNode(
  2506. vue.toDisplayString($data.uidatasdata.PCSPortCPhaseVoltage) + " ",
  2507. 1
  2508. /* TEXT */
  2509. ),
  2510. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2511. ])
  2512. ]),
  2513. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2514. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电电量 "),
  2515. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2516. vue.createTextVNode(
  2517. vue.toDisplayString($data.uidatasdata.PCSACChargeEnergy) + " ",
  2518. 1
  2519. /* TEXT */
  2520. ),
  2521. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  2522. ])
  2523. ])
  2524. ]),
  2525. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  2526. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2527. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
  2528. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2529. vue.createTextVNode(
  2530. vue.toDisplayString($data.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
  2531. 1
  2532. /* TEXT */
  2533. ),
  2534. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  2535. ])
  2536. ]),
  2537. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2538. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
  2539. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2540. vue.createTextVNode(
  2541. vue.toDisplayString($data.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
  2542. 1
  2543. /* TEXT */
  2544. ),
  2545. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  2546. ])
  2547. ]),
  2548. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2549. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
  2550. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2551. vue.createTextVNode(
  2552. vue.toDisplayString($data.uidatasdata["PCSOutputC-phaseCurrent"]) + " ",
  2553. 1
  2554. /* TEXT */
  2555. ),
  2556. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  2557. ])
  2558. ]),
  2559. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2560. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电功率 "),
  2561. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2562. vue.createTextVNode(
  2563. vue.toDisplayString($data.uidatasdata.PCSTotalOutputPower) + " ",
  2564. 1
  2565. /* TEXT */
  2566. ),
  2567. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  2568. ])
  2569. ])
  2570. ])
  2571. ])) : vue.createCommentVNode("v-if", true),
  2572. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  2573. key: 1,
  2574. class: "parameter_box"
  2575. }, [
  2576. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  2577. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2578. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  2579. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2580. vue.createTextVNode(
  2581. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatPower) + " ",
  2582. 1
  2583. /* TEXT */
  2584. ),
  2585. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  2586. ])
  2587. ]),
  2588. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2589. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  2590. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2591. vue.createTextVNode(
  2592. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  2593. 1
  2594. /* TEXT */
  2595. ),
  2596. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2597. ])
  2598. ]),
  2599. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2600. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
  2601. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2602. vue.createTextVNode(
  2603. vue.toDisplayString($data.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
  2604. 1
  2605. /* TEXT */
  2606. ),
  2607. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  2608. ])
  2609. ]),
  2610. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2611. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  2612. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2613. vue.createTextVNode(
  2614. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  2615. 1
  2616. /* TEXT */
  2617. ),
  2618. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2619. ])
  2620. ]),
  2621. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2622. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  2623. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2624. vue.createTextVNode(
  2625. vue.toDisplayString($data.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  2626. 1
  2627. /* TEXT */
  2628. ),
  2629. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  2630. ])
  2631. ])
  2632. ]),
  2633. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  2634. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2635. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  2636. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2637. vue.createTextVNode(
  2638. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatCur) + " ",
  2639. 1
  2640. /* TEXT */
  2641. ),
  2642. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  2643. ])
  2644. ]),
  2645. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2646. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  2647. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2648. vue.createTextVNode(
  2649. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  2650. 1
  2651. /* TEXT */
  2652. ),
  2653. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2654. ])
  2655. ]),
  2656. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2657. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
  2658. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2659. vue.createTextVNode(
  2660. vue.toDisplayString($data.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
  2661. 1
  2662. /* TEXT */
  2663. ),
  2664. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  2665. ])
  2666. ]),
  2667. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2668. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  2669. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2670. vue.createTextVNode(
  2671. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
  2672. 1
  2673. /* TEXT */
  2674. ),
  2675. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2676. ])
  2677. ]),
  2678. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2679. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  2680. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2681. vue.createTextVNode(
  2682. vue.toDisplayString($data.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  2683. 1
  2684. /* TEXT */
  2685. ),
  2686. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  2687. ])
  2688. ])
  2689. ])
  2690. ])) : vue.createCommentVNode("v-if", true),
  2691. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  2692. key: 2,
  2693. class: "parameter_box"
  2694. }, [
  2695. vue.createElementVNode("view", { class: "parameter_zheng10" }, [
  2696. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2697. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  2698. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2699. vue.createTextVNode(
  2700. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatPower) + " ",
  2701. 1
  2702. /* TEXT */
  2703. ),
  2704. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  2705. ])
  2706. ]),
  2707. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2708. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  2709. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2710. vue.createTextVNode(
  2711. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  2712. 1
  2713. /* TEXT */
  2714. ),
  2715. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  2716. ])
  2717. ])
  2718. ])
  2719. ])) : vue.createCommentVNode("v-if", true),
  2720. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  2721. key: 3,
  2722. class: "parameter_box"
  2723. }, [
  2724. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  2725. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2726. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  2727. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  2728. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  2729. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  2730. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  2731. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  2732. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  2733. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  2734. ])
  2735. ]),
  2736. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2737. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  2738. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2739. vue.createTextVNode(
  2740. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  2741. 1
  2742. /* TEXT */
  2743. ),
  2744. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  2745. ])
  2746. ]),
  2747. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2748. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  2749. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2750. vue.createTextVNode(
  2751. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  2752. 1
  2753. /* TEXT */
  2754. ),
  2755. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  2756. ])
  2757. ])
  2758. ]),
  2759. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  2760. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2761. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  2762. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  2763. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  2764. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  2765. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  2766. ])
  2767. ]),
  2768. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2769. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  2770. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  2771. vue.createTextVNode(
  2772. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  2773. 1
  2774. /* TEXT */
  2775. ),
  2776. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  2777. ])
  2778. ]),
  2779. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  2780. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  2781. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  2782. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  2783. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  2784. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  2785. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  2786. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  2787. ])
  2788. ])
  2789. ])
  2790. ])) : vue.createCommentVNode("v-if", true),
  2791. vue.createElementVNode("view", { class: "parameter_zheng3" }, [
  2792. $data.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  2793. key: 0,
  2794. class: "parameter_zheng31"
  2795. }, [
  2796. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  2797. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  2798. key: 1,
  2799. class: "parameter_zheng31",
  2800. onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  2801. }, [
  2802. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  2803. ])),
  2804. $data.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  2805. key: 2,
  2806. class: "parameter_zheng31"
  2807. }, [
  2808. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  2809. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  2810. key: 3,
  2811. class: "parameter_zheng31",
  2812. onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
  2813. }, [
  2814. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  2815. ]))
  2816. ])
  2817. ]),
  2818. vue.createElementVNode("view", { class: "parameter_home" }, [
  2819. vue.createElementVNode("view", {
  2820. class: "parameter_home1",
  2821. onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
  2822. }, [
  2823. vue.createElementVNode("image", {
  2824. src: _imports_10,
  2825. mode: ""
  2826. }),
  2827. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  2828. ]),
  2829. vue.createElementVNode("view", { class: "parameter_home2" }, [
  2830. vue.createElementVNode("image", {
  2831. src: _imports_11,
  2832. mode: ""
  2833. }),
  2834. (vue.openBlock(true), vue.createElementBlock(
  2835. vue.Fragment,
  2836. null,
  2837. vue.renderList($data.faultsdata, (item, index) => {
  2838. return vue.openBlock(), vue.createElementBlock(
  2839. "text",
  2840. {
  2841. class: "parameter_home3",
  2842. key: index
  2843. },
  2844. vue.toDisplayString(item["CONTENT"]),
  2845. 1
  2846. /* TEXT */
  2847. );
  2848. }),
  2849. 128
  2850. /* KEYED_FRAGMENT */
  2851. ))
  2852. ])
  2853. ])
  2854. ])
  2855. ]),
  2856. vue.createVNode(_component_uni_popup, {
  2857. ref: "alertDialog",
  2858. onMaskClick: $options.dialogClose
  2859. }, {
  2860. default: vue.withCtx(() => [
  2861. vue.createVNode(_component_uni_popup_dialog, {
  2862. mode: $data.modeinput,
  2863. placeholder: "功率给定(0~80kW)",
  2864. modelValue: $data.value,
  2865. "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
  2866. type: $data.successtype,
  2867. cancelText: "取消返回",
  2868. confirmText: $data.confirmText,
  2869. title: $data.title,
  2870. content: $data.content,
  2871. onConfirm: $options.dialogConfirm,
  2872. onClose: $options.dialogClose
  2873. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  2874. ]),
  2875. _: 1
  2876. /* STABLE */
  2877. }, 8, ["onMaskClick"]),
  2878. vue.createVNode(
  2879. _component_uni_popup,
  2880. {
  2881. ref: "message",
  2882. type: "message"
  2883. },
  2884. {
  2885. default: vue.withCtx(() => [
  2886. vue.createVNode(_component_uni_popup_message, {
  2887. type: "error",
  2888. message: $data.messageText,
  2889. duration: 2500
  2890. }, null, 8, ["message"])
  2891. ]),
  2892. _: 1
  2893. /* STABLE */
  2894. },
  2895. 512
  2896. /* NEED_PATCH */
  2897. )
  2898. ]);
  2899. }
  2900. const PagesHomeIndex = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/esswisdom_ipad/pages/home/index.vue"]]);
  2901. const _sfc_main$7 = {
  2902. props: {
  2903. visible: Boolean,
  2904. color: {
  2905. type: String,
  2906. default: "#303133"
  2907. },
  2908. placement: {
  2909. type: String,
  2910. default: "top"
  2911. },
  2912. content: {
  2913. type: String,
  2914. default: ""
  2915. },
  2916. show: {
  2917. type: Boolean,
  2918. default: false
  2919. }
  2920. },
  2921. data() {
  2922. return {
  2923. isShow: this.visible,
  2924. title: "Hello",
  2925. arrowLeft: 0,
  2926. query: null,
  2927. style: {},
  2928. arrowStyle: {}
  2929. };
  2930. },
  2931. onLoad() {
  2932. },
  2933. watch: {
  2934. isShow: {
  2935. handler(val) {
  2936. this.$emit("update:visible", val);
  2937. },
  2938. immediate: true
  2939. },
  2940. visible: {
  2941. handler(val) {
  2942. if (val) {
  2943. this.$nextTick(() => {
  2944. this.getPosition();
  2945. });
  2946. }
  2947. this.isShow = val;
  2948. },
  2949. immediate: true
  2950. }
  2951. },
  2952. mounted() {
  2953. this.getPosition();
  2954. },
  2955. methods: {
  2956. close() {
  2957. this.isShow = false;
  2958. },
  2959. fixedWrap() {
  2960. this.isShow = false;
  2961. },
  2962. async handleClick() {
  2963. if (this.isShow) {
  2964. return this.isShow = false;
  2965. }
  2966. await this.getPosition();
  2967. this.isShow = true;
  2968. },
  2969. getPosition() {
  2970. return new Promise((resolve) => {
  2971. uni.createSelectorQuery().in(this).selectAll(".zb_tooltip_content,.zb_tooltip__popper").boundingClientRect(async (data) => {
  2972. let { left, bottom, right, top, width, height } = data[0];
  2973. let obj1 = data[1];
  2974. let objStyle = {};
  2975. let objStyle1 = {};
  2976. switch (this.placement) {
  2977. case "top":
  2978. if (obj1.width > width) {
  2979. objStyle.left = `-${(obj1.width - width) / 2}px`;
  2980. } else {
  2981. objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
  2982. }
  2983. objStyle.bottom = `${height + 8}px`;
  2984. objStyle1.left = obj1.width / 2 - 6 + "px";
  2985. break;
  2986. case "top-start":
  2987. objStyle.left = `0px`;
  2988. objStyle.bottom = `${height + 8}px`;
  2989. break;
  2990. case "top-end":
  2991. objStyle.right = `0px`;
  2992. objStyle.bottom = `${height + 8}px`;
  2993. objStyle1.right = `8px`;
  2994. break;
  2995. case "bottom":
  2996. if (obj1.width > width) {
  2997. objStyle.left = `-${(obj1.width - width) / 2}px`;
  2998. } else {
  2999. objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
  3000. }
  3001. objStyle.top = `${height + 8}px`;
  3002. objStyle1.left = obj1.width / 2 - 6 + "px";
  3003. break;
  3004. case "bottom-start":
  3005. objStyle.left = `0px`;
  3006. objStyle.top = `${height + 8}px`;
  3007. objStyle1.left = `8px`;
  3008. break;
  3009. case "bottom-end":
  3010. objStyle.right = `0px`;
  3011. objStyle.top = `${height + 8}px`;
  3012. objStyle1.right = `8px`;
  3013. break;
  3014. case "right":
  3015. objStyle.left = `${width + 8}px`;
  3016. if (obj1.height > height) {
  3017. objStyle.top = `-${(obj1.height - height) / 2}px`;
  3018. } else {
  3019. objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
  3020. }
  3021. objStyle1.top = `${obj1.height / 2 - 6}px`;
  3022. break;
  3023. case "right-start":
  3024. objStyle.left = `${width + 8}px`;
  3025. objStyle.top = `0px`;
  3026. objStyle1.top = `8px`;
  3027. break;
  3028. case "right-end":
  3029. objStyle.left = `${width + 8}px`;
  3030. objStyle.bottom = `0px`;
  3031. objStyle1.bottom = `8px`;
  3032. break;
  3033. case "left":
  3034. objStyle.right = `${width + 8}px`;
  3035. if (obj1.height > height) {
  3036. objStyle.top = `-${(obj1.height - height) / 2}px`;
  3037. } else {
  3038. objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
  3039. }
  3040. objStyle1.top = `${obj1.height / 2 - 6}px`;
  3041. break;
  3042. case "left-start":
  3043. objStyle.right = `${width + 8}px`;
  3044. objStyle.top = `0px`;
  3045. objStyle1.top = `8px`;
  3046. break;
  3047. case "left-end":
  3048. objStyle.right = `${width + 8}px`;
  3049. objStyle.bottom = `0px`;
  3050. objStyle1.bottom = `8px`;
  3051. break;
  3052. }
  3053. this.style = objStyle;
  3054. this.arrowStyle = objStyle1;
  3055. resolve();
  3056. }).exec();
  3057. });
  3058. }
  3059. }
  3060. };
  3061. function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
  3062. return vue.openBlock(), vue.createElementBlock(
  3063. "view",
  3064. {
  3065. class: "zb-tooltip",
  3066. style: vue.normalizeStyle({
  3067. "--theme-bg-color": $props.color
  3068. })
  3069. },
  3070. [
  3071. vue.createElementVNode("view", {
  3072. class: "zb_tooltip_content",
  3073. onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.handleClick && $options.handleClick(...args), ["stop"]))
  3074. }, [
  3075. vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
  3076. vue.createElementVNode(
  3077. "view",
  3078. {
  3079. class: "zb_tooltip__popper",
  3080. onClick: vue.withModifiers(() => {
  3081. }, ["stop"]),
  3082. style: vue.normalizeStyle([$data.style, {
  3083. visibility: $data.isShow ? "visible" : "hidden",
  3084. color: $props.color === "white" ? "" : "#fff",
  3085. boxShadow: $props.color === "white" ? "0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d" : ""
  3086. }])
  3087. },
  3088. [
  3089. vue.renderSlot(_ctx.$slots, "content", {}, () => [
  3090. vue.createTextVNode(
  3091. vue.toDisplayString($props.content),
  3092. 1
  3093. /* TEXT */
  3094. )
  3095. ], true),
  3096. vue.createElementVNode(
  3097. "view",
  3098. {
  3099. class: vue.normalizeClass(["zb_popper__icon", [{
  3100. "zb_popper__up": $props.placement.indexOf("bottom") === 0,
  3101. "zb_popper__arrow": $props.placement.indexOf("top") === 0,
  3102. "zb_popper__right": $props.placement.indexOf("right") === 0,
  3103. "zb_popper__left": $props.placement.indexOf("left") === 0
  3104. }]]),
  3105. style: vue.normalizeStyle([$data.arrowStyle])
  3106. },
  3107. null,
  3108. 6
  3109. /* CLASS, STYLE */
  3110. )
  3111. ],
  3112. 4
  3113. /* STYLE */
  3114. )
  3115. ])
  3116. ],
  3117. 4
  3118. /* STYLE */
  3119. );
  3120. }
  3121. const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6], ["__scopeId", "data-v-13dad3a2"], ["__file", "D:/project/esswisdom_ipad/uni_modules/zb-tooltip/components/zb-tooltip/zb-tooltip.vue"]]);
  3122. const fontData = [
  3123. {
  3124. "font_class": "arrow-down",
  3125. "unicode": ""
  3126. },
  3127. {
  3128. "font_class": "arrow-left",
  3129. "unicode": ""
  3130. },
  3131. {
  3132. "font_class": "arrow-right",
  3133. "unicode": ""
  3134. },
  3135. {
  3136. "font_class": "arrow-up",
  3137. "unicode": ""
  3138. },
  3139. {
  3140. "font_class": "auth",
  3141. "unicode": ""
  3142. },
  3143. {
  3144. "font_class": "auth-filled",
  3145. "unicode": ""
  3146. },
  3147. {
  3148. "font_class": "back",
  3149. "unicode": ""
  3150. },
  3151. {
  3152. "font_class": "bars",
  3153. "unicode": ""
  3154. },
  3155. {
  3156. "font_class": "calendar",
  3157. "unicode": ""
  3158. },
  3159. {
  3160. "font_class": "calendar-filled",
  3161. "unicode": ""
  3162. },
  3163. {
  3164. "font_class": "camera",
  3165. "unicode": ""
  3166. },
  3167. {
  3168. "font_class": "camera-filled",
  3169. "unicode": ""
  3170. },
  3171. {
  3172. "font_class": "cart",
  3173. "unicode": ""
  3174. },
  3175. {
  3176. "font_class": "cart-filled",
  3177. "unicode": ""
  3178. },
  3179. {
  3180. "font_class": "chat",
  3181. "unicode": ""
  3182. },
  3183. {
  3184. "font_class": "chat-filled",
  3185. "unicode": ""
  3186. },
  3187. {
  3188. "font_class": "chatboxes",
  3189. "unicode": ""
  3190. },
  3191. {
  3192. "font_class": "chatboxes-filled",
  3193. "unicode": ""
  3194. },
  3195. {
  3196. "font_class": "chatbubble",
  3197. "unicode": ""
  3198. },
  3199. {
  3200. "font_class": "chatbubble-filled",
  3201. "unicode": ""
  3202. },
  3203. {
  3204. "font_class": "checkbox",
  3205. "unicode": ""
  3206. },
  3207. {
  3208. "font_class": "checkbox-filled",
  3209. "unicode": ""
  3210. },
  3211. {
  3212. "font_class": "checkmarkempty",
  3213. "unicode": ""
  3214. },
  3215. {
  3216. "font_class": "circle",
  3217. "unicode": ""
  3218. },
  3219. {
  3220. "font_class": "circle-filled",
  3221. "unicode": ""
  3222. },
  3223. {
  3224. "font_class": "clear",
  3225. "unicode": ""
  3226. },
  3227. {
  3228. "font_class": "close",
  3229. "unicode": ""
  3230. },
  3231. {
  3232. "font_class": "closeempty",
  3233. "unicode": ""
  3234. },
  3235. {
  3236. "font_class": "cloud-download",
  3237. "unicode": ""
  3238. },
  3239. {
  3240. "font_class": "cloud-download-filled",
  3241. "unicode": ""
  3242. },
  3243. {
  3244. "font_class": "cloud-upload",
  3245. "unicode": ""
  3246. },
  3247. {
  3248. "font_class": "cloud-upload-filled",
  3249. "unicode": ""
  3250. },
  3251. {
  3252. "font_class": "color",
  3253. "unicode": ""
  3254. },
  3255. {
  3256. "font_class": "color-filled",
  3257. "unicode": ""
  3258. },
  3259. {
  3260. "font_class": "compose",
  3261. "unicode": ""
  3262. },
  3263. {
  3264. "font_class": "contact",
  3265. "unicode": ""
  3266. },
  3267. {
  3268. "font_class": "contact-filled",
  3269. "unicode": ""
  3270. },
  3271. {
  3272. "font_class": "down",
  3273. "unicode": ""
  3274. },
  3275. {
  3276. "font_class": "bottom",
  3277. "unicode": ""
  3278. },
  3279. {
  3280. "font_class": "download",
  3281. "unicode": ""
  3282. },
  3283. {
  3284. "font_class": "download-filled",
  3285. "unicode": ""
  3286. },
  3287. {
  3288. "font_class": "email",
  3289. "unicode": ""
  3290. },
  3291. {
  3292. "font_class": "email-filled",
  3293. "unicode": ""
  3294. },
  3295. {
  3296. "font_class": "eye",
  3297. "unicode": ""
  3298. },
  3299. {
  3300. "font_class": "eye-filled",
  3301. "unicode": ""
  3302. },
  3303. {
  3304. "font_class": "eye-slash",
  3305. "unicode": ""
  3306. },
  3307. {
  3308. "font_class": "eye-slash-filled",
  3309. "unicode": ""
  3310. },
  3311. {
  3312. "font_class": "fire",
  3313. "unicode": ""
  3314. },
  3315. {
  3316. "font_class": "fire-filled",
  3317. "unicode": ""
  3318. },
  3319. {
  3320. "font_class": "flag",
  3321. "unicode": ""
  3322. },
  3323. {
  3324. "font_class": "flag-filled",
  3325. "unicode": ""
  3326. },
  3327. {
  3328. "font_class": "folder-add",
  3329. "unicode": ""
  3330. },
  3331. {
  3332. "font_class": "folder-add-filled",
  3333. "unicode": ""
  3334. },
  3335. {
  3336. "font_class": "font",
  3337. "unicode": ""
  3338. },
  3339. {
  3340. "font_class": "forward",
  3341. "unicode": ""
  3342. },
  3343. {
  3344. "font_class": "gear",
  3345. "unicode": ""
  3346. },
  3347. {
  3348. "font_class": "gear-filled",
  3349. "unicode": ""
  3350. },
  3351. {
  3352. "font_class": "gift",
  3353. "unicode": ""
  3354. },
  3355. {
  3356. "font_class": "gift-filled",
  3357. "unicode": ""
  3358. },
  3359. {
  3360. "font_class": "hand-down",
  3361. "unicode": ""
  3362. },
  3363. {
  3364. "font_class": "hand-down-filled",
  3365. "unicode": ""
  3366. },
  3367. {
  3368. "font_class": "hand-up",
  3369. "unicode": ""
  3370. },
  3371. {
  3372. "font_class": "hand-up-filled",
  3373. "unicode": ""
  3374. },
  3375. {
  3376. "font_class": "headphones",
  3377. "unicode": ""
  3378. },
  3379. {
  3380. "font_class": "heart",
  3381. "unicode": ""
  3382. },
  3383. {
  3384. "font_class": "heart-filled",
  3385. "unicode": ""
  3386. },
  3387. {
  3388. "font_class": "help",
  3389. "unicode": ""
  3390. },
  3391. {
  3392. "font_class": "help-filled",
  3393. "unicode": ""
  3394. },
  3395. {
  3396. "font_class": "home",
  3397. "unicode": ""
  3398. },
  3399. {
  3400. "font_class": "home-filled",
  3401. "unicode": ""
  3402. },
  3403. {
  3404. "font_class": "image",
  3405. "unicode": ""
  3406. },
  3407. {
  3408. "font_class": "image-filled",
  3409. "unicode": ""
  3410. },
  3411. {
  3412. "font_class": "images",
  3413. "unicode": ""
  3414. },
  3415. {
  3416. "font_class": "images-filled",
  3417. "unicode": ""
  3418. },
  3419. {
  3420. "font_class": "info",
  3421. "unicode": ""
  3422. },
  3423. {
  3424. "font_class": "info-filled",
  3425. "unicode": ""
  3426. },
  3427. {
  3428. "font_class": "left",
  3429. "unicode": ""
  3430. },
  3431. {
  3432. "font_class": "link",
  3433. "unicode": ""
  3434. },
  3435. {
  3436. "font_class": "list",
  3437. "unicode": ""
  3438. },
  3439. {
  3440. "font_class": "location",
  3441. "unicode": ""
  3442. },
  3443. {
  3444. "font_class": "location-filled",
  3445. "unicode": ""
  3446. },
  3447. {
  3448. "font_class": "locked",
  3449. "unicode": ""
  3450. },
  3451. {
  3452. "font_class": "locked-filled",
  3453. "unicode": ""
  3454. },
  3455. {
  3456. "font_class": "loop",
  3457. "unicode": ""
  3458. },
  3459. {
  3460. "font_class": "mail-open",
  3461. "unicode": ""
  3462. },
  3463. {
  3464. "font_class": "mail-open-filled",
  3465. "unicode": ""
  3466. },
  3467. {
  3468. "font_class": "map",
  3469. "unicode": ""
  3470. },
  3471. {
  3472. "font_class": "map-filled",
  3473. "unicode": ""
  3474. },
  3475. {
  3476. "font_class": "map-pin",
  3477. "unicode": ""
  3478. },
  3479. {
  3480. "font_class": "map-pin-ellipse",
  3481. "unicode": ""
  3482. },
  3483. {
  3484. "font_class": "medal",
  3485. "unicode": ""
  3486. },
  3487. {
  3488. "font_class": "medal-filled",
  3489. "unicode": ""
  3490. },
  3491. {
  3492. "font_class": "mic",
  3493. "unicode": ""
  3494. },
  3495. {
  3496. "font_class": "mic-filled",
  3497. "unicode": ""
  3498. },
  3499. {
  3500. "font_class": "micoff",
  3501. "unicode": ""
  3502. },
  3503. {
  3504. "font_class": "micoff-filled",
  3505. "unicode": ""
  3506. },
  3507. {
  3508. "font_class": "minus",
  3509. "unicode": ""
  3510. },
  3511. {
  3512. "font_class": "minus-filled",
  3513. "unicode": ""
  3514. },
  3515. {
  3516. "font_class": "more",
  3517. "unicode": ""
  3518. },
  3519. {
  3520. "font_class": "more-filled",
  3521. "unicode": ""
  3522. },
  3523. {
  3524. "font_class": "navigate",
  3525. "unicode": ""
  3526. },
  3527. {
  3528. "font_class": "navigate-filled",
  3529. "unicode": ""
  3530. },
  3531. {
  3532. "font_class": "notification",
  3533. "unicode": ""
  3534. },
  3535. {
  3536. "font_class": "notification-filled",
  3537. "unicode": ""
  3538. },
  3539. {
  3540. "font_class": "paperclip",
  3541. "unicode": ""
  3542. },
  3543. {
  3544. "font_class": "paperplane",
  3545. "unicode": ""
  3546. },
  3547. {
  3548. "font_class": "paperplane-filled",
  3549. "unicode": ""
  3550. },
  3551. {
  3552. "font_class": "person",
  3553. "unicode": ""
  3554. },
  3555. {
  3556. "font_class": "person-filled",
  3557. "unicode": ""
  3558. },
  3559. {
  3560. "font_class": "personadd",
  3561. "unicode": ""
  3562. },
  3563. {
  3564. "font_class": "personadd-filled",
  3565. "unicode": ""
  3566. },
  3567. {
  3568. "font_class": "personadd-filled-copy",
  3569. "unicode": ""
  3570. },
  3571. {
  3572. "font_class": "phone",
  3573. "unicode": ""
  3574. },
  3575. {
  3576. "font_class": "phone-filled",
  3577. "unicode": ""
  3578. },
  3579. {
  3580. "font_class": "plus",
  3581. "unicode": ""
  3582. },
  3583. {
  3584. "font_class": "plus-filled",
  3585. "unicode": ""
  3586. },
  3587. {
  3588. "font_class": "plusempty",
  3589. "unicode": ""
  3590. },
  3591. {
  3592. "font_class": "pulldown",
  3593. "unicode": ""
  3594. },
  3595. {
  3596. "font_class": "pyq",
  3597. "unicode": ""
  3598. },
  3599. {
  3600. "font_class": "qq",
  3601. "unicode": ""
  3602. },
  3603. {
  3604. "font_class": "redo",
  3605. "unicode": ""
  3606. },
  3607. {
  3608. "font_class": "redo-filled",
  3609. "unicode": ""
  3610. },
  3611. {
  3612. "font_class": "refresh",
  3613. "unicode": ""
  3614. },
  3615. {
  3616. "font_class": "refresh-filled",
  3617. "unicode": ""
  3618. },
  3619. {
  3620. "font_class": "refreshempty",
  3621. "unicode": ""
  3622. },
  3623. {
  3624. "font_class": "reload",
  3625. "unicode": ""
  3626. },
  3627. {
  3628. "font_class": "right",
  3629. "unicode": ""
  3630. },
  3631. {
  3632. "font_class": "scan",
  3633. "unicode": ""
  3634. },
  3635. {
  3636. "font_class": "search",
  3637. "unicode": ""
  3638. },
  3639. {
  3640. "font_class": "settings",
  3641. "unicode": ""
  3642. },
  3643. {
  3644. "font_class": "settings-filled",
  3645. "unicode": ""
  3646. },
  3647. {
  3648. "font_class": "shop",
  3649. "unicode": ""
  3650. },
  3651. {
  3652. "font_class": "shop-filled",
  3653. "unicode": ""
  3654. },
  3655. {
  3656. "font_class": "smallcircle",
  3657. "unicode": ""
  3658. },
  3659. {
  3660. "font_class": "smallcircle-filled",
  3661. "unicode": ""
  3662. },
  3663. {
  3664. "font_class": "sound",
  3665. "unicode": ""
  3666. },
  3667. {
  3668. "font_class": "sound-filled",
  3669. "unicode": ""
  3670. },
  3671. {
  3672. "font_class": "spinner-cycle",
  3673. "unicode": ""
  3674. },
  3675. {
  3676. "font_class": "staff",
  3677. "unicode": ""
  3678. },
  3679. {
  3680. "font_class": "staff-filled",
  3681. "unicode": ""
  3682. },
  3683. {
  3684. "font_class": "star",
  3685. "unicode": ""
  3686. },
  3687. {
  3688. "font_class": "star-filled",
  3689. "unicode": ""
  3690. },
  3691. {
  3692. "font_class": "starhalf",
  3693. "unicode": ""
  3694. },
  3695. {
  3696. "font_class": "trash",
  3697. "unicode": ""
  3698. },
  3699. {
  3700. "font_class": "trash-filled",
  3701. "unicode": ""
  3702. },
  3703. {
  3704. "font_class": "tune",
  3705. "unicode": ""
  3706. },
  3707. {
  3708. "font_class": "tune-filled",
  3709. "unicode": ""
  3710. },
  3711. {
  3712. "font_class": "undo",
  3713. "unicode": ""
  3714. },
  3715. {
  3716. "font_class": "undo-filled",
  3717. "unicode": ""
  3718. },
  3719. {
  3720. "font_class": "up",
  3721. "unicode": ""
  3722. },
  3723. {
  3724. "font_class": "top",
  3725. "unicode": ""
  3726. },
  3727. {
  3728. "font_class": "upload",
  3729. "unicode": ""
  3730. },
  3731. {
  3732. "font_class": "upload-filled",
  3733. "unicode": ""
  3734. },
  3735. {
  3736. "font_class": "videocam",
  3737. "unicode": ""
  3738. },
  3739. {
  3740. "font_class": "videocam-filled",
  3741. "unicode": ""
  3742. },
  3743. {
  3744. "font_class": "vip",
  3745. "unicode": ""
  3746. },
  3747. {
  3748. "font_class": "vip-filled",
  3749. "unicode": ""
  3750. },
  3751. {
  3752. "font_class": "wallet",
  3753. "unicode": ""
  3754. },
  3755. {
  3756. "font_class": "wallet-filled",
  3757. "unicode": ""
  3758. },
  3759. {
  3760. "font_class": "weibo",
  3761. "unicode": ""
  3762. },
  3763. {
  3764. "font_class": "weixin",
  3765. "unicode": ""
  3766. }
  3767. ];
  3768. const getVal = (val) => {
  3769. const reg = /^[0-9]*$/g;
  3770. return typeof val === "number" || reg.test(val) ? val + "px" : val;
  3771. };
  3772. const _sfc_main$6 = {
  3773. name: "UniIcons",
  3774. emits: ["click"],
  3775. props: {
  3776. type: {
  3777. type: String,
  3778. default: ""
  3779. },
  3780. color: {
  3781. type: String,
  3782. default: "#333333"
  3783. },
  3784. size: {
  3785. type: [Number, String],
  3786. default: 16
  3787. },
  3788. customPrefix: {
  3789. type: String,
  3790. default: ""
  3791. },
  3792. fontFamily: {
  3793. type: String,
  3794. default: ""
  3795. }
  3796. },
  3797. data() {
  3798. return {
  3799. icons: fontData
  3800. };
  3801. },
  3802. computed: {
  3803. unicode() {
  3804. let code = this.icons.find((v) => v.font_class === this.type);
  3805. if (code) {
  3806. return code.unicode;
  3807. }
  3808. return "";
  3809. },
  3810. iconSize() {
  3811. return getVal(this.size);
  3812. },
  3813. styleObj() {
  3814. if (this.fontFamily !== "") {
  3815. return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`;
  3816. }
  3817. return `color: ${this.color}; font-size: ${this.iconSize};`;
  3818. }
  3819. },
  3820. methods: {
  3821. _onClick() {
  3822. this.$emit("click");
  3823. }
  3824. }
  3825. };
  3826. function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
  3827. return vue.openBlock(), vue.createElementBlock(
  3828. "text",
  3829. {
  3830. style: vue.normalizeStyle($options.styleObj),
  3831. class: vue.normalizeClass(["uni-icons", ["uniui-" + $props.type, $props.customPrefix, $props.customPrefix ? $props.type : ""]]),
  3832. onClick: _cache[0] || (_cache[0] = (...args) => $options._onClick && $options._onClick(...args))
  3833. },
  3834. [
  3835. vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
  3836. ],
  3837. 6
  3838. /* CLASS, STYLE */
  3839. );
  3840. }
  3841. const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-d31e1c47"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-icons/components/uni-icons/uni-icons.vue"]]);
  3842. const en = {
  3843. "uni-pagination.prevText": "prev",
  3844. "uni-pagination.nextText": "next",
  3845. "uni-pagination.piecePerPage": "piece/page"
  3846. };
  3847. const es = {
  3848. "uni-pagination.prevText": "anterior",
  3849. "uni-pagination.nextText": "prxima",
  3850. "uni-pagination.piecePerPage": "Art��culo/P��gina"
  3851. };
  3852. const fr = {
  3853. "uni-pagination.prevText": "précédente",
  3854. "uni-pagination.nextText": "suivante",
  3855. "uni-pagination.piecePerPage": "Articles/Pages"
  3856. };
  3857. const zhHans = {
  3858. "uni-pagination.prevText": "上一页",
  3859. "uni-pagination.nextText": "下一页",
  3860. "uni-pagination.piecePerPage": "条/页"
  3861. };
  3862. const zhHant = {
  3863. "uni-pagination.prevText": "上一頁",
  3864. "uni-pagination.nextText": "下一頁",
  3865. "uni-pagination.piecePerPage": "條/頁"
  3866. };
  3867. const messages = {
  3868. en,
  3869. es,
  3870. fr,
  3871. "zh-Hans": zhHans,
  3872. "zh-Hant": zhHant
  3873. };
  3874. const {
  3875. t
  3876. } = initVueI18n(messages);
  3877. const _sfc_main$5 = {
  3878. name: "UniPagination",
  3879. emits: ["update:modelValue", "input", "change", "pageSizeChange"],
  3880. props: {
  3881. value: {
  3882. type: [Number, String],
  3883. default: 1
  3884. },
  3885. modelValue: {
  3886. type: [Number, String],
  3887. default: 1
  3888. },
  3889. prevText: {
  3890. type: String
  3891. },
  3892. nextText: {
  3893. type: String
  3894. },
  3895. piecePerPageText: {
  3896. type: String
  3897. },
  3898. current: {
  3899. type: [Number, String],
  3900. default: 1
  3901. },
  3902. total: {
  3903. // 数据总量
  3904. type: [Number, String],
  3905. default: 0
  3906. },
  3907. pageSize: {
  3908. // 每页数据量
  3909. type: [Number, String],
  3910. default: 10
  3911. },
  3912. showIcon: {
  3913. // 是否以 icon 形式展示按钮
  3914. type: [Boolean, String],
  3915. default: false
  3916. },
  3917. showPageSize: {
  3918. // 是否以 icon 形式展示按钮
  3919. type: [Boolean, String],
  3920. default: false
  3921. },
  3922. pagerCount: {
  3923. type: Number,
  3924. default: 5
  3925. },
  3926. pageSizeRange: {
  3927. type: Array,
  3928. default: () => [20, 50, 100, 500]
  3929. }
  3930. },
  3931. data() {
  3932. return {
  3933. pageSizeIndex: 0,
  3934. currentIndex: 1,
  3935. paperData: [],
  3936. pickerShow: false
  3937. };
  3938. },
  3939. computed: {
  3940. piecePerPage() {
  3941. return this.piecePerPageText || t("uni-pagination.piecePerPage");
  3942. },
  3943. prevPageText() {
  3944. return this.prevText || t("uni-pagination.prevText");
  3945. },
  3946. nextPageText() {
  3947. return this.nextText || t("uni-pagination.nextText");
  3948. },
  3949. maxPage() {
  3950. let maxPage = 1;
  3951. let total = Number(this.total);
  3952. let pageSize = Number(this.pageSize);
  3953. if (total && pageSize) {
  3954. maxPage = Math.ceil(total / pageSize);
  3955. }
  3956. return maxPage;
  3957. },
  3958. paper() {
  3959. const num = this.currentIndex;
  3960. const pagerCount = this.pagerCount;
  3961. const total = this.total;
  3962. const pageSize = this.pageSize;
  3963. let totalArr = [];
  3964. let showPagerArr = [];
  3965. let pagerNum = Math.ceil(total / pageSize);
  3966. for (let i = 0; i < pagerNum; i++) {
  3967. totalArr.push(i + 1);
  3968. }
  3969. showPagerArr.push(1);
  3970. const totalNum = totalArr[totalArr.length - (pagerCount + 1) / 2];
  3971. totalArr.forEach((item, index) => {
  3972. if ((pagerCount + 1) / 2 >= num) {
  3973. if (item < pagerCount + 1 && item > 1) {
  3974. showPagerArr.push(item);
  3975. }
  3976. } else if (num + 2 <= totalNum) {
  3977. if (item > num - (pagerCount + 1) / 2 && item < num + (pagerCount + 1) / 2) {
  3978. showPagerArr.push(item);
  3979. }
  3980. } else {
  3981. if ((item > num - (pagerCount + 1) / 2 || pagerNum - pagerCount < item) && item < totalArr[totalArr.length - 1]) {
  3982. showPagerArr.push(item);
  3983. }
  3984. }
  3985. });
  3986. if (pagerNum > pagerCount) {
  3987. if ((pagerCount + 1) / 2 >= num) {
  3988. showPagerArr[showPagerArr.length - 1] = "...";
  3989. } else if (num + 2 <= totalNum) {
  3990. showPagerArr[1] = "...";
  3991. showPagerArr[showPagerArr.length - 1] = "...";
  3992. } else {
  3993. showPagerArr[1] = "...";
  3994. }
  3995. showPagerArr.push(totalArr[totalArr.length - 1]);
  3996. } else {
  3997. if ((pagerCount + 1) / 2 >= num)
  3998. ;
  3999. else if (num + 2 <= totalNum)
  4000. ;
  4001. else {
  4002. showPagerArr.shift();
  4003. showPagerArr.push(totalArr[totalArr.length - 1]);
  4004. }
  4005. }
  4006. return showPagerArr;
  4007. }
  4008. },
  4009. watch: {
  4010. current: {
  4011. immediate: true,
  4012. handler(val, old) {
  4013. if (val < 1) {
  4014. this.currentIndex = 1;
  4015. } else {
  4016. this.currentIndex = val;
  4017. }
  4018. }
  4019. },
  4020. value: {
  4021. immediate: true,
  4022. handler(val) {
  4023. if (Number(this.current) !== 1)
  4024. return;
  4025. if (val < 1) {
  4026. this.currentIndex = 1;
  4027. } else {
  4028. this.currentIndex = val;
  4029. }
  4030. }
  4031. },
  4032. pageSizeIndex(val) {
  4033. this.$emit("pageSizeChange", this.pageSizeRange[val]);
  4034. }
  4035. },
  4036. methods: {
  4037. pickerChange(e) {
  4038. this.pageSizeIndex = e.detail.value;
  4039. this.pickerClick();
  4040. },
  4041. pickerClick() {
  4042. },
  4043. // 选择标签
  4044. selectPage(e, index) {
  4045. if (parseInt(e)) {
  4046. this.currentIndex = e;
  4047. this.change("current");
  4048. } else {
  4049. let pagerNum = Math.ceil(this.total / this.pageSize);
  4050. if (index <= 1) {
  4051. if (this.currentIndex - 5 > 1) {
  4052. this.currentIndex -= 5;
  4053. } else {
  4054. this.currentIndex = 1;
  4055. }
  4056. return;
  4057. }
  4058. if (index >= 6) {
  4059. if (this.currentIndex + 5 > pagerNum) {
  4060. this.currentIndex = pagerNum;
  4061. } else {
  4062. this.currentIndex += 5;
  4063. }
  4064. return;
  4065. }
  4066. }
  4067. },
  4068. clickLeft() {
  4069. if (Number(this.currentIndex) === 1) {
  4070. return;
  4071. }
  4072. this.currentIndex -= 1;
  4073. this.change("prev");
  4074. },
  4075. clickRight() {
  4076. if (Number(this.currentIndex) >= this.maxPage) {
  4077. return;
  4078. }
  4079. this.currentIndex += 1;
  4080. this.change("next");
  4081. },
  4082. change(e) {
  4083. this.$emit("input", this.currentIndex);
  4084. this.$emit("update:modelValue", this.currentIndex);
  4085. this.$emit("change", {
  4086. type: e,
  4087. current: this.currentIndex
  4088. });
  4089. }
  4090. }
  4091. };
  4092. function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
  4093. const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0);
  4094. return vue.openBlock(), vue.createElementBlock("view", { class: "uni-pagination" }, [
  4095. $props.showPageSize === true || $props.showPageSize === "true" ? (vue.openBlock(), vue.createElementBlock("picker", {
  4096. key: 0,
  4097. class: "select-picker",
  4098. mode: "selector",
  4099. value: $data.pageSizeIndex,
  4100. range: $props.pageSizeRange,
  4101. onChange: _cache[0] || (_cache[0] = (...args) => $options.pickerChange && $options.pickerChange(...args)),
  4102. onCancel: _cache[1] || (_cache[1] = (...args) => $options.pickerClick && $options.pickerClick(...args)),
  4103. onClick: _cache[2] || (_cache[2] = (...args) => $options.pickerClick && $options.pickerClick(...args))
  4104. }, [
  4105. vue.createElementVNode("button", {
  4106. type: "default",
  4107. size: "mini",
  4108. plain: true
  4109. }, [
  4110. vue.createElementVNode(
  4111. "text",
  4112. null,
  4113. vue.toDisplayString($props.pageSizeRange[$data.pageSizeIndex]) + " " + vue.toDisplayString($options.piecePerPage),
  4114. 1
  4115. /* TEXT */
  4116. ),
  4117. vue.createVNode(_component_uni_icons, {
  4118. class: "select-picker-icon",
  4119. type: "arrowdown",
  4120. size: "12",
  4121. color: "#999"
  4122. })
  4123. ])
  4124. ], 40, ["value", "range"])) : vue.createCommentVNode("v-if", true),
  4125. vue.createElementVNode(
  4126. "view",
  4127. { class: "uni-pagination__total is-phone-hide" },
  4128. "共 " + vue.toDisplayString($props.total) + " 条",
  4129. 1
  4130. /* TEXT */
  4131. ),
  4132. vue.createElementVNode("view", {
  4133. class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex === 1 ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
  4134. "hover-class": $data.currentIndex === 1 ? "" : "uni-pagination--hover",
  4135. "hover-start-time": 20,
  4136. "hover-stay-time": 70,
  4137. onClick: _cache[3] || (_cache[3] = (...args) => $options.clickLeft && $options.clickLeft(...args))
  4138. }, [
  4139. $props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
  4140. key: 0,
  4141. color: "#666",
  4142. size: "24",
  4143. type: "left"
  4144. })) : (vue.openBlock(), vue.createElementBlock(
  4145. "text",
  4146. {
  4147. key: 1,
  4148. class: "uni-pagination__child-btn"
  4149. },
  4150. vue.toDisplayString($options.prevPageText),
  4151. 1
  4152. /* TEXT */
  4153. ))
  4154. ], 10, ["hover-class"]),
  4155. vue.createElementVNode("view", { class: "uni-pagination__num uni-pagination__num-flex-none" }, [
  4156. vue.createElementVNode("view", { class: "uni-pagination__num-current" }, [
  4157. vue.createElementVNode(
  4158. "text",
  4159. { class: "uni-pagination__num-current-text is-pc-hide current-index-text" },
  4160. vue.toDisplayString($data.currentIndex),
  4161. 1
  4162. /* TEXT */
  4163. ),
  4164. vue.createElementVNode(
  4165. "text",
  4166. { class: "uni-pagination__num-current-text is-pc-hide" },
  4167. "/" + vue.toDisplayString($options.maxPage || 0),
  4168. 1
  4169. /* TEXT */
  4170. ),
  4171. (vue.openBlock(true), vue.createElementBlock(
  4172. vue.Fragment,
  4173. null,
  4174. vue.renderList($options.paper, (item, index) => {
  4175. return vue.openBlock(), vue.createElementBlock("view", {
  4176. key: index,
  4177. class: vue.normalizeClass([{ "page--active": item === $data.currentIndex }, "uni-pagination__num-tag tag--active is-phone-hide"]),
  4178. onClick: ($event) => $options.selectPage(item, index)
  4179. }, [
  4180. vue.createElementVNode(
  4181. "text",
  4182. null,
  4183. vue.toDisplayString(item),
  4184. 1
  4185. /* TEXT */
  4186. )
  4187. ], 10, ["onClick"]);
  4188. }),
  4189. 128
  4190. /* KEYED_FRAGMENT */
  4191. ))
  4192. ])
  4193. ]),
  4194. vue.createElementVNode("view", {
  4195. class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex >= $options.maxPage ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
  4196. "hover-class": $data.currentIndex === $options.maxPage ? "" : "uni-pagination--hover",
  4197. "hover-start-time": 20,
  4198. "hover-stay-time": 70,
  4199. onClick: _cache[4] || (_cache[4] = (...args) => $options.clickRight && $options.clickRight(...args))
  4200. }, [
  4201. $props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
  4202. key: 0,
  4203. color: "#666",
  4204. size: "24",
  4205. type: "right"
  4206. })) : (vue.openBlock(), vue.createElementBlock(
  4207. "text",
  4208. {
  4209. key: 1,
  4210. class: "uni-pagination__child-btn"
  4211. },
  4212. vue.toDisplayString($options.nextPageText),
  4213. 1
  4214. /* TEXT */
  4215. ))
  4216. ], 10, ["hover-class"])
  4217. ]);
  4218. }
  4219. const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4], ["__scopeId", "data-v-88b7506d"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue"]]);
  4220. const _sfc_main$4 = {
  4221. data() {
  4222. return {
  4223. current: 1,
  4224. total: 0,
  4225. pageSize: 10,
  4226. faulttaps: "实时",
  4227. faultsList: [],
  4228. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  4229. formatTimeid: ""
  4230. };
  4231. },
  4232. onLoad() {
  4233. this.formatTimeid = setInterval(() => {
  4234. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  4235. this.formattedTime = getTime(customFormat);
  4236. }, 1e3);
  4237. this.onfaultsList();
  4238. },
  4239. beforeUnmount() {
  4240. clearInterval(this.formatTimeid);
  4241. },
  4242. methods: {
  4243. onfaultsList() {
  4244. let data = {
  4245. page: this.current,
  4246. rows: this.pageSize,
  4247. device: "",
  4248. starttime: "",
  4249. endtime: "",
  4250. rt: this.faulttaps == "实时" ? 1 : 0,
  4251. type: this.faulttaps == "实时" ? "" : this.faulttaps
  4252. };
  4253. getfaultsList(data).then((res) => {
  4254. formatAppLog("log", "at pages/details/index.vue:149", res);
  4255. if (res.status == "ok") {
  4256. this.faultsList = res.data.list;
  4257. this.total = res.data.pagination.total;
  4258. }
  4259. });
  4260. },
  4261. onclick() {
  4262. uni.redirectTo({
  4263. url: "/pages/index/index"
  4264. });
  4265. },
  4266. change(e) {
  4267. formatAppLog("log", "at pages/details/index.vue:167", e);
  4268. this.current = e.current;
  4269. this.onfaultsList();
  4270. },
  4271. taps(e) {
  4272. this.faulttaps = e;
  4273. formatAppLog("log", "at pages/details/index.vue:173", e);
  4274. this.onfaultsList();
  4275. },
  4276. // 文字提示
  4277. closedevice() {
  4278. for (let i = 1; i < this.total; i++) {
  4279. this.$refs["device" + i].close();
  4280. }
  4281. },
  4282. close() {
  4283. for (let i = 1; i < this.total; i++) {
  4284. this.$refs["tooltip" + i].close();
  4285. }
  4286. }
  4287. }
  4288. };
  4289. function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
  4290. const _component_zb_tooltip = resolveEasycom(vue.resolveDynamicComponent("zb-tooltip"), __easycom_0$1);
  4291. const _component_uni_pagination = resolveEasycom(vue.resolveDynamicComponent("uni-pagination"), __easycom_1);
  4292. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  4293. vue.createElementVNode("view", { class: "top" }, [
  4294. vue.createElementVNode("image", {
  4295. class: "top_logo",
  4296. src: _imports_0,
  4297. mode: ""
  4298. }),
  4299. vue.createElementVNode("image", {
  4300. class: "tite",
  4301. src: _imports_1,
  4302. mode: ""
  4303. }),
  4304. vue.createElementVNode("view", { class: "time" }, [
  4305. vue.createElementVNode(
  4306. "view",
  4307. { class: "time_top" },
  4308. vue.toDisplayString($data.formattedTime),
  4309. 1
  4310. /* TEXT */
  4311. ),
  4312. vue.createElementVNode("view", { class: "time_bottom" }, [
  4313. vue.createElementVNode("view"),
  4314. vue.createElementVNode("view", { class: "time_bottom1" }, [
  4315. vue.createTextVNode(" 连接状态: "),
  4316. this.total ? (vue.openBlock(), vue.createElementBlock("view", {
  4317. key: 0,
  4318. class: "time_state"
  4319. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  4320. key: 1,
  4321. class: "time_state1"
  4322. }, " 离线 "))
  4323. ])
  4324. ])
  4325. ])
  4326. ]),
  4327. vue.createElementVNode("view", { class: "parameter" }, [
  4328. vue.createElementVNode("view", { class: "parameter_xian" }, [
  4329. vue.createElementVNode("view", { class: "parameter_xian1" }, " 序号 "),
  4330. vue.createElementVNode("view", { class: "parameter_xian2" }, " 类型 "),
  4331. vue.createElementVNode("view", { class: "parameter_xian3" }, " 设备 "),
  4332. vue.createElementVNode("view", { class: "parameter_xian4" }, " 内容 "),
  4333. vue.createElementVNode("view", { class: "parameter_xian5" }, " 发生时间 "),
  4334. vue.createElementVNode("view", { class: "parameter_xian6" }, " 恢复时间 ")
  4335. ]),
  4336. vue.createElementVNode("view", { class: "parameter_box" }, [
  4337. (vue.openBlock(true), vue.createElementBlock(
  4338. vue.Fragment,
  4339. null,
  4340. vue.renderList($data.faultsList, (item, index) => {
  4341. return vue.openBlock(), vue.createElementBlock(
  4342. "view",
  4343. {
  4344. class: vue.normalizeClass(item.RESETTIME == "" ? "parameter_divred" : "parameter_div"),
  4345. key: index
  4346. },
  4347. [
  4348. vue.createElementVNode(
  4349. "view",
  4350. { class: "parameter_xian1" },
  4351. vue.toDisplayString(item.ID),
  4352. 1
  4353. /* TEXT */
  4354. ),
  4355. vue.createElementVNode(
  4356. "view",
  4357. { class: "parameter_xian2" },
  4358. vue.toDisplayString(item.TYPE),
  4359. 1
  4360. /* TEXT */
  4361. ),
  4362. vue.createVNode(_component_zb_tooltip, {
  4363. onClick: $options.closedevice,
  4364. content: item.DEVICE,
  4365. placement: "top",
  4366. ref_for: true,
  4367. ref: "device" + index
  4368. }, {
  4369. default: vue.withCtx(() => [
  4370. vue.createElementVNode(
  4371. "view",
  4372. { class: "parameter_xian3" },
  4373. vue.toDisplayString(item.DEVICE),
  4374. 1
  4375. /* TEXT */
  4376. )
  4377. ]),
  4378. _: 2
  4379. /* DYNAMIC */
  4380. }, 1032, ["onClick", "content"]),
  4381. vue.createVNode(_component_zb_tooltip, {
  4382. onClick: $options.close,
  4383. content: item.CONTENT,
  4384. placement: "top",
  4385. ref_for: true,
  4386. ref: "tooltip" + index
  4387. }, {
  4388. default: vue.withCtx(() => [
  4389. vue.createElementVNode(
  4390. "view",
  4391. { class: "parameter_xian4" },
  4392. vue.toDisplayString(item.CONTENT),
  4393. 1
  4394. /* TEXT */
  4395. )
  4396. ]),
  4397. _: 2
  4398. /* DYNAMIC */
  4399. }, 1032, ["onClick", "content"]),
  4400. vue.createElementVNode(
  4401. "view",
  4402. { class: "parameter_xian5" },
  4403. vue.toDisplayString(item.FAULTTIME.substring(0, 19)),
  4404. 1
  4405. /* TEXT */
  4406. ),
  4407. vue.createElementVNode(
  4408. "view",
  4409. { class: "parameter_xian6" },
  4410. vue.toDisplayString(item.RESETTIME.substring(0, 19)),
  4411. 1
  4412. /* TEXT */
  4413. )
  4414. ],
  4415. 2
  4416. /* CLASS */
  4417. );
  4418. }),
  4419. 128
  4420. /* KEYED_FRAGMENT */
  4421. ))
  4422. ]),
  4423. vue.createElementVNode("view", { class: "parameter_bottom" }, [
  4424. vue.createElementVNode("view", {
  4425. class: "parameter_bottom1",
  4426. onClick: _cache[0] || (_cache[0] = (...args) => $options.onclick && $options.onclick(...args))
  4427. }, [
  4428. vue.createElementVNode("image", {
  4429. src: _imports_10,
  4430. mode: ""
  4431. }),
  4432. vue.createElementVNode("text", { class: "parameter_bottom2" }, "返回模式选择")
  4433. ]),
  4434. vue.createElementVNode("view", { class: "parameter_bottom3" }, [
  4435. vue.createElementVNode(
  4436. "view",
  4437. {
  4438. class: vue.normalizeClass($data.faulttaps == "实时" ? "parameter_bottom31" : "parameter_bottom32"),
  4439. onClick: _cache[1] || (_cache[1] = ($event) => $options.taps("实时"))
  4440. },
  4441. " 实时 ",
  4442. 2
  4443. /* CLASS */
  4444. ),
  4445. vue.createCommentVNode(` <view :class="faulttaps=='全部'?'parameter_bottom31':'parameter_bottom32'" @click="taps('全部')">\r
  4446. 全部\r
  4447. </view> `),
  4448. vue.createElementVNode(
  4449. "view",
  4450. {
  4451. class: vue.normalizeClass($data.faulttaps == "故障" ? "parameter_bottom31" : "parameter_bottom32"),
  4452. onClick: _cache[2] || (_cache[2] = ($event) => $options.taps("故障"))
  4453. },
  4454. " 故障 ",
  4455. 2
  4456. /* CLASS */
  4457. ),
  4458. vue.createElementVNode(
  4459. "view",
  4460. {
  4461. class: vue.normalizeClass($data.faulttaps == "告警" ? "parameter_bottom31" : "parameter_bottom32"),
  4462. onClick: _cache[3] || (_cache[3] = ($event) => $options.taps("告警"))
  4463. },
  4464. " 告警 ",
  4465. 2
  4466. /* CLASS */
  4467. ),
  4468. vue.createElementVNode(
  4469. "view",
  4470. {
  4471. class: vue.normalizeClass($data.faulttaps == "事件" ? "parameter_bottom31" : "parameter_bottom32"),
  4472. onClick: _cache[4] || (_cache[4] = ($event) => $options.taps("事件"))
  4473. },
  4474. " 事件 ",
  4475. 2
  4476. /* CLASS */
  4477. )
  4478. ]),
  4479. vue.createElementVNode("view", { class: "parameter_bottom4" }, [
  4480. vue.createElementVNode("view", { class: "eliminate" }, " 故障清除 "),
  4481. vue.createVNode(_component_uni_pagination, {
  4482. total: $data.total,
  4483. title: "标题文字",
  4484. "show-icon": true,
  4485. onChange: $options.change
  4486. }, null, 8, ["total", "onChange"])
  4487. ])
  4488. ])
  4489. ])
  4490. ]);
  4491. }
  4492. const PagesDetailsIndex = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3], ["__scopeId", "data-v-a45dfdea"], ["__file", "D:/project/esswisdom_ipad/pages/details/index.vue"]]);
  4493. const _imports_4$1 = "/static/fang.png";
  4494. const _sfc_main$3 = {
  4495. data() {
  4496. return {
  4497. successtype: "success",
  4498. confirmText: "确认启动",
  4499. title: "你确定要开启该设备吗?",
  4500. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  4501. value: "",
  4502. modeinput: "",
  4503. segmented: 1,
  4504. uidatasdata: {},
  4505. uidatas: "",
  4506. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  4507. formatTimeid: "",
  4508. faultsdata: [],
  4509. messageText: ""
  4510. };
  4511. },
  4512. onLoad() {
  4513. },
  4514. mounted() {
  4515. this.formatTimeid = setInterval(() => {
  4516. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  4517. this.formattedTime = getTime(customFormat);
  4518. }, 1e3);
  4519. this.onfaultsList();
  4520. this.onfaultsdata();
  4521. setTimeout(() => {
  4522. let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
  4523. new Gauge({
  4524. canvasId: "canvas2",
  4525. value: SOC,
  4526. lineWidth: 20,
  4527. progressColor: ["#B0D0FF", "#5B8FF9"],
  4528. valueColor: "blue"
  4529. });
  4530. }, 100);
  4531. },
  4532. beforeUnmount() {
  4533. clearInterval(this.uidatas);
  4534. clearInterval(this.formatTimeid);
  4535. },
  4536. methods: {
  4537. onfaultsList() {
  4538. let data = {
  4539. ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
  4540. page: 1,
  4541. rows: 1e4
  4542. };
  4543. getuidatas(data).then((data2) => {
  4544. if (data2.status == "ok") {
  4545. if (!data2.data.list) {
  4546. this.uidatas = setTimeout(() => {
  4547. this.onfaultsList();
  4548. }, 1e3);
  4549. }
  4550. this.uidatasdata = data2.data.list.reduce((obj, item) => {
  4551. let a = item.module;
  4552. let b = item[a];
  4553. let numericValue = parseFloat(b);
  4554. let roundedValue = "";
  4555. if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
  4556. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
  4557. } else {
  4558. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
  4559. }
  4560. return {
  4561. ...obj,
  4562. [item.id]: roundedValue
  4563. };
  4564. }, {});
  4565. if (this.uidatasdata.AC_In_380V_63A1_Status == 1) {
  4566. this.messageText = "需将AC输出端63A1的开关手动断开";
  4567. this.$refs.message.open();
  4568. } else if (this.uidatasdata.AC_In_380V_63A2_Status == 1) {
  4569. this.messageText = "需将AC输出端63A2的开关手动断开";
  4570. this.$refs.message.open();
  4571. }
  4572. this.uidatas = setTimeout(() => {
  4573. this.onfaultsList();
  4574. }, 1e3);
  4575. } else {
  4576. this.uidatasdata = {};
  4577. this.uidatas = setTimeout(() => {
  4578. this.onfaultsList();
  4579. }, 1e3);
  4580. }
  4581. }).catch((error) => {
  4582. this.uidatasdata = {};
  4583. this.uidatas = setTimeout(() => {
  4584. this.onfaultsList();
  4585. }, 1e3);
  4586. });
  4587. },
  4588. onfaultsdata() {
  4589. let data = {
  4590. page: 1,
  4591. rows: 1,
  4592. device: "",
  4593. starttime: "",
  4594. endtime: "",
  4595. rt: 1,
  4596. type: ""
  4597. };
  4598. getfaultsList(data).then((res) => {
  4599. formatAppLog("log", "at pages/electricity/index.vue:626", res);
  4600. if (res.status == "ok") {
  4601. this.faultsdata = res.data.list;
  4602. }
  4603. });
  4604. },
  4605. // 返回首页
  4606. onreturn() {
  4607. uni.redirectTo({
  4608. url: "/pages/index/index"
  4609. });
  4610. },
  4611. // 启动设备弹窗
  4612. dialogToggle() {
  4613. this.modeinput = "base";
  4614. this.successtype = "success";
  4615. this.confirmText = "确认启动";
  4616. this.title = "你确定要开启该设备吗?";
  4617. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  4618. this.$refs.alertDialog.open();
  4619. },
  4620. onstopit() {
  4621. this.modeinput = "base";
  4622. this.successtype = "error";
  4623. this.confirmText = "确认停止";
  4624. this.title = "你确定要停止该设备吗?";
  4625. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  4626. this.$refs.alertDialog.open();
  4627. },
  4628. // 确认弹窗
  4629. dialogConfirm() {
  4630. let data = {
  4631. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  4632. issaveinitvalue: false,
  4633. value: this.confirmText == "确认启动" ? "1" : "0"
  4634. };
  4635. control(data).then((data2) => {
  4636. if (data2.status == "ok") {
  4637. uni.showToast({
  4638. title: "操作成功",
  4639. icon: "none",
  4640. duration: 2e3
  4641. // 显示时长,单位为毫秒
  4642. });
  4643. } else {
  4644. uni.showToast({
  4645. title: "操作失败",
  4646. icon: "none",
  4647. // 使用 'none' 图标来表示失败
  4648. duration: 2e3
  4649. // 显示时长,单位为毫秒
  4650. });
  4651. }
  4652. });
  4653. },
  4654. dialogClose() {
  4655. formatAppLog("log", "at pages/electricity/index.vue:686", this.value);
  4656. this.$refs.alertDialog.close();
  4657. },
  4658. ontap(e) {
  4659. formatAppLog("log", "at pages/electricity/index.vue:690", e);
  4660. this.segmented = e;
  4661. }
  4662. }
  4663. };
  4664. function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
  4665. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  4666. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  4667. const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
  4668. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  4669. vue.createElementVNode("view", { class: "top" }, [
  4670. vue.createElementVNode("image", {
  4671. class: "top_logo",
  4672. src: _imports_0,
  4673. mode: ""
  4674. }),
  4675. vue.createElementVNode("image", {
  4676. class: "tite",
  4677. src: _imports_1,
  4678. mode: ""
  4679. }),
  4680. vue.createElementVNode("view", { class: "time" }, [
  4681. vue.createElementVNode(
  4682. "view",
  4683. { class: "time_top" },
  4684. vue.toDisplayString($data.formattedTime),
  4685. 1
  4686. /* TEXT */
  4687. ),
  4688. vue.createElementVNode("view", { class: "time_bottom" }, [
  4689. vue.createElementVNode("view"),
  4690. vue.createElementVNode("view", { class: "time_bottom1" }, [
  4691. vue.createTextVNode(" 连接状态: "),
  4692. $data.uidatasdata.bms_ChgLinkSt ? (vue.openBlock(), vue.createElementBlock("view", {
  4693. key: 0,
  4694. class: "time_state"
  4695. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  4696. key: 1,
  4697. class: "time_state1"
  4698. }, " 离线 "))
  4699. ])
  4700. ])
  4701. ])
  4702. ]),
  4703. vue.createElementVNode("view", { class: "parameter" }, [
  4704. vue.createElementVNode("view", { class: "parameter_left" }, [
  4705. vue.createElementVNode("view", { class: "parameter_left1" }, [
  4706. vue.createElementVNode("canvas", {
  4707. class: "canvas",
  4708. "canvas-id": "canvas2"
  4709. }),
  4710. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  4711. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  4712. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  4713. ])
  4714. ]),
  4715. vue.createElementVNode("image", {
  4716. class: "parameter_leftdian1",
  4717. src: _imports_2,
  4718. alt: ""
  4719. }),
  4720. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  4721. vue.createElementVNode("image", {
  4722. src: _imports_3,
  4723. mode: ""
  4724. })
  4725. ]),
  4726. vue.createElementVNode("image", {
  4727. class: "parameter_leftche1",
  4728. src: _imports_4$1,
  4729. mode: ""
  4730. }),
  4731. vue.createElementVNode("view", { class: "parameter_leftview" }, "交流供电")
  4732. ]),
  4733. vue.createElementVNode("view", { class: "parameter_right" }, [
  4734. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  4735. vue.createElementVNode("view", { class: "parameter_1" }, [
  4736. vue.createElementVNode("view", { class: "parameter_2" }, [
  4737. vue.createElementVNode("view", { class: "parameter_31" }, [
  4738. vue.createElementVNode("view", { class: "parameter_4" }, [
  4739. $data.uidatasdata.AC_Out_380V_125A_Status == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  4740. key: 0,
  4741. src: _imports_5$1,
  4742. mode: ""
  4743. })) : (vue.openBlock(), vue.createElementBlock("image", {
  4744. key: 1,
  4745. src: _imports_6,
  4746. mode: ""
  4747. })),
  4748. vue.createTextVNode(" 125A状态 ")
  4749. ]),
  4750. $data.uidatasdata.AC_Out_380V_125A_Status == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  4751. key: 0,
  4752. class: "parameter_51"
  4753. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  4754. key: 1,
  4755. class: "parameter_5"
  4756. }, " 断开 "))
  4757. ]),
  4758. vue.createElementVNode("view", { class: "parameter_31" }, [
  4759. vue.createElementVNode("view", { class: "parameter_4" }, [
  4760. $data.uidatasdata.AC_Out_380V_63A_Status == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  4761. key: 0,
  4762. src: _imports_5$1,
  4763. mode: ""
  4764. })) : (vue.openBlock(), vue.createElementBlock("image", {
  4765. key: 1,
  4766. src: _imports_6,
  4767. mode: ""
  4768. })),
  4769. vue.createTextVNode(" 63A状态 ")
  4770. ]),
  4771. $data.uidatasdata.AC_Out_380V_63A_Status == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  4772. key: 0,
  4773. class: "parameter_51"
  4774. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  4775. key: 1,
  4776. class: "parameter_5"
  4777. }, " 断开 "))
  4778. ]),
  4779. vue.createElementVNode("view", { class: "parameter_31" }, [
  4780. vue.createElementVNode("view", { class: "parameter_4" }, [
  4781. $data.uidatasdata.AC_Out_220V_16A_Status == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  4782. key: 0,
  4783. src: _imports_5$1,
  4784. mode: ""
  4785. })) : (vue.openBlock(), vue.createElementBlock("image", {
  4786. key: 1,
  4787. src: _imports_6,
  4788. mode: ""
  4789. })),
  4790. vue.createTextVNode(" 16A状态 ")
  4791. ]),
  4792. $data.uidatasdata.AC_Out_220V_16A_Status == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  4793. key: 0,
  4794. class: "parameter_51"
  4795. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  4796. key: 1,
  4797. class: "parameter_5"
  4798. }, " 断开 "))
  4799. ])
  4800. ]),
  4801. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  4802. vue.createElementVNode("image", {
  4803. src: _imports_7,
  4804. mode: ""
  4805. }),
  4806. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  4807. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  4808. vue.createElementVNode("view", null, [
  4809. vue.createElementVNode(
  4810. "text",
  4811. { class: "parameter_SOCright2" },
  4812. vue.toDisplayString($data.uidatasdata.SOC),
  4813. 1
  4814. /* TEXT */
  4815. ),
  4816. vue.createElementVNode("text", null, " %")
  4817. ])
  4818. ])
  4819. ]),
  4820. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  4821. vue.createElementVNode("image", {
  4822. src: _imports_8,
  4823. mode: ""
  4824. }),
  4825. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  4826. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  4827. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  4828. $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  4829. $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  4830. $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  4831. $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  4832. $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  4833. $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  4834. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  4835. ])
  4836. ])
  4837. ]),
  4838. vue.createElementVNode("view", { class: "parameter_state" }, [
  4839. vue.createElementVNode("image", {
  4840. src: _imports_9,
  4841. mode: ""
  4842. }),
  4843. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  4844. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  4845. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  4846. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  4847. $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  4848. $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  4849. $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  4850. $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  4851. $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  4852. $data.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  4853. ])
  4854. ])
  4855. ])
  4856. ])
  4857. ]),
  4858. vue.createElementVNode("view", { class: "parameter_tap" }, [
  4859. vue.createElementVNode(
  4860. "view",
  4861. {
  4862. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  4863. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  4864. },
  4865. " 交流信息 ",
  4866. 2
  4867. /* CLASS */
  4868. ),
  4869. vue.createElementVNode(
  4870. "view",
  4871. {
  4872. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  4873. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  4874. },
  4875. " 电池信息 ",
  4876. 2
  4877. /* CLASS */
  4878. ),
  4879. vue.createElementVNode(
  4880. "view",
  4881. {
  4882. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  4883. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  4884. },
  4885. " 统计信息 ",
  4886. 2
  4887. /* CLASS */
  4888. ),
  4889. vue.createElementVNode(
  4890. "view",
  4891. {
  4892. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  4893. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  4894. },
  4895. " 液冷信息 ",
  4896. 2
  4897. /* CLASS */
  4898. )
  4899. ]),
  4900. vue.createElementVNode("view", { class: "parameter_zheng" }, [
  4901. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  4902. key: 0,
  4903. class: "parameter_box"
  4904. }, [
  4905. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  4906. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4907. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
  4908. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4909. vue.createTextVNode(
  4910. vue.toDisplayString($data.uidatasdata.PCSPortAPhaseVoltage) + " ",
  4911. 1
  4912. /* TEXT */
  4913. ),
  4914. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  4915. ])
  4916. ]),
  4917. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4918. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
  4919. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4920. vue.createTextVNode(
  4921. vue.toDisplayString($data.uidatasdata.PCSPortBPhaseVoltage) + " ",
  4922. 1
  4923. /* TEXT */
  4924. ),
  4925. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  4926. ])
  4927. ]),
  4928. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4929. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
  4930. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4931. vue.createTextVNode(
  4932. vue.toDisplayString($data.uidatasdata.PCSPortCPhaseVoltage) + " ",
  4933. 1
  4934. /* TEXT */
  4935. ),
  4936. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  4937. ])
  4938. ]),
  4939. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4940. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电电量 "),
  4941. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4942. vue.createTextVNode(
  4943. vue.toDisplayString($data.uidatasdata.PCSACDisChargeEnergy) + " ",
  4944. 1
  4945. /* TEXT */
  4946. ),
  4947. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  4948. ])
  4949. ])
  4950. ]),
  4951. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  4952. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4953. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
  4954. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4955. vue.createTextVNode(
  4956. vue.toDisplayString($data.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
  4957. 1
  4958. /* TEXT */
  4959. ),
  4960. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  4961. ])
  4962. ]),
  4963. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4964. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
  4965. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4966. vue.createTextVNode(
  4967. vue.toDisplayString($data.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
  4968. 1
  4969. /* TEXT */
  4970. ),
  4971. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  4972. ])
  4973. ]),
  4974. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4975. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
  4976. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4977. vue.createTextVNode(
  4978. vue.toDisplayString($data.uidatasdata["PCSOutputC-phaseCurrent"]),
  4979. 1
  4980. /* TEXT */
  4981. ),
  4982. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  4983. ])
  4984. ]),
  4985. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  4986. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电功率 "),
  4987. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  4988. vue.createTextVNode(
  4989. vue.toDisplayString($data.uidatasdata.PCSTotalOutputReactivePower) + " ",
  4990. 1
  4991. /* TEXT */
  4992. ),
  4993. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  4994. ])
  4995. ])
  4996. ])
  4997. ])) : vue.createCommentVNode("v-if", true),
  4998. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  4999. key: 1,
  5000. class: "parameter_box"
  5001. }, [
  5002. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5003. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5004. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  5005. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5006. vue.createTextVNode(
  5007. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatPower) + " ",
  5008. 1
  5009. /* TEXT */
  5010. ),
  5011. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5012. ])
  5013. ]),
  5014. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5015. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  5016. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5017. vue.createTextVNode(
  5018. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  5019. 1
  5020. /* TEXT */
  5021. ),
  5022. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5023. ])
  5024. ]),
  5025. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5026. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
  5027. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5028. vue.createTextVNode(
  5029. vue.toDisplayString($data.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
  5030. 1
  5031. /* TEXT */
  5032. ),
  5033. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5034. ])
  5035. ]),
  5036. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5037. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  5038. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5039. vue.createTextVNode(
  5040. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  5041. 1
  5042. /* TEXT */
  5043. ),
  5044. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5045. ])
  5046. ]),
  5047. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5048. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  5049. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5050. vue.createTextVNode(
  5051. vue.toDisplayString($data.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  5052. 1
  5053. /* TEXT */
  5054. ),
  5055. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5056. ])
  5057. ])
  5058. ]),
  5059. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  5060. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5061. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  5062. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5063. vue.createTextVNode(
  5064. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatCur) + " ",
  5065. 1
  5066. /* TEXT */
  5067. ),
  5068. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  5069. ])
  5070. ]),
  5071. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5072. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  5073. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5074. vue.createTextVNode(
  5075. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  5076. 1
  5077. /* TEXT */
  5078. ),
  5079. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5080. ])
  5081. ]),
  5082. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5083. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
  5084. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5085. vue.createTextVNode(
  5086. vue.toDisplayString($data.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
  5087. 1
  5088. /* TEXT */
  5089. ),
  5090. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  5091. ])
  5092. ]),
  5093. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5094. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  5095. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5096. vue.createTextVNode(
  5097. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
  5098. 1
  5099. /* TEXT */
  5100. ),
  5101. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5102. ])
  5103. ]),
  5104. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5105. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  5106. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5107. vue.createTextVNode(
  5108. vue.toDisplayString($data.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  5109. 1
  5110. /* TEXT */
  5111. ),
  5112. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5113. ])
  5114. ])
  5115. ])
  5116. ])) : vue.createCommentVNode("v-if", true),
  5117. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  5118. key: 2,
  5119. class: "parameter_box"
  5120. }, [
  5121. vue.createElementVNode("view", { class: "parameter_zheng10" }, [
  5122. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5123. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  5124. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5125. vue.createTextVNode(
  5126. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatPower) + " ",
  5127. 1
  5128. /* TEXT */
  5129. ),
  5130. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5131. ])
  5132. ]),
  5133. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5134. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  5135. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5136. vue.createTextVNode(
  5137. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  5138. 1
  5139. /* TEXT */
  5140. ),
  5141. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5142. ])
  5143. ])
  5144. ])
  5145. ])) : vue.createCommentVNode("v-if", true),
  5146. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  5147. key: 3,
  5148. class: "parameter_box"
  5149. }, [
  5150. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5151. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5152. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  5153. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5154. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  5155. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  5156. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  5157. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  5158. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  5159. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  5160. ])
  5161. ]),
  5162. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5163. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  5164. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5165. vue.createTextVNode(
  5166. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  5167. 1
  5168. /* TEXT */
  5169. ),
  5170. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5171. ])
  5172. ]),
  5173. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5174. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  5175. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5176. vue.createTextVNode(
  5177. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  5178. 1
  5179. /* TEXT */
  5180. ),
  5181. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5182. ])
  5183. ])
  5184. ]),
  5185. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  5186. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5187. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  5188. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5189. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  5190. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  5191. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  5192. ])
  5193. ]),
  5194. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5195. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  5196. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5197. vue.createTextVNode(
  5198. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  5199. 1
  5200. /* TEXT */
  5201. ),
  5202. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5203. ])
  5204. ]),
  5205. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5206. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  5207. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5208. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  5209. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  5210. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  5211. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  5212. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  5213. ])
  5214. ])
  5215. ])
  5216. ])) : vue.createCommentVNode("v-if", true),
  5217. vue.createElementVNode("view", { class: "parameter_zheng3" }, [
  5218. $data.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  5219. key: 0,
  5220. class: "parameter_zheng31"
  5221. }, [
  5222. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  5223. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  5224. key: 1,
  5225. class: "parameter_zheng31",
  5226. onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  5227. }, [
  5228. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  5229. ])),
  5230. $data.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  5231. key: 2,
  5232. class: "parameter_zheng31"
  5233. }, [
  5234. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  5235. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  5236. key: 3,
  5237. class: "parameter_zheng31",
  5238. onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
  5239. }, [
  5240. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  5241. ]))
  5242. ])
  5243. ]),
  5244. vue.createElementVNode("view", { class: "parameter_home" }, [
  5245. vue.createElementVNode("view", {
  5246. class: "parameter_home1",
  5247. onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
  5248. }, [
  5249. vue.createElementVNode("image", {
  5250. src: _imports_10,
  5251. mode: ""
  5252. }),
  5253. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  5254. ]),
  5255. vue.createElementVNode("view", { class: "parameter_home2" }, [
  5256. vue.createElementVNode("image", {
  5257. src: _imports_11,
  5258. mode: ""
  5259. }),
  5260. (vue.openBlock(true), vue.createElementBlock(
  5261. vue.Fragment,
  5262. null,
  5263. vue.renderList($data.faultsdata, (item, index) => {
  5264. return vue.openBlock(), vue.createElementBlock(
  5265. "text",
  5266. {
  5267. class: "parameter_home3",
  5268. key: index
  5269. },
  5270. vue.toDisplayString(item["CONTENT"]),
  5271. 1
  5272. /* TEXT */
  5273. );
  5274. }),
  5275. 128
  5276. /* KEYED_FRAGMENT */
  5277. ))
  5278. ])
  5279. ])
  5280. ])
  5281. ]),
  5282. vue.createVNode(_component_uni_popup, {
  5283. ref: "alertDialog",
  5284. onMaskClick: $options.dialogClose
  5285. }, {
  5286. default: vue.withCtx(() => [
  5287. vue.createVNode(_component_uni_popup_dialog, {
  5288. mode: $data.modeinput,
  5289. placeholder: "请输入内容",
  5290. modelValue: $data.value,
  5291. "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
  5292. type: $data.successtype,
  5293. cancelText: "取消返回",
  5294. confirmText: $data.confirmText,
  5295. title: $data.title,
  5296. content: $data.content,
  5297. onConfirm: $options.dialogConfirm,
  5298. onClose: $options.dialogClose
  5299. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  5300. ]),
  5301. _: 1
  5302. /* STABLE */
  5303. }, 8, ["onMaskClick"]),
  5304. vue.createVNode(
  5305. _component_uni_popup,
  5306. {
  5307. ref: "message",
  5308. type: "message"
  5309. },
  5310. {
  5311. default: vue.withCtx(() => [
  5312. vue.createVNode(_component_uni_popup_message, {
  5313. type: "error",
  5314. message: $data.messageText,
  5315. duration: 2500
  5316. }, null, 8, ["message"])
  5317. ]),
  5318. _: 1
  5319. /* STABLE */
  5320. },
  5321. 512
  5322. /* NEED_PATCH */
  5323. )
  5324. ]);
  5325. }
  5326. const PagesElectricityIndex = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-a9482145"], ["__file", "D:/project/esswisdom_ipad/pages/electricity/index.vue"]]);
  5327. const _imports_5 = "/static/shan.png";
  5328. const _sfc_main$2 = {
  5329. data() {
  5330. return {
  5331. successtype: "success",
  5332. confirmText: "确认启动",
  5333. title: "你确定要开启该设备吗?",
  5334. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  5335. value: "",
  5336. modeinput: "",
  5337. segmented: 1,
  5338. uidatasdata: {},
  5339. uidatas: "",
  5340. formatTimeid: "",
  5341. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  5342. faultsdata: []
  5343. };
  5344. },
  5345. onLoad() {
  5346. },
  5347. mounted() {
  5348. this.formatTimeid = setInterval(() => {
  5349. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  5350. this.formattedTime = getTime(customFormat);
  5351. }, 1e3);
  5352. this.onfaultsList();
  5353. this.onfaultsdata();
  5354. setTimeout(() => {
  5355. let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
  5356. new Gauge({
  5357. canvasId: "canvas2",
  5358. value: SOC,
  5359. lineWidth: 20,
  5360. progressColor: ["#B0D0FF", "#5B8FF9"],
  5361. valueColor: "blue"
  5362. });
  5363. }, 500);
  5364. },
  5365. beforeUnmount() {
  5366. clearInterval(this.uidatas);
  5367. clearInterval(this.formatTimeid);
  5368. },
  5369. methods: {
  5370. onfaultsList() {
  5371. let data = {
  5372. ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
  5373. page: 1,
  5374. rows: 1e4
  5375. };
  5376. getuidatas(data).then((data2) => {
  5377. if (data2.status == "ok") {
  5378. if (!data2.data.list) {
  5379. this.uidatas = setTimeout(() => {
  5380. this.onfaultsList();
  5381. }, 1e3);
  5382. }
  5383. this.uidatasdata = data2.data.list.reduce((obj, item) => {
  5384. let a = item.module;
  5385. let b = item[a];
  5386. let numericValue = parseFloat(b);
  5387. let roundedValue = "";
  5388. if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
  5389. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
  5390. } else {
  5391. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
  5392. }
  5393. return { ...obj, [item.id]: roundedValue };
  5394. }, {});
  5395. formatAppLog("log", "at pages/supply/supply.vue:591", this.uidatasdata);
  5396. this.uidatas = setTimeout(() => {
  5397. this.onfaultsList();
  5398. }, 1e3);
  5399. } else {
  5400. this.uidatasdata = {};
  5401. this.uidatas = setTimeout(() => {
  5402. this.onfaultsList();
  5403. }, 1e3);
  5404. }
  5405. }).catch((error) => {
  5406. this.uidatasdata = {};
  5407. this.uidatas = setTimeout(() => {
  5408. this.onfaultsList();
  5409. }, 1e3);
  5410. });
  5411. },
  5412. onfaultsdata() {
  5413. let data = {
  5414. page: 1,
  5415. rows: 1,
  5416. device: "",
  5417. starttime: "",
  5418. endtime: "",
  5419. rt: 1,
  5420. type: ""
  5421. };
  5422. getfaultsList(data).then((res) => {
  5423. formatAppLog("log", "at pages/supply/supply.vue:621", res);
  5424. if (res.status == "ok") {
  5425. this.faultsdata = res.data.list;
  5426. }
  5427. });
  5428. },
  5429. // 返回首页
  5430. onreturn() {
  5431. uni.redirectTo({
  5432. url: "/pages/index/index"
  5433. });
  5434. },
  5435. // 启动设备弹窗
  5436. dialogToggle() {
  5437. this.modeinput = "base";
  5438. this.successtype = "success";
  5439. this.confirmText = "确认启动";
  5440. this.title = "你确定要开启该设备吗?";
  5441. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  5442. this.$refs.alertDialog.open();
  5443. },
  5444. onstopit() {
  5445. this.modeinput = "base";
  5446. this.successtype = "error";
  5447. this.confirmText = "确认停止";
  5448. this.title = "你确定要停止该设备吗?";
  5449. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  5450. this.$refs.alertDialog.open();
  5451. },
  5452. // 确认弹窗
  5453. dialogConfirm() {
  5454. let data = {
  5455. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  5456. issaveinitvalue: false,
  5457. value: this.confirmText == "确认启动" ? "1" : "0"
  5458. };
  5459. control(data).then((data2) => {
  5460. if (data2.status == "ok") {
  5461. uni.showToast({
  5462. title: "操作成功",
  5463. icon: "none",
  5464. duration: 2e3
  5465. // 显示时长,单位为毫秒
  5466. });
  5467. } else {
  5468. uni.showToast({
  5469. title: "操作失败",
  5470. icon: "none",
  5471. // 使用 'none' 图标来表示失败
  5472. duration: 2e3
  5473. // 显示时长,单位为毫秒
  5474. });
  5475. }
  5476. });
  5477. },
  5478. dialogClose() {
  5479. formatAppLog("log", "at pages/supply/supply.vue:681", this.value);
  5480. this.$refs.alertDialog.close();
  5481. },
  5482. ontap(e) {
  5483. formatAppLog("log", "at pages/supply/supply.vue:685", e);
  5484. this.segmented = e;
  5485. }
  5486. }
  5487. };
  5488. function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
  5489. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  5490. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  5491. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  5492. vue.createElementVNode("view", { class: "top" }, [
  5493. vue.createElementVNode("image", {
  5494. class: "top_logo",
  5495. src: _imports_0,
  5496. mode: ""
  5497. }),
  5498. vue.createElementVNode("image", {
  5499. class: "tite",
  5500. src: _imports_1,
  5501. mode: ""
  5502. }),
  5503. vue.createElementVNode("view", { class: "time" }, [
  5504. vue.createElementVNode(
  5505. "view",
  5506. { class: "time_top" },
  5507. vue.toDisplayString($data.formattedTime),
  5508. 1
  5509. /* TEXT */
  5510. ),
  5511. vue.createElementVNode("view", { class: "time_bottom" }, [
  5512. vue.createElementVNode("view"),
  5513. vue.createElementVNode("view", { class: "time_bottom1" }, [
  5514. vue.createTextVNode(" 连接状态: "),
  5515. $data.uidatasdata.bms_ChgLinkSt ? (vue.openBlock(), vue.createElementBlock("view", {
  5516. key: 0,
  5517. class: "time_state"
  5518. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5519. key: 1,
  5520. class: "time_state1"
  5521. }, " 离线 "))
  5522. ])
  5523. ])
  5524. ])
  5525. ]),
  5526. vue.createElementVNode("view", { class: "parameter" }, [
  5527. vue.createElementVNode("view", { class: "parameter_left" }, [
  5528. vue.createElementVNode("view", { class: "parameter_left1" }, [
  5529. vue.createElementVNode("canvas", {
  5530. class: "canvas",
  5531. "canvas-id": "canvas2"
  5532. }),
  5533. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  5534. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  5535. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  5536. ])
  5537. ]),
  5538. vue.createElementVNode("image", {
  5539. class: "parameter_leftdian1",
  5540. src: _imports_2,
  5541. alt: ""
  5542. }),
  5543. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  5544. vue.createElementVNode("image", {
  5545. src: _imports_3,
  5546. mode: ""
  5547. })
  5548. ]),
  5549. vue.createElementVNode("image", {
  5550. class: "parameter_leftche",
  5551. src: _imports_4$2,
  5552. mode: ""
  5553. }),
  5554. vue.createElementVNode("view", { class: "parameter_leftview" }, "直流补电")
  5555. ]),
  5556. vue.createElementVNode("view", { class: "parameter_right" }, [
  5557. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  5558. vue.createElementVNode("view", { class: "parameter_1" }, [
  5559. vue.createElementVNode("view", { class: "parameter_shan" }, [
  5560. vue.createElementVNode("image", {
  5561. src: _imports_5,
  5562. mode: ""
  5563. }),
  5564. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5565. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 充电功率 "),
  5566. vue.createElementVNode("view", null, [
  5567. vue.createElementVNode(
  5568. "text",
  5569. { class: "parameter_SOCright2" },
  5570. vue.toDisplayString(($data.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * $data.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)),
  5571. 1
  5572. /* TEXT */
  5573. ),
  5574. vue.createElementVNode("text", null, " kW")
  5575. ])
  5576. ])
  5577. ]),
  5578. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  5579. vue.createElementVNode("image", {
  5580. src: _imports_7,
  5581. mode: ""
  5582. }),
  5583. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5584. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  5585. vue.createElementVNode("view", null, [
  5586. vue.createElementVNode(
  5587. "text",
  5588. { class: "parameter_SOCright2" },
  5589. vue.toDisplayString($data.uidatasdata.SOC),
  5590. 1
  5591. /* TEXT */
  5592. ),
  5593. vue.createElementVNode("text", null, " %")
  5594. ])
  5595. ])
  5596. ]),
  5597. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  5598. vue.createElementVNode("image", {
  5599. src: _imports_8,
  5600. mode: ""
  5601. }),
  5602. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5603. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  5604. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5605. $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  5606. $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  5607. $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  5608. $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  5609. $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  5610. $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  5611. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  5612. ])
  5613. ])
  5614. ]),
  5615. vue.createElementVNode("view", { class: "parameter_state" }, [
  5616. vue.createElementVNode("image", {
  5617. src: _imports_9,
  5618. mode: ""
  5619. }),
  5620. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5621. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  5622. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5623. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  5624. vue.createCommentVNode(' <view v-if="uidatasdata.bms_ChgLinkSt==0">\r\n 无连接\r\n </view>\r\n <view v-if="uidatasdata.bms_ChgLinkSt==1">\r\n 快充连接\r\n </view> '),
  5625. $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  5626. $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  5627. $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  5628. $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  5629. $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  5630. $data.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  5631. ])
  5632. ])
  5633. ])
  5634. ])
  5635. ]),
  5636. vue.createElementVNode("view", { class: "parameter_tap" }, [
  5637. vue.createElementVNode(
  5638. "view",
  5639. {
  5640. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  5641. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  5642. },
  5643. " 电池信息 ",
  5644. 2
  5645. /* CLASS */
  5646. ),
  5647. vue.createElementVNode(
  5648. "view",
  5649. {
  5650. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  5651. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  5652. },
  5653. " 连接信息 ",
  5654. 2
  5655. /* CLASS */
  5656. ),
  5657. vue.createElementVNode(
  5658. "view",
  5659. {
  5660. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  5661. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  5662. },
  5663. " 统计信息 ",
  5664. 2
  5665. /* CLASS */
  5666. ),
  5667. vue.createElementVNode(
  5668. "view",
  5669. {
  5670. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  5671. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  5672. },
  5673. " 液冷信息 ",
  5674. 2
  5675. /* CLASS */
  5676. )
  5677. ]),
  5678. vue.createElementVNode("view", { class: "parameter_zheng" }, [
  5679. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  5680. key: 0,
  5681. class: "parameter_box"
  5682. }, [
  5683. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5684. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5685. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  5686. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5687. vue.createTextVNode(
  5688. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatPower) + " ",
  5689. 1
  5690. /* TEXT */
  5691. ),
  5692. vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
  5693. ])
  5694. ]),
  5695. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5696. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  5697. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5698. vue.createTextVNode(
  5699. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  5700. 1
  5701. /* TEXT */
  5702. ),
  5703. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5704. ])
  5705. ]),
  5706. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5707. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
  5708. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5709. vue.createTextVNode(
  5710. vue.toDisplayString($data.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
  5711. 1
  5712. /* TEXT */
  5713. ),
  5714. vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
  5715. ])
  5716. ]),
  5717. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5718. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  5719. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5720. vue.createTextVNode(
  5721. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  5722. 1
  5723. /* TEXT */
  5724. ),
  5725. vue.createElementVNode("text", { class: "parameter_zheng14" }, "v")
  5726. ])
  5727. ]),
  5728. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5729. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  5730. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5731. vue.createTextVNode(
  5732. vue.toDisplayString($data.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  5733. 1
  5734. /* TEXT */
  5735. ),
  5736. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5737. ])
  5738. ])
  5739. ]),
  5740. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  5741. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5742. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  5743. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5744. vue.createTextVNode(
  5745. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatCur) + " ",
  5746. 1
  5747. /* TEXT */
  5748. ),
  5749. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  5750. ])
  5751. ]),
  5752. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5753. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  5754. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5755. vue.createTextVNode(
  5756. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  5757. 1
  5758. /* TEXT */
  5759. ),
  5760. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5761. ])
  5762. ]),
  5763. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5764. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
  5765. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5766. vue.createTextVNode(
  5767. vue.toDisplayString($data.uidatasdata.ChargingInformation_Chg_Max_Cur),
  5768. 1
  5769. /* TEXT */
  5770. ),
  5771. vue.createElementVNode("text", { class: "parameter_zheng14" }, " A")
  5772. ])
  5773. ]),
  5774. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5775. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  5776. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5777. vue.createTextVNode(
  5778. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMinCellVoltage),
  5779. 1
  5780. /* TEXT */
  5781. ),
  5782. vue.createElementVNode("text", { class: "parameter_zheng14" }, " v")
  5783. ])
  5784. ]),
  5785. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5786. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  5787. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5788. vue.createTextVNode(
  5789. vue.toDisplayString($data.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  5790. 1
  5791. /* TEXT */
  5792. ),
  5793. vue.createElementVNode("text", { class: "parameter_zheng14" }, " ℃")
  5794. ])
  5795. ])
  5796. ])
  5797. ])) : vue.createCommentVNode("v-if", true),
  5798. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  5799. key: 1,
  5800. class: "parameter_box"
  5801. }, [
  5802. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5803. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5804. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
  5805. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5806. vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
  5807. $data.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
  5808. $data.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
  5809. $data.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
  5810. $data.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
  5811. ])
  5812. ]),
  5813. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5814. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
  5815. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5816. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
  5817. $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
  5818. $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  5819. $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  5820. $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  5821. $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  5822. $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
  5823. ])
  5824. ]),
  5825. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5826. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
  5827. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5828. vue.createCommentVNode(" {{uidatasdata.bms_ChargeStatus==0.00?'无效':'有效'}} "),
  5829. $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  5830. $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  5831. $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  5832. $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  5833. $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  5834. $data.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  5835. ])
  5836. ])
  5837. ]),
  5838. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  5839. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5840. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
  5841. $data.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  5842. key: 0,
  5843. class: "parameter_Batterystate"
  5844. }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5845. key: 1,
  5846. class: "parameter_Batterystate"
  5847. }, " 无连接 "))
  5848. ]),
  5849. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5850. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
  5851. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5852. vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
  5853. $data.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  5854. $data.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
  5855. $data.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
  5856. $data.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
  5857. ])
  5858. ])
  5859. ])
  5860. ])) : vue.createCommentVNode("v-if", true),
  5861. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  5862. key: 2,
  5863. class: "parameter_box"
  5864. }, [
  5865. vue.createElementVNode("view", { class: "parameter_zheng10" }, [
  5866. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5867. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 交流累计充电电量 "),
  5868. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5869. vue.createTextVNode(
  5870. vue.toDisplayString($data.uidatasdata.PCSACChargeEnergy) + " ",
  5871. 1
  5872. /* TEXT */
  5873. ),
  5874. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  5875. ])
  5876. ]),
  5877. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5878. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 直流累计充电电量 "),
  5879. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5880. vue.createTextVNode(
  5881. vue.toDisplayString($data.uidatasdata.PCSDCDisChargeEnergy) + " ",
  5882. 1
  5883. /* TEXT */
  5884. ),
  5885. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  5886. ])
  5887. ])
  5888. ])
  5889. ])) : vue.createCommentVNode("v-if", true),
  5890. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  5891. key: 3,
  5892. class: "parameter_box"
  5893. }, [
  5894. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5895. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5896. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  5897. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5898. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  5899. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  5900. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  5901. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  5902. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  5903. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  5904. ])
  5905. ]),
  5906. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5907. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  5908. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5909. vue.createTextVNode(
  5910. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  5911. 1
  5912. /* TEXT */
  5913. ),
  5914. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5915. ])
  5916. ]),
  5917. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5918. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  5919. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5920. vue.createTextVNode(
  5921. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  5922. 1
  5923. /* TEXT */
  5924. ),
  5925. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5926. ])
  5927. ])
  5928. ]),
  5929. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  5930. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5931. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  5932. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5933. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  5934. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  5935. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  5936. ])
  5937. ]),
  5938. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5939. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  5940. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5941. vue.createTextVNode(
  5942. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  5943. 1
  5944. /* TEXT */
  5945. ),
  5946. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  5947. ])
  5948. ]),
  5949. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5950. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  5951. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5952. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  5953. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  5954. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  5955. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  5956. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  5957. ])
  5958. ])
  5959. ])
  5960. ])) : vue.createCommentVNode("v-if", true),
  5961. vue.createElementVNode("view", { class: "parameter_zheng3" }, [
  5962. $data.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  5963. key: 0,
  5964. class: "parameter_zheng31"
  5965. }, [
  5966. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  5967. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  5968. key: 1,
  5969. class: "parameter_zheng31",
  5970. onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  5971. }, [
  5972. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  5973. ])),
  5974. $data.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  5975. key: 2,
  5976. class: "parameter_zheng31"
  5977. }, [
  5978. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  5979. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  5980. key: 3,
  5981. class: "parameter_zheng31",
  5982. onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
  5983. }, [
  5984. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  5985. ]))
  5986. ])
  5987. ]),
  5988. vue.createElementVNode("view", { class: "parameter_home" }, [
  5989. vue.createElementVNode("view", {
  5990. class: "parameter_home1",
  5991. onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
  5992. }, [
  5993. vue.createElementVNode("image", {
  5994. src: _imports_10,
  5995. mode: ""
  5996. }),
  5997. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  5998. ]),
  5999. vue.createElementVNode("view", { class: "parameter_home2" }, [
  6000. vue.createElementVNode("image", {
  6001. src: _imports_11,
  6002. mode: ""
  6003. }),
  6004. (vue.openBlock(true), vue.createElementBlock(
  6005. vue.Fragment,
  6006. null,
  6007. vue.renderList($data.faultsdata, (item, index) => {
  6008. return vue.openBlock(), vue.createElementBlock(
  6009. "text",
  6010. {
  6011. class: "parameter_home3",
  6012. key: index
  6013. },
  6014. vue.toDisplayString(item["CONTENT"]),
  6015. 1
  6016. /* TEXT */
  6017. );
  6018. }),
  6019. 128
  6020. /* KEYED_FRAGMENT */
  6021. ))
  6022. ])
  6023. ])
  6024. ])
  6025. ]),
  6026. vue.createVNode(_component_uni_popup, {
  6027. ref: "alertDialog",
  6028. onMaskClick: $options.dialogClose
  6029. }, {
  6030. default: vue.withCtx(() => [
  6031. vue.createVNode(_component_uni_popup_dialog, {
  6032. mode: $data.modeinput,
  6033. placeholder: "请输入内容",
  6034. modelValue: $data.value,
  6035. "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
  6036. type: $data.successtype,
  6037. cancelText: "取消返回",
  6038. confirmText: $data.confirmText,
  6039. title: $data.title,
  6040. content: $data.content,
  6041. onConfirm: $options.dialogConfirm,
  6042. onClose: $options.dialogClose
  6043. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  6044. ]),
  6045. _: 1
  6046. /* STABLE */
  6047. }, 8, ["onMaskClick"])
  6048. ]);
  6049. }
  6050. const PagesSupplySupply = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-80112fae"], ["__file", "D:/project/esswisdom_ipad/pages/supply/supply.vue"]]);
  6051. const _imports_4 = "/static/che1.png";
  6052. const _sfc_main$1 = {
  6053. data() {
  6054. return {
  6055. successtype: "success",
  6056. confirmText: "确认启动",
  6057. title: "你确定要开启该设备吗?",
  6058. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  6059. value: "",
  6060. modeinput: "",
  6061. segmented: 1,
  6062. uidatasdata: {},
  6063. uidatas: "",
  6064. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  6065. formatTimeid: "",
  6066. ChargingStation: 1,
  6067. faultsdata: []
  6068. };
  6069. },
  6070. onLoad() {
  6071. },
  6072. mounted() {
  6073. this.formatTimeid = setInterval(() => {
  6074. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  6075. this.formattedTime = getTime(customFormat);
  6076. }, 1e3);
  6077. this.onfaultsList();
  6078. this.onfaultsdata();
  6079. setTimeout(() => {
  6080. let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
  6081. new Gauge({
  6082. canvasId: "canvas2",
  6083. value: SOC,
  6084. lineWidth: 20,
  6085. progressColor: ["#B0D0FF", "#5B8FF9"],
  6086. valueColor: "blue"
  6087. });
  6088. }, 100);
  6089. },
  6090. beforeUnmount() {
  6091. clearInterval(this.uidatas);
  6092. clearInterval(this.formatTimeid);
  6093. },
  6094. methods: {
  6095. onfaultsList() {
  6096. let data = {
  6097. ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
  6098. page: 1,
  6099. rows: 1e4
  6100. };
  6101. getuidatas(data).then((data2) => {
  6102. if (data2.status == "ok") {
  6103. if (!data2.data.list) {
  6104. this.uidatas = setTimeout(() => {
  6105. this.onfaultsList();
  6106. }, 1e3);
  6107. }
  6108. this.uidatasdata = data2.data.list.reduce((obj, item) => {
  6109. let a = item.module;
  6110. let b = item[a];
  6111. let numericValue = parseFloat(b);
  6112. let roundedValue = "";
  6113. if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
  6114. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
  6115. } else {
  6116. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
  6117. }
  6118. return { ...obj, [item.id]: roundedValue };
  6119. }, {});
  6120. formatAppLog("log", "at pages/supplyss/supplyss.vue:801", this.uidatasdata);
  6121. this.uidatas = setTimeout(() => {
  6122. this.onfaultsList();
  6123. }, 1e3);
  6124. } else {
  6125. this.uidatasdata = {};
  6126. this.uidatas = setTimeout(() => {
  6127. this.onfaultsList();
  6128. }, 1e3);
  6129. }
  6130. }).catch((error) => {
  6131. this.uidatasdata = {};
  6132. this.uidatas = setTimeout(() => {
  6133. this.onfaultsList();
  6134. }, 1e3);
  6135. });
  6136. },
  6137. onfaultsdata() {
  6138. let data = {
  6139. page: 1,
  6140. rows: 1,
  6141. device: "",
  6142. starttime: "",
  6143. endtime: "",
  6144. rt: 1,
  6145. type: ""
  6146. };
  6147. getfaultsList(data).then((res) => {
  6148. formatAppLog("log", "at pages/supplyss/supplyss.vue:833", res);
  6149. if (res.status == "ok") {
  6150. this.faultsdata = res.data.list;
  6151. }
  6152. });
  6153. },
  6154. // 返回首页
  6155. onreturn() {
  6156. uni.redirectTo({
  6157. url: "/pages/index/index"
  6158. });
  6159. },
  6160. // 启动设备弹窗
  6161. dialogToggle() {
  6162. this.modeinput = "base";
  6163. this.successtype = "success";
  6164. this.confirmText = "确认启动";
  6165. this.title = "你确定要开启该设备吗?";
  6166. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  6167. this.$refs.alertDialog.open();
  6168. },
  6169. // 关闭设备弹窗
  6170. onstopit() {
  6171. this.modeinput = "base";
  6172. this.successtype = "error";
  6173. this.confirmText = "确认停止";
  6174. this.title = "你确定要停止该设备吗?";
  6175. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  6176. this.$refs.alertDialog.open();
  6177. },
  6178. // 确定
  6179. dialogConfirm() {
  6180. let data = {};
  6181. if (this.segmented == 1) {
  6182. data = {
  6183. id: "3b26469f-ad5b-43bf-b715-4213921321d0",
  6184. issaveinitvalue: false,
  6185. value: this.confirmText == "确认启动" ? "1" : "0"
  6186. };
  6187. } else if (this.segmented == 2) {
  6188. data = {
  6189. id: "78f59493-65f3-4860-8296-7f07bb0ca55b",
  6190. issaveinitvalue: false,
  6191. value: this.confirmText == "确认启动" ? "1" : "0"
  6192. };
  6193. } else {
  6194. data = {
  6195. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  6196. issaveinitvalue: false,
  6197. value: this.confirmText == "确认启动" ? "1" : "0"
  6198. };
  6199. }
  6200. control(data).then((data2) => {
  6201. formatAppLog("log", "at pages/supplyss/supplyss.vue:890", data2);
  6202. if (data2.status == "ok") {
  6203. uni.showToast({
  6204. title: "操作成功",
  6205. icon: "none",
  6206. duration: 2e3
  6207. // 显示时长,单位为毫秒
  6208. });
  6209. } else {
  6210. uni.showToast({
  6211. title: "操作失败",
  6212. icon: "none",
  6213. // 使用 'none' 图标来表示失败
  6214. duration: 2e3
  6215. // 显示时长,单位为毫秒
  6216. });
  6217. }
  6218. });
  6219. },
  6220. // 取消
  6221. dialogClose() {
  6222. formatAppLog("log", "at pages/supplyss/supplyss.vue:909", this.value);
  6223. this.$refs.alertDialog.close();
  6224. },
  6225. // 切换标签
  6226. ontap(e) {
  6227. formatAppLog("log", "at pages/supplyss/supplyss.vue:914", e);
  6228. this.segmented = e;
  6229. if (this.segmented == 1) {
  6230. this.ChargingStation = 1;
  6231. } else if (this.segmented == 2) {
  6232. this.ChargingStation = 2;
  6233. }
  6234. }
  6235. }
  6236. };
  6237. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  6238. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  6239. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  6240. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  6241. vue.createElementVNode("view", { class: "top" }, [
  6242. vue.createElementVNode("image", {
  6243. class: "top_logo",
  6244. src: _imports_0,
  6245. mode: ""
  6246. }),
  6247. vue.createElementVNode("image", {
  6248. class: "tite",
  6249. src: _imports_1,
  6250. mode: ""
  6251. }),
  6252. vue.createElementVNode("view", { class: "time" }, [
  6253. vue.createElementVNode(
  6254. "view",
  6255. { class: "time_top" },
  6256. vue.toDisplayString($data.formattedTime),
  6257. 1
  6258. /* TEXT */
  6259. ),
  6260. vue.createElementVNode("view", { class: "time_bottom" }, [
  6261. vue.createElementVNode("view"),
  6262. vue.createElementVNode("view", { class: "time_bottom1" }, [
  6263. vue.createTextVNode(" 连接状态: "),
  6264. $data.uidatasdata.bms_ChgLinkSt ? (vue.openBlock(), vue.createElementBlock("view", {
  6265. key: 0,
  6266. class: "time_state"
  6267. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  6268. key: 1,
  6269. class: "time_state1"
  6270. }, " 离线 "))
  6271. ])
  6272. ])
  6273. ])
  6274. ]),
  6275. vue.createElementVNode("view", { class: "parameter" }, [
  6276. vue.createElementVNode("view", { class: "parameter_left" }, [
  6277. vue.createElementVNode("view", { class: "parameter_left1" }, [
  6278. vue.createElementVNode("canvas", {
  6279. class: "canvas",
  6280. "canvas-id": "canvas2"
  6281. }),
  6282. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  6283. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  6284. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  6285. ])
  6286. ]),
  6287. vue.createElementVNode("image", {
  6288. class: "parameter_leftdian1",
  6289. src: _imports_2,
  6290. alt: ""
  6291. }),
  6292. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  6293. vue.createElementVNode("image", {
  6294. src: _imports_3,
  6295. mode: ""
  6296. })
  6297. ]),
  6298. vue.createElementVNode("image", {
  6299. class: "parameter_leftche2",
  6300. src: _imports_4,
  6301. mode: ""
  6302. }),
  6303. vue.createElementVNode("view", { class: "parameter_leftview" }, "直流供电")
  6304. ]),
  6305. vue.createElementVNode("view", { class: "parameter_right" }, [
  6306. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  6307. vue.createElementVNode("view", { class: "parameter_1" }, [
  6308. vue.createElementVNode("view", { class: "parameter_2" }, [
  6309. $data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6310. key: 0,
  6311. class: "parameter_3"
  6312. }, [
  6313. vue.createElementVNode("view", { class: "parameter_4" }, [
  6314. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  6315. key: 0,
  6316. src: _imports_5$1,
  6317. mode: ""
  6318. })) : (vue.openBlock(), vue.createElementBlock("image", {
  6319. key: 1,
  6320. src: _imports_6,
  6321. mode: ""
  6322. })),
  6323. vue.createTextVNode(" 连接状态 ")
  6324. ]),
  6325. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6326. key: 0,
  6327. class: "parameter_51"
  6328. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  6329. key: 1,
  6330. class: "parameter_5"
  6331. }, " 断开 "))
  6332. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6333. key: 1,
  6334. class: "parameter_3"
  6335. }, [
  6336. vue.createElementVNode("view", { class: "parameter_4" }, [
  6337. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  6338. key: 0,
  6339. src: _imports_5$1,
  6340. mode: ""
  6341. })) : (vue.openBlock(), vue.createElementBlock("image", {
  6342. key: 1,
  6343. src: _imports_6,
  6344. mode: ""
  6345. })),
  6346. vue.createTextVNode(" 连接状态 ")
  6347. ]),
  6348. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6349. key: 0,
  6350. class: "parameter_51"
  6351. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  6352. key: 1,
  6353. class: "parameter_5"
  6354. }, " 断开 "))
  6355. ])),
  6356. $data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6357. key: 2,
  6358. class: "parameter_3"
  6359. }, [
  6360. vue.createElementVNode("view", { class: "parameter_4" }, [
  6361. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  6362. key: 0,
  6363. src: _imports_5$1,
  6364. mode: ""
  6365. })) : (vue.openBlock(), vue.createElementBlock("image", {
  6366. key: 1,
  6367. src: _imports_6,
  6368. mode: ""
  6369. })),
  6370. vue.createTextVNode(" 工作状态 ")
  6371. ]),
  6372. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6373. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
  6374. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
  6375. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
  6376. $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
  6377. ])
  6378. ])) : vue.createCommentVNode("v-if", true),
  6379. $data.ChargingStation == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  6380. key: 3,
  6381. class: "parameter_3"
  6382. }, [
  6383. vue.createElementVNode("view", { class: "parameter_4" }, [
  6384. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  6385. key: 0,
  6386. src: _imports_5$1,
  6387. mode: ""
  6388. })) : (vue.openBlock(), vue.createElementBlock("image", {
  6389. key: 1,
  6390. src: _imports_6,
  6391. mode: ""
  6392. })),
  6393. vue.createTextVNode(" 工作状态 ")
  6394. ]),
  6395. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6396. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
  6397. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
  6398. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
  6399. $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
  6400. ]),
  6401. vue.createCommentVNode(' <view class="parameter_5" v-else>\r\n 断开\r\n </view> ')
  6402. ])) : vue.createCommentVNode("v-if", true)
  6403. ]),
  6404. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  6405. vue.createElementVNode("image", {
  6406. src: _imports_7,
  6407. mode: ""
  6408. }),
  6409. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6410. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  6411. vue.createElementVNode("view", null, [
  6412. vue.createElementVNode(
  6413. "text",
  6414. { class: "parameter_SOCright2" },
  6415. vue.toDisplayString($data.uidatasdata.SOC),
  6416. 1
  6417. /* TEXT */
  6418. ),
  6419. vue.createElementVNode("text", null, "%")
  6420. ])
  6421. ])
  6422. ]),
  6423. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  6424. vue.createElementVNode("image", {
  6425. src: _imports_8,
  6426. mode: ""
  6427. }),
  6428. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6429. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  6430. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6431. $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  6432. $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  6433. $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  6434. $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  6435. $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  6436. $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  6437. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  6438. ])
  6439. ])
  6440. ]),
  6441. vue.createElementVNode("view", { class: "parameter_state" }, [
  6442. vue.createElementVNode("image", {
  6443. src: _imports_9,
  6444. mode: ""
  6445. }),
  6446. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6447. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  6448. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6449. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  6450. $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  6451. $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  6452. $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  6453. $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  6454. $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  6455. $data.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  6456. ])
  6457. ])
  6458. ])
  6459. ])
  6460. ]),
  6461. vue.createElementVNode("view", { class: "parameter_tap" }, [
  6462. vue.createElementVNode(
  6463. "view",
  6464. {
  6465. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  6466. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  6467. },
  6468. " 枪1信息 ",
  6469. 2
  6470. /* CLASS */
  6471. ),
  6472. vue.createElementVNode(
  6473. "view",
  6474. {
  6475. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  6476. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  6477. },
  6478. " 枪2信息 ",
  6479. 2
  6480. /* CLASS */
  6481. ),
  6482. vue.createElementVNode(
  6483. "view",
  6484. {
  6485. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  6486. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  6487. },
  6488. " 电池信息 ",
  6489. 2
  6490. /* CLASS */
  6491. ),
  6492. vue.createElementVNode(
  6493. "view",
  6494. {
  6495. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  6496. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  6497. },
  6498. " 连接信息 ",
  6499. 2
  6500. /* CLASS */
  6501. ),
  6502. vue.createElementVNode(
  6503. "view",
  6504. {
  6505. class: vue.normalizeClass($data.segmented == 5 ? "parameter_tap1" : "parameter_tap2"),
  6506. onClick: _cache[4] || (_cache[4] = ($event) => $options.ontap(5))
  6507. },
  6508. " 液冷信息 ",
  6509. 2
  6510. /* CLASS */
  6511. )
  6512. ]),
  6513. vue.createElementVNode("view", { class: "parameter_zheng" }, [
  6514. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6515. key: 0,
  6516. class: "parameter_box"
  6517. }, [
  6518. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6519. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6520. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
  6521. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6522. vue.createTextVNode(
  6523. vue.toDisplayString($data.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage) + " ",
  6524. 1
  6525. /* TEXT */
  6526. ),
  6527. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6528. ])
  6529. ]),
  6530. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6531. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
  6532. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6533. vue.createTextVNode(
  6534. vue.toDisplayString($data.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent) + " ",
  6535. 1
  6536. /* TEXT */
  6537. ),
  6538. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6539. ])
  6540. ]),
  6541. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6542. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
  6543. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6544. vue.createTextVNode(
  6545. vue.toDisplayString($data.uidatasdata.ChargingStation_1_telemetryFrameccu_soc) + " ",
  6546. 1
  6547. /* TEXT */
  6548. ),
  6549. vue.createElementVNode("text", { class: "parameter_zheng14" }, "%")
  6550. ])
  6551. ]),
  6552. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6553. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
  6554. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6555. vue.createTextVNode(
  6556. vue.toDisplayString(($data.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * $data.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
  6557. 1
  6558. /* TEXT */
  6559. ),
  6560. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6561. ])
  6562. ])
  6563. ]),
  6564. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6565. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6566. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
  6567. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6568. vue.createTextVNode(
  6569. vue.toDisplayString($data.uidatasdata.ChargingStation_1_telemetryFrameccu_ThisChargePower) + " ",
  6570. 1
  6571. /* TEXT */
  6572. ),
  6573. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  6574. ])
  6575. ]),
  6576. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6577. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
  6578. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6579. vue.createTextVNode(
  6580. vue.toDisplayString($data.uidatasdata.ChargingStation_1_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
  6581. 1
  6582. /* TEXT */
  6583. ),
  6584. vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
  6585. ])
  6586. ]),
  6587. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6588. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
  6589. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6590. vue.createTextVNode(
  6591. vue.toDisplayString($data.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
  6592. 1
  6593. /* TEXT */
  6594. ),
  6595. vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
  6596. ])
  6597. ])
  6598. ])
  6599. ])) : vue.createCommentVNode("v-if", true),
  6600. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  6601. key: 1,
  6602. class: "parameter_box"
  6603. }, [
  6604. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6605. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6606. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
  6607. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6608. vue.createTextVNode(
  6609. vue.toDisplayString($data.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage) + " ",
  6610. 1
  6611. /* TEXT */
  6612. ),
  6613. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6614. ])
  6615. ]),
  6616. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6617. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
  6618. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6619. vue.createTextVNode(
  6620. vue.toDisplayString($data.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent) + " ",
  6621. 1
  6622. /* TEXT */
  6623. ),
  6624. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6625. ])
  6626. ]),
  6627. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6628. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
  6629. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6630. vue.createTextVNode(
  6631. vue.toDisplayString($data.uidatasdata.ChargingStation_2_telemetryFrameccu_soc),
  6632. 1
  6633. /* TEXT */
  6634. ),
  6635. vue.createElementVNode("text", { class: "parameter_zheng14" }, " %")
  6636. ])
  6637. ]),
  6638. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6639. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
  6640. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6641. vue.createTextVNode(
  6642. vue.toDisplayString(($data.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage * $data.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
  6643. 1
  6644. /* TEXT */
  6645. ),
  6646. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6647. ])
  6648. ])
  6649. ]),
  6650. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6651. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6652. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
  6653. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6654. vue.createTextVNode(
  6655. vue.toDisplayString($data.uidatasdata.ChargingStation_2_telemetryFrameccu_ThisChargePower) + " ",
  6656. 1
  6657. /* TEXT */
  6658. ),
  6659. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  6660. ])
  6661. ]),
  6662. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6663. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
  6664. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6665. vue.createTextVNode(
  6666. vue.toDisplayString($data.uidatasdata.ChargingStation_2_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
  6667. 1
  6668. /* TEXT */
  6669. ),
  6670. vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
  6671. ])
  6672. ]),
  6673. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6674. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
  6675. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6676. vue.createTextVNode(
  6677. vue.toDisplayString($data.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
  6678. 1
  6679. /* TEXT */
  6680. ),
  6681. vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
  6682. ])
  6683. ])
  6684. ])
  6685. ])) : vue.createCommentVNode("v-if", true),
  6686. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  6687. key: 2,
  6688. class: "parameter_box"
  6689. }, [
  6690. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6691. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6692. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  6693. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6694. vue.createTextVNode(
  6695. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatPower) + " ",
  6696. 1
  6697. /* TEXT */
  6698. ),
  6699. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6700. ])
  6701. ]),
  6702. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6703. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  6704. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6705. vue.createTextVNode(
  6706. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  6707. 1
  6708. /* TEXT */
  6709. ),
  6710. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6711. ])
  6712. ]),
  6713. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6714. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
  6715. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6716. vue.createTextVNode(
  6717. vue.toDisplayString($data.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
  6718. 1
  6719. /* TEXT */
  6720. ),
  6721. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6722. ])
  6723. ]),
  6724. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6725. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  6726. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6727. vue.createTextVNode(
  6728. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  6729. 1
  6730. /* TEXT */
  6731. ),
  6732. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6733. ])
  6734. ]),
  6735. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6736. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  6737. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6738. vue.createTextVNode(
  6739. vue.toDisplayString($data.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  6740. 1
  6741. /* TEXT */
  6742. ),
  6743. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6744. ])
  6745. ])
  6746. ]),
  6747. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6748. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6749. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  6750. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6751. vue.createTextVNode(
  6752. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatCur) + " ",
  6753. 1
  6754. /* TEXT */
  6755. ),
  6756. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6757. ])
  6758. ]),
  6759. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6760. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  6761. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6762. vue.createTextVNode(
  6763. vue.toDisplayString($data.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  6764. 1
  6765. /* TEXT */
  6766. ),
  6767. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6768. ])
  6769. ]),
  6770. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6771. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
  6772. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6773. vue.createTextVNode(
  6774. vue.toDisplayString($data.uidatasdata.ChargingInformation_Chg_Max_Cur),
  6775. 1
  6776. /* TEXT */
  6777. ),
  6778. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6779. ])
  6780. ]),
  6781. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6782. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  6783. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6784. vue.createTextVNode(
  6785. vue.toDisplayString($data.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
  6786. 1
  6787. /* TEXT */
  6788. ),
  6789. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6790. ])
  6791. ]),
  6792. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6793. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  6794. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6795. vue.createTextVNode(
  6796. vue.toDisplayString($data.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  6797. 1
  6798. /* TEXT */
  6799. ),
  6800. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6801. ])
  6802. ])
  6803. ])
  6804. ])) : vue.createCommentVNode("v-if", true),
  6805. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  6806. key: 3,
  6807. class: "parameter_box"
  6808. }, [
  6809. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6810. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6811. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
  6812. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6813. vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
  6814. $data.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
  6815. $data.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
  6816. $data.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
  6817. $data.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
  6818. ])
  6819. ]),
  6820. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6821. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
  6822. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6823. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
  6824. $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
  6825. $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  6826. $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  6827. $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  6828. $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  6829. $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
  6830. ])
  6831. ]),
  6832. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6833. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
  6834. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6835. $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  6836. $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  6837. $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  6838. $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  6839. $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  6840. $data.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  6841. ])
  6842. ])
  6843. ]),
  6844. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6845. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6846. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
  6847. $data.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6848. key: 0,
  6849. class: "parameter_Batterystate"
  6850. }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  6851. key: 1,
  6852. class: "parameter_Batterystate"
  6853. }, " 无连接 "))
  6854. ]),
  6855. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6856. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
  6857. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6858. vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
  6859. $data.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  6860. $data.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
  6861. $data.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
  6862. $data.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
  6863. ])
  6864. ])
  6865. ])
  6866. ])) : vue.createCommentVNode("v-if", true),
  6867. $data.segmented == 5 ? (vue.openBlock(), vue.createElementBlock("view", {
  6868. key: 4,
  6869. class: "parameter_box"
  6870. }, [
  6871. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6872. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6873. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  6874. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6875. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  6876. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  6877. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  6878. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  6879. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  6880. $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  6881. ])
  6882. ]),
  6883. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6884. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  6885. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6886. vue.createTextVNode(
  6887. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  6888. 1
  6889. /* TEXT */
  6890. ),
  6891. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6892. ])
  6893. ]),
  6894. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6895. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  6896. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6897. vue.createTextVNode(
  6898. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  6899. 1
  6900. /* TEXT */
  6901. ),
  6902. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6903. ])
  6904. ])
  6905. ]),
  6906. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6907. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6908. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  6909. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6910. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  6911. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  6912. $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  6913. ])
  6914. ]),
  6915. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6916. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  6917. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6918. vue.createTextVNode(
  6919. vue.toDisplayString($data.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  6920. 1
  6921. /* TEXT */
  6922. ),
  6923. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6924. ])
  6925. ]),
  6926. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6927. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  6928. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6929. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  6930. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  6931. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  6932. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  6933. $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  6934. ])
  6935. ])
  6936. ])
  6937. ])) : vue.createCommentVNode("v-if", true),
  6938. this.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6939. key: 5,
  6940. class: "parameter_zheng3"
  6941. }, [
  6942. $data.uidatasdata.SysControl_Gun1RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6943. key: 0,
  6944. class: "parameter_zheng31"
  6945. }, [
  6946. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  6947. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6948. key: 1,
  6949. class: "parameter_zheng31",
  6950. onClick: _cache[5] || (_cache[5] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  6951. }, [
  6952. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  6953. ])),
  6954. $data.uidatasdata.SysControl_Gun1RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  6955. key: 2,
  6956. class: "parameter_zheng31"
  6957. }, [
  6958. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  6959. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6960. key: 3,
  6961. class: "parameter_zheng31",
  6962. onClick: _cache[6] || (_cache[6] = (...args) => $options.onstopit && $options.onstopit(...args))
  6963. }, [
  6964. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  6965. ]))
  6966. ])) : vue.createCommentVNode("v-if", true),
  6967. this.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  6968. key: 6,
  6969. class: "parameter_zheng3"
  6970. }, [
  6971. $data.uidatasdata.SysControl_Gun2RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6972. key: 0,
  6973. class: "parameter_zheng31"
  6974. }, [
  6975. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  6976. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6977. key: 1,
  6978. class: "parameter_zheng31",
  6979. onClick: _cache[7] || (_cache[7] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  6980. }, [
  6981. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  6982. ])),
  6983. $data.uidatasdata.SysControl_Gun2RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  6984. key: 2,
  6985. class: "parameter_zheng31"
  6986. }, [
  6987. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  6988. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6989. key: 3,
  6990. class: "parameter_zheng31",
  6991. onClick: _cache[8] || (_cache[8] = (...args) => $options.onstopit && $options.onstopit(...args))
  6992. }, [
  6993. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  6994. ]))
  6995. ])) : vue.createCommentVNode("v-if", true),
  6996. vue.createCommentVNode(' <view class="parameter_zheng3" v-if="this.segmented==3||this.segmented==4||this.segmented==5">\r\n <view v-if="uidatasdata.SysControl_RunCmd==1" class="parameter_zheng31">\r\n <view class="parameter_zheng32ccc">\r\n 开启\r\n </view>\r\n </view>\r\n <view v-else class="parameter_zheng31" @click="dialogToggle">\r\n <view class="parameter_zheng32">\r\n 开启\r\n </view>\r\n </view>\r\n <view class="parameter_zheng31" v-if="uidatasdata.SysControl_RunCmd==0">\r\n <view class="parameter_zheng32ccc">\r\n 停止\r\n </view>\r\n </view>\r\n <view class="parameter_zheng31" v-else @click="onstopit">\r\n <view class="parameter_zheng33">\r\n 停止\r\n </view>\r\n </view>\r\n \r\n </view> ')
  6997. ]),
  6998. vue.createElementVNode("view", { class: "parameter_home" }, [
  6999. vue.createElementVNode("view", {
  7000. class: "parameter_home1",
  7001. onClick: _cache[9] || (_cache[9] = (...args) => $options.onreturn && $options.onreturn(...args))
  7002. }, [
  7003. vue.createElementVNode("image", {
  7004. src: _imports_10,
  7005. mode: ""
  7006. }),
  7007. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  7008. ]),
  7009. vue.createElementVNode("view", { class: "parameter_home2" }, [
  7010. vue.createElementVNode("image", {
  7011. src: _imports_11,
  7012. mode: ""
  7013. }),
  7014. (vue.openBlock(true), vue.createElementBlock(
  7015. vue.Fragment,
  7016. null,
  7017. vue.renderList($data.faultsdata, (item, index) => {
  7018. return vue.openBlock(), vue.createElementBlock(
  7019. "text",
  7020. {
  7021. class: "parameter_home3",
  7022. key: index
  7023. },
  7024. vue.toDisplayString(item["CONTENT"]),
  7025. 1
  7026. /* TEXT */
  7027. );
  7028. }),
  7029. 128
  7030. /* KEYED_FRAGMENT */
  7031. ))
  7032. ])
  7033. ])
  7034. ])
  7035. ]),
  7036. vue.createVNode(_component_uni_popup, {
  7037. ref: "alertDialog",
  7038. onMaskClick: $options.dialogClose
  7039. }, {
  7040. default: vue.withCtx(() => [
  7041. vue.createVNode(_component_uni_popup_dialog, {
  7042. mode: $data.modeinput,
  7043. placeholder: "请输入内容",
  7044. modelValue: $data.value,
  7045. "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.value = $event),
  7046. type: $data.successtype,
  7047. cancelText: "取消返回",
  7048. confirmText: $data.confirmText,
  7049. title: $data.title,
  7050. content: $data.content,
  7051. onConfirm: $options.dialogConfirm,
  7052. onClose: $options.dialogClose
  7053. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  7054. ]),
  7055. _: 1
  7056. /* STABLE */
  7057. }, 8, ["onMaskClick"])
  7058. ]);
  7059. }
  7060. const PagesSupplyssSupplyss = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-0d60935b"], ["__file", "D:/project/esswisdom_ipad/pages/supplyss/supplyss.vue"]]);
  7061. __definePage("pages/index/index", PagesIndexIndex);
  7062. __definePage("pages/home/index", PagesHomeIndex);
  7063. __definePage("pages/details/index", PagesDetailsIndex);
  7064. __definePage("pages/electricity/index", PagesElectricityIndex);
  7065. __definePage("pages/supply/supply", PagesSupplySupply);
  7066. __definePage("pages/supplyss/supplyss", PagesSupplyssSupplyss);
  7067. const _sfc_main = {
  7068. data() {
  7069. return {
  7070. // uidatas:''
  7071. };
  7072. },
  7073. onLaunch: function() {
  7074. plus.navigator.setFullscreen(true);
  7075. plus.navigator.hideSystemNavigation();
  7076. },
  7077. beforeUnmount() {
  7078. },
  7079. methods: {
  7080. onlogin() {
  7081. login().then((data) => {
  7082. formatAppLog("log", "at App.vue:31", data);
  7083. if (data.status == "ok") {
  7084. uni.setStorage({
  7085. key: "token",
  7086. data: data.data.token,
  7087. success: function(res) {
  7088. formatAppLog("log", "at App.vue:37", res);
  7089. }
  7090. });
  7091. } else {
  7092. uni.showToast({
  7093. title: data.msg,
  7094. icon: "none",
  7095. duration: 2e3
  7096. // 显示时长,单位为毫秒
  7097. });
  7098. }
  7099. });
  7100. }
  7101. },
  7102. onShow: function() {
  7103. formatAppLog("log", "at App.vue:52", "App Show");
  7104. },
  7105. onHide: function() {
  7106. formatAppLog("log", "at App.vue:55", "App Hide");
  7107. }
  7108. };
  7109. const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/project/esswisdom_ipad/App.vue"]]);
  7110. class Request {
  7111. constructor(options = {}) {
  7112. this.baseUrl = options.baseUrl || "http://10.168.1.100";
  7113. this.url = options.url || "";
  7114. this.method = "GET";
  7115. this.data = null;
  7116. this.header = options.header || {};
  7117. this.beforeRequest = null;
  7118. this.afterRequest = null;
  7119. }
  7120. // 添加对header的支持
  7121. _mergeHeaders(customHeader = {}) {
  7122. return Object.assign({}, this.header, customHeader);
  7123. }
  7124. get(url, data = {}, header = {}) {
  7125. this.method = "GET";
  7126. this.url = this.baseUrl + url;
  7127. this.data = data;
  7128. this.header = this._mergeHeaders(header);
  7129. return this._();
  7130. }
  7131. post(url, data = {}, header = {}) {
  7132. this.method = "POST";
  7133. this.url = this.baseUrl + url;
  7134. this.data = data;
  7135. this.header = this._mergeHeaders(header);
  7136. return this._();
  7137. }
  7138. put(url, data = {}) {
  7139. this.method = "PUT";
  7140. this.url = this.baseUrl + url;
  7141. this.data = data;
  7142. return this._();
  7143. }
  7144. delete(url, data = {}) {
  7145. this.method = "DELETE";
  7146. this.url = this.baseUrl + url;
  7147. this.data = data;
  7148. return this._();
  7149. }
  7150. _() {
  7151. this.beforeRequest && typeof this.beforeRequest === "function" && this.beforeRequest(this);
  7152. return new Promise((resolve, reject) => {
  7153. let weixin = wx;
  7154. if ("undefined" !== typeof uni) {
  7155. weixin = uni;
  7156. }
  7157. weixin.request({
  7158. url: this.url,
  7159. method: this.method,
  7160. data: this.data,
  7161. header: this.header,
  7162. success: (res) => {
  7163. resolve(res);
  7164. },
  7165. fail: (err) => {
  7166. reject(err);
  7167. },
  7168. complete: (res) => {
  7169. formatAppLog("log", "at api/http.js:91", res);
  7170. this.afterRequest && typeof this.afterRequest === "function" && this.afterRequest(res);
  7171. }
  7172. });
  7173. });
  7174. }
  7175. }
  7176. const $http = new Request();
  7177. function createApp() {
  7178. const app = vue.createVueApp(App);
  7179. return {
  7180. app
  7181. };
  7182. }
  7183. uni.$http = $http;
  7184. $http.baseUrl = "";
  7185. $http.beforeRequest = function(options) {
  7186. };
  7187. $http.afterRequest = function() {
  7188. };
  7189. const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp();
  7190. uni.Vuex = __Vuex__;
  7191. uni.Pinia = __Pinia__;
  7192. __app__.provide("__globalStyles", __uniConfig.styles);
  7193. __app__._component.mpType = "app";
  7194. __app__._component.render = () => {
  7195. };
  7196. __app__.mount("#app");
  7197. })(Vue);