移动储能车V1版本
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

app-service.js 314KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306
  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$f = {
  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$e(_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$f, [["render", _sfc_render$e], ["__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$e = {
  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$d(_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$e, [["render", _sfc_render$d], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-transition/components/uni-transition/uni-transition.vue"]]);
  526. const _sfc_main$d = {
  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$c(_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$d, [["render", _sfc_render$c], ["__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:5", response2);
  941. if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
  942. uni.removeStorageSync("token");
  943. login();
  944. return response2.data;
  945. }
  946. return response2.data;
  947. } catch (error) {
  948. formatAppLog("log", "at api/api.js:18", error);
  949. login();
  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:32", response2);
  957. if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
  958. uni.removeStorageSync("token");
  959. login();
  960. return response2.data;
  961. }
  962. return response2.data;
  963. } catch (error) {
  964. formatAppLog("log", "at api/api.js:48", error);
  965. login();
  966. return response.data;
  967. }
  968. };
  969. const getfaultsList = async (data) => {
  970. try {
  971. const response2 = await uni.$http.get("/api/v1/faults", data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
  972. formatAppLog("log", "at api/api.js:63", response2.data);
  973. if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
  974. uni.removeStorageSync("token");
  975. login();
  976. return response2.data;
  977. }
  978. return response2.data;
  979. } catch (error) {
  980. formatAppLog("error", "at api/api.js:76", "Network request failed:", error);
  981. formatAppLog("log", "at api/api.js:77", error);
  982. uni.removeStorageSync("token");
  983. login();
  984. return response.data;
  985. }
  986. };
  987. const login = async (start, count) => {
  988. try {
  989. formatAppLog("log", "at api/api.js:91", "login request");
  990. const response2 = await uni.$http.post(
  991. "/api/v1/login",
  992. { name: "dexnui", pwd: "dexn1001" },
  993. { "Content-Type": "application/json;charset=utf-8" }
  994. );
  995. formatAppLog("log", "at api/api.js:94", response2);
  996. if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
  997. return response2.data;
  998. }
  999. formatAppLog("log", "at api/api.js:103", response2.data);
  1000. uni.setStorageSync("token", response2.data.data.token);
  1001. return response2.data;
  1002. } catch (error) {
  1003. return response.data;
  1004. }
  1005. };
  1006. const getTime = (format = "yyyy/MM/dd hh:mm:ss") => {
  1007. const date = /* @__PURE__ */ new Date();
  1008. const year = date.getFullYear();
  1009. const month = ("0" + (date.getMonth() + 1)).slice(-2);
  1010. const day = ("0" + date.getDate()).slice(-2);
  1011. const hours = ("0" + date.getHours()).slice(-2);
  1012. const minutes = ("0" + date.getMinutes()).slice(-2);
  1013. const seconds = ("0" + date.getSeconds()).slice(-2);
  1014. return format.replace("yyyy", year).replace("MM", month).replace("dd", day).replace("hh", hours).replace("mm", minutes).replace("ss", seconds);
  1015. };
  1016. function getDevtoolsGlobalHook() {
  1017. return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
  1018. }
  1019. function getTarget() {
  1020. return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
  1021. }
  1022. const isProxyAvailable = typeof Proxy === "function";
  1023. const HOOK_SETUP = "devtools-plugin:setup";
  1024. const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
  1025. class ApiProxy {
  1026. constructor(plugin, hook) {
  1027. this.target = null;
  1028. this.targetQueue = [];
  1029. this.onQueue = [];
  1030. this.plugin = plugin;
  1031. this.hook = hook;
  1032. const defaultSettings = {};
  1033. if (plugin.settings) {
  1034. for (const id in plugin.settings) {
  1035. const item = plugin.settings[id];
  1036. defaultSettings[id] = item.defaultValue;
  1037. }
  1038. }
  1039. const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
  1040. let currentSettings = { ...defaultSettings };
  1041. try {
  1042. const raw = localStorage.getItem(localSettingsSaveId);
  1043. const data = JSON.parse(raw);
  1044. Object.assign(currentSettings, data);
  1045. } catch (e) {
  1046. }
  1047. this.fallbacks = {
  1048. getSettings() {
  1049. return currentSettings;
  1050. },
  1051. setSettings(value) {
  1052. try {
  1053. localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
  1054. } catch (e) {
  1055. }
  1056. currentSettings = value;
  1057. }
  1058. };
  1059. hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
  1060. if (pluginId === this.plugin.id) {
  1061. this.fallbacks.setSettings(value);
  1062. }
  1063. });
  1064. this.proxiedOn = new Proxy({}, {
  1065. get: (_target, prop) => {
  1066. if (this.target) {
  1067. return this.target.on[prop];
  1068. } else {
  1069. return (...args) => {
  1070. this.onQueue.push({
  1071. method: prop,
  1072. args
  1073. });
  1074. };
  1075. }
  1076. }
  1077. });
  1078. this.proxiedTarget = new Proxy({}, {
  1079. get: (_target, prop) => {
  1080. if (this.target) {
  1081. return this.target[prop];
  1082. } else if (prop === "on") {
  1083. return this.proxiedOn;
  1084. } else if (Object.keys(this.fallbacks).includes(prop)) {
  1085. return (...args) => {
  1086. this.targetQueue.push({
  1087. method: prop,
  1088. args,
  1089. resolve: () => {
  1090. }
  1091. });
  1092. return this.fallbacks[prop](...args);
  1093. };
  1094. } else {
  1095. return (...args) => {
  1096. return new Promise((resolve) => {
  1097. this.targetQueue.push({
  1098. method: prop,
  1099. args,
  1100. resolve
  1101. });
  1102. });
  1103. };
  1104. }
  1105. }
  1106. });
  1107. }
  1108. async setRealTarget(target) {
  1109. this.target = target;
  1110. for (const item of this.onQueue) {
  1111. this.target.on[item.method](...item.args);
  1112. }
  1113. for (const item of this.targetQueue) {
  1114. item.resolve(await this.target[item.method](...item.args));
  1115. }
  1116. }
  1117. }
  1118. function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
  1119. const target = getTarget();
  1120. const hook = getDevtoolsGlobalHook();
  1121. const enableProxy = isProxyAvailable && pluginDescriptor.enableEarlyProxy;
  1122. if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
  1123. hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
  1124. } else {
  1125. const proxy = enableProxy ? new ApiProxy(pluginDescriptor, hook) : null;
  1126. const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
  1127. list.push({
  1128. pluginDescriptor,
  1129. setupFn,
  1130. proxy
  1131. });
  1132. if (proxy)
  1133. setupFn(proxy.proxiedTarget);
  1134. }
  1135. }
  1136. /*!
  1137. * vuex v4.1.0
  1138. * (c) 2022 Evan You
  1139. * @license MIT
  1140. */
  1141. var storeKey = "store";
  1142. function forEachValue(obj, fn) {
  1143. Object.keys(obj).forEach(function(key) {
  1144. return fn(obj[key], key);
  1145. });
  1146. }
  1147. function isObject$1(obj) {
  1148. return obj !== null && typeof obj === "object";
  1149. }
  1150. function isPromise(val) {
  1151. return val && typeof val.then === "function";
  1152. }
  1153. function assert(condition, msg) {
  1154. if (!condition) {
  1155. throw new Error("[vuex] " + msg);
  1156. }
  1157. }
  1158. function partial(fn, arg) {
  1159. return function() {
  1160. return fn(arg);
  1161. };
  1162. }
  1163. function genericSubscribe(fn, subs, options) {
  1164. if (subs.indexOf(fn) < 0) {
  1165. options && options.prepend ? subs.unshift(fn) : subs.push(fn);
  1166. }
  1167. return function() {
  1168. var i = subs.indexOf(fn);
  1169. if (i > -1) {
  1170. subs.splice(i, 1);
  1171. }
  1172. };
  1173. }
  1174. function resetStore(store, hot) {
  1175. store._actions = /* @__PURE__ */ Object.create(null);
  1176. store._mutations = /* @__PURE__ */ Object.create(null);
  1177. store._wrappedGetters = /* @__PURE__ */ Object.create(null);
  1178. store._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
  1179. var state = store.state;
  1180. installModule(store, state, [], store._modules.root, true);
  1181. resetStoreState(store, state, hot);
  1182. }
  1183. function resetStoreState(store, state, hot) {
  1184. var oldState = store._state;
  1185. var oldScope = store._scope;
  1186. store.getters = {};
  1187. store._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
  1188. var wrappedGetters = store._wrappedGetters;
  1189. var computedObj = {};
  1190. var computedCache = {};
  1191. var scope = vue.effectScope(true);
  1192. scope.run(function() {
  1193. forEachValue(wrappedGetters, function(fn, key) {
  1194. computedObj[key] = partial(fn, store);
  1195. computedCache[key] = vue.computed(function() {
  1196. return computedObj[key]();
  1197. });
  1198. Object.defineProperty(store.getters, key, {
  1199. get: function() {
  1200. return computedCache[key].value;
  1201. },
  1202. enumerable: true
  1203. // for local getters
  1204. });
  1205. });
  1206. });
  1207. store._state = vue.reactive({
  1208. data: state
  1209. });
  1210. store._scope = scope;
  1211. if (store.strict) {
  1212. enableStrictMode(store);
  1213. }
  1214. if (oldState) {
  1215. if (hot) {
  1216. store._withCommit(function() {
  1217. oldState.data = null;
  1218. });
  1219. }
  1220. }
  1221. if (oldScope) {
  1222. oldScope.stop();
  1223. }
  1224. }
  1225. function installModule(store, rootState, path, module, hot) {
  1226. var isRoot = !path.length;
  1227. var namespace = store._modules.getNamespace(path);
  1228. if (module.namespaced) {
  1229. if (store._modulesNamespaceMap[namespace] && true) {
  1230. console.error("[vuex] duplicate namespace " + namespace + " for the namespaced module " + path.join("/"));
  1231. }
  1232. store._modulesNamespaceMap[namespace] = module;
  1233. }
  1234. if (!isRoot && !hot) {
  1235. var parentState = getNestedState(rootState, path.slice(0, -1));
  1236. var moduleName = path[path.length - 1];
  1237. store._withCommit(function() {
  1238. {
  1239. if (moduleName in parentState) {
  1240. console.warn(
  1241. '[vuex] state field "' + moduleName + '" was overridden by a module with the same name at "' + path.join(".") + '"'
  1242. );
  1243. }
  1244. }
  1245. parentState[moduleName] = module.state;
  1246. });
  1247. }
  1248. var local = module.context = makeLocalContext(store, namespace, path);
  1249. module.forEachMutation(function(mutation, key) {
  1250. var namespacedType = namespace + key;
  1251. registerMutation(store, namespacedType, mutation, local);
  1252. });
  1253. module.forEachAction(function(action, key) {
  1254. var type = action.root ? key : namespace + key;
  1255. var handler = action.handler || action;
  1256. registerAction(store, type, handler, local);
  1257. });
  1258. module.forEachGetter(function(getter, key) {
  1259. var namespacedType = namespace + key;
  1260. registerGetter(store, namespacedType, getter, local);
  1261. });
  1262. module.forEachChild(function(child, key) {
  1263. installModule(store, rootState, path.concat(key), child, hot);
  1264. });
  1265. }
  1266. function makeLocalContext(store, namespace, path) {
  1267. var noNamespace = namespace === "";
  1268. var local = {
  1269. dispatch: noNamespace ? store.dispatch : function(_type, _payload, _options) {
  1270. var args = unifyObjectStyle(_type, _payload, _options);
  1271. var payload = args.payload;
  1272. var options = args.options;
  1273. var type = args.type;
  1274. if (!options || !options.root) {
  1275. type = namespace + type;
  1276. if (!store._actions[type]) {
  1277. console.error("[vuex] unknown local action type: " + args.type + ", global type: " + type);
  1278. return;
  1279. }
  1280. }
  1281. return store.dispatch(type, payload);
  1282. },
  1283. commit: noNamespace ? store.commit : function(_type, _payload, _options) {
  1284. var args = unifyObjectStyle(_type, _payload, _options);
  1285. var payload = args.payload;
  1286. var options = args.options;
  1287. var type = args.type;
  1288. if (!options || !options.root) {
  1289. type = namespace + type;
  1290. if (!store._mutations[type]) {
  1291. console.error("[vuex] unknown local mutation type: " + args.type + ", global type: " + type);
  1292. return;
  1293. }
  1294. }
  1295. store.commit(type, payload, options);
  1296. }
  1297. };
  1298. Object.defineProperties(local, {
  1299. getters: {
  1300. get: noNamespace ? function() {
  1301. return store.getters;
  1302. } : function() {
  1303. return makeLocalGetters(store, namespace);
  1304. }
  1305. },
  1306. state: {
  1307. get: function() {
  1308. return getNestedState(store.state, path);
  1309. }
  1310. }
  1311. });
  1312. return local;
  1313. }
  1314. function makeLocalGetters(store, namespace) {
  1315. if (!store._makeLocalGettersCache[namespace]) {
  1316. var gettersProxy = {};
  1317. var splitPos = namespace.length;
  1318. Object.keys(store.getters).forEach(function(type) {
  1319. if (type.slice(0, splitPos) !== namespace) {
  1320. return;
  1321. }
  1322. var localType = type.slice(splitPos);
  1323. Object.defineProperty(gettersProxy, localType, {
  1324. get: function() {
  1325. return store.getters[type];
  1326. },
  1327. enumerable: true
  1328. });
  1329. });
  1330. store._makeLocalGettersCache[namespace] = gettersProxy;
  1331. }
  1332. return store._makeLocalGettersCache[namespace];
  1333. }
  1334. function registerMutation(store, type, handler, local) {
  1335. var entry = store._mutations[type] || (store._mutations[type] = []);
  1336. entry.push(function wrappedMutationHandler(payload) {
  1337. handler.call(store, local.state, payload);
  1338. });
  1339. }
  1340. function registerAction(store, type, handler, local) {
  1341. var entry = store._actions[type] || (store._actions[type] = []);
  1342. entry.push(function wrappedActionHandler(payload) {
  1343. var res = handler.call(store, {
  1344. dispatch: local.dispatch,
  1345. commit: local.commit,
  1346. getters: local.getters,
  1347. state: local.state,
  1348. rootGetters: store.getters,
  1349. rootState: store.state
  1350. }, payload);
  1351. if (!isPromise(res)) {
  1352. res = Promise.resolve(res);
  1353. }
  1354. if (store._devtoolHook) {
  1355. return res.catch(function(err) {
  1356. store._devtoolHook.emit("vuex:error", err);
  1357. throw err;
  1358. });
  1359. } else {
  1360. return res;
  1361. }
  1362. });
  1363. }
  1364. function registerGetter(store, type, rawGetter, local) {
  1365. if (store._wrappedGetters[type]) {
  1366. {
  1367. console.error("[vuex] duplicate getter key: " + type);
  1368. }
  1369. return;
  1370. }
  1371. store._wrappedGetters[type] = function wrappedGetter(store2) {
  1372. return rawGetter(
  1373. local.state,
  1374. // local state
  1375. local.getters,
  1376. // local getters
  1377. store2.state,
  1378. // root state
  1379. store2.getters
  1380. // root getters
  1381. );
  1382. };
  1383. }
  1384. function enableStrictMode(store) {
  1385. vue.watch(function() {
  1386. return store._state.data;
  1387. }, function() {
  1388. {
  1389. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  1390. }
  1391. }, { deep: true, flush: "sync" });
  1392. }
  1393. function getNestedState(state, path) {
  1394. return path.reduce(function(state2, key) {
  1395. return state2[key];
  1396. }, state);
  1397. }
  1398. function unifyObjectStyle(type, payload, options) {
  1399. if (isObject$1(type) && type.type) {
  1400. options = payload;
  1401. payload = type;
  1402. type = type.type;
  1403. }
  1404. {
  1405. assert(typeof type === "string", "expects string as the type, but found " + typeof type + ".");
  1406. }
  1407. return { type, payload, options };
  1408. }
  1409. var LABEL_VUEX_BINDINGS = "vuex bindings";
  1410. var MUTATIONS_LAYER_ID = "vuex:mutations";
  1411. var ACTIONS_LAYER_ID = "vuex:actions";
  1412. var INSPECTOR_ID = "vuex";
  1413. var actionId = 0;
  1414. function addDevtools(app, store) {
  1415. setupDevtoolsPlugin(
  1416. {
  1417. id: "org.vuejs.vuex",
  1418. app,
  1419. label: "Vuex",
  1420. homepage: "https://next.vuex.vuejs.org/",
  1421. logo: "https://vuejs.org/images/icons/favicon-96x96.png",
  1422. packageName: "vuex",
  1423. componentStateTypes: [LABEL_VUEX_BINDINGS]
  1424. },
  1425. function(api) {
  1426. api.addTimelineLayer({
  1427. id: MUTATIONS_LAYER_ID,
  1428. label: "Vuex Mutations",
  1429. color: COLOR_LIME_500
  1430. });
  1431. api.addTimelineLayer({
  1432. id: ACTIONS_LAYER_ID,
  1433. label: "Vuex Actions",
  1434. color: COLOR_LIME_500
  1435. });
  1436. api.addInspector({
  1437. id: INSPECTOR_ID,
  1438. label: "Vuex",
  1439. icon: "storage",
  1440. treeFilterPlaceholder: "Filter stores..."
  1441. });
  1442. api.on.getInspectorTree(function(payload) {
  1443. if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
  1444. if (payload.filter) {
  1445. var nodes = [];
  1446. flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, "");
  1447. payload.rootNodes = nodes;
  1448. } else {
  1449. payload.rootNodes = [
  1450. formatStoreForInspectorTree(store._modules.root, "")
  1451. ];
  1452. }
  1453. }
  1454. });
  1455. api.on.getInspectorState(function(payload) {
  1456. if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
  1457. var modulePath = payload.nodeId;
  1458. makeLocalGetters(store, modulePath);
  1459. payload.state = formatStoreForInspectorState(
  1460. getStoreModule(store._modules, modulePath),
  1461. modulePath === "root" ? store.getters : store._makeLocalGettersCache,
  1462. modulePath
  1463. );
  1464. }
  1465. });
  1466. api.on.editInspectorState(function(payload) {
  1467. if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
  1468. var modulePath = payload.nodeId;
  1469. var path = payload.path;
  1470. if (modulePath !== "root") {
  1471. path = modulePath.split("/").filter(Boolean).concat(path);
  1472. }
  1473. store._withCommit(function() {
  1474. payload.set(store._state.data, path, payload.state.value);
  1475. });
  1476. }
  1477. });
  1478. store.subscribe(function(mutation, state) {
  1479. var data = {};
  1480. if (mutation.payload) {
  1481. data.payload = mutation.payload;
  1482. }
  1483. data.state = state;
  1484. api.notifyComponentUpdate();
  1485. api.sendInspectorTree(INSPECTOR_ID);
  1486. api.sendInspectorState(INSPECTOR_ID);
  1487. api.addTimelineEvent({
  1488. layerId: MUTATIONS_LAYER_ID,
  1489. event: {
  1490. time: Date.now(),
  1491. title: mutation.type,
  1492. data
  1493. }
  1494. });
  1495. });
  1496. store.subscribeAction({
  1497. before: function(action, state) {
  1498. var data = {};
  1499. if (action.payload) {
  1500. data.payload = action.payload;
  1501. }
  1502. action._id = actionId++;
  1503. action._time = Date.now();
  1504. data.state = state;
  1505. api.addTimelineEvent({
  1506. layerId: ACTIONS_LAYER_ID,
  1507. event: {
  1508. time: action._time,
  1509. title: action.type,
  1510. groupId: action._id,
  1511. subtitle: "start",
  1512. data
  1513. }
  1514. });
  1515. },
  1516. after: function(action, state) {
  1517. var data = {};
  1518. var duration = Date.now() - action._time;
  1519. data.duration = {
  1520. _custom: {
  1521. type: "duration",
  1522. display: duration + "ms",
  1523. tooltip: "Action duration",
  1524. value: duration
  1525. }
  1526. };
  1527. if (action.payload) {
  1528. data.payload = action.payload;
  1529. }
  1530. data.state = state;
  1531. api.addTimelineEvent({
  1532. layerId: ACTIONS_LAYER_ID,
  1533. event: {
  1534. time: Date.now(),
  1535. title: action.type,
  1536. groupId: action._id,
  1537. subtitle: "end",
  1538. data
  1539. }
  1540. });
  1541. }
  1542. });
  1543. }
  1544. );
  1545. }
  1546. var COLOR_LIME_500 = 8702998;
  1547. var COLOR_DARK = 6710886;
  1548. var COLOR_WHITE = 16777215;
  1549. var TAG_NAMESPACED = {
  1550. label: "namespaced",
  1551. textColor: COLOR_WHITE,
  1552. backgroundColor: COLOR_DARK
  1553. };
  1554. function extractNameFromPath(path) {
  1555. return path && path !== "root" ? path.split("/").slice(-2, -1)[0] : "Root";
  1556. }
  1557. function formatStoreForInspectorTree(module, path) {
  1558. return {
  1559. id: path || "root",
  1560. // all modules end with a `/`, we want the last segment only
  1561. // cart/ -> cart
  1562. // nested/cart/ -> cart
  1563. label: extractNameFromPath(path),
  1564. tags: module.namespaced ? [TAG_NAMESPACED] : [],
  1565. children: Object.keys(module._children).map(
  1566. function(moduleName) {
  1567. return formatStoreForInspectorTree(
  1568. module._children[moduleName],
  1569. path + moduleName + "/"
  1570. );
  1571. }
  1572. )
  1573. };
  1574. }
  1575. function flattenStoreForInspectorTree(result, module, filter, path) {
  1576. if (path.includes(filter)) {
  1577. result.push({
  1578. id: path || "root",
  1579. label: path.endsWith("/") ? path.slice(0, path.length - 1) : path || "Root",
  1580. tags: module.namespaced ? [TAG_NAMESPACED] : []
  1581. });
  1582. }
  1583. Object.keys(module._children).forEach(function(moduleName) {
  1584. flattenStoreForInspectorTree(result, module._children[moduleName], filter, path + moduleName + "/");
  1585. });
  1586. }
  1587. function formatStoreForInspectorState(module, getters, path) {
  1588. getters = path === "root" ? getters : getters[path];
  1589. var gettersKeys = Object.keys(getters);
  1590. var storeState = {
  1591. state: Object.keys(module.state).map(function(key) {
  1592. return {
  1593. key,
  1594. editable: true,
  1595. value: module.state[key]
  1596. };
  1597. })
  1598. };
  1599. if (gettersKeys.length) {
  1600. var tree = transformPathsToObjectTree(getters);
  1601. storeState.getters = Object.keys(tree).map(function(key) {
  1602. return {
  1603. key: key.endsWith("/") ? extractNameFromPath(key) : key,
  1604. editable: false,
  1605. value: canThrow(function() {
  1606. return tree[key];
  1607. })
  1608. };
  1609. });
  1610. }
  1611. return storeState;
  1612. }
  1613. function transformPathsToObjectTree(getters) {
  1614. var result = {};
  1615. Object.keys(getters).forEach(function(key) {
  1616. var path = key.split("/");
  1617. if (path.length > 1) {
  1618. var target = result;
  1619. var leafKey = path.pop();
  1620. path.forEach(function(p) {
  1621. if (!target[p]) {
  1622. target[p] = {
  1623. _custom: {
  1624. value: {},
  1625. display: p,
  1626. tooltip: "Module",
  1627. abstract: true
  1628. }
  1629. };
  1630. }
  1631. target = target[p]._custom.value;
  1632. });
  1633. target[leafKey] = canThrow(function() {
  1634. return getters[key];
  1635. });
  1636. } else {
  1637. result[key] = canThrow(function() {
  1638. return getters[key];
  1639. });
  1640. }
  1641. });
  1642. return result;
  1643. }
  1644. function getStoreModule(moduleMap, path) {
  1645. var names = path.split("/").filter(function(n) {
  1646. return n;
  1647. });
  1648. return names.reduce(
  1649. function(module, moduleName, i) {
  1650. var child = module[moduleName];
  1651. if (!child) {
  1652. throw new Error('Missing module "' + moduleName + '" for path "' + path + '".');
  1653. }
  1654. return i === names.length - 1 ? child : child._children;
  1655. },
  1656. path === "root" ? moduleMap : moduleMap.root._children
  1657. );
  1658. }
  1659. function canThrow(cb) {
  1660. try {
  1661. return cb();
  1662. } catch (e) {
  1663. return e;
  1664. }
  1665. }
  1666. var Module = function Module2(rawModule, runtime) {
  1667. this.runtime = runtime;
  1668. this._children = /* @__PURE__ */ Object.create(null);
  1669. this._rawModule = rawModule;
  1670. var rawState = rawModule.state;
  1671. this.state = (typeof rawState === "function" ? rawState() : rawState) || {};
  1672. };
  1673. var prototypeAccessors$1 = { namespaced: { configurable: true } };
  1674. prototypeAccessors$1.namespaced.get = function() {
  1675. return !!this._rawModule.namespaced;
  1676. };
  1677. Module.prototype.addChild = function addChild(key, module) {
  1678. this._children[key] = module;
  1679. };
  1680. Module.prototype.removeChild = function removeChild(key) {
  1681. delete this._children[key];
  1682. };
  1683. Module.prototype.getChild = function getChild(key) {
  1684. return this._children[key];
  1685. };
  1686. Module.prototype.hasChild = function hasChild(key) {
  1687. return key in this._children;
  1688. };
  1689. Module.prototype.update = function update(rawModule) {
  1690. this._rawModule.namespaced = rawModule.namespaced;
  1691. if (rawModule.actions) {
  1692. this._rawModule.actions = rawModule.actions;
  1693. }
  1694. if (rawModule.mutations) {
  1695. this._rawModule.mutations = rawModule.mutations;
  1696. }
  1697. if (rawModule.getters) {
  1698. this._rawModule.getters = rawModule.getters;
  1699. }
  1700. };
  1701. Module.prototype.forEachChild = function forEachChild(fn) {
  1702. forEachValue(this._children, fn);
  1703. };
  1704. Module.prototype.forEachGetter = function forEachGetter(fn) {
  1705. if (this._rawModule.getters) {
  1706. forEachValue(this._rawModule.getters, fn);
  1707. }
  1708. };
  1709. Module.prototype.forEachAction = function forEachAction(fn) {
  1710. if (this._rawModule.actions) {
  1711. forEachValue(this._rawModule.actions, fn);
  1712. }
  1713. };
  1714. Module.prototype.forEachMutation = function forEachMutation(fn) {
  1715. if (this._rawModule.mutations) {
  1716. forEachValue(this._rawModule.mutations, fn);
  1717. }
  1718. };
  1719. Object.defineProperties(Module.prototype, prototypeAccessors$1);
  1720. var ModuleCollection = function ModuleCollection2(rawRootModule) {
  1721. this.register([], rawRootModule, false);
  1722. };
  1723. ModuleCollection.prototype.get = function get(path) {
  1724. return path.reduce(function(module, key) {
  1725. return module.getChild(key);
  1726. }, this.root);
  1727. };
  1728. ModuleCollection.prototype.getNamespace = function getNamespace(path) {
  1729. var module = this.root;
  1730. return path.reduce(function(namespace, key) {
  1731. module = module.getChild(key);
  1732. return namespace + (module.namespaced ? key + "/" : "");
  1733. }, "");
  1734. };
  1735. ModuleCollection.prototype.update = function update$1(rawRootModule) {
  1736. update2([], this.root, rawRootModule);
  1737. };
  1738. ModuleCollection.prototype.register = function register(path, rawModule, runtime) {
  1739. var this$1$1 = this;
  1740. if (runtime === void 0)
  1741. runtime = true;
  1742. {
  1743. assertRawModule(path, rawModule);
  1744. }
  1745. var newModule = new Module(rawModule, runtime);
  1746. if (path.length === 0) {
  1747. this.root = newModule;
  1748. } else {
  1749. var parent = this.get(path.slice(0, -1));
  1750. parent.addChild(path[path.length - 1], newModule);
  1751. }
  1752. if (rawModule.modules) {
  1753. forEachValue(rawModule.modules, function(rawChildModule, key) {
  1754. this$1$1.register(path.concat(key), rawChildModule, runtime);
  1755. });
  1756. }
  1757. };
  1758. ModuleCollection.prototype.unregister = function unregister(path) {
  1759. var parent = this.get(path.slice(0, -1));
  1760. var key = path[path.length - 1];
  1761. var child = parent.getChild(key);
  1762. if (!child) {
  1763. {
  1764. console.warn(
  1765. "[vuex] trying to unregister module '" + key + "', which is not registered"
  1766. );
  1767. }
  1768. return;
  1769. }
  1770. if (!child.runtime) {
  1771. return;
  1772. }
  1773. parent.removeChild(key);
  1774. };
  1775. ModuleCollection.prototype.isRegistered = function isRegistered(path) {
  1776. var parent = this.get(path.slice(0, -1));
  1777. var key = path[path.length - 1];
  1778. if (parent) {
  1779. return parent.hasChild(key);
  1780. }
  1781. return false;
  1782. };
  1783. function update2(path, targetModule, newModule) {
  1784. {
  1785. assertRawModule(path, newModule);
  1786. }
  1787. targetModule.update(newModule);
  1788. if (newModule.modules) {
  1789. for (var key in newModule.modules) {
  1790. if (!targetModule.getChild(key)) {
  1791. {
  1792. console.warn(
  1793. "[vuex] trying to add a new module '" + key + "' on hot reloading, manual reload is needed"
  1794. );
  1795. }
  1796. return;
  1797. }
  1798. update2(
  1799. path.concat(key),
  1800. targetModule.getChild(key),
  1801. newModule.modules[key]
  1802. );
  1803. }
  1804. }
  1805. }
  1806. var functionAssert = {
  1807. assert: function(value) {
  1808. return typeof value === "function";
  1809. },
  1810. expected: "function"
  1811. };
  1812. var objectAssert = {
  1813. assert: function(value) {
  1814. return typeof value === "function" || typeof value === "object" && typeof value.handler === "function";
  1815. },
  1816. expected: 'function or object with "handler" function'
  1817. };
  1818. var assertTypes = {
  1819. getters: functionAssert,
  1820. mutations: functionAssert,
  1821. actions: objectAssert
  1822. };
  1823. function assertRawModule(path, rawModule) {
  1824. Object.keys(assertTypes).forEach(function(key) {
  1825. if (!rawModule[key]) {
  1826. return;
  1827. }
  1828. var assertOptions = assertTypes[key];
  1829. forEachValue(rawModule[key], function(value, type) {
  1830. assert(
  1831. assertOptions.assert(value),
  1832. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  1833. );
  1834. });
  1835. });
  1836. }
  1837. function makeAssertionMessage(path, key, type, value, expected) {
  1838. var buf = key + " should be " + expected + ' but "' + key + "." + type + '"';
  1839. if (path.length > 0) {
  1840. buf += ' in module "' + path.join(".") + '"';
  1841. }
  1842. buf += " is " + JSON.stringify(value) + ".";
  1843. return buf;
  1844. }
  1845. function createStore(options) {
  1846. return new Store$1(options);
  1847. }
  1848. var Store$1 = function Store2(options) {
  1849. var this$1$1 = this;
  1850. if (options === void 0)
  1851. options = {};
  1852. {
  1853. assert(typeof Promise !== "undefined", "vuex requires a Promise polyfill in this browser.");
  1854. assert(this instanceof Store2, "store must be called with the new operator.");
  1855. }
  1856. var plugins = options.plugins;
  1857. if (plugins === void 0)
  1858. plugins = [];
  1859. var strict = options.strict;
  1860. if (strict === void 0)
  1861. strict = false;
  1862. var devtools = options.devtools;
  1863. this._committing = false;
  1864. this._actions = /* @__PURE__ */ Object.create(null);
  1865. this._actionSubscribers = [];
  1866. this._mutations = /* @__PURE__ */ Object.create(null);
  1867. this._wrappedGetters = /* @__PURE__ */ Object.create(null);
  1868. this._modules = new ModuleCollection(options);
  1869. this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
  1870. this._subscribers = [];
  1871. this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
  1872. this._scope = null;
  1873. this._devtools = devtools;
  1874. var store = this;
  1875. var ref = this;
  1876. var dispatch2 = ref.dispatch;
  1877. var commit2 = ref.commit;
  1878. this.dispatch = function boundDispatch(type, payload) {
  1879. return dispatch2.call(store, type, payload);
  1880. };
  1881. this.commit = function boundCommit(type, payload, options2) {
  1882. return commit2.call(store, type, payload, options2);
  1883. };
  1884. this.strict = strict;
  1885. var state = this._modules.root.state;
  1886. installModule(this, state, [], this._modules.root);
  1887. resetStoreState(this, state);
  1888. plugins.forEach(function(plugin) {
  1889. return plugin(this$1$1);
  1890. });
  1891. };
  1892. var prototypeAccessors = { state: { configurable: true } };
  1893. Store$1.prototype.install = function install(app, injectKey) {
  1894. app.provide(injectKey || storeKey, this);
  1895. app.config.globalProperties.$store = this;
  1896. var useDevtools = this._devtools !== void 0 ? this._devtools : true;
  1897. if (useDevtools) {
  1898. addDevtools(app, this);
  1899. }
  1900. };
  1901. prototypeAccessors.state.get = function() {
  1902. return this._state.data;
  1903. };
  1904. prototypeAccessors.state.set = function(v) {
  1905. {
  1906. assert(false, "use store.replaceState() to explicit replace store state.");
  1907. }
  1908. };
  1909. Store$1.prototype.commit = function commit(_type, _payload, _options) {
  1910. var this$1$1 = this;
  1911. var ref = unifyObjectStyle(_type, _payload, _options);
  1912. var type = ref.type;
  1913. var payload = ref.payload;
  1914. var options = ref.options;
  1915. var mutation = { type, payload };
  1916. var entry = this._mutations[type];
  1917. if (!entry) {
  1918. {
  1919. console.error("[vuex] unknown mutation type: " + type);
  1920. }
  1921. return;
  1922. }
  1923. this._withCommit(function() {
  1924. entry.forEach(function commitIterator(handler) {
  1925. handler(payload);
  1926. });
  1927. });
  1928. this._subscribers.slice().forEach(function(sub) {
  1929. return sub(mutation, this$1$1.state);
  1930. });
  1931. if (options && options.silent) {
  1932. console.warn(
  1933. "[vuex] mutation type: " + type + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
  1934. );
  1935. }
  1936. };
  1937. Store$1.prototype.dispatch = function dispatch(_type, _payload) {
  1938. var this$1$1 = this;
  1939. var ref = unifyObjectStyle(_type, _payload);
  1940. var type = ref.type;
  1941. var payload = ref.payload;
  1942. var action = { type, payload };
  1943. var entry = this._actions[type];
  1944. if (!entry) {
  1945. {
  1946. console.error("[vuex] unknown action type: " + type);
  1947. }
  1948. return;
  1949. }
  1950. try {
  1951. this._actionSubscribers.slice().filter(function(sub) {
  1952. return sub.before;
  1953. }).forEach(function(sub) {
  1954. return sub.before(action, this$1$1.state);
  1955. });
  1956. } catch (e) {
  1957. {
  1958. console.warn("[vuex] error in before action subscribers: ");
  1959. console.error(e);
  1960. }
  1961. }
  1962. var result = entry.length > 1 ? Promise.all(entry.map(function(handler) {
  1963. return handler(payload);
  1964. })) : entry[0](payload);
  1965. return new Promise(function(resolve, reject) {
  1966. result.then(function(res) {
  1967. try {
  1968. this$1$1._actionSubscribers.filter(function(sub) {
  1969. return sub.after;
  1970. }).forEach(function(sub) {
  1971. return sub.after(action, this$1$1.state);
  1972. });
  1973. } catch (e) {
  1974. {
  1975. console.warn("[vuex] error in after action subscribers: ");
  1976. console.error(e);
  1977. }
  1978. }
  1979. resolve(res);
  1980. }, function(error) {
  1981. try {
  1982. this$1$1._actionSubscribers.filter(function(sub) {
  1983. return sub.error;
  1984. }).forEach(function(sub) {
  1985. return sub.error(action, this$1$1.state, error);
  1986. });
  1987. } catch (e) {
  1988. {
  1989. console.warn("[vuex] error in error action subscribers: ");
  1990. console.error(e);
  1991. }
  1992. }
  1993. reject(error);
  1994. });
  1995. });
  1996. };
  1997. Store$1.prototype.subscribe = function subscribe(fn, options) {
  1998. return genericSubscribe(fn, this._subscribers, options);
  1999. };
  2000. Store$1.prototype.subscribeAction = function subscribeAction(fn, options) {
  2001. var subs = typeof fn === "function" ? { before: fn } : fn;
  2002. return genericSubscribe(subs, this._actionSubscribers, options);
  2003. };
  2004. Store$1.prototype.watch = function watch$1(getter, cb, options) {
  2005. var this$1$1 = this;
  2006. {
  2007. assert(typeof getter === "function", "store.watch only accepts a function.");
  2008. }
  2009. return vue.watch(function() {
  2010. return getter(this$1$1.state, this$1$1.getters);
  2011. }, cb, Object.assign({}, options));
  2012. };
  2013. Store$1.prototype.replaceState = function replaceState(state) {
  2014. var this$1$1 = this;
  2015. this._withCommit(function() {
  2016. this$1$1._state.data = state;
  2017. });
  2018. };
  2019. Store$1.prototype.registerModule = function registerModule(path, rawModule, options) {
  2020. if (options === void 0)
  2021. options = {};
  2022. if (typeof path === "string") {
  2023. path = [path];
  2024. }
  2025. {
  2026. assert(Array.isArray(path), "module path must be a string or an Array.");
  2027. assert(path.length > 0, "cannot register the root module by using registerModule.");
  2028. }
  2029. this._modules.register(path, rawModule);
  2030. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  2031. resetStoreState(this, this.state);
  2032. };
  2033. Store$1.prototype.unregisterModule = function unregisterModule(path) {
  2034. var this$1$1 = this;
  2035. if (typeof path === "string") {
  2036. path = [path];
  2037. }
  2038. {
  2039. assert(Array.isArray(path), "module path must be a string or an Array.");
  2040. }
  2041. this._modules.unregister(path);
  2042. this._withCommit(function() {
  2043. var parentState = getNestedState(this$1$1.state, path.slice(0, -1));
  2044. delete parentState[path[path.length - 1]];
  2045. });
  2046. resetStore(this);
  2047. };
  2048. Store$1.prototype.hasModule = function hasModule(path) {
  2049. if (typeof path === "string") {
  2050. path = [path];
  2051. }
  2052. {
  2053. assert(Array.isArray(path), "module path must be a string or an Array.");
  2054. }
  2055. return this._modules.isRegistered(path);
  2056. };
  2057. Store$1.prototype.hotUpdate = function hotUpdate(newOptions) {
  2058. this._modules.update(newOptions);
  2059. resetStore(this, true);
  2060. };
  2061. Store$1.prototype._withCommit = function _withCommit(fn) {
  2062. var committing = this._committing;
  2063. this._committing = true;
  2064. fn();
  2065. this._committing = committing;
  2066. };
  2067. Object.defineProperties(Store$1.prototype, prototypeAccessors);
  2068. var mapState = normalizeNamespace(function(namespace, states) {
  2069. var res = {};
  2070. if (!isValidMap(states)) {
  2071. console.error("[vuex] mapState: mapper parameter must be either an Array or an Object");
  2072. }
  2073. normalizeMap(states).forEach(function(ref) {
  2074. var key = ref.key;
  2075. var val = ref.val;
  2076. res[key] = function mappedState() {
  2077. var state = this.$store.state;
  2078. var getters = this.$store.getters;
  2079. if (namespace) {
  2080. var module = getModuleByNamespace(this.$store, "mapState", namespace);
  2081. if (!module) {
  2082. return;
  2083. }
  2084. state = module.context.state;
  2085. getters = module.context.getters;
  2086. }
  2087. return typeof val === "function" ? val.call(this, state, getters) : state[val];
  2088. };
  2089. res[key].vuex = true;
  2090. });
  2091. return res;
  2092. });
  2093. function normalizeMap(map) {
  2094. if (!isValidMap(map)) {
  2095. return [];
  2096. }
  2097. return Array.isArray(map) ? map.map(function(key) {
  2098. return { key, val: key };
  2099. }) : Object.keys(map).map(function(key) {
  2100. return { key, val: map[key] };
  2101. });
  2102. }
  2103. function isValidMap(map) {
  2104. return Array.isArray(map) || isObject$1(map);
  2105. }
  2106. function normalizeNamespace(fn) {
  2107. return function(namespace, map) {
  2108. if (typeof namespace !== "string") {
  2109. map = namespace;
  2110. namespace = "";
  2111. } else if (namespace.charAt(namespace.length - 1) !== "/") {
  2112. namespace += "/";
  2113. }
  2114. return fn(namespace, map);
  2115. };
  2116. }
  2117. function getModuleByNamespace(store, helper, namespace) {
  2118. var module = store._modulesNamespaceMap[namespace];
  2119. if (!module) {
  2120. console.error("[vuex] module namespace not found in " + helper + "(): " + namespace);
  2121. }
  2122. return module;
  2123. }
  2124. const _imports_0 = "/static/logo.png";
  2125. const _imports_1 = "/static/tite.png";
  2126. const _imports_2$2 = "/static/choice1.png";
  2127. const _imports_3$1 = "/static/electricity.png";
  2128. const _imports_4$3 = "/static/choice2.png";
  2129. const _imports_5$2 = "/static/power1.png";
  2130. const _imports_6$1 = "/static/choice3.png";
  2131. const _imports_7$1 = "/static/direct1.png";
  2132. const _imports_8$1 = "/static/choice4.png";
  2133. const _imports_9$1 = "/static/DCpower1.png";
  2134. const _imports_10$1 = "/static/system.png";
  2135. const _imports_11$1 = "/static/!.png";
  2136. const _sfc_main$c = {
  2137. data() {
  2138. return {
  2139. title: "",
  2140. uidatas: "",
  2141. formatTimeid: "",
  2142. messageText: ""
  2143. };
  2144. },
  2145. created() {
  2146. },
  2147. mounted() {
  2148. },
  2149. computed: {
  2150. // 使用 mapState 映射多个状态到组件的计算属性
  2151. ...mapState(["formattedTime", "status", "selectorid", "selectorindex"]),
  2152. ...mapState({
  2153. uidatasdata: (state) => state.uidatasdata
  2154. })
  2155. },
  2156. onLoad() {
  2157. },
  2158. beforeUnmount() {
  2159. clearInterval(this.uidatas);
  2160. },
  2161. methods: {
  2162. onclick(e) {
  2163. this.pattern(e);
  2164. },
  2165. pattern(unm) {
  2166. let data = {
  2167. id: "c32e6a80-9159-4f6e-9acc-8525cf177808",
  2168. issaveinitvalue: true,
  2169. value: unm + ""
  2170. // 直流供电=1,直流补电=4,交流供电=2,交流补电=3
  2171. };
  2172. control(data).then((data2) => {
  2173. formatAppLog("log", "at pages/index/index.vue:115", data2);
  2174. if (data2.status == "ok") {
  2175. if (unm == 3) {
  2176. uni.redirectTo({
  2177. url: "/pages/home/index"
  2178. });
  2179. } else if (unm == 2) {
  2180. uni.redirectTo({
  2181. url: "/pages/electricity/index"
  2182. });
  2183. } else if (unm == 4) {
  2184. uni.redirectTo({
  2185. url: "/pages/supply/supply"
  2186. });
  2187. } else if (unm == 1) {
  2188. uni.redirectTo({
  2189. url: "/pages/supplyss/supplyss"
  2190. });
  2191. }
  2192. } else {
  2193. this.messageText = "选择模式失败请重新选择";
  2194. this.$refs.message.open();
  2195. return;
  2196. }
  2197. });
  2198. },
  2199. system() {
  2200. uni.redirectTo({
  2201. url: "/pages/faultlist/index"
  2202. });
  2203. }
  2204. }
  2205. };
  2206. function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
  2207. const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
  2208. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  2209. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  2210. vue.createElementVNode("view", { class: "top" }, [
  2211. vue.createElementVNode("image", {
  2212. class: "top_logo",
  2213. src: _imports_0,
  2214. mode: ""
  2215. }),
  2216. vue.createElementVNode("image", {
  2217. class: "tite",
  2218. src: _imports_1,
  2219. mode: ""
  2220. }),
  2221. vue.createElementVNode("view", { class: "time" }, [
  2222. vue.createElementVNode(
  2223. "view",
  2224. { class: "time_top" },
  2225. vue.toDisplayString(_ctx.formattedTime),
  2226. 1
  2227. /* TEXT */
  2228. ),
  2229. vue.createElementVNode("view", { class: "time_bottom" }, [
  2230. vue.createElementVNode("view"),
  2231. vue.createElementVNode("view", { class: "time_bottom1" }, [
  2232. vue.createTextVNode(" 连接状态: "),
  2233. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  2234. key: 0,
  2235. class: "time_state"
  2236. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  2237. key: 1,
  2238. class: "time_state1"
  2239. }, " 离线 "))
  2240. ])
  2241. ])
  2242. ])
  2243. ]),
  2244. vue.createElementVNode("view", { class: "tap" }, [
  2245. vue.createElementVNode("view", { class: "tap_1" }, " AC "),
  2246. vue.createElementVNode("view", { class: "tap_2" }, " DC "),
  2247. vue.createElementVNode("view", { class: "tap_3" }, " System ")
  2248. ]),
  2249. vue.createElementVNode("view", { class: "power" }, [
  2250. vue.createElementVNode("view", { class: "power_1" }, [
  2251. _ctx.selectorid != 3 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  2252. key: 0,
  2253. src: _imports_2$2,
  2254. mode: ""
  2255. })) : (vue.openBlock(), vue.createElementBlock("image", {
  2256. key: 1,
  2257. src: _imports_3$1,
  2258. mode: "",
  2259. onClick: _cache[0] || (_cache[0] = ($event) => $options.onclick(3))
  2260. }))
  2261. ]),
  2262. vue.createElementVNode("view", { class: "power_1" }, [
  2263. _ctx.selectorid != 2 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  2264. key: 0,
  2265. src: _imports_4$3,
  2266. mode: ""
  2267. })) : (vue.openBlock(), vue.createElementBlock("image", {
  2268. key: 1,
  2269. src: _imports_5$2,
  2270. mode: "",
  2271. onClick: _cache[1] || (_cache[1] = ($event) => $options.onclick(2))
  2272. }))
  2273. ]),
  2274. vue.createElementVNode("view", { class: "power_1" }, [
  2275. _ctx.selectorid != 4 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  2276. key: 0,
  2277. src: _imports_6$1,
  2278. mode: ""
  2279. })) : (vue.openBlock(), vue.createElementBlock("image", {
  2280. key: 1,
  2281. src: _imports_7$1,
  2282. mode: "",
  2283. onClick: _cache[2] || (_cache[2] = ($event) => $options.onclick(4))
  2284. }))
  2285. ]),
  2286. vue.createElementVNode("view", { class: "power_1" }, [
  2287. _ctx.selectorid != 1 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  2288. key: 0,
  2289. src: _imports_8$1,
  2290. mode: ""
  2291. })) : (vue.openBlock(), vue.createElementBlock("image", {
  2292. key: 1,
  2293. src: _imports_9$1,
  2294. mode: "",
  2295. onClick: _cache[3] || (_cache[3] = ($event) => $options.onclick(1))
  2296. }))
  2297. ]),
  2298. vue.createElementVNode("view", {
  2299. class: "power_5",
  2300. onClick: _cache[4] || (_cache[4] = (...args) => $options.system && $options.system(...args))
  2301. }, [
  2302. vue.createElementVNode("image", {
  2303. src: _imports_10$1,
  2304. mode: ""
  2305. })
  2306. ])
  2307. ]),
  2308. _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  2309. key: 0,
  2310. class: "power_6"
  2311. }, [
  2312. vue.createElementVNode("image", {
  2313. src: _imports_11$1,
  2314. mode: ""
  2315. }),
  2316. vue.createTextVNode("若想重新选择模式,请返回之前模式停止以后再重新选择! ")
  2317. ])) : vue.createCommentVNode("v-if", true),
  2318. vue.createVNode(
  2319. _component_uni_popup,
  2320. {
  2321. ref: "message",
  2322. type: "message"
  2323. },
  2324. {
  2325. default: vue.withCtx(() => [
  2326. vue.createVNode(_component_uni_popup_message, {
  2327. type: "error",
  2328. message: $data.messageText,
  2329. duration: 2500
  2330. }, null, 8, ["message"])
  2331. ]),
  2332. _: 1
  2333. /* STABLE */
  2334. },
  2335. 512
  2336. /* NEED_PATCH */
  2337. )
  2338. ]);
  2339. }
  2340. const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-1cf27b2a"], ["__file", "D:/project/esswisdom_ipad/pages/index/index.vue"]]);
  2341. const isObject = (val) => val !== null && typeof val === "object";
  2342. const defaultDelimiters = ["{", "}"];
  2343. class BaseFormatter {
  2344. constructor() {
  2345. this._caches = /* @__PURE__ */ Object.create(null);
  2346. }
  2347. interpolate(message, values, delimiters = defaultDelimiters) {
  2348. if (!values) {
  2349. return [message];
  2350. }
  2351. let tokens = this._caches[message];
  2352. if (!tokens) {
  2353. tokens = parse(message, delimiters);
  2354. this._caches[message] = tokens;
  2355. }
  2356. return compile(tokens, values);
  2357. }
  2358. }
  2359. const RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2360. const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2361. function parse(format, [startDelimiter, endDelimiter]) {
  2362. const tokens = [];
  2363. let position = 0;
  2364. let text = "";
  2365. while (position < format.length) {
  2366. let char = format[position++];
  2367. if (char === startDelimiter) {
  2368. if (text) {
  2369. tokens.push({ type: "text", value: text });
  2370. }
  2371. text = "";
  2372. let sub = "";
  2373. char = format[position++];
  2374. while (char !== void 0 && char !== endDelimiter) {
  2375. sub += char;
  2376. char = format[position++];
  2377. }
  2378. const isClosed = char === endDelimiter;
  2379. const type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown";
  2380. tokens.push({ value: sub, type });
  2381. } else {
  2382. text += char;
  2383. }
  2384. }
  2385. text && tokens.push({ type: "text", value: text });
  2386. return tokens;
  2387. }
  2388. function compile(tokens, values) {
  2389. const compiled = [];
  2390. let index = 0;
  2391. const mode = Array.isArray(values) ? "list" : isObject(values) ? "named" : "unknown";
  2392. if (mode === "unknown") {
  2393. return compiled;
  2394. }
  2395. while (index < tokens.length) {
  2396. const token = tokens[index];
  2397. switch (token.type) {
  2398. case "text":
  2399. compiled.push(token.value);
  2400. break;
  2401. case "list":
  2402. compiled.push(values[parseInt(token.value, 10)]);
  2403. break;
  2404. case "named":
  2405. if (mode === "named") {
  2406. compiled.push(values[token.value]);
  2407. } else {
  2408. {
  2409. console.warn(`Type of token '${token.type}' and format of value '${mode}' don't match!`);
  2410. }
  2411. }
  2412. break;
  2413. case "unknown":
  2414. {
  2415. console.warn(`Detect 'unknown' type of token!`);
  2416. }
  2417. break;
  2418. }
  2419. index++;
  2420. }
  2421. return compiled;
  2422. }
  2423. const LOCALE_ZH_HANS = "zh-Hans";
  2424. const LOCALE_ZH_HANT = "zh-Hant";
  2425. const LOCALE_EN = "en";
  2426. const LOCALE_FR = "fr";
  2427. const LOCALE_ES = "es";
  2428. const hasOwnProperty = Object.prototype.hasOwnProperty;
  2429. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  2430. const defaultFormatter = new BaseFormatter();
  2431. function include(str, parts) {
  2432. return !!parts.find((part) => str.indexOf(part) !== -1);
  2433. }
  2434. function startsWith(str, parts) {
  2435. return parts.find((part) => str.indexOf(part) === 0);
  2436. }
  2437. function normalizeLocale(locale, messages2) {
  2438. if (!locale) {
  2439. return;
  2440. }
  2441. locale = locale.trim().replace(/_/g, "-");
  2442. if (messages2 && messages2[locale]) {
  2443. return locale;
  2444. }
  2445. locale = locale.toLowerCase();
  2446. if (locale === "chinese") {
  2447. return LOCALE_ZH_HANS;
  2448. }
  2449. if (locale.indexOf("zh") === 0) {
  2450. if (locale.indexOf("-hans") > -1) {
  2451. return LOCALE_ZH_HANS;
  2452. }
  2453. if (locale.indexOf("-hant") > -1) {
  2454. return LOCALE_ZH_HANT;
  2455. }
  2456. if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) {
  2457. return LOCALE_ZH_HANT;
  2458. }
  2459. return LOCALE_ZH_HANS;
  2460. }
  2461. let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2462. if (messages2 && Object.keys(messages2).length > 0) {
  2463. locales = Object.keys(messages2);
  2464. }
  2465. const lang = startsWith(locale, locales);
  2466. if (lang) {
  2467. return lang;
  2468. }
  2469. }
  2470. class I18n {
  2471. constructor({ locale, fallbackLocale, messages: messages2, watcher, formater: formater2 }) {
  2472. this.locale = LOCALE_EN;
  2473. this.fallbackLocale = LOCALE_EN;
  2474. this.message = {};
  2475. this.messages = {};
  2476. this.watchers = [];
  2477. if (fallbackLocale) {
  2478. this.fallbackLocale = fallbackLocale;
  2479. }
  2480. this.formater = formater2 || defaultFormatter;
  2481. this.messages = messages2 || {};
  2482. this.setLocale(locale || LOCALE_EN);
  2483. if (watcher) {
  2484. this.watchLocale(watcher);
  2485. }
  2486. }
  2487. setLocale(locale) {
  2488. const oldLocale = this.locale;
  2489. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2490. if (!this.messages[this.locale]) {
  2491. this.messages[this.locale] = {};
  2492. }
  2493. this.message = this.messages[this.locale];
  2494. if (oldLocale !== this.locale) {
  2495. this.watchers.forEach((watcher) => {
  2496. watcher(this.locale, oldLocale);
  2497. });
  2498. }
  2499. }
  2500. getLocale() {
  2501. return this.locale;
  2502. }
  2503. watchLocale(fn) {
  2504. const index = this.watchers.push(fn) - 1;
  2505. return () => {
  2506. this.watchers.splice(index, 1);
  2507. };
  2508. }
  2509. add(locale, message, override = true) {
  2510. const curMessages = this.messages[locale];
  2511. if (curMessages) {
  2512. if (override) {
  2513. Object.assign(curMessages, message);
  2514. } else {
  2515. Object.keys(message).forEach((key) => {
  2516. if (!hasOwn(curMessages, key)) {
  2517. curMessages[key] = message[key];
  2518. }
  2519. });
  2520. }
  2521. } else {
  2522. this.messages[locale] = message;
  2523. }
  2524. }
  2525. f(message, values, delimiters) {
  2526. return this.formater.interpolate(message, values, delimiters).join("");
  2527. }
  2528. t(key, locale, values) {
  2529. let message = this.message;
  2530. if (typeof locale === "string") {
  2531. locale = normalizeLocale(locale, this.messages);
  2532. locale && (message = this.messages[locale]);
  2533. } else {
  2534. values = locale;
  2535. }
  2536. if (!hasOwn(message, key)) {
  2537. console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`);
  2538. return key;
  2539. }
  2540. return this.formater.interpolate(message[key], values).join("");
  2541. }
  2542. }
  2543. function watchAppLocale(appVm, i18n) {
  2544. if (appVm.$watchLocale) {
  2545. appVm.$watchLocale((newLocale) => {
  2546. i18n.setLocale(newLocale);
  2547. });
  2548. } else {
  2549. appVm.$watch(() => appVm.$locale, (newLocale) => {
  2550. i18n.setLocale(newLocale);
  2551. });
  2552. }
  2553. }
  2554. function getDefaultLocale() {
  2555. if (typeof uni !== "undefined" && uni.getLocale) {
  2556. return uni.getLocale();
  2557. }
  2558. if (typeof global !== "undefined" && global.getLocale) {
  2559. return global.getLocale();
  2560. }
  2561. return LOCALE_EN;
  2562. }
  2563. function initVueI18n(locale, messages2 = {}, fallbackLocale, watcher) {
  2564. if (typeof locale !== "string") {
  2565. const options = [
  2566. messages2,
  2567. locale
  2568. ];
  2569. locale = options[0];
  2570. messages2 = options[1];
  2571. }
  2572. if (typeof locale !== "string") {
  2573. locale = getDefaultLocale();
  2574. }
  2575. if (typeof fallbackLocale !== "string") {
  2576. fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN;
  2577. }
  2578. const i18n = new I18n({
  2579. locale,
  2580. fallbackLocale,
  2581. messages: messages2,
  2582. watcher
  2583. });
  2584. let t2 = (key, values) => {
  2585. if (typeof getApp !== "function") {
  2586. t2 = function(key2, values2) {
  2587. return i18n.t(key2, values2);
  2588. };
  2589. } else {
  2590. let isWatchedAppLocale = false;
  2591. t2 = function(key2, values2) {
  2592. const appVm = getApp().$vm;
  2593. if (appVm) {
  2594. appVm.$locale;
  2595. if (!isWatchedAppLocale) {
  2596. isWatchedAppLocale = true;
  2597. watchAppLocale(appVm, i18n);
  2598. }
  2599. }
  2600. return i18n.t(key2, values2);
  2601. };
  2602. }
  2603. return t2(key, values);
  2604. };
  2605. return {
  2606. i18n,
  2607. f(message, values, delimiters) {
  2608. return i18n.f(message, values, delimiters);
  2609. },
  2610. t(key, values) {
  2611. return t2(key, values);
  2612. },
  2613. add(locale2, message, override = true) {
  2614. return i18n.add(locale2, message, override);
  2615. },
  2616. watch(fn) {
  2617. return i18n.watchLocale(fn);
  2618. },
  2619. getLocale() {
  2620. return i18n.getLocale();
  2621. },
  2622. setLocale(newLocale) {
  2623. return i18n.setLocale(newLocale);
  2624. }
  2625. };
  2626. }
  2627. const en$1 = {
  2628. "uni-popup.cancel": "cancel",
  2629. "uni-popup.ok": "ok",
  2630. "uni-popup.placeholder": "pleace enter",
  2631. "uni-popup.title": "Hint",
  2632. "uni-popup.shareTitle": "Share to"
  2633. };
  2634. const zhHans$1 = {
  2635. "uni-popup.cancel": "取消",
  2636. "uni-popup.ok": "确定",
  2637. "uni-popup.placeholder": "请输入",
  2638. "uni-popup.title": "提示",
  2639. "uni-popup.shareTitle": "分享到"
  2640. };
  2641. const zhHant$1 = {
  2642. "uni-popup.cancel": "取消",
  2643. "uni-popup.ok": "確定",
  2644. "uni-popup.placeholder": "請輸入",
  2645. "uni-popup.title": "提示",
  2646. "uni-popup.shareTitle": "分享到"
  2647. };
  2648. const messages$1 = {
  2649. en: en$1,
  2650. "zh-Hans": zhHans$1,
  2651. "zh-Hant": zhHant$1
  2652. };
  2653. const {
  2654. t: t$1
  2655. } = initVueI18n(messages$1);
  2656. const _sfc_main$b = {
  2657. name: "uniPopupDialog",
  2658. mixins: [popup],
  2659. emits: ["confirm", "close", "update:modelValue", "input"],
  2660. props: {
  2661. inputType: {
  2662. type: String,
  2663. default: "text"
  2664. },
  2665. showClose: {
  2666. type: Boolean,
  2667. default: true
  2668. },
  2669. modelValue: {
  2670. type: [Number, String],
  2671. default: ""
  2672. },
  2673. placeholder: {
  2674. type: [String, Number],
  2675. default: ""
  2676. },
  2677. type: {
  2678. type: String,
  2679. default: "error"
  2680. },
  2681. mode: {
  2682. type: String,
  2683. default: "base"
  2684. },
  2685. title: {
  2686. type: String,
  2687. default: ""
  2688. },
  2689. content: {
  2690. type: String,
  2691. default: ""
  2692. },
  2693. beforeClose: {
  2694. type: Boolean,
  2695. default: false
  2696. },
  2697. cancelText: {
  2698. type: String,
  2699. default: ""
  2700. },
  2701. confirmText: {
  2702. type: String,
  2703. default: ""
  2704. },
  2705. maxlength: {
  2706. type: Number,
  2707. default: -1
  2708. },
  2709. focus: {
  2710. type: Boolean,
  2711. default: true
  2712. }
  2713. },
  2714. data() {
  2715. return {
  2716. dialogType: "error",
  2717. val: ""
  2718. };
  2719. },
  2720. computed: {
  2721. okText() {
  2722. return this.confirmText || t$1("uni-popup.ok");
  2723. },
  2724. closeText() {
  2725. return this.cancelText || t$1("uni-popup.cancel");
  2726. },
  2727. placeholderText() {
  2728. return this.placeholder || t$1("uni-popup.placeholder");
  2729. },
  2730. titleText() {
  2731. return this.title || t$1("uni-popup.title");
  2732. }
  2733. },
  2734. watch: {
  2735. type(val) {
  2736. this.dialogType = val;
  2737. },
  2738. mode(val) {
  2739. if (val === "input") {
  2740. this.dialogType = "info";
  2741. }
  2742. },
  2743. value(val) {
  2744. if (this.maxlength != -1 && this.mode === "input") {
  2745. this.val = val.slice(0, this.maxlength);
  2746. } else {
  2747. this.val = val;
  2748. }
  2749. },
  2750. val(val) {
  2751. this.$emit("update:modelValue", val);
  2752. }
  2753. },
  2754. created() {
  2755. this.popup.disableMask();
  2756. if (this.mode === "input") {
  2757. this.dialogType = "info";
  2758. this.val = this.value;
  2759. this.val = this.modelValue;
  2760. } else {
  2761. this.dialogType = this.type;
  2762. }
  2763. },
  2764. methods: {
  2765. /**
  2766. * 点击确认按钮
  2767. */
  2768. onOk() {
  2769. if (this.mode === "input") {
  2770. this.$emit("confirm", this.val);
  2771. } else {
  2772. this.$emit("confirm");
  2773. }
  2774. if (this.beforeClose)
  2775. return;
  2776. this.popup.close();
  2777. },
  2778. /**
  2779. * 点击取消按钮
  2780. */
  2781. closeDialog() {
  2782. this.$emit("close");
  2783. if (this.beforeClose)
  2784. return;
  2785. this.popup.close();
  2786. },
  2787. close() {
  2788. this.popup.close();
  2789. }
  2790. }
  2791. };
  2792. function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
  2793. return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-dialog" }, [
  2794. vue.createElementVNode("view", { class: "uni-dialog-title" }, [
  2795. vue.createElementVNode(
  2796. "text",
  2797. {
  2798. class: vue.normalizeClass(["uni-dialog-title-text", ["uni-popup__" + $data.dialogType]])
  2799. },
  2800. vue.toDisplayString($options.titleText),
  2801. 3
  2802. /* TEXT, CLASS */
  2803. )
  2804. ]),
  2805. $props.mode === "base" ? (vue.openBlock(), vue.createElementBlock("view", {
  2806. key: 0,
  2807. class: "uni-dialog-content"
  2808. }, [
  2809. vue.renderSlot(_ctx.$slots, "default", {}, () => [
  2810. vue.createElementVNode(
  2811. "text",
  2812. { class: "uni-dialog-content-text" },
  2813. vue.toDisplayString($props.content),
  2814. 1
  2815. /* TEXT */
  2816. )
  2817. ], true)
  2818. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  2819. key: 1,
  2820. class: "uni-dialog-content"
  2821. }, [
  2822. vue.renderSlot(_ctx.$slots, "default", {}, () => [
  2823. vue.withDirectives(vue.createElementVNode("input", {
  2824. class: "uni-dialog-input",
  2825. maxlength: $props.maxlength,
  2826. "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.val = $event),
  2827. type: $props.inputType,
  2828. placeholder: $options.placeholderText,
  2829. focus: $props.focus
  2830. }, null, 8, ["maxlength", "type", "placeholder", "focus"]), [
  2831. [vue.vModelDynamic, $data.val]
  2832. ])
  2833. ], true)
  2834. ])),
  2835. vue.createElementVNode("view", { class: "uni-dialog-button-group" }, [
  2836. $props.showClose ? (vue.openBlock(), vue.createElementBlock("view", {
  2837. key: 0,
  2838. class: "uni-dialog-button",
  2839. onClick: _cache[1] || (_cache[1] = (...args) => $options.closeDialog && $options.closeDialog(...args))
  2840. }, [
  2841. vue.createElementVNode(
  2842. "text",
  2843. { class: "uni-dialog-button-text" },
  2844. vue.toDisplayString($options.closeText),
  2845. 1
  2846. /* TEXT */
  2847. )
  2848. ])) : vue.createCommentVNode("v-if", true),
  2849. vue.createElementVNode(
  2850. "view",
  2851. {
  2852. class: vue.normalizeClass(["uni-dialog-button", $props.showClose ? "uni-border-left" : ""]),
  2853. onClick: _cache[2] || (_cache[2] = (...args) => $options.onOk && $options.onOk(...args))
  2854. },
  2855. [
  2856. vue.createElementVNode(
  2857. "text",
  2858. { class: "uni-dialog-button-text uni-button-color" },
  2859. vue.toDisplayString($options.okText),
  2860. 1
  2861. /* TEXT */
  2862. )
  2863. ],
  2864. 2
  2865. /* CLASS */
  2866. )
  2867. ])
  2868. ]);
  2869. }
  2870. const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-d78c88b7"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"]]);
  2871. class Gauge {
  2872. constructor({
  2873. canvasId,
  2874. startAngle = 2.8 / 3 * Math.PI,
  2875. // 135
  2876. endAngle = 0.13 / 2 * Math.PI,
  2877. // 45
  2878. width = 180,
  2879. min = 0,
  2880. max = 100,
  2881. value = 0,
  2882. unit = "%",
  2883. showTick = false,
  2884. valueColor = "#555",
  2885. progressColor = "#f58220",
  2886. trackColor = "#F1F1F1",
  2887. lineWidth = 10
  2888. }) {
  2889. this.ctx = uni.createCanvasContext(canvasId);
  2890. this.startAngle = startAngle;
  2891. this.endAngle = endAngle;
  2892. this.width = width;
  2893. this.min = min;
  2894. this.max = max;
  2895. this.value = value;
  2896. this.unit = unit;
  2897. this.showTick = showTick;
  2898. this.valueColor = valueColor;
  2899. this.progressColor = progressColor;
  2900. this.trackColor = trackColor;
  2901. this.lineWidth = lineWidth;
  2902. this.radius = this.width / 2;
  2903. this.process = min || -1;
  2904. this.tickLength = this.max - this.min;
  2905. this.trackRadius = this.radius - this.lineWidth / 2;
  2906. this.tickRad = (2 * Math.PI - this.startAngle + this.endAngle) / this.tickLength;
  2907. this.start();
  2908. }
  2909. draw() {
  2910. this.ctx.translate(this.radius, this.radius);
  2911. this.drawTrack();
  2912. this.drawValueText();
  2913. this.drawProgress();
  2914. if (this.showTick) {
  2915. this.drawTick();
  2916. this.drawTickText();
  2917. }
  2918. this.ctx.draw();
  2919. }
  2920. // 轨迹圆环
  2921. drawTrack() {
  2922. this.ctx.save();
  2923. this.ctx.lineWidth = this.lineWidth;
  2924. this.ctx.strokeStyle = this.trackColor;
  2925. this.ctx.arc(0, 0, this.trackRadius, this.startAngle, this.endAngle);
  2926. this.ctx.stroke();
  2927. this.ctx.restore();
  2928. }
  2929. // 当前值显示
  2930. drawValueText() {
  2931. this.ctx.save();
  2932. this.ctx.fillStyle = this.valueColor;
  2933. this.ctx.font = "34px serif";
  2934. this.ctx.textAlign = "center";
  2935. this.ctx.textBaseline = "middle";
  2936. this.ctx.fillText(`${this.value}${this.unit}`, 0, 0);
  2937. this.ctx.restore();
  2938. }
  2939. // 进度圆环
  2940. drawProgress() {
  2941. this.ctx.save();
  2942. const valueRad = this.getValueRad();
  2943. this.ctx.beginPath();
  2944. this.ctx.lineWidth = this.lineWidth;
  2945. this.ctx.strokeStyle = typeof this.progressColor === "string" ? this.progressColor : this.getGradient(this.progressColor);
  2946. this.ctx.lineJoin = "round";
  2947. this.ctx.arc(0, 0, this.trackRadius, this.startAngle, valueRad);
  2948. this.ctx.stroke();
  2949. this.ctx.restore();
  2950. }
  2951. // 刻度线
  2952. drawTick() {
  2953. let deg = this.startAngle;
  2954. for (let i = this.min; i <= this.max; i++) {
  2955. this.ctx.save();
  2956. this.ctx.lineWidth = 1;
  2957. this.ctx.strokeStyle = "#999";
  2958. this.ctx.beginPath();
  2959. let x0 = (this.radius - this.lineWidth - 2) * Math.cos(deg);
  2960. let y0 = (this.radius - this.lineWidth - 2) * Math.sin(deg);
  2961. var x1 = (this.radius - this.lineWidth - 8) * Math.cos(deg);
  2962. var y1 = (this.radius - this.lineWidth - 8) * Math.sin(deg);
  2963. this.ctx.moveTo(x0, y0);
  2964. this.ctx.lineTo(x1, y1);
  2965. deg += this.tickRad;
  2966. this.ctx.stroke();
  2967. this.ctx.restore();
  2968. }
  2969. }
  2970. // 刻度值
  2971. drawTickText() {
  2972. let deg = this.startAngle;
  2973. for (let i = this.min; i <= this.max; i++) {
  2974. let x = (this.radius - this.lineWidth - 20) * Math.cos(deg);
  2975. let y = (this.radius - this.lineWidth - 20) * Math.sin(deg);
  2976. deg += this.tickRad;
  2977. this.ctx.save();
  2978. this.ctx.font = "12px serif";
  2979. this.ctx.fillStyle = "#999";
  2980. this.ctx.textAlign = "center";
  2981. this.ctx.textBaseline = "middle";
  2982. this.ctx.fillText(i, x, y);
  2983. this.ctx.restore();
  2984. }
  2985. }
  2986. // 当前值的弧度
  2987. getValueRad() {
  2988. if (this.value > this.max) {
  2989. return (this.max - this.min) * this.tickRad + this.startAngle;
  2990. }
  2991. return (this.process - this.min) * this.tickRad + this.startAngle;
  2992. }
  2993. start() {
  2994. let update = () => {
  2995. this.process = this.process + (this.max - this.min) / 100;
  2996. if (this.process > this.value) {
  2997. uni.cancelAnimationFrame(update);
  2998. } else {
  2999. this.draw();
  3000. uni.requestAnimationFrame(update);
  3001. }
  3002. };
  3003. uni.requestAnimationFrame(update);
  3004. }
  3005. // 渐变
  3006. getGradient(colorList) {
  3007. let grd = this.ctx.createLinearGradient(0, 0, this.trackRadius, 0);
  3008. colorList.forEach((color, index) => {
  3009. grd.addColorStop(index / (colorList.length - 1), color);
  3010. });
  3011. return grd;
  3012. }
  3013. }
  3014. uni.requestAnimationFrame = function(callback) {
  3015. var lastTime = 0;
  3016. var currTime = (/* @__PURE__ */ new Date()).getTime();
  3017. var timeToCall = Math.max(0, 16 - (currTime - lastTime));
  3018. var id = setTimeout(function() {
  3019. callback(currTime + timeToCall);
  3020. }, timeToCall);
  3021. lastTime = currTime + timeToCall;
  3022. return id;
  3023. };
  3024. uni.cancelAnimationFrame = function(id) {
  3025. clearTimeout(id);
  3026. };
  3027. (function() {
  3028. var vendors = ["webkit", "moz", "ms", "o"];
  3029. for (var x = 0; x < vendors.length && !uni.requestAnimationFrame; ++x) {
  3030. uni.requestAnimationFrame = uni[vendors[x] + "RequestAnimationFrame"];
  3031. uni.cancelAnimationFrame = uni[vendors[x] + "CancelAnimationFrame"] || uni[vendors[x] + "CancelRequestAnimationFrame"];
  3032. }
  3033. if (!uni.requestAnimationFrame)
  3034. uni.requestAnimationFrame = function(callback) {
  3035. return setTimeout(callback, 16);
  3036. };
  3037. if (!uni.cancelAnimationFrame)
  3038. uni.cancelAnimationFrame = function(id) {
  3039. clearTimeout(id);
  3040. };
  3041. })();
  3042. const _sfc_main$a = {
  3043. name: "gauge",
  3044. data() {
  3045. return {};
  3046. },
  3047. computed: {
  3048. ...mapState({
  3049. uidatasdata: (state) => state.uidatasdata
  3050. })
  3051. },
  3052. mounted() {
  3053. let SOC = "";
  3054. if ((this.$store.state.uidatasdata.SOC * 1).toFixed(0)) {
  3055. SOC = (this.$store.state.uidatasdata.SOC * 1).toFixed(0);
  3056. } else {
  3057. SOC = 10;
  3058. }
  3059. new Gauge({
  3060. canvasId: "canvas2",
  3061. value: SOC,
  3062. lineWidth: 20,
  3063. progressColor: ["#B0D0FF", "#5B8FF9"],
  3064. valueColor: "blue"
  3065. });
  3066. }
  3067. };
  3068. function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
  3069. return vue.openBlock(), vue.createElementBlock("view", { class: "gauge-container" }, [
  3070. vue.createElementVNode("canvas", {
  3071. class: "canvas",
  3072. "canvas-id": "canvas2"
  3073. })
  3074. ]);
  3075. }
  3076. const JerryGauge = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__scopeId", "data-v-fca24c1c"], ["__file", "D:/project/esswisdom_ipad/uni_modules/jerry-gauge/index.vue"]]);
  3077. const _imports_2$1 = "/static/dian1.png";
  3078. const _imports_3 = "/static/dian2.png";
  3079. const _imports_4$2 = "/static/che.png";
  3080. const _imports_5$1 = "/static/y8.png";
  3081. const _imports_6 = "/static/y6.png";
  3082. const _imports_7 = "/static/SOC.png";
  3083. const _imports_8 = "/static/Battery.png";
  3084. const _imports_9 = "/static/setup.png";
  3085. const _imports_10 = "/static/home.png";
  3086. const _imports_11 = "/static/home1.png";
  3087. const _sfc_main$9 = {
  3088. components: {
  3089. JerryGauge
  3090. },
  3091. data() {
  3092. return {
  3093. successtype: "success",
  3094. confirmText: "确认启动",
  3095. title: "你确定要开启该设备吗?",
  3096. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  3097. value: "",
  3098. modeinput: "",
  3099. segmented: 1,
  3100. uidatas: "",
  3101. formatTimeid: "",
  3102. faultsdata: []
  3103. };
  3104. },
  3105. onLoad() {
  3106. },
  3107. computed: {
  3108. // 使用 mapState 映射多个状态到组件的计算属性
  3109. ...mapState(["formattedTime", "status"]),
  3110. ...mapState({
  3111. uidatasdata: (state) => state.uidatasdata
  3112. })
  3113. },
  3114. mounted() {
  3115. this.onfaultsdata();
  3116. },
  3117. beforeUnmount() {
  3118. if (this.scrollInterval) {
  3119. clearInterval(this.scrollInterval);
  3120. }
  3121. },
  3122. watch: {
  3123. uidatasdata: {
  3124. handler(newVal, oldVal) {
  3125. this.handleDataChange(newVal);
  3126. },
  3127. deep: true
  3128. // 监听深层次的变化
  3129. }
  3130. },
  3131. methods: {
  3132. handleDataChange(newData) {
  3133. },
  3134. onfaultsdata() {
  3135. let data = {
  3136. page: 1,
  3137. rows: 1e3,
  3138. device: "",
  3139. starttime: "",
  3140. endtime: "",
  3141. rt: 1,
  3142. type: ""
  3143. };
  3144. getfaultsList(data).then((res) => {
  3145. formatAppLog("log", "at pages/home/index.vue:616", res);
  3146. if (res.status == "ok") {
  3147. this.faultsdata = res.data.list;
  3148. }
  3149. });
  3150. },
  3151. // 返回首页
  3152. onreturn() {
  3153. uni.redirectTo({
  3154. url: "/pages/index/index"
  3155. });
  3156. },
  3157. // 启动设备弹窗
  3158. dialogToggle() {
  3159. this.modeinput = "base";
  3160. this.successtype = "success";
  3161. this.confirmText = "确认启动";
  3162. this.title = "你确定要开启该设备吗?";
  3163. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  3164. this.$refs.alertDialog.open();
  3165. },
  3166. onstopit() {
  3167. this.modeinput = "base";
  3168. this.successtype = "error";
  3169. this.confirmText = "确认停止";
  3170. this.title = "你确定要停止该设备吗?";
  3171. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  3172. this.$refs.alertDialog.open();
  3173. },
  3174. onpower() {
  3175. this.modeinput = "input";
  3176. this.title = "功率给定";
  3177. this.confirmText = "确认";
  3178. this.$refs.alertDialog.open();
  3179. },
  3180. // this.uidatasdata.AC_In_380V_63A1_Status==0
  3181. // this.messageText = '需将AC输出端63A1的开关手动断开'
  3182. // this.$refs.message.open()
  3183. // this.uidatasdata.AC_In_380V_63A2_Status==0
  3184. // this.messageText = '需将AC输出端63A2的开关手动断开'
  3185. // this.$refs.message.open()
  3186. // 确定
  3187. dialogConfirm() {
  3188. let uidatasdata = this.$store.state.uidatasdata;
  3189. let data = {};
  3190. if (this.title == "功率给定") {
  3191. data = {
  3192. id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
  3193. issaveinitvalue: false,
  3194. value: this.value
  3195. };
  3196. } else {
  3197. data = {
  3198. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  3199. issaveinitvalue: false,
  3200. value: this.confirmText == "确认启动" ? "1" : "0"
  3201. };
  3202. }
  3203. if (this.confirmText == "确认启动") {
  3204. if (uidatasdata.AC_Out_380V_125A_Status == 0 || uidatasdata.AC_Out_380V_63A_Status == 0 || uidatasdata.AC_Out_220V_16A_Status == 0) {
  3205. this.messageText = "AC补电时AC输出端应全部断开";
  3206. this.$refs.message.open();
  3207. return;
  3208. }
  3209. }
  3210. control(data).then((data2) => {
  3211. formatAppLog("log", "at pages/home/index.vue:687", data2);
  3212. if (data2.status == "ok") {
  3213. if (this.title == "功率给定") {
  3214. plus.navigator.hideSystemNavigation();
  3215. }
  3216. this.$refs.alertDialog.close();
  3217. uni.showToast({
  3218. title: "操作成功",
  3219. icon: "none",
  3220. duration: 2e3
  3221. // 显示时长,单位为毫秒
  3222. });
  3223. } else {
  3224. this.$refs.alertDialog.close();
  3225. uni.showToast({
  3226. title: "操作失败",
  3227. icon: "none",
  3228. // 使用 'none' 图标来表示失败
  3229. duration: 2e3
  3230. // 显示时长,单位为毫秒
  3231. });
  3232. }
  3233. });
  3234. },
  3235. dialogClose() {
  3236. if (this.title == "功率给定") {
  3237. plus.navigator.hideSystemNavigation();
  3238. }
  3239. this.$refs.alertDialog.close();
  3240. },
  3241. ontap(e) {
  3242. formatAppLog("log", "at pages/home/index.vue:717", e);
  3243. this.segmented = e;
  3244. }
  3245. }
  3246. };
  3247. function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
  3248. const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
  3249. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  3250. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  3251. const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
  3252. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  3253. vue.createElementVNode("view", { class: "top" }, [
  3254. vue.createElementVNode("image", {
  3255. class: "top_logo",
  3256. src: _imports_0,
  3257. mode: ""
  3258. }),
  3259. vue.createElementVNode("image", {
  3260. class: "tite",
  3261. src: _imports_1,
  3262. mode: ""
  3263. }),
  3264. vue.createElementVNode("view", { class: "time" }, [
  3265. vue.createElementVNode(
  3266. "view",
  3267. { class: "time_top" },
  3268. vue.toDisplayString(_ctx.formattedTime),
  3269. 1
  3270. /* TEXT */
  3271. ),
  3272. vue.createElementVNode("view", { class: "time_bottom" }, [
  3273. vue.createElementVNode("view"),
  3274. vue.createElementVNode("view", { class: "time_bottom1" }, [
  3275. vue.createTextVNode(" 连接状态: "),
  3276. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  3277. key: 0,
  3278. class: "time_state"
  3279. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  3280. key: 1,
  3281. class: "time_state1"
  3282. }, " 离线 "))
  3283. ])
  3284. ])
  3285. ])
  3286. ]),
  3287. vue.createElementVNode("view", { class: "parameter" }, [
  3288. vue.createElementVNode("view", { class: "parameter_left" }, [
  3289. vue.createElementVNode("view", { class: "parameter_left1" }, [
  3290. vue.createVNode(_component_jerry_gauge),
  3291. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  3292. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  3293. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  3294. ])
  3295. ]),
  3296. vue.createElementVNode("image", {
  3297. class: "parameter_leftdian1",
  3298. src: _imports_2$1,
  3299. alt: ""
  3300. }),
  3301. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  3302. vue.createElementVNode("image", {
  3303. src: _imports_3,
  3304. mode: ""
  3305. })
  3306. ]),
  3307. vue.createElementVNode("image", {
  3308. class: "parameter_leftche",
  3309. src: _imports_4$2,
  3310. mode: ""
  3311. }),
  3312. vue.createCommentVNode(' <image class="parameter_leftche1" src="../../static/fang.png" mode=""></image> '),
  3313. vue.createCommentVNode(' <image class="parameter_leftche" src="../../static/che.png" mode=""></image> '),
  3314. vue.createCommentVNode(' <image class="parameter_leftche2" src="../../static/che1.png" mode=""></image> '),
  3315. vue.createElementVNode("view", { class: "parameter_leftview" }, "交流补电"),
  3316. vue.createCommentVNode(' <view class="parameter_leftview">交流供电</view> '),
  3317. vue.createCommentVNode(' <view class="parameter_leftview">直流补电</view> '),
  3318. vue.createCommentVNode(' <view class="parameter_leftview">直流供电</view> ')
  3319. ]),
  3320. vue.createElementVNode("view", { class: "parameter_right" }, [
  3321. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  3322. vue.createElementVNode("view", { class: "parameter_1" }, [
  3323. vue.createElementVNode("view", { class: "parameter_2" }, [
  3324. vue.createElementVNode("view", { class: "parameter_3" }, [
  3325. vue.createElementVNode("view", { class: "parameter_4" }, [
  3326. _ctx.uidatasdata.AC_In_380V_63A1_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
  3327. key: 0,
  3328. src: _imports_5$1,
  3329. mode: ""
  3330. })) : (vue.openBlock(), vue.createElementBlock("image", {
  3331. key: 1,
  3332. src: _imports_6,
  3333. mode: ""
  3334. })),
  3335. vue.createTextVNode(" 63A1状态 ")
  3336. ]),
  3337. _ctx.uidatasdata.AC_In_380V_63A1_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  3338. key: 0,
  3339. class: "parameter_51"
  3340. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  3341. key: 1,
  3342. class: "parameter_5"
  3343. }, " 断开 "))
  3344. ]),
  3345. vue.createElementVNode("view", { class: "parameter_3" }, [
  3346. vue.createElementVNode("view", { class: "parameter_4" }, [
  3347. _ctx.uidatasdata.AC_In_380V_63A2_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
  3348. key: 0,
  3349. src: _imports_5$1,
  3350. mode: ""
  3351. })) : (vue.openBlock(), vue.createElementBlock("image", {
  3352. key: 1,
  3353. src: _imports_6,
  3354. mode: ""
  3355. })),
  3356. vue.createTextVNode(" 63A2状态 ")
  3357. ]),
  3358. _ctx.uidatasdata.AC_In_380V_63A2_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  3359. key: 0,
  3360. class: "parameter_51"
  3361. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  3362. key: 1,
  3363. class: "parameter_5"
  3364. }, " 断开 "))
  3365. ])
  3366. ]),
  3367. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  3368. vue.createElementVNode("image", {
  3369. src: _imports_7,
  3370. mode: ""
  3371. }),
  3372. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  3373. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  3374. vue.createElementVNode("view", null, [
  3375. vue.createElementVNode(
  3376. "text",
  3377. { class: "parameter_SOCright2" },
  3378. vue.toDisplayString(_ctx.uidatasdata.SOC),
  3379. 1
  3380. /* TEXT */
  3381. ),
  3382. vue.createTextVNode(),
  3383. vue.createElementVNode("text", null, "%")
  3384. ])
  3385. ])
  3386. ]),
  3387. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  3388. vue.createElementVNode("image", {
  3389. src: _imports_8,
  3390. mode: ""
  3391. }),
  3392. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  3393. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  3394. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  3395. _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  3396. _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  3397. _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  3398. _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  3399. _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  3400. _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  3401. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  3402. ])
  3403. ])
  3404. ]),
  3405. vue.createElementVNode("view", { class: "parameter_state" }, [
  3406. vue.createElementVNode("image", {
  3407. src: _imports_9,
  3408. mode: ""
  3409. }),
  3410. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  3411. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  3412. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  3413. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  3414. _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  3415. _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  3416. _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  3417. _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  3418. _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  3419. _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  3420. ])
  3421. ])
  3422. ])
  3423. ])
  3424. ]),
  3425. vue.createElementVNode("view", { class: "parameter_tap" }, [
  3426. vue.createElementVNode(
  3427. "view",
  3428. {
  3429. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  3430. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  3431. },
  3432. " 交流信息 ",
  3433. 2
  3434. /* CLASS */
  3435. ),
  3436. vue.createElementVNode(
  3437. "view",
  3438. {
  3439. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  3440. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  3441. },
  3442. " 电池信息 ",
  3443. 2
  3444. /* CLASS */
  3445. ),
  3446. vue.createElementVNode(
  3447. "view",
  3448. {
  3449. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  3450. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  3451. },
  3452. " 统计信息 ",
  3453. 2
  3454. /* CLASS */
  3455. ),
  3456. vue.createElementVNode(
  3457. "view",
  3458. {
  3459. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  3460. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  3461. },
  3462. " 液冷信息 ",
  3463. 2
  3464. /* CLASS */
  3465. )
  3466. ]),
  3467. vue.createElementVNode("view", {
  3468. class: "parameter_zheng",
  3469. key: "index"
  3470. }, [
  3471. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  3472. key: 0,
  3473. class: "parameter_box"
  3474. }, [
  3475. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  3476. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3477. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
  3478. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3479. vue.createTextVNode(
  3480. vue.toDisplayString(_ctx.uidatasdata.PCSPortAPhaseVoltage) + " ",
  3481. 1
  3482. /* TEXT */
  3483. ),
  3484. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3485. ])
  3486. ]),
  3487. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3488. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
  3489. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3490. vue.createTextVNode(
  3491. vue.toDisplayString(_ctx.uidatasdata.PCSPortBPhaseVoltage) + " ",
  3492. 1
  3493. /* TEXT */
  3494. ),
  3495. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3496. ])
  3497. ]),
  3498. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3499. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
  3500. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3501. vue.createTextVNode(
  3502. vue.toDisplayString(_ctx.uidatasdata.PCSPortCPhaseVoltage) + " ",
  3503. 1
  3504. /* TEXT */
  3505. ),
  3506. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3507. ])
  3508. ]),
  3509. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3510. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电电量 "),
  3511. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3512. vue.createTextVNode(
  3513. vue.toDisplayString(_ctx.uidatasdata.PCSACChargeEnergy) + " ",
  3514. 1
  3515. /* TEXT */
  3516. ),
  3517. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  3518. ])
  3519. ])
  3520. ]),
  3521. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  3522. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3523. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
  3524. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3525. vue.createTextVNode(
  3526. vue.toDisplayString(_ctx.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
  3527. 1
  3528. /* TEXT */
  3529. ),
  3530. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  3531. ])
  3532. ]),
  3533. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3534. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
  3535. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3536. vue.createTextVNode(
  3537. vue.toDisplayString(_ctx.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
  3538. 1
  3539. /* TEXT */
  3540. ),
  3541. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  3542. ])
  3543. ]),
  3544. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3545. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
  3546. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3547. vue.createTextVNode(
  3548. vue.toDisplayString(_ctx.uidatasdata["PCSOutputC-phaseCurrent"]) + " ",
  3549. 1
  3550. /* TEXT */
  3551. ),
  3552. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  3553. ])
  3554. ]),
  3555. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3556. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电功率 "),
  3557. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3558. vue.createTextVNode(
  3559. vue.toDisplayString(_ctx.uidatasdata.PCSTotalOutputPower) + " ",
  3560. 1
  3561. /* TEXT */
  3562. ),
  3563. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  3564. ])
  3565. ])
  3566. ])
  3567. ])) : vue.createCommentVNode("v-if", true),
  3568. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  3569. key: 1,
  3570. class: "parameter_box"
  3571. }, [
  3572. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  3573. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3574. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  3575. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3576. vue.createTextVNode(
  3577. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
  3578. 1
  3579. /* TEXT */
  3580. ),
  3581. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  3582. ])
  3583. ]),
  3584. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3585. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  3586. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3587. vue.createTextVNode(
  3588. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  3589. 1
  3590. /* TEXT */
  3591. ),
  3592. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3593. ])
  3594. ]),
  3595. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3596. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
  3597. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3598. vue.createTextVNode(
  3599. vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
  3600. 1
  3601. /* TEXT */
  3602. ),
  3603. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  3604. ])
  3605. ]),
  3606. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3607. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  3608. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3609. vue.createTextVNode(
  3610. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  3611. 1
  3612. /* TEXT */
  3613. ),
  3614. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3615. ])
  3616. ]),
  3617. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3618. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  3619. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3620. vue.createTextVNode(
  3621. vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  3622. 1
  3623. /* TEXT */
  3624. ),
  3625. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  3626. ])
  3627. ])
  3628. ]),
  3629. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  3630. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3631. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  3632. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3633. vue.createTextVNode(
  3634. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
  3635. 1
  3636. /* TEXT */
  3637. ),
  3638. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  3639. ])
  3640. ]),
  3641. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3642. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  3643. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3644. vue.createTextVNode(
  3645. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  3646. 1
  3647. /* TEXT */
  3648. ),
  3649. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3650. ])
  3651. ]),
  3652. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3653. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
  3654. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3655. vue.createTextVNode(
  3656. vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
  3657. 1
  3658. /* TEXT */
  3659. ),
  3660. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  3661. ])
  3662. ]),
  3663. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3664. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  3665. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3666. vue.createTextVNode(
  3667. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
  3668. 1
  3669. /* TEXT */
  3670. ),
  3671. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3672. ])
  3673. ]),
  3674. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3675. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  3676. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3677. vue.createTextVNode(
  3678. vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  3679. 1
  3680. /* TEXT */
  3681. ),
  3682. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  3683. ])
  3684. ])
  3685. ])
  3686. ])) : vue.createCommentVNode("v-if", true),
  3687. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  3688. key: 2,
  3689. class: "parameter_box"
  3690. }, [
  3691. vue.createElementVNode("view", { class: "parameter_zheng10" }, [
  3692. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3693. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  3694. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3695. vue.createTextVNode(
  3696. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
  3697. 1
  3698. /* TEXT */
  3699. ),
  3700. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  3701. ])
  3702. ]),
  3703. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
  3704. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  3705. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3706. vue.createTextVNode(
  3707. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  3708. 1
  3709. /* TEXT */
  3710. ),
  3711. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  3712. ])
  3713. ])
  3714. ])
  3715. ])) : vue.createCommentVNode("v-if", true),
  3716. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  3717. key: 3,
  3718. class: "parameter_box"
  3719. }, [
  3720. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  3721. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3722. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  3723. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  3724. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  3725. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  3726. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  3727. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  3728. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  3729. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  3730. ])
  3731. ]),
  3732. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3733. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  3734. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3735. vue.createTextVNode(
  3736. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  3737. 1
  3738. /* TEXT */
  3739. ),
  3740. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  3741. ])
  3742. ]),
  3743. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3744. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  3745. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3746. vue.createTextVNode(
  3747. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  3748. 1
  3749. /* TEXT */
  3750. ),
  3751. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  3752. ])
  3753. ])
  3754. ]),
  3755. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  3756. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3757. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  3758. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  3759. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  3760. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  3761. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  3762. ])
  3763. ]),
  3764. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3765. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  3766. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  3767. vue.createTextVNode(
  3768. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  3769. 1
  3770. /* TEXT */
  3771. ),
  3772. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  3773. ])
  3774. ]),
  3775. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  3776. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  3777. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  3778. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  3779. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  3780. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  3781. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  3782. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  3783. ])
  3784. ])
  3785. ])
  3786. ])) : vue.createCommentVNode("v-if", true),
  3787. vue.createElementVNode("view", { class: "parameter_zheng3" }, [
  3788. _ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  3789. key: 0,
  3790. class: "parameter_zheng31111"
  3791. }, [
  3792. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  3793. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  3794. ])
  3795. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  3796. key: 1,
  3797. class: "parameter_zheng31111",
  3798. onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  3799. }, [
  3800. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  3801. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  3802. ])
  3803. ])),
  3804. _ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  3805. key: 2,
  3806. class: "parameter_zheng31111"
  3807. }, [
  3808. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  3809. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  3810. ])
  3811. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  3812. key: 3,
  3813. class: "parameter_zheng31111",
  3814. onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
  3815. }, [
  3816. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  3817. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  3818. ])
  3819. ])),
  3820. vue.createElementVNode("view", {
  3821. class: "parameter_zheng31111",
  3822. onClick: _cache[6] || (_cache[6] = (...args) => $options.onpower && $options.onpower(...args))
  3823. }, [
  3824. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  3825. vue.createElementVNode("view", { class: "parameter_zheng34" }, [
  3826. vue.createElementVNode("view", null, " 功率 "),
  3827. vue.createElementVNode("view", null, " 给定 ")
  3828. ])
  3829. ])
  3830. ])
  3831. ])
  3832. ]),
  3833. vue.createElementVNode("view", { class: "parameter_home" }, [
  3834. vue.createElementVNode("view", {
  3835. class: "parameter_home1",
  3836. onClick: _cache[7] || (_cache[7] = (...args) => $options.onreturn && $options.onreturn(...args))
  3837. }, [
  3838. vue.createElementVNode("image", {
  3839. src: _imports_10,
  3840. mode: ""
  3841. }),
  3842. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  3843. ]),
  3844. vue.createElementVNode("view", { class: "parameter_home2" }, [
  3845. vue.createElementVNode("image", {
  3846. src: _imports_11,
  3847. mode: ""
  3848. }),
  3849. vue.createElementVNode("swiper", {
  3850. class: "swiper",
  3851. circular: "",
  3852. autoplay: true,
  3853. interval: 2e3,
  3854. duration: 500,
  3855. vertical: true
  3856. }, [
  3857. (vue.openBlock(true), vue.createElementBlock(
  3858. vue.Fragment,
  3859. null,
  3860. vue.renderList($data.faultsdata, (item, index) => {
  3861. return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
  3862. vue.createElementVNode(
  3863. "view",
  3864. { class: "parameter_home3" },
  3865. vue.toDisplayString(item["CONTENT"]),
  3866. 1
  3867. /* TEXT */
  3868. )
  3869. ]);
  3870. }),
  3871. 128
  3872. /* KEYED_FRAGMENT */
  3873. ))
  3874. ])
  3875. ])
  3876. ])
  3877. ])
  3878. ]),
  3879. vue.createVNode(
  3880. _component_uni_popup,
  3881. { ref: "alertDialog" },
  3882. {
  3883. default: vue.withCtx(() => [
  3884. vue.createVNode(_component_uni_popup_dialog, {
  3885. mode: $data.modeinput,
  3886. placeholder: "功率给定(0~80kW)",
  3887. modelValue: $data.value,
  3888. "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.value = $event),
  3889. focus: false,
  3890. type: $data.successtype,
  3891. cancelText: "取消返回",
  3892. confirmText: $data.confirmText,
  3893. beforeClose: true,
  3894. title: $data.title,
  3895. content: $data.content,
  3896. onConfirm: $options.dialogConfirm,
  3897. onClose: $options.dialogClose
  3898. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  3899. ]),
  3900. _: 1
  3901. /* STABLE */
  3902. },
  3903. 512
  3904. /* NEED_PATCH */
  3905. ),
  3906. vue.createVNode(
  3907. _component_uni_popup,
  3908. {
  3909. ref: "message",
  3910. type: "message"
  3911. },
  3912. {
  3913. default: vue.withCtx(() => [
  3914. vue.createVNode(_component_uni_popup_message, {
  3915. type: "error",
  3916. message: _ctx.messageText,
  3917. duration: 3e3
  3918. }, null, 8, ["message"])
  3919. ]),
  3920. _: 1
  3921. /* STABLE */
  3922. },
  3923. 512
  3924. /* NEED_PATCH */
  3925. )
  3926. ]);
  3927. }
  3928. const PagesHomeIndex = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/esswisdom_ipad/pages/home/index.vue"]]);
  3929. const _sfc_main$8 = {
  3930. props: {
  3931. visible: Boolean,
  3932. color: {
  3933. type: String,
  3934. default: "#303133"
  3935. },
  3936. placement: {
  3937. type: String,
  3938. default: "top"
  3939. },
  3940. content: {
  3941. type: String,
  3942. default: ""
  3943. },
  3944. show: {
  3945. type: Boolean,
  3946. default: false
  3947. }
  3948. },
  3949. data() {
  3950. return {
  3951. isShow: this.visible,
  3952. title: "Hello",
  3953. arrowLeft: 0,
  3954. query: null,
  3955. style: {},
  3956. arrowStyle: {}
  3957. };
  3958. },
  3959. onLoad() {
  3960. },
  3961. watch: {
  3962. isShow: {
  3963. handler(val) {
  3964. this.$emit("update:visible", val);
  3965. },
  3966. immediate: true
  3967. },
  3968. visible: {
  3969. handler(val) {
  3970. if (val) {
  3971. this.$nextTick(() => {
  3972. this.getPosition();
  3973. });
  3974. }
  3975. this.isShow = val;
  3976. },
  3977. immediate: true
  3978. }
  3979. },
  3980. mounted() {
  3981. this.getPosition();
  3982. },
  3983. methods: {
  3984. close() {
  3985. this.isShow = false;
  3986. },
  3987. fixedWrap() {
  3988. this.isShow = false;
  3989. },
  3990. async handleClick() {
  3991. if (this.isShow) {
  3992. return this.isShow = false;
  3993. }
  3994. await this.getPosition();
  3995. this.isShow = true;
  3996. },
  3997. getPosition() {
  3998. return new Promise((resolve) => {
  3999. uni.createSelectorQuery().in(this).selectAll(".zb_tooltip_content,.zb_tooltip__popper").boundingClientRect(async (data) => {
  4000. let { left, bottom, right, top, width, height } = data[0];
  4001. let obj1 = data[1];
  4002. let objStyle = {};
  4003. let objStyle1 = {};
  4004. switch (this.placement) {
  4005. case "top":
  4006. if (obj1.width > width) {
  4007. objStyle.left = `-${(obj1.width - width) / 2}px`;
  4008. } else {
  4009. objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
  4010. }
  4011. objStyle.bottom = `${height + 8}px`;
  4012. objStyle1.left = obj1.width / 2 - 6 + "px";
  4013. break;
  4014. case "top-start":
  4015. objStyle.left = `0px`;
  4016. objStyle.bottom = `${height + 8}px`;
  4017. break;
  4018. case "top-end":
  4019. objStyle.right = `0px`;
  4020. objStyle.bottom = `${height + 8}px`;
  4021. objStyle1.right = `8px`;
  4022. break;
  4023. case "bottom":
  4024. if (obj1.width > width) {
  4025. objStyle.left = `-${(obj1.width - width) / 2}px`;
  4026. } else {
  4027. objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
  4028. }
  4029. objStyle.top = `${height + 8}px`;
  4030. objStyle1.left = obj1.width / 2 - 6 + "px";
  4031. break;
  4032. case "bottom-start":
  4033. objStyle.left = `0px`;
  4034. objStyle.top = `${height + 8}px`;
  4035. objStyle1.left = `8px`;
  4036. break;
  4037. case "bottom-end":
  4038. objStyle.right = `0px`;
  4039. objStyle.top = `${height + 8}px`;
  4040. objStyle1.right = `8px`;
  4041. break;
  4042. case "right":
  4043. objStyle.left = `${width + 8}px`;
  4044. if (obj1.height > height) {
  4045. objStyle.top = `-${(obj1.height - height) / 2}px`;
  4046. } else {
  4047. objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
  4048. }
  4049. objStyle1.top = `${obj1.height / 2 - 6}px`;
  4050. break;
  4051. case "right-start":
  4052. objStyle.left = `${width + 8}px`;
  4053. objStyle.top = `0px`;
  4054. objStyle1.top = `8px`;
  4055. break;
  4056. case "right-end":
  4057. objStyle.left = `${width + 8}px`;
  4058. objStyle.bottom = `0px`;
  4059. objStyle1.bottom = `8px`;
  4060. break;
  4061. case "left":
  4062. objStyle.right = `${width + 8}px`;
  4063. if (obj1.height > height) {
  4064. objStyle.top = `-${(obj1.height - height) / 2}px`;
  4065. } else {
  4066. objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
  4067. }
  4068. objStyle1.top = `${obj1.height / 2 - 6}px`;
  4069. break;
  4070. case "left-start":
  4071. objStyle.right = `${width + 8}px`;
  4072. objStyle.top = `0px`;
  4073. objStyle1.top = `8px`;
  4074. break;
  4075. case "left-end":
  4076. objStyle.right = `${width + 8}px`;
  4077. objStyle.bottom = `0px`;
  4078. objStyle1.bottom = `8px`;
  4079. break;
  4080. }
  4081. this.style = objStyle;
  4082. this.arrowStyle = objStyle1;
  4083. resolve();
  4084. }).exec();
  4085. });
  4086. }
  4087. }
  4088. };
  4089. function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
  4090. return vue.openBlock(), vue.createElementBlock(
  4091. "view",
  4092. {
  4093. class: "zb-tooltip",
  4094. style: vue.normalizeStyle({
  4095. "--theme-bg-color": $props.color
  4096. })
  4097. },
  4098. [
  4099. vue.createElementVNode("view", {
  4100. class: "zb_tooltip_content",
  4101. onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.handleClick && $options.handleClick(...args), ["stop"]))
  4102. }, [
  4103. vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
  4104. vue.createElementVNode(
  4105. "view",
  4106. {
  4107. class: "zb_tooltip__popper",
  4108. onClick: vue.withModifiers(() => {
  4109. }, ["stop"]),
  4110. style: vue.normalizeStyle([$data.style, {
  4111. visibility: $data.isShow ? "visible" : "hidden",
  4112. color: $props.color === "white" ? "" : "#fff",
  4113. boxShadow: $props.color === "white" ? "0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d" : ""
  4114. }])
  4115. },
  4116. [
  4117. vue.renderSlot(_ctx.$slots, "content", {}, () => [
  4118. vue.createTextVNode(
  4119. vue.toDisplayString($props.content),
  4120. 1
  4121. /* TEXT */
  4122. )
  4123. ], true),
  4124. vue.createElementVNode(
  4125. "view",
  4126. {
  4127. class: vue.normalizeClass(["zb_popper__icon", [{
  4128. "zb_popper__up": $props.placement.indexOf("bottom") === 0,
  4129. "zb_popper__arrow": $props.placement.indexOf("top") === 0,
  4130. "zb_popper__right": $props.placement.indexOf("right") === 0,
  4131. "zb_popper__left": $props.placement.indexOf("left") === 0
  4132. }]]),
  4133. style: vue.normalizeStyle([$data.arrowStyle])
  4134. },
  4135. null,
  4136. 6
  4137. /* CLASS, STYLE */
  4138. )
  4139. ],
  4140. 4
  4141. /* STYLE */
  4142. )
  4143. ])
  4144. ],
  4145. 4
  4146. /* STYLE */
  4147. );
  4148. }
  4149. const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-13dad3a2"], ["__file", "D:/project/esswisdom_ipad/uni_modules/zb-tooltip/components/zb-tooltip/zb-tooltip.vue"]]);
  4150. const fontData = [
  4151. {
  4152. "font_class": "arrow-down",
  4153. "unicode": ""
  4154. },
  4155. {
  4156. "font_class": "arrow-left",
  4157. "unicode": ""
  4158. },
  4159. {
  4160. "font_class": "arrow-right",
  4161. "unicode": ""
  4162. },
  4163. {
  4164. "font_class": "arrow-up",
  4165. "unicode": ""
  4166. },
  4167. {
  4168. "font_class": "auth",
  4169. "unicode": ""
  4170. },
  4171. {
  4172. "font_class": "auth-filled",
  4173. "unicode": ""
  4174. },
  4175. {
  4176. "font_class": "back",
  4177. "unicode": ""
  4178. },
  4179. {
  4180. "font_class": "bars",
  4181. "unicode": ""
  4182. },
  4183. {
  4184. "font_class": "calendar",
  4185. "unicode": ""
  4186. },
  4187. {
  4188. "font_class": "calendar-filled",
  4189. "unicode": ""
  4190. },
  4191. {
  4192. "font_class": "camera",
  4193. "unicode": ""
  4194. },
  4195. {
  4196. "font_class": "camera-filled",
  4197. "unicode": ""
  4198. },
  4199. {
  4200. "font_class": "cart",
  4201. "unicode": ""
  4202. },
  4203. {
  4204. "font_class": "cart-filled",
  4205. "unicode": ""
  4206. },
  4207. {
  4208. "font_class": "chat",
  4209. "unicode": ""
  4210. },
  4211. {
  4212. "font_class": "chat-filled",
  4213. "unicode": ""
  4214. },
  4215. {
  4216. "font_class": "chatboxes",
  4217. "unicode": ""
  4218. },
  4219. {
  4220. "font_class": "chatboxes-filled",
  4221. "unicode": ""
  4222. },
  4223. {
  4224. "font_class": "chatbubble",
  4225. "unicode": ""
  4226. },
  4227. {
  4228. "font_class": "chatbubble-filled",
  4229. "unicode": ""
  4230. },
  4231. {
  4232. "font_class": "checkbox",
  4233. "unicode": ""
  4234. },
  4235. {
  4236. "font_class": "checkbox-filled",
  4237. "unicode": ""
  4238. },
  4239. {
  4240. "font_class": "checkmarkempty",
  4241. "unicode": ""
  4242. },
  4243. {
  4244. "font_class": "circle",
  4245. "unicode": ""
  4246. },
  4247. {
  4248. "font_class": "circle-filled",
  4249. "unicode": ""
  4250. },
  4251. {
  4252. "font_class": "clear",
  4253. "unicode": ""
  4254. },
  4255. {
  4256. "font_class": "close",
  4257. "unicode": ""
  4258. },
  4259. {
  4260. "font_class": "closeempty",
  4261. "unicode": ""
  4262. },
  4263. {
  4264. "font_class": "cloud-download",
  4265. "unicode": ""
  4266. },
  4267. {
  4268. "font_class": "cloud-download-filled",
  4269. "unicode": ""
  4270. },
  4271. {
  4272. "font_class": "cloud-upload",
  4273. "unicode": ""
  4274. },
  4275. {
  4276. "font_class": "cloud-upload-filled",
  4277. "unicode": ""
  4278. },
  4279. {
  4280. "font_class": "color",
  4281. "unicode": ""
  4282. },
  4283. {
  4284. "font_class": "color-filled",
  4285. "unicode": ""
  4286. },
  4287. {
  4288. "font_class": "compose",
  4289. "unicode": ""
  4290. },
  4291. {
  4292. "font_class": "contact",
  4293. "unicode": ""
  4294. },
  4295. {
  4296. "font_class": "contact-filled",
  4297. "unicode": ""
  4298. },
  4299. {
  4300. "font_class": "down",
  4301. "unicode": ""
  4302. },
  4303. {
  4304. "font_class": "bottom",
  4305. "unicode": ""
  4306. },
  4307. {
  4308. "font_class": "download",
  4309. "unicode": ""
  4310. },
  4311. {
  4312. "font_class": "download-filled",
  4313. "unicode": ""
  4314. },
  4315. {
  4316. "font_class": "email",
  4317. "unicode": ""
  4318. },
  4319. {
  4320. "font_class": "email-filled",
  4321. "unicode": ""
  4322. },
  4323. {
  4324. "font_class": "eye",
  4325. "unicode": ""
  4326. },
  4327. {
  4328. "font_class": "eye-filled",
  4329. "unicode": ""
  4330. },
  4331. {
  4332. "font_class": "eye-slash",
  4333. "unicode": ""
  4334. },
  4335. {
  4336. "font_class": "eye-slash-filled",
  4337. "unicode": ""
  4338. },
  4339. {
  4340. "font_class": "fire",
  4341. "unicode": ""
  4342. },
  4343. {
  4344. "font_class": "fire-filled",
  4345. "unicode": ""
  4346. },
  4347. {
  4348. "font_class": "flag",
  4349. "unicode": ""
  4350. },
  4351. {
  4352. "font_class": "flag-filled",
  4353. "unicode": ""
  4354. },
  4355. {
  4356. "font_class": "folder-add",
  4357. "unicode": ""
  4358. },
  4359. {
  4360. "font_class": "folder-add-filled",
  4361. "unicode": ""
  4362. },
  4363. {
  4364. "font_class": "font",
  4365. "unicode": ""
  4366. },
  4367. {
  4368. "font_class": "forward",
  4369. "unicode": ""
  4370. },
  4371. {
  4372. "font_class": "gear",
  4373. "unicode": ""
  4374. },
  4375. {
  4376. "font_class": "gear-filled",
  4377. "unicode": ""
  4378. },
  4379. {
  4380. "font_class": "gift",
  4381. "unicode": ""
  4382. },
  4383. {
  4384. "font_class": "gift-filled",
  4385. "unicode": ""
  4386. },
  4387. {
  4388. "font_class": "hand-down",
  4389. "unicode": ""
  4390. },
  4391. {
  4392. "font_class": "hand-down-filled",
  4393. "unicode": ""
  4394. },
  4395. {
  4396. "font_class": "hand-up",
  4397. "unicode": ""
  4398. },
  4399. {
  4400. "font_class": "hand-up-filled",
  4401. "unicode": ""
  4402. },
  4403. {
  4404. "font_class": "headphones",
  4405. "unicode": ""
  4406. },
  4407. {
  4408. "font_class": "heart",
  4409. "unicode": ""
  4410. },
  4411. {
  4412. "font_class": "heart-filled",
  4413. "unicode": ""
  4414. },
  4415. {
  4416. "font_class": "help",
  4417. "unicode": ""
  4418. },
  4419. {
  4420. "font_class": "help-filled",
  4421. "unicode": ""
  4422. },
  4423. {
  4424. "font_class": "home",
  4425. "unicode": ""
  4426. },
  4427. {
  4428. "font_class": "home-filled",
  4429. "unicode": ""
  4430. },
  4431. {
  4432. "font_class": "image",
  4433. "unicode": ""
  4434. },
  4435. {
  4436. "font_class": "image-filled",
  4437. "unicode": ""
  4438. },
  4439. {
  4440. "font_class": "images",
  4441. "unicode": ""
  4442. },
  4443. {
  4444. "font_class": "images-filled",
  4445. "unicode": ""
  4446. },
  4447. {
  4448. "font_class": "info",
  4449. "unicode": ""
  4450. },
  4451. {
  4452. "font_class": "info-filled",
  4453. "unicode": ""
  4454. },
  4455. {
  4456. "font_class": "left",
  4457. "unicode": ""
  4458. },
  4459. {
  4460. "font_class": "link",
  4461. "unicode": ""
  4462. },
  4463. {
  4464. "font_class": "list",
  4465. "unicode": ""
  4466. },
  4467. {
  4468. "font_class": "location",
  4469. "unicode": ""
  4470. },
  4471. {
  4472. "font_class": "location-filled",
  4473. "unicode": ""
  4474. },
  4475. {
  4476. "font_class": "locked",
  4477. "unicode": ""
  4478. },
  4479. {
  4480. "font_class": "locked-filled",
  4481. "unicode": ""
  4482. },
  4483. {
  4484. "font_class": "loop",
  4485. "unicode": ""
  4486. },
  4487. {
  4488. "font_class": "mail-open",
  4489. "unicode": ""
  4490. },
  4491. {
  4492. "font_class": "mail-open-filled",
  4493. "unicode": ""
  4494. },
  4495. {
  4496. "font_class": "map",
  4497. "unicode": ""
  4498. },
  4499. {
  4500. "font_class": "map-filled",
  4501. "unicode": ""
  4502. },
  4503. {
  4504. "font_class": "map-pin",
  4505. "unicode": ""
  4506. },
  4507. {
  4508. "font_class": "map-pin-ellipse",
  4509. "unicode": ""
  4510. },
  4511. {
  4512. "font_class": "medal",
  4513. "unicode": ""
  4514. },
  4515. {
  4516. "font_class": "medal-filled",
  4517. "unicode": ""
  4518. },
  4519. {
  4520. "font_class": "mic",
  4521. "unicode": ""
  4522. },
  4523. {
  4524. "font_class": "mic-filled",
  4525. "unicode": ""
  4526. },
  4527. {
  4528. "font_class": "micoff",
  4529. "unicode": ""
  4530. },
  4531. {
  4532. "font_class": "micoff-filled",
  4533. "unicode": ""
  4534. },
  4535. {
  4536. "font_class": "minus",
  4537. "unicode": ""
  4538. },
  4539. {
  4540. "font_class": "minus-filled",
  4541. "unicode": ""
  4542. },
  4543. {
  4544. "font_class": "more",
  4545. "unicode": ""
  4546. },
  4547. {
  4548. "font_class": "more-filled",
  4549. "unicode": ""
  4550. },
  4551. {
  4552. "font_class": "navigate",
  4553. "unicode": ""
  4554. },
  4555. {
  4556. "font_class": "navigate-filled",
  4557. "unicode": ""
  4558. },
  4559. {
  4560. "font_class": "notification",
  4561. "unicode": ""
  4562. },
  4563. {
  4564. "font_class": "notification-filled",
  4565. "unicode": ""
  4566. },
  4567. {
  4568. "font_class": "paperclip",
  4569. "unicode": ""
  4570. },
  4571. {
  4572. "font_class": "paperplane",
  4573. "unicode": ""
  4574. },
  4575. {
  4576. "font_class": "paperplane-filled",
  4577. "unicode": ""
  4578. },
  4579. {
  4580. "font_class": "person",
  4581. "unicode": ""
  4582. },
  4583. {
  4584. "font_class": "person-filled",
  4585. "unicode": ""
  4586. },
  4587. {
  4588. "font_class": "personadd",
  4589. "unicode": ""
  4590. },
  4591. {
  4592. "font_class": "personadd-filled",
  4593. "unicode": ""
  4594. },
  4595. {
  4596. "font_class": "personadd-filled-copy",
  4597. "unicode": ""
  4598. },
  4599. {
  4600. "font_class": "phone",
  4601. "unicode": ""
  4602. },
  4603. {
  4604. "font_class": "phone-filled",
  4605. "unicode": ""
  4606. },
  4607. {
  4608. "font_class": "plus",
  4609. "unicode": ""
  4610. },
  4611. {
  4612. "font_class": "plus-filled",
  4613. "unicode": ""
  4614. },
  4615. {
  4616. "font_class": "plusempty",
  4617. "unicode": ""
  4618. },
  4619. {
  4620. "font_class": "pulldown",
  4621. "unicode": ""
  4622. },
  4623. {
  4624. "font_class": "pyq",
  4625. "unicode": ""
  4626. },
  4627. {
  4628. "font_class": "qq",
  4629. "unicode": ""
  4630. },
  4631. {
  4632. "font_class": "redo",
  4633. "unicode": ""
  4634. },
  4635. {
  4636. "font_class": "redo-filled",
  4637. "unicode": ""
  4638. },
  4639. {
  4640. "font_class": "refresh",
  4641. "unicode": ""
  4642. },
  4643. {
  4644. "font_class": "refresh-filled",
  4645. "unicode": ""
  4646. },
  4647. {
  4648. "font_class": "refreshempty",
  4649. "unicode": ""
  4650. },
  4651. {
  4652. "font_class": "reload",
  4653. "unicode": ""
  4654. },
  4655. {
  4656. "font_class": "right",
  4657. "unicode": ""
  4658. },
  4659. {
  4660. "font_class": "scan",
  4661. "unicode": ""
  4662. },
  4663. {
  4664. "font_class": "search",
  4665. "unicode": ""
  4666. },
  4667. {
  4668. "font_class": "settings",
  4669. "unicode": ""
  4670. },
  4671. {
  4672. "font_class": "settings-filled",
  4673. "unicode": ""
  4674. },
  4675. {
  4676. "font_class": "shop",
  4677. "unicode": ""
  4678. },
  4679. {
  4680. "font_class": "shop-filled",
  4681. "unicode": ""
  4682. },
  4683. {
  4684. "font_class": "smallcircle",
  4685. "unicode": ""
  4686. },
  4687. {
  4688. "font_class": "smallcircle-filled",
  4689. "unicode": ""
  4690. },
  4691. {
  4692. "font_class": "sound",
  4693. "unicode": ""
  4694. },
  4695. {
  4696. "font_class": "sound-filled",
  4697. "unicode": ""
  4698. },
  4699. {
  4700. "font_class": "spinner-cycle",
  4701. "unicode": ""
  4702. },
  4703. {
  4704. "font_class": "staff",
  4705. "unicode": ""
  4706. },
  4707. {
  4708. "font_class": "staff-filled",
  4709. "unicode": ""
  4710. },
  4711. {
  4712. "font_class": "star",
  4713. "unicode": ""
  4714. },
  4715. {
  4716. "font_class": "star-filled",
  4717. "unicode": ""
  4718. },
  4719. {
  4720. "font_class": "starhalf",
  4721. "unicode": ""
  4722. },
  4723. {
  4724. "font_class": "trash",
  4725. "unicode": ""
  4726. },
  4727. {
  4728. "font_class": "trash-filled",
  4729. "unicode": ""
  4730. },
  4731. {
  4732. "font_class": "tune",
  4733. "unicode": ""
  4734. },
  4735. {
  4736. "font_class": "tune-filled",
  4737. "unicode": ""
  4738. },
  4739. {
  4740. "font_class": "undo",
  4741. "unicode": ""
  4742. },
  4743. {
  4744. "font_class": "undo-filled",
  4745. "unicode": ""
  4746. },
  4747. {
  4748. "font_class": "up",
  4749. "unicode": ""
  4750. },
  4751. {
  4752. "font_class": "top",
  4753. "unicode": ""
  4754. },
  4755. {
  4756. "font_class": "upload",
  4757. "unicode": ""
  4758. },
  4759. {
  4760. "font_class": "upload-filled",
  4761. "unicode": ""
  4762. },
  4763. {
  4764. "font_class": "videocam",
  4765. "unicode": ""
  4766. },
  4767. {
  4768. "font_class": "videocam-filled",
  4769. "unicode": ""
  4770. },
  4771. {
  4772. "font_class": "vip",
  4773. "unicode": ""
  4774. },
  4775. {
  4776. "font_class": "vip-filled",
  4777. "unicode": ""
  4778. },
  4779. {
  4780. "font_class": "wallet",
  4781. "unicode": ""
  4782. },
  4783. {
  4784. "font_class": "wallet-filled",
  4785. "unicode": ""
  4786. },
  4787. {
  4788. "font_class": "weibo",
  4789. "unicode": ""
  4790. },
  4791. {
  4792. "font_class": "weixin",
  4793. "unicode": ""
  4794. }
  4795. ];
  4796. const getVal = (val) => {
  4797. const reg = /^[0-9]*$/g;
  4798. return typeof val === "number" || reg.test(val) ? val + "px" : val;
  4799. };
  4800. const _sfc_main$7 = {
  4801. name: "UniIcons",
  4802. emits: ["click"],
  4803. props: {
  4804. type: {
  4805. type: String,
  4806. default: ""
  4807. },
  4808. color: {
  4809. type: String,
  4810. default: "#333333"
  4811. },
  4812. size: {
  4813. type: [Number, String],
  4814. default: 16
  4815. },
  4816. customPrefix: {
  4817. type: String,
  4818. default: ""
  4819. },
  4820. fontFamily: {
  4821. type: String,
  4822. default: ""
  4823. }
  4824. },
  4825. data() {
  4826. return {
  4827. icons: fontData
  4828. };
  4829. },
  4830. computed: {
  4831. unicode() {
  4832. let code = this.icons.find((v) => v.font_class === this.type);
  4833. if (code) {
  4834. return code.unicode;
  4835. }
  4836. return "";
  4837. },
  4838. iconSize() {
  4839. return getVal(this.size);
  4840. },
  4841. styleObj() {
  4842. if (this.fontFamily !== "") {
  4843. return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`;
  4844. }
  4845. return `color: ${this.color}; font-size: ${this.iconSize};`;
  4846. }
  4847. },
  4848. methods: {
  4849. _onClick() {
  4850. this.$emit("click");
  4851. }
  4852. }
  4853. };
  4854. function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
  4855. return vue.openBlock(), vue.createElementBlock(
  4856. "text",
  4857. {
  4858. style: vue.normalizeStyle($options.styleObj),
  4859. class: vue.normalizeClass(["uni-icons", ["uniui-" + $props.type, $props.customPrefix, $props.customPrefix ? $props.type : ""]]),
  4860. onClick: _cache[0] || (_cache[0] = (...args) => $options._onClick && $options._onClick(...args))
  4861. },
  4862. [
  4863. vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
  4864. ],
  4865. 6
  4866. /* CLASS, STYLE */
  4867. );
  4868. }
  4869. const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6], ["__scopeId", "data-v-d31e1c47"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-icons/components/uni-icons/uni-icons.vue"]]);
  4870. const en = {
  4871. "uni-pagination.prevText": "prev",
  4872. "uni-pagination.nextText": "next",
  4873. "uni-pagination.piecePerPage": "piece/page"
  4874. };
  4875. const es = {
  4876. "uni-pagination.prevText": "anterior",
  4877. "uni-pagination.nextText": "prxima",
  4878. "uni-pagination.piecePerPage": "Art��culo/P��gina"
  4879. };
  4880. const fr = {
  4881. "uni-pagination.prevText": "précédente",
  4882. "uni-pagination.nextText": "suivante",
  4883. "uni-pagination.piecePerPage": "Articles/Pages"
  4884. };
  4885. const zhHans = {
  4886. "uni-pagination.prevText": "上一页",
  4887. "uni-pagination.nextText": "下一页",
  4888. "uni-pagination.piecePerPage": "条/页"
  4889. };
  4890. const zhHant = {
  4891. "uni-pagination.prevText": "上一頁",
  4892. "uni-pagination.nextText": "下一頁",
  4893. "uni-pagination.piecePerPage": "條/頁"
  4894. };
  4895. const messages = {
  4896. en,
  4897. es,
  4898. fr,
  4899. "zh-Hans": zhHans,
  4900. "zh-Hant": zhHant
  4901. };
  4902. const {
  4903. t
  4904. } = initVueI18n(messages);
  4905. const _sfc_main$6 = {
  4906. name: "UniPagination",
  4907. emits: ["update:modelValue", "input", "change", "pageSizeChange"],
  4908. props: {
  4909. value: {
  4910. type: [Number, String],
  4911. default: 1
  4912. },
  4913. modelValue: {
  4914. type: [Number, String],
  4915. default: 1
  4916. },
  4917. prevText: {
  4918. type: String
  4919. },
  4920. nextText: {
  4921. type: String
  4922. },
  4923. piecePerPageText: {
  4924. type: String
  4925. },
  4926. current: {
  4927. type: [Number, String],
  4928. default: 1
  4929. },
  4930. total: {
  4931. // 数据总量
  4932. type: [Number, String],
  4933. default: 0
  4934. },
  4935. pageSize: {
  4936. // 每页数据量
  4937. type: [Number, String],
  4938. default: 10
  4939. },
  4940. showIcon: {
  4941. // 是否以 icon 形式展示按钮
  4942. type: [Boolean, String],
  4943. default: false
  4944. },
  4945. showPageSize: {
  4946. // 是否以 icon 形式展示按钮
  4947. type: [Boolean, String],
  4948. default: false
  4949. },
  4950. pagerCount: {
  4951. type: Number,
  4952. default: 5
  4953. },
  4954. pageSizeRange: {
  4955. type: Array,
  4956. default: () => [20, 50, 100, 500]
  4957. }
  4958. },
  4959. data() {
  4960. return {
  4961. pageSizeIndex: 0,
  4962. currentIndex: 1,
  4963. paperData: [],
  4964. pickerShow: false
  4965. };
  4966. },
  4967. computed: {
  4968. piecePerPage() {
  4969. return this.piecePerPageText || t("uni-pagination.piecePerPage");
  4970. },
  4971. prevPageText() {
  4972. return this.prevText || t("uni-pagination.prevText");
  4973. },
  4974. nextPageText() {
  4975. return this.nextText || t("uni-pagination.nextText");
  4976. },
  4977. maxPage() {
  4978. let maxPage = 1;
  4979. let total = Number(this.total);
  4980. let pageSize = Number(this.pageSize);
  4981. if (total && pageSize) {
  4982. maxPage = Math.ceil(total / pageSize);
  4983. }
  4984. return maxPage;
  4985. },
  4986. paper() {
  4987. const num = this.currentIndex;
  4988. const pagerCount = this.pagerCount;
  4989. const total = this.total;
  4990. const pageSize = this.pageSize;
  4991. let totalArr = [];
  4992. let showPagerArr = [];
  4993. let pagerNum = Math.ceil(total / pageSize);
  4994. for (let i = 0; i < pagerNum; i++) {
  4995. totalArr.push(i + 1);
  4996. }
  4997. showPagerArr.push(1);
  4998. const totalNum = totalArr[totalArr.length - (pagerCount + 1) / 2];
  4999. totalArr.forEach((item, index) => {
  5000. if ((pagerCount + 1) / 2 >= num) {
  5001. if (item < pagerCount + 1 && item > 1) {
  5002. showPagerArr.push(item);
  5003. }
  5004. } else if (num + 2 <= totalNum) {
  5005. if (item > num - (pagerCount + 1) / 2 && item < num + (pagerCount + 1) / 2) {
  5006. showPagerArr.push(item);
  5007. }
  5008. } else {
  5009. if ((item > num - (pagerCount + 1) / 2 || pagerNum - pagerCount < item) && item < totalArr[totalArr.length - 1]) {
  5010. showPagerArr.push(item);
  5011. }
  5012. }
  5013. });
  5014. if (pagerNum > pagerCount) {
  5015. if ((pagerCount + 1) / 2 >= num) {
  5016. showPagerArr[showPagerArr.length - 1] = "...";
  5017. } else if (num + 2 <= totalNum) {
  5018. showPagerArr[1] = "...";
  5019. showPagerArr[showPagerArr.length - 1] = "...";
  5020. } else {
  5021. showPagerArr[1] = "...";
  5022. }
  5023. showPagerArr.push(totalArr[totalArr.length - 1]);
  5024. } else {
  5025. if ((pagerCount + 1) / 2 >= num)
  5026. ;
  5027. else if (num + 2 <= totalNum)
  5028. ;
  5029. else {
  5030. showPagerArr.shift();
  5031. showPagerArr.push(totalArr[totalArr.length - 1]);
  5032. }
  5033. }
  5034. return showPagerArr;
  5035. }
  5036. },
  5037. watch: {
  5038. current: {
  5039. immediate: true,
  5040. handler(val, old) {
  5041. if (val < 1) {
  5042. this.currentIndex = 1;
  5043. } else {
  5044. this.currentIndex = val;
  5045. }
  5046. }
  5047. },
  5048. value: {
  5049. immediate: true,
  5050. handler(val) {
  5051. if (Number(this.current) !== 1)
  5052. return;
  5053. if (val < 1) {
  5054. this.currentIndex = 1;
  5055. } else {
  5056. this.currentIndex = val;
  5057. }
  5058. }
  5059. },
  5060. pageSizeIndex(val) {
  5061. this.$emit("pageSizeChange", this.pageSizeRange[val]);
  5062. }
  5063. },
  5064. methods: {
  5065. pickerChange(e) {
  5066. this.pageSizeIndex = e.detail.value;
  5067. this.pickerClick();
  5068. },
  5069. pickerClick() {
  5070. },
  5071. // 选择标签
  5072. selectPage(e, index) {
  5073. if (parseInt(e)) {
  5074. this.currentIndex = e;
  5075. this.change("current");
  5076. } else {
  5077. let pagerNum = Math.ceil(this.total / this.pageSize);
  5078. if (index <= 1) {
  5079. if (this.currentIndex - 5 > 1) {
  5080. this.currentIndex -= 5;
  5081. } else {
  5082. this.currentIndex = 1;
  5083. }
  5084. return;
  5085. }
  5086. if (index >= 6) {
  5087. if (this.currentIndex + 5 > pagerNum) {
  5088. this.currentIndex = pagerNum;
  5089. } else {
  5090. this.currentIndex += 5;
  5091. }
  5092. return;
  5093. }
  5094. }
  5095. },
  5096. clickLeft() {
  5097. if (Number(this.currentIndex) === 1) {
  5098. return;
  5099. }
  5100. this.currentIndex -= 1;
  5101. this.change("prev");
  5102. },
  5103. clickRight() {
  5104. if (Number(this.currentIndex) >= this.maxPage) {
  5105. return;
  5106. }
  5107. this.currentIndex += 1;
  5108. this.change("next");
  5109. },
  5110. change(e) {
  5111. this.$emit("input", this.currentIndex);
  5112. this.$emit("update:modelValue", this.currentIndex);
  5113. this.$emit("change", {
  5114. type: e,
  5115. current: this.currentIndex
  5116. });
  5117. }
  5118. }
  5119. };
  5120. function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
  5121. const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0);
  5122. return vue.openBlock(), vue.createElementBlock("view", { class: "uni-pagination" }, [
  5123. $props.showPageSize === true || $props.showPageSize === "true" ? (vue.openBlock(), vue.createElementBlock("picker", {
  5124. key: 0,
  5125. class: "select-picker",
  5126. mode: "selector",
  5127. value: $data.pageSizeIndex,
  5128. range: $props.pageSizeRange,
  5129. onChange: _cache[0] || (_cache[0] = (...args) => $options.pickerChange && $options.pickerChange(...args)),
  5130. onCancel: _cache[1] || (_cache[1] = (...args) => $options.pickerClick && $options.pickerClick(...args)),
  5131. onClick: _cache[2] || (_cache[2] = (...args) => $options.pickerClick && $options.pickerClick(...args))
  5132. }, [
  5133. vue.createElementVNode("button", {
  5134. type: "default",
  5135. size: "mini",
  5136. plain: true
  5137. }, [
  5138. vue.createElementVNode(
  5139. "text",
  5140. null,
  5141. vue.toDisplayString($props.pageSizeRange[$data.pageSizeIndex]) + " " + vue.toDisplayString($options.piecePerPage),
  5142. 1
  5143. /* TEXT */
  5144. ),
  5145. vue.createVNode(_component_uni_icons, {
  5146. class: "select-picker-icon",
  5147. type: "arrowdown",
  5148. size: "12",
  5149. color: "#999"
  5150. })
  5151. ])
  5152. ], 40, ["value", "range"])) : vue.createCommentVNode("v-if", true),
  5153. vue.createElementVNode(
  5154. "view",
  5155. { class: "uni-pagination__total is-phone-hide" },
  5156. "共 " + vue.toDisplayString($props.total) + " 条",
  5157. 1
  5158. /* TEXT */
  5159. ),
  5160. vue.createElementVNode("view", {
  5161. class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex === 1 ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
  5162. "hover-class": $data.currentIndex === 1 ? "" : "uni-pagination--hover",
  5163. "hover-start-time": 20,
  5164. "hover-stay-time": 70,
  5165. onClick: _cache[3] || (_cache[3] = (...args) => $options.clickLeft && $options.clickLeft(...args))
  5166. }, [
  5167. $props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
  5168. key: 0,
  5169. color: "#666",
  5170. size: "24",
  5171. type: "left"
  5172. })) : (vue.openBlock(), vue.createElementBlock(
  5173. "text",
  5174. {
  5175. key: 1,
  5176. class: "uni-pagination__child-btn"
  5177. },
  5178. vue.toDisplayString($options.prevPageText),
  5179. 1
  5180. /* TEXT */
  5181. ))
  5182. ], 10, ["hover-class"]),
  5183. vue.createElementVNode("view", { class: "uni-pagination__num uni-pagination__num-flex-none" }, [
  5184. vue.createElementVNode("view", { class: "uni-pagination__num-current" }, [
  5185. vue.createElementVNode(
  5186. "text",
  5187. { class: "uni-pagination__num-current-text is-pc-hide current-index-text" },
  5188. vue.toDisplayString($data.currentIndex),
  5189. 1
  5190. /* TEXT */
  5191. ),
  5192. vue.createElementVNode(
  5193. "text",
  5194. { class: "uni-pagination__num-current-text is-pc-hide" },
  5195. "/" + vue.toDisplayString($options.maxPage || 0),
  5196. 1
  5197. /* TEXT */
  5198. ),
  5199. (vue.openBlock(true), vue.createElementBlock(
  5200. vue.Fragment,
  5201. null,
  5202. vue.renderList($options.paper, (item, index) => {
  5203. return vue.openBlock(), vue.createElementBlock("view", {
  5204. key: index,
  5205. class: vue.normalizeClass([{ "page--active": item === $data.currentIndex }, "uni-pagination__num-tag tag--active is-phone-hide"]),
  5206. onClick: ($event) => $options.selectPage(item, index)
  5207. }, [
  5208. vue.createElementVNode(
  5209. "view",
  5210. { class: "uni-pagination__num-tagwight" },
  5211. vue.toDisplayString(item),
  5212. 1
  5213. /* TEXT */
  5214. )
  5215. ], 10, ["onClick"]);
  5216. }),
  5217. 128
  5218. /* KEYED_FRAGMENT */
  5219. ))
  5220. ])
  5221. ]),
  5222. vue.createElementVNode("view", {
  5223. class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex >= $options.maxPage ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
  5224. "hover-class": $data.currentIndex === $options.maxPage ? "" : "uni-pagination--hover",
  5225. "hover-start-time": 20,
  5226. "hover-stay-time": 70,
  5227. onClick: _cache[4] || (_cache[4] = (...args) => $options.clickRight && $options.clickRight(...args))
  5228. }, [
  5229. $props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
  5230. key: 0,
  5231. color: "#666",
  5232. size: "24",
  5233. type: "right"
  5234. })) : (vue.openBlock(), vue.createElementBlock(
  5235. "text",
  5236. {
  5237. key: 1,
  5238. class: "uni-pagination__child-btn"
  5239. },
  5240. vue.toDisplayString($options.nextPageText),
  5241. 1
  5242. /* TEXT */
  5243. ))
  5244. ], 10, ["hover-class"])
  5245. ]);
  5246. }
  5247. const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-88b7506d"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue"]]);
  5248. const _sfc_main$5 = {
  5249. data() {
  5250. return {
  5251. current: 1,
  5252. total: 0,
  5253. pageSize: 10,
  5254. faulttaps: "实时",
  5255. faultsList: []
  5256. };
  5257. },
  5258. onLoad() {
  5259. this.onfaultsList();
  5260. },
  5261. computed: {
  5262. // 使用 mapState 映射多个状态到组件的计算属性
  5263. ...mapState(["formattedTime", "status"])
  5264. },
  5265. beforeUnmount() {
  5266. },
  5267. methods: {
  5268. onfaultsList() {
  5269. let data = {
  5270. page: this.current,
  5271. rows: this.pageSize,
  5272. device: "",
  5273. starttime: "",
  5274. endtime: "",
  5275. rt: this.faulttaps == "实时" ? 1 : 0,
  5276. type: this.faulttaps == "实时" ? "" : this.faulttaps
  5277. };
  5278. getfaultsList(data).then((res) => {
  5279. formatAppLog("log", "at pages/details/index.vue:154", res);
  5280. if (res.status == "ok") {
  5281. this.faultsList = res.data.list;
  5282. this.total = res.data.pagination.total;
  5283. }
  5284. });
  5285. },
  5286. onclick() {
  5287. uni.redirectTo({
  5288. url: "/pages/index/index"
  5289. });
  5290. },
  5291. change(e) {
  5292. formatAppLog("log", "at pages/details/index.vue:172", e);
  5293. this.current = e.current;
  5294. this.onfaultsList();
  5295. },
  5296. taps(e) {
  5297. this.faulttaps = e;
  5298. formatAppLog("log", "at pages/details/index.vue:178", e);
  5299. this.onfaultsList();
  5300. },
  5301. // 文字提示
  5302. closedevice() {
  5303. for (let i = 1; i < this.total; i++) {
  5304. this.$refs["device" + i].close();
  5305. }
  5306. },
  5307. close() {
  5308. for (let i = 1; i < this.total; i++) {
  5309. this.$refs["tooltip" + i].close();
  5310. }
  5311. }
  5312. }
  5313. };
  5314. function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
  5315. const _component_zb_tooltip = resolveEasycom(vue.resolveDynamicComponent("zb-tooltip"), __easycom_0$1);
  5316. const _component_uni_pagination = resolveEasycom(vue.resolveDynamicComponent("uni-pagination"), __easycom_1);
  5317. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  5318. vue.createElementVNode("view", { class: "top" }, [
  5319. vue.createElementVNode("image", {
  5320. class: "top_logo",
  5321. src: _imports_0,
  5322. mode: ""
  5323. }),
  5324. vue.createElementVNode("image", {
  5325. class: "tite",
  5326. src: _imports_1,
  5327. mode: ""
  5328. }),
  5329. vue.createElementVNode("view", { class: "time" }, [
  5330. vue.createElementVNode(
  5331. "view",
  5332. { class: "time_top" },
  5333. vue.toDisplayString(_ctx.formattedTime),
  5334. 1
  5335. /* TEXT */
  5336. ),
  5337. vue.createElementVNode("view", { class: "time_bottom" }, [
  5338. vue.createElementVNode("view"),
  5339. vue.createElementVNode("view", { class: "time_bottom1" }, [
  5340. vue.createTextVNode(" 连接状态: "),
  5341. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  5342. key: 0,
  5343. class: "time_state"
  5344. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5345. key: 1,
  5346. class: "time_state1"
  5347. }, " 离线 "))
  5348. ])
  5349. ])
  5350. ])
  5351. ]),
  5352. vue.createElementVNode("view", { class: "parameter" }, [
  5353. vue.createElementVNode("view", { class: "parameter_xian" }, [
  5354. vue.createElementVNode("view", { class: "parameter_xian1" }, " 序号 "),
  5355. vue.createElementVNode("view", { class: "parameter_xian2" }, " 类型 "),
  5356. vue.createElementVNode("view", { class: "parameter_xian3" }, " 设备 "),
  5357. vue.createElementVNode("view", { class: "parameter_xian4" }, " 内容 "),
  5358. vue.createElementVNode("view", { class: "parameter_xian5" }, " 发生时间 "),
  5359. vue.createElementVNode("view", { class: "parameter_xian6" }, " 恢复时间 ")
  5360. ]),
  5361. vue.createElementVNode("view", { class: "parameter_box" }, [
  5362. (vue.openBlock(true), vue.createElementBlock(
  5363. vue.Fragment,
  5364. null,
  5365. vue.renderList($data.faultsList, (item, index) => {
  5366. return vue.openBlock(), vue.createElementBlock(
  5367. "view",
  5368. {
  5369. class: vue.normalizeClass(item.RESETTIME == "" ? "parameter_divred" : "parameter_div"),
  5370. key: index
  5371. },
  5372. [
  5373. vue.createElementVNode(
  5374. "view",
  5375. { class: "parameter_xian1" },
  5376. vue.toDisplayString(item.ID),
  5377. 1
  5378. /* TEXT */
  5379. ),
  5380. vue.createElementVNode(
  5381. "view",
  5382. { class: "parameter_xian2" },
  5383. vue.toDisplayString(item.TYPE),
  5384. 1
  5385. /* TEXT */
  5386. ),
  5387. vue.createVNode(_component_zb_tooltip, {
  5388. onClick: $options.closedevice,
  5389. content: item.DEVICE,
  5390. placement: "top",
  5391. ref_for: true,
  5392. ref: "device" + index
  5393. }, {
  5394. default: vue.withCtx(() => [
  5395. vue.createElementVNode(
  5396. "view",
  5397. { class: "parameter_xian3" },
  5398. vue.toDisplayString(item.DEVICE),
  5399. 1
  5400. /* TEXT */
  5401. )
  5402. ]),
  5403. _: 2
  5404. /* DYNAMIC */
  5405. }, 1032, ["onClick", "content"]),
  5406. vue.createVNode(_component_zb_tooltip, {
  5407. onClick: $options.close,
  5408. content: item.CONTENT,
  5409. placement: "top",
  5410. ref_for: true,
  5411. ref: "tooltip" + index
  5412. }, {
  5413. default: vue.withCtx(() => [
  5414. vue.createElementVNode(
  5415. "view",
  5416. { class: "parameter_xian4" },
  5417. vue.toDisplayString(item.CONTENT),
  5418. 1
  5419. /* TEXT */
  5420. )
  5421. ]),
  5422. _: 2
  5423. /* DYNAMIC */
  5424. }, 1032, ["onClick", "content"]),
  5425. vue.createElementVNode(
  5426. "view",
  5427. { class: "parameter_xian5" },
  5428. vue.toDisplayString(item.FAULTTIME.substring(0, 19)),
  5429. 1
  5430. /* TEXT */
  5431. ),
  5432. vue.createElementVNode(
  5433. "view",
  5434. { class: "parameter_xian6" },
  5435. vue.toDisplayString(item.RESETTIME.substring(0, 19)),
  5436. 1
  5437. /* TEXT */
  5438. )
  5439. ],
  5440. 2
  5441. /* CLASS */
  5442. );
  5443. }),
  5444. 128
  5445. /* KEYED_FRAGMENT */
  5446. ))
  5447. ]),
  5448. vue.createElementVNode("view", { class: "parameter_bottom" }, [
  5449. vue.createElementVNode("view", {
  5450. class: "parameter_bottom1",
  5451. onClick: _cache[0] || (_cache[0] = (...args) => $options.onclick && $options.onclick(...args))
  5452. }, [
  5453. vue.createElementVNode("image", {
  5454. src: _imports_10,
  5455. mode: ""
  5456. }),
  5457. vue.createElementVNode("text", { class: "parameter_bottom2" }, "返回模式选择")
  5458. ]),
  5459. vue.createElementVNode("view", { class: "parameter_bottom3" }, [
  5460. vue.createElementVNode(
  5461. "view",
  5462. {
  5463. class: vue.normalizeClass($data.faulttaps == "实时" ? "parameter_bottom31" : "parameter_bottom32"),
  5464. onClick: _cache[1] || (_cache[1] = ($event) => $options.taps("实时"))
  5465. },
  5466. " 实时 ",
  5467. 2
  5468. /* CLASS */
  5469. ),
  5470. vue.createCommentVNode(` <view :class="faulttaps=='全部'?'parameter_bottom31':'parameter_bottom32'" @click="taps('全部')">\r
  5471. 全部\r
  5472. </view> `),
  5473. vue.createElementVNode(
  5474. "view",
  5475. {
  5476. class: vue.normalizeClass($data.faulttaps == "故障" ? "parameter_bottom31" : "parameter_bottom32"),
  5477. onClick: _cache[2] || (_cache[2] = ($event) => $options.taps("故障"))
  5478. },
  5479. " 故障 ",
  5480. 2
  5481. /* CLASS */
  5482. ),
  5483. vue.createElementVNode(
  5484. "view",
  5485. {
  5486. class: vue.normalizeClass($data.faulttaps == "告警" ? "parameter_bottom31" : "parameter_bottom32"),
  5487. onClick: _cache[3] || (_cache[3] = ($event) => $options.taps("告警"))
  5488. },
  5489. " 告警 ",
  5490. 2
  5491. /* CLASS */
  5492. ),
  5493. vue.createElementVNode(
  5494. "view",
  5495. {
  5496. class: vue.normalizeClass($data.faulttaps == "事件" ? "parameter_bottom31" : "parameter_bottom32"),
  5497. onClick: _cache[4] || (_cache[4] = ($event) => $options.taps("事件"))
  5498. },
  5499. " 事件 ",
  5500. 2
  5501. /* CLASS */
  5502. )
  5503. ]),
  5504. vue.createElementVNode("view", { class: "parameter_bottom4" }, [
  5505. vue.createElementVNode("view", { class: "eliminate" }, " 故障清除 "),
  5506. vue.createVNode(_component_uni_pagination, {
  5507. total: $data.total,
  5508. title: "标题文字",
  5509. "show-icon": true,
  5510. onChange: $options.change
  5511. }, null, 8, ["total", "onChange"])
  5512. ])
  5513. ])
  5514. ])
  5515. ]);
  5516. }
  5517. const PagesDetailsIndex = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4], ["__scopeId", "data-v-a45dfdea"], ["__file", "D:/project/esswisdom_ipad/pages/details/index.vue"]]);
  5518. const _imports_4$1 = "/static/fang.png";
  5519. const _sfc_main$4 = {
  5520. components: {
  5521. JerryGauge
  5522. },
  5523. data() {
  5524. return {
  5525. successtype: "success",
  5526. confirmText: "确认启动",
  5527. title: "你确定要开启该设备吗?",
  5528. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  5529. value: "",
  5530. modeinput: "",
  5531. segmented: 1,
  5532. uidatas: "",
  5533. formatTimeid: "",
  5534. faultsdata: [],
  5535. messageText: ""
  5536. };
  5537. },
  5538. onLoad() {
  5539. },
  5540. computed: {
  5541. // 使用 mapState 映射多个状态到组件的计算属性
  5542. ...mapState(["formattedTime", "status"]),
  5543. ...mapState({
  5544. uidatasdata: (state) => state.uidatasdata
  5545. })
  5546. },
  5547. mounted() {
  5548. this.onfaultsdata();
  5549. },
  5550. beforeUnmount() {
  5551. },
  5552. methods: {
  5553. onfaultsdata() {
  5554. let data = {
  5555. page: 1,
  5556. rows: 1e3,
  5557. device: "",
  5558. starttime: "",
  5559. endtime: "",
  5560. rt: 1,
  5561. type: ""
  5562. };
  5563. getfaultsList(data).then((res) => {
  5564. formatAppLog("log", "at pages/electricity/index.vue:574", res);
  5565. if (res.status == "ok") {
  5566. this.faultsdata = res.data.list;
  5567. }
  5568. });
  5569. },
  5570. // 返回首页
  5571. onreturn() {
  5572. uni.redirectTo({
  5573. url: "/pages/index/index"
  5574. });
  5575. },
  5576. // 启动设备弹窗
  5577. dialogToggle() {
  5578. this.modeinput = "base";
  5579. this.successtype = "success";
  5580. this.confirmText = "确认启动";
  5581. this.title = "你确定要开启该设备吗?";
  5582. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  5583. this.$refs.alertDialog.open();
  5584. },
  5585. onstopit() {
  5586. this.modeinput = "base";
  5587. this.successtype = "error";
  5588. this.confirmText = "确认停止";
  5589. this.title = "你确定要停止该设备吗?";
  5590. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  5591. this.$refs.alertDialog.open();
  5592. },
  5593. // 确认弹窗
  5594. dialogConfirm() {
  5595. let uidatasdata = this.$store.state.uidatasdata;
  5596. let data = {
  5597. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  5598. issaveinitvalue: false,
  5599. value: this.confirmText == "确认启动" ? "1" : "0"
  5600. };
  5601. if (this.confirmText == "确认启动") {
  5602. if (uidatasdata.AC_In_380V_63A1_Status == 0 || uidatasdata.AC_In_380V_63A2_Status == 0) {
  5603. this.messageText = "AC供电时AC输入端应全部断开";
  5604. this.$refs.message.open();
  5605. return;
  5606. }
  5607. }
  5608. control(data).then((data2) => {
  5609. if (data2.status == "ok") {
  5610. this.$refs.alertDialog.close();
  5611. uni.showToast({
  5612. title: "操作成功",
  5613. icon: "none",
  5614. duration: 2e3
  5615. // 显示时长,单位为毫秒
  5616. });
  5617. } else {
  5618. this.$refs.alertDialog.close();
  5619. uni.showToast({
  5620. title: "操作失败",
  5621. icon: "none",
  5622. // 使用 'none' 图标来表示失败
  5623. duration: 2e3
  5624. // 显示时长,单位为毫秒
  5625. });
  5626. }
  5627. });
  5628. },
  5629. dialogClose() {
  5630. formatAppLog("log", "at pages/electricity/index.vue:644", this.value);
  5631. this.$refs.alertDialog.close();
  5632. },
  5633. ontap(e) {
  5634. formatAppLog("log", "at pages/electricity/index.vue:648", e);
  5635. this.segmented = e;
  5636. }
  5637. }
  5638. };
  5639. function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
  5640. const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
  5641. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  5642. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  5643. const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
  5644. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  5645. vue.createElementVNode("view", { class: "top" }, [
  5646. vue.createElementVNode("image", {
  5647. class: "top_logo",
  5648. src: _imports_0,
  5649. mode: ""
  5650. }),
  5651. vue.createElementVNode("image", {
  5652. class: "tite",
  5653. src: _imports_1,
  5654. mode: ""
  5655. }),
  5656. vue.createElementVNode("view", { class: "time" }, [
  5657. vue.createElementVNode(
  5658. "view",
  5659. { class: "time_top" },
  5660. vue.toDisplayString(_ctx.formattedTime),
  5661. 1
  5662. /* TEXT */
  5663. ),
  5664. vue.createElementVNode("view", { class: "time_bottom" }, [
  5665. vue.createElementVNode("view"),
  5666. vue.createElementVNode("view", { class: "time_bottom1" }, [
  5667. vue.createTextVNode(" 连接状态: "),
  5668. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  5669. key: 0,
  5670. class: "time_state"
  5671. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5672. key: 1,
  5673. class: "time_state1"
  5674. }, " 离线 "))
  5675. ])
  5676. ])
  5677. ])
  5678. ]),
  5679. vue.createElementVNode("view", { class: "parameter" }, [
  5680. vue.createElementVNode("view", { class: "parameter_left" }, [
  5681. vue.createElementVNode("view", { class: "parameter_left1" }, [
  5682. vue.createVNode(_component_jerry_gauge),
  5683. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  5684. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  5685. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  5686. ])
  5687. ]),
  5688. vue.createElementVNode("image", {
  5689. class: "parameter_leftdian1",
  5690. src: _imports_2$1,
  5691. alt: ""
  5692. }),
  5693. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  5694. vue.createElementVNode("image", {
  5695. src: _imports_3,
  5696. mode: ""
  5697. })
  5698. ]),
  5699. vue.createElementVNode("image", {
  5700. class: "parameter_leftche1",
  5701. src: _imports_4$1,
  5702. mode: ""
  5703. }),
  5704. vue.createElementVNode("view", { class: "parameter_leftview" }, "交流供电")
  5705. ]),
  5706. vue.createElementVNode("view", { class: "parameter_right" }, [
  5707. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  5708. vue.createElementVNode("view", { class: "parameter_1" }, [
  5709. vue.createElementVNode("view", { class: "parameter_2" }, [
  5710. vue.createElementVNode("view", { class: "parameter_31" }, [
  5711. vue.createElementVNode("view", { class: "parameter_4" }, [
  5712. _ctx.uidatasdata.AC_Out_380V_125A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
  5713. key: 0,
  5714. src: _imports_5$1,
  5715. mode: ""
  5716. })) : (vue.openBlock(), vue.createElementBlock("image", {
  5717. key: 1,
  5718. src: _imports_6,
  5719. mode: ""
  5720. })),
  5721. vue.createTextVNode(" 125A状态 ")
  5722. ]),
  5723. _ctx.uidatasdata.AC_Out_380V_125A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  5724. key: 0,
  5725. class: "parameter_51"
  5726. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5727. key: 1,
  5728. class: "parameter_5"
  5729. }, " 断开 "))
  5730. ]),
  5731. vue.createElementVNode("view", { class: "parameter_31" }, [
  5732. vue.createElementVNode("view", { class: "parameter_4" }, [
  5733. _ctx.uidatasdata.AC_Out_380V_63A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
  5734. key: 0,
  5735. src: _imports_5$1,
  5736. mode: ""
  5737. })) : (vue.openBlock(), vue.createElementBlock("image", {
  5738. key: 1,
  5739. src: _imports_6,
  5740. mode: ""
  5741. })),
  5742. vue.createTextVNode(" 63A状态 ")
  5743. ]),
  5744. _ctx.uidatasdata.AC_Out_380V_63A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  5745. key: 0,
  5746. class: "parameter_51"
  5747. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5748. key: 1,
  5749. class: "parameter_5"
  5750. }, " 断开 "))
  5751. ]),
  5752. vue.createElementVNode("view", { class: "parameter_31" }, [
  5753. vue.createElementVNode("view", { class: "parameter_4" }, [
  5754. _ctx.uidatasdata.AC_Out_220V_16A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
  5755. key: 0,
  5756. src: _imports_5$1,
  5757. mode: ""
  5758. })) : (vue.openBlock(), vue.createElementBlock("image", {
  5759. key: 1,
  5760. src: _imports_6,
  5761. mode: ""
  5762. })),
  5763. vue.createTextVNode(" 16A状态 ")
  5764. ]),
  5765. _ctx.uidatasdata.AC_Out_220V_16A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  5766. key: 0,
  5767. class: "parameter_51"
  5768. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  5769. key: 1,
  5770. class: "parameter_5"
  5771. }, " 断开 "))
  5772. ])
  5773. ]),
  5774. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  5775. vue.createElementVNode("image", {
  5776. src: _imports_7,
  5777. mode: ""
  5778. }),
  5779. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5780. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  5781. vue.createElementVNode("view", null, [
  5782. vue.createElementVNode(
  5783. "text",
  5784. { class: "parameter_SOCright2" },
  5785. vue.toDisplayString(_ctx.uidatasdata.SOC),
  5786. 1
  5787. /* TEXT */
  5788. ),
  5789. vue.createElementVNode("text", null, " %")
  5790. ])
  5791. ])
  5792. ]),
  5793. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  5794. vue.createElementVNode("image", {
  5795. src: _imports_8,
  5796. mode: ""
  5797. }),
  5798. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5799. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  5800. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5801. _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  5802. _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  5803. _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  5804. _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  5805. _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  5806. _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  5807. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  5808. ])
  5809. ])
  5810. ]),
  5811. vue.createElementVNode("view", { class: "parameter_state" }, [
  5812. vue.createElementVNode("image", {
  5813. src: _imports_9,
  5814. mode: ""
  5815. }),
  5816. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  5817. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  5818. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  5819. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  5820. _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  5821. _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  5822. _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  5823. _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  5824. _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  5825. _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  5826. ])
  5827. ])
  5828. ])
  5829. ])
  5830. ]),
  5831. vue.createElementVNode("view", { class: "parameter_tap" }, [
  5832. vue.createElementVNode(
  5833. "view",
  5834. {
  5835. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  5836. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  5837. },
  5838. " 交流信息 ",
  5839. 2
  5840. /* CLASS */
  5841. ),
  5842. vue.createElementVNode(
  5843. "view",
  5844. {
  5845. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  5846. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  5847. },
  5848. " 电池信息 ",
  5849. 2
  5850. /* CLASS */
  5851. ),
  5852. vue.createElementVNode(
  5853. "view",
  5854. {
  5855. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  5856. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  5857. },
  5858. " 统计信息 ",
  5859. 2
  5860. /* CLASS */
  5861. ),
  5862. vue.createElementVNode(
  5863. "view",
  5864. {
  5865. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  5866. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  5867. },
  5868. " 液冷信息 ",
  5869. 2
  5870. /* CLASS */
  5871. )
  5872. ]),
  5873. vue.createElementVNode("view", { class: "parameter_zheng" }, [
  5874. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  5875. key: 0,
  5876. class: "parameter_box"
  5877. }, [
  5878. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5879. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5880. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
  5881. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5882. vue.createTextVNode(
  5883. vue.toDisplayString(_ctx.uidatasdata.PCSPortAPhaseVoltage) + " ",
  5884. 1
  5885. /* TEXT */
  5886. ),
  5887. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5888. ])
  5889. ]),
  5890. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5891. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
  5892. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5893. vue.createTextVNode(
  5894. vue.toDisplayString(_ctx.uidatasdata.PCSPortBPhaseVoltage) + " ",
  5895. 1
  5896. /* TEXT */
  5897. ),
  5898. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5899. ])
  5900. ]),
  5901. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5902. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
  5903. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5904. vue.createTextVNode(
  5905. vue.toDisplayString(_ctx.uidatasdata.PCSPortCPhaseVoltage) + " ",
  5906. 1
  5907. /* TEXT */
  5908. ),
  5909. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5910. ])
  5911. ]),
  5912. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5913. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电电量 "),
  5914. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5915. vue.createTextVNode(
  5916. vue.toDisplayString(_ctx.uidatasdata.PCSACDisChargeEnergy) + " ",
  5917. 1
  5918. /* TEXT */
  5919. ),
  5920. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  5921. ])
  5922. ])
  5923. ]),
  5924. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  5925. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5926. vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
  5927. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5928. vue.createTextVNode(
  5929. vue.toDisplayString(_ctx.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
  5930. 1
  5931. /* TEXT */
  5932. ),
  5933. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  5934. ])
  5935. ]),
  5936. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5937. vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
  5938. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5939. vue.createTextVNode(
  5940. vue.toDisplayString(_ctx.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
  5941. 1
  5942. /* TEXT */
  5943. ),
  5944. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  5945. ])
  5946. ]),
  5947. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5948. vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
  5949. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5950. vue.createTextVNode(
  5951. vue.toDisplayString(_ctx.uidatasdata["PCSOutputC-phaseCurrent"]),
  5952. 1
  5953. /* TEXT */
  5954. ),
  5955. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  5956. ])
  5957. ]),
  5958. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5959. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电功率 "),
  5960. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5961. vue.createTextVNode(
  5962. vue.toDisplayString(_ctx.uidatasdata.PCSTotalOutputReactivePower) + " ",
  5963. 1
  5964. /* TEXT */
  5965. ),
  5966. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5967. ])
  5968. ])
  5969. ])
  5970. ])) : vue.createCommentVNode("v-if", true),
  5971. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  5972. key: 1,
  5973. class: "parameter_box"
  5974. }, [
  5975. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  5976. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5977. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  5978. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5979. vue.createTextVNode(
  5980. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
  5981. 1
  5982. /* TEXT */
  5983. ),
  5984. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  5985. ])
  5986. ]),
  5987. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5988. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  5989. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  5990. vue.createTextVNode(
  5991. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  5992. 1
  5993. /* TEXT */
  5994. ),
  5995. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  5996. ])
  5997. ]),
  5998. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  5999. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
  6000. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6001. vue.createTextVNode(
  6002. vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
  6003. 1
  6004. /* TEXT */
  6005. ),
  6006. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6007. ])
  6008. ]),
  6009. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6010. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  6011. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6012. vue.createTextVNode(
  6013. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  6014. 1
  6015. /* TEXT */
  6016. ),
  6017. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6018. ])
  6019. ]),
  6020. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6021. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  6022. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6023. vue.createTextVNode(
  6024. vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  6025. 1
  6026. /* TEXT */
  6027. ),
  6028. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6029. ])
  6030. ])
  6031. ]),
  6032. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6033. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6034. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  6035. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6036. vue.createTextVNode(
  6037. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
  6038. 1
  6039. /* TEXT */
  6040. ),
  6041. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6042. ])
  6043. ]),
  6044. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6045. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  6046. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6047. vue.createTextVNode(
  6048. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  6049. 1
  6050. /* TEXT */
  6051. ),
  6052. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6053. ])
  6054. ]),
  6055. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6056. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
  6057. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6058. vue.createTextVNode(
  6059. vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
  6060. 1
  6061. /* TEXT */
  6062. ),
  6063. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6064. ])
  6065. ]),
  6066. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6067. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  6068. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6069. vue.createTextVNode(
  6070. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
  6071. 1
  6072. /* TEXT */
  6073. ),
  6074. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6075. ])
  6076. ]),
  6077. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6078. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  6079. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6080. vue.createTextVNode(
  6081. vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  6082. 1
  6083. /* TEXT */
  6084. ),
  6085. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6086. ])
  6087. ])
  6088. ])
  6089. ])) : vue.createCommentVNode("v-if", true),
  6090. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  6091. key: 2,
  6092. class: "parameter_box"
  6093. }, [
  6094. vue.createElementVNode("view", { class: "parameter_zheng10" }, [
  6095. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6096. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  6097. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6098. vue.createTextVNode(
  6099. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
  6100. 1
  6101. /* TEXT */
  6102. ),
  6103. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6104. ])
  6105. ]),
  6106. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
  6107. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  6108. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6109. vue.createTextVNode(
  6110. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  6111. 1
  6112. /* TEXT */
  6113. ),
  6114. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6115. ])
  6116. ])
  6117. ])
  6118. ])) : vue.createCommentVNode("v-if", true),
  6119. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  6120. key: 3,
  6121. class: "parameter_box"
  6122. }, [
  6123. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6124. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6125. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  6126. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6127. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  6128. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  6129. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  6130. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  6131. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  6132. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  6133. ])
  6134. ]),
  6135. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6136. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  6137. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6138. vue.createTextVNode(
  6139. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  6140. 1
  6141. /* TEXT */
  6142. ),
  6143. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6144. ])
  6145. ]),
  6146. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6147. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  6148. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6149. vue.createTextVNode(
  6150. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  6151. 1
  6152. /* TEXT */
  6153. ),
  6154. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6155. ])
  6156. ])
  6157. ]),
  6158. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6159. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6160. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  6161. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6162. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  6163. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  6164. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  6165. ])
  6166. ]),
  6167. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6168. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  6169. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6170. vue.createTextVNode(
  6171. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  6172. 1
  6173. /* TEXT */
  6174. ),
  6175. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6176. ])
  6177. ]),
  6178. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6179. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  6180. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6181. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  6182. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  6183. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  6184. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  6185. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  6186. ])
  6187. ])
  6188. ])
  6189. ])) : vue.createCommentVNode("v-if", true),
  6190. vue.createElementVNode("view", { class: "parameter_zheng3" }, [
  6191. _ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6192. key: 0,
  6193. class: "parameter_zheng31111"
  6194. }, [
  6195. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6196. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  6197. ])
  6198. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6199. key: 1,
  6200. class: "parameter_zheng31111",
  6201. onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  6202. }, [
  6203. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6204. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  6205. ])
  6206. ])),
  6207. _ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  6208. key: 2,
  6209. class: "parameter_zheng31111"
  6210. }, [
  6211. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6212. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  6213. ])
  6214. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6215. key: 3,
  6216. class: "parameter_zheng31111",
  6217. onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
  6218. }, [
  6219. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6220. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  6221. ])
  6222. ]))
  6223. ])
  6224. ]),
  6225. vue.createElementVNode("view", { class: "parameter_home" }, [
  6226. vue.createElementVNode("view", {
  6227. class: "parameter_home1",
  6228. onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
  6229. }, [
  6230. vue.createElementVNode("image", {
  6231. src: _imports_10,
  6232. mode: ""
  6233. }),
  6234. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  6235. ]),
  6236. vue.createElementVNode("view", { class: "parameter_home2" }, [
  6237. vue.createElementVNode("image", {
  6238. src: _imports_11,
  6239. mode: ""
  6240. }),
  6241. vue.createElementVNode("swiper", {
  6242. class: "swiper",
  6243. circular: "",
  6244. autoplay: true,
  6245. interval: 2e3,
  6246. duration: 500,
  6247. vertical: true
  6248. }, [
  6249. (vue.openBlock(true), vue.createElementBlock(
  6250. vue.Fragment,
  6251. null,
  6252. vue.renderList($data.faultsdata, (item, index) => {
  6253. return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
  6254. vue.createElementVNode(
  6255. "view",
  6256. { class: "parameter_home3" },
  6257. vue.toDisplayString(item["CONTENT"]),
  6258. 1
  6259. /* TEXT */
  6260. )
  6261. ]);
  6262. }),
  6263. 128
  6264. /* KEYED_FRAGMENT */
  6265. ))
  6266. ])
  6267. ])
  6268. ])
  6269. ])
  6270. ]),
  6271. vue.createVNode(
  6272. _component_uni_popup,
  6273. { ref: "alertDialog" },
  6274. {
  6275. default: vue.withCtx(() => [
  6276. vue.createVNode(_component_uni_popup_dialog, {
  6277. mode: $data.modeinput,
  6278. placeholder: "请输入内容",
  6279. modelValue: $data.value,
  6280. "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
  6281. type: $data.successtype,
  6282. cancelText: "取消返回",
  6283. confirmText: $data.confirmText,
  6284. title: $data.title,
  6285. content: $data.content,
  6286. beforeClose: true,
  6287. onConfirm: $options.dialogConfirm,
  6288. onClose: $options.dialogClose
  6289. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  6290. ]),
  6291. _: 1
  6292. /* STABLE */
  6293. },
  6294. 512
  6295. /* NEED_PATCH */
  6296. ),
  6297. vue.createVNode(
  6298. _component_uni_popup,
  6299. {
  6300. ref: "message",
  6301. type: "message"
  6302. },
  6303. {
  6304. default: vue.withCtx(() => [
  6305. vue.createVNode(_component_uni_popup_message, {
  6306. type: "error",
  6307. message: $data.messageText,
  6308. duration: 3e3
  6309. }, null, 8, ["message"])
  6310. ]),
  6311. _: 1
  6312. /* STABLE */
  6313. },
  6314. 512
  6315. /* NEED_PATCH */
  6316. )
  6317. ]);
  6318. }
  6319. const PagesElectricityIndex = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3], ["__scopeId", "data-v-a9482145"], ["__file", "D:/project/esswisdom_ipad/pages/electricity/index.vue"]]);
  6320. const _imports_5 = "/static/shan.png";
  6321. const _sfc_main$3 = {
  6322. components: {
  6323. JerryGauge
  6324. },
  6325. data() {
  6326. return {
  6327. successtype: "success",
  6328. confirmText: "确认启动",
  6329. title: "你确定要开启该设备吗?",
  6330. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  6331. value: "",
  6332. modeinput: "",
  6333. segmented: 1,
  6334. uidatas: "",
  6335. formatTimeid: "",
  6336. faultsdata: []
  6337. };
  6338. },
  6339. onLoad() {
  6340. },
  6341. computed: {
  6342. // 使用 mapState 映射多个状态到组件的计算属性
  6343. ...mapState(["formattedTime", "status"]),
  6344. ...mapState({
  6345. uidatasdata: (state) => state.uidatasdata
  6346. })
  6347. },
  6348. mounted() {
  6349. this.onfaultsdata();
  6350. },
  6351. beforeUnmount() {
  6352. },
  6353. methods: {
  6354. onfaultsdata() {
  6355. let data = {
  6356. page: 1,
  6357. rows: 1e3,
  6358. device: "",
  6359. starttime: "",
  6360. endtime: "",
  6361. rt: 1,
  6362. type: ""
  6363. };
  6364. getfaultsList(data).then((res) => {
  6365. formatAppLog("log", "at pages/supply/supply.vue:583", res);
  6366. if (res.status == "ok") {
  6367. this.faultsdata = res.data.list;
  6368. }
  6369. });
  6370. },
  6371. // 返回首页
  6372. onreturn() {
  6373. uni.redirectTo({
  6374. url: "/pages/index/index"
  6375. });
  6376. },
  6377. // 启动设备弹窗
  6378. dialogToggle() {
  6379. this.modeinput = "base";
  6380. this.successtype = "success";
  6381. this.confirmText = "确认启动";
  6382. this.title = "你确定要开启该设备吗?";
  6383. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  6384. this.$refs.alertDialog.open();
  6385. },
  6386. onstopit() {
  6387. this.modeinput = "base";
  6388. this.successtype = "error";
  6389. this.confirmText = "确认停止";
  6390. this.title = "你确定要停止该设备吗?";
  6391. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  6392. this.$refs.alertDialog.open();
  6393. },
  6394. // 确认弹窗
  6395. dialogConfirm() {
  6396. let data = {
  6397. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  6398. issaveinitvalue: false,
  6399. value: this.confirmText == "确认启动" ? "1" : "0"
  6400. };
  6401. control(data).then((data2) => {
  6402. if (data2.status == "ok") {
  6403. uni.showToast({
  6404. title: "操作成功",
  6405. icon: "none",
  6406. duration: 2e3
  6407. // 显示时长,单位为毫秒
  6408. });
  6409. } else {
  6410. uni.showToast({
  6411. title: "操作失败",
  6412. icon: "none",
  6413. // 使用 'none' 图标来表示失败
  6414. duration: 2e3
  6415. // 显示时长,单位为毫秒
  6416. });
  6417. }
  6418. });
  6419. },
  6420. dialogClose() {
  6421. formatAppLog("log", "at pages/supply/supply.vue:643", this.value);
  6422. this.$refs.alertDialog.close();
  6423. },
  6424. ontap(e) {
  6425. formatAppLog("log", "at pages/supply/supply.vue:647", e);
  6426. this.segmented = e;
  6427. }
  6428. }
  6429. };
  6430. function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
  6431. const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
  6432. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  6433. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  6434. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  6435. vue.createElementVNode("view", { class: "top" }, [
  6436. vue.createElementVNode("image", {
  6437. class: "top_logo",
  6438. src: _imports_0,
  6439. mode: ""
  6440. }),
  6441. vue.createElementVNode("image", {
  6442. class: "tite",
  6443. src: _imports_1,
  6444. mode: ""
  6445. }),
  6446. vue.createElementVNode("view", { class: "time" }, [
  6447. vue.createElementVNode(
  6448. "view",
  6449. { class: "time_top" },
  6450. vue.toDisplayString(_ctx.formattedTime),
  6451. 1
  6452. /* TEXT */
  6453. ),
  6454. vue.createElementVNode("view", { class: "time_bottom" }, [
  6455. vue.createElementVNode("view"),
  6456. vue.createElementVNode("view", { class: "time_bottom1" }, [
  6457. vue.createTextVNode(" 连接状态: "),
  6458. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  6459. key: 0,
  6460. class: "time_state"
  6461. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  6462. key: 1,
  6463. class: "time_state1"
  6464. }, " 离线 "))
  6465. ])
  6466. ])
  6467. ])
  6468. ]),
  6469. vue.createElementVNode("view", { class: "parameter" }, [
  6470. vue.createElementVNode("view", { class: "parameter_left" }, [
  6471. vue.createElementVNode("view", { class: "parameter_left1" }, [
  6472. vue.createVNode(_component_jerry_gauge),
  6473. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  6474. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  6475. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  6476. ])
  6477. ]),
  6478. vue.createElementVNode("image", {
  6479. class: "parameter_leftdian1",
  6480. src: _imports_2$1,
  6481. alt: ""
  6482. }),
  6483. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  6484. vue.createElementVNode("image", {
  6485. src: _imports_3,
  6486. mode: ""
  6487. })
  6488. ]),
  6489. vue.createElementVNode("image", {
  6490. class: "parameter_leftche",
  6491. src: _imports_4$2,
  6492. mode: ""
  6493. }),
  6494. vue.createElementVNode("view", { class: "parameter_leftview" }, "直流补电")
  6495. ]),
  6496. vue.createElementVNode("view", { class: "parameter_right" }, [
  6497. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  6498. vue.createElementVNode("view", { class: "parameter_1" }, [
  6499. vue.createElementVNode("view", { class: "parameter_shan" }, [
  6500. vue.createElementVNode("image", {
  6501. src: _imports_5,
  6502. mode: ""
  6503. }),
  6504. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6505. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 充电功率 "),
  6506. vue.createElementVNode("view", null, [
  6507. vue.createElementVNode(
  6508. "text",
  6509. { class: "parameter_SOCright2" },
  6510. vue.toDisplayString((_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)),
  6511. 1
  6512. /* TEXT */
  6513. ),
  6514. vue.createElementVNode("text", null, " kW")
  6515. ])
  6516. ])
  6517. ]),
  6518. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  6519. vue.createElementVNode("image", {
  6520. src: _imports_7,
  6521. mode: ""
  6522. }),
  6523. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6524. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  6525. vue.createElementVNode("view", null, [
  6526. vue.createElementVNode(
  6527. "text",
  6528. { class: "parameter_SOCright2" },
  6529. vue.toDisplayString(_ctx.uidatasdata.SOC),
  6530. 1
  6531. /* TEXT */
  6532. ),
  6533. vue.createElementVNode("text", null, " %")
  6534. ])
  6535. ])
  6536. ]),
  6537. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  6538. vue.createElementVNode("image", {
  6539. src: _imports_8,
  6540. mode: ""
  6541. }),
  6542. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6543. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  6544. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6545. _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  6546. _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  6547. _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  6548. _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  6549. _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  6550. _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  6551. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  6552. ])
  6553. ])
  6554. ]),
  6555. vue.createElementVNode("view", { class: "parameter_state" }, [
  6556. vue.createElementVNode("image", {
  6557. src: _imports_9,
  6558. mode: ""
  6559. }),
  6560. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  6561. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  6562. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6563. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  6564. 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> '),
  6565. _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  6566. _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  6567. _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  6568. _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  6569. _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  6570. _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  6571. ])
  6572. ])
  6573. ])
  6574. ])
  6575. ]),
  6576. vue.createElementVNode("view", { class: "parameter_tap" }, [
  6577. vue.createElementVNode(
  6578. "view",
  6579. {
  6580. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  6581. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  6582. },
  6583. " 电池信息 ",
  6584. 2
  6585. /* CLASS */
  6586. ),
  6587. vue.createElementVNode(
  6588. "view",
  6589. {
  6590. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  6591. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  6592. },
  6593. " 连接信息 ",
  6594. 2
  6595. /* CLASS */
  6596. ),
  6597. vue.createElementVNode(
  6598. "view",
  6599. {
  6600. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  6601. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  6602. },
  6603. " 统计信息 ",
  6604. 2
  6605. /* CLASS */
  6606. ),
  6607. vue.createElementVNode(
  6608. "view",
  6609. {
  6610. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  6611. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  6612. },
  6613. " 液冷信息 ",
  6614. 2
  6615. /* CLASS */
  6616. )
  6617. ]),
  6618. vue.createElementVNode("view", { class: "parameter_zheng" }, [
  6619. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6620. key: 0,
  6621. class: "parameter_box"
  6622. }, [
  6623. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6624. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6625. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  6626. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6627. vue.createTextVNode(
  6628. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
  6629. 1
  6630. /* TEXT */
  6631. ),
  6632. vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
  6633. ])
  6634. ]),
  6635. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6636. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  6637. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6638. vue.createTextVNode(
  6639. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  6640. 1
  6641. /* TEXT */
  6642. ),
  6643. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6644. ])
  6645. ]),
  6646. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6647. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
  6648. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6649. vue.createTextVNode(
  6650. vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
  6651. 1
  6652. /* TEXT */
  6653. ),
  6654. vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
  6655. ])
  6656. ]),
  6657. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6658. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  6659. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6660. vue.createTextVNode(
  6661. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  6662. 1
  6663. /* TEXT */
  6664. ),
  6665. vue.createElementVNode("text", { class: "parameter_zheng14" }, "v")
  6666. ])
  6667. ]),
  6668. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6669. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  6670. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6671. vue.createTextVNode(
  6672. vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  6673. 1
  6674. /* TEXT */
  6675. ),
  6676. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6677. ])
  6678. ])
  6679. ]),
  6680. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6681. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6682. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  6683. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6684. vue.createTextVNode(
  6685. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
  6686. 1
  6687. /* TEXT */
  6688. ),
  6689. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  6690. ])
  6691. ]),
  6692. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6693. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  6694. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6695. vue.createTextVNode(
  6696. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  6697. 1
  6698. /* TEXT */
  6699. ),
  6700. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  6701. ])
  6702. ]),
  6703. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6704. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
  6705. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6706. vue.createTextVNode(
  6707. vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur),
  6708. 1
  6709. /* TEXT */
  6710. ),
  6711. vue.createElementVNode("text", { class: "parameter_zheng14" }, " A")
  6712. ])
  6713. ]),
  6714. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6715. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  6716. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6717. vue.createTextVNode(
  6718. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage),
  6719. 1
  6720. /* TEXT */
  6721. ),
  6722. vue.createElementVNode("text", { class: "parameter_zheng14" }, " v")
  6723. ])
  6724. ]),
  6725. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6726. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  6727. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6728. vue.createTextVNode(
  6729. vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  6730. 1
  6731. /* TEXT */
  6732. ),
  6733. vue.createElementVNode("text", { class: "parameter_zheng14" }, " ℃")
  6734. ])
  6735. ])
  6736. ])
  6737. ])) : vue.createCommentVNode("v-if", true),
  6738. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  6739. key: 1,
  6740. class: "parameter_box"
  6741. }, [
  6742. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6743. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6744. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
  6745. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6746. vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
  6747. _ctx.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
  6748. _ctx.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
  6749. _ctx.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
  6750. _ctx.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
  6751. ])
  6752. ]),
  6753. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6754. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
  6755. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6756. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
  6757. _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
  6758. _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  6759. _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  6760. _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  6761. _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  6762. _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
  6763. ])
  6764. ]),
  6765. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6766. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
  6767. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6768. vue.createCommentVNode(" {{uidatasdata.bms_ChargeStatus==0.00?'无效':'有效'}} "),
  6769. _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  6770. _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  6771. _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  6772. _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  6773. _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  6774. _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  6775. ])
  6776. ])
  6777. ]),
  6778. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6779. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6780. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
  6781. _ctx.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6782. key: 0,
  6783. class: "parameter_Batterystate1"
  6784. }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  6785. key: 1,
  6786. class: "parameter_Batterystate1"
  6787. }, " 无连接 "))
  6788. ]),
  6789. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6790. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
  6791. vue.createElementVNode("view", { class: "parameter_Batterystate1" }, [
  6792. vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
  6793. _ctx.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  6794. _ctx.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
  6795. _ctx.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
  6796. _ctx.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
  6797. ])
  6798. ]),
  6799. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" })
  6800. ])
  6801. ])) : vue.createCommentVNode("v-if", true),
  6802. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  6803. key: 2,
  6804. class: "parameter_box"
  6805. }, [
  6806. vue.createElementVNode("view", { class: "parameter_zheng10" }, [
  6807. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6808. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 交流累计充电电量 "),
  6809. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6810. vue.createTextVNode(
  6811. vue.toDisplayString(_ctx.uidatasdata.PCSACChargeEnergy) + " ",
  6812. 1
  6813. /* TEXT */
  6814. ),
  6815. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  6816. ])
  6817. ]),
  6818. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
  6819. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 直流累计充电电量 "),
  6820. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6821. vue.createTextVNode(
  6822. vue.toDisplayString(_ctx.uidatasdata.PCSDCDisChargeEnergy) + " ",
  6823. 1
  6824. /* TEXT */
  6825. ),
  6826. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  6827. ])
  6828. ])
  6829. ])
  6830. ])) : vue.createCommentVNode("v-if", true),
  6831. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  6832. key: 3,
  6833. class: "parameter_box"
  6834. }, [
  6835. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  6836. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6837. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  6838. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6839. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  6840. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  6841. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  6842. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  6843. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  6844. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  6845. ])
  6846. ]),
  6847. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6848. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  6849. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6850. vue.createTextVNode(
  6851. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  6852. 1
  6853. /* TEXT */
  6854. ),
  6855. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6856. ])
  6857. ]),
  6858. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6859. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  6860. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6861. vue.createTextVNode(
  6862. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  6863. 1
  6864. /* TEXT */
  6865. ),
  6866. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  6867. ])
  6868. ])
  6869. ]),
  6870. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  6871. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6872. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  6873. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6874. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  6875. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  6876. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  6877. ])
  6878. ]),
  6879. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6880. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  6881. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  6882. vue.createTextVNode(
  6883. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  6884. 1
  6885. /* TEXT */
  6886. ),
  6887. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  6888. ])
  6889. ]),
  6890. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  6891. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  6892. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  6893. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  6894. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  6895. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  6896. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  6897. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  6898. ])
  6899. ])
  6900. ])
  6901. ])) : vue.createCommentVNode("v-if", true),
  6902. vue.createElementVNode("view", { class: "parameter_zheng3" }, [
  6903. _ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  6904. key: 0,
  6905. class: "parameter_zheng31111"
  6906. }, [
  6907. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6908. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  6909. ])
  6910. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6911. key: 1,
  6912. class: "parameter_zheng31111",
  6913. onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  6914. }, [
  6915. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6916. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  6917. ])
  6918. ])),
  6919. _ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  6920. key: 2,
  6921. class: "parameter_zheng31111"
  6922. }, [
  6923. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6924. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  6925. ])
  6926. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  6927. key: 3,
  6928. class: "parameter_zheng31111",
  6929. onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
  6930. }, [
  6931. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  6932. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  6933. ])
  6934. ]))
  6935. ])
  6936. ]),
  6937. vue.createElementVNode("view", { class: "parameter_home" }, [
  6938. vue.createElementVNode("view", {
  6939. class: "parameter_home1",
  6940. onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
  6941. }, [
  6942. vue.createElementVNode("image", {
  6943. src: _imports_10,
  6944. mode: ""
  6945. }),
  6946. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  6947. ]),
  6948. vue.createElementVNode("view", { class: "parameter_home2" }, [
  6949. vue.createElementVNode("image", {
  6950. src: _imports_11,
  6951. mode: ""
  6952. }),
  6953. vue.createElementVNode("swiper", {
  6954. class: "swiper",
  6955. circular: "",
  6956. autoplay: true,
  6957. interval: 2e3,
  6958. duration: 500,
  6959. vertical: true
  6960. }, [
  6961. (vue.openBlock(true), vue.createElementBlock(
  6962. vue.Fragment,
  6963. null,
  6964. vue.renderList($data.faultsdata, (item, index) => {
  6965. return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
  6966. vue.createElementVNode(
  6967. "view",
  6968. { class: "parameter_home3" },
  6969. vue.toDisplayString(item["CONTENT"]),
  6970. 1
  6971. /* TEXT */
  6972. )
  6973. ]);
  6974. }),
  6975. 128
  6976. /* KEYED_FRAGMENT */
  6977. ))
  6978. ])
  6979. ])
  6980. ])
  6981. ])
  6982. ]),
  6983. vue.createVNode(
  6984. _component_uni_popup,
  6985. { ref: "alertDialog" },
  6986. {
  6987. default: vue.withCtx(() => [
  6988. vue.createVNode(_component_uni_popup_dialog, {
  6989. mode: $data.modeinput,
  6990. placeholder: "请输入内容",
  6991. modelValue: $data.value,
  6992. "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
  6993. type: $data.successtype,
  6994. cancelText: "取消返回",
  6995. confirmText: $data.confirmText,
  6996. title: $data.title,
  6997. content: $data.content,
  6998. onConfirm: $options.dialogConfirm,
  6999. onClose: $options.dialogClose
  7000. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  7001. ]),
  7002. _: 1
  7003. /* STABLE */
  7004. },
  7005. 512
  7006. /* NEED_PATCH */
  7007. )
  7008. ]);
  7009. }
  7010. const PagesSupplySupply = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-80112fae"], ["__file", "D:/project/esswisdom_ipad/pages/supply/supply.vue"]]);
  7011. const _imports_4 = "/static/che1.png";
  7012. const _sfc_main$2 = {
  7013. components: {
  7014. JerryGauge
  7015. },
  7016. data() {
  7017. return {
  7018. successtype: "success",
  7019. confirmText: "确认启动",
  7020. title: "你确定要开启该设备吗?",
  7021. content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
  7022. value: "",
  7023. modeinput: "",
  7024. segmented: 1,
  7025. ChargingStation: 1,
  7026. faultsdata: []
  7027. };
  7028. },
  7029. onLoad() {
  7030. },
  7031. computed: {
  7032. // 使用 mapState 映射多个状态到组件的计算属性
  7033. ...mapState(["formattedTime", "status"]),
  7034. ...mapState({
  7035. uidatasdata: (state) => state.uidatasdata
  7036. })
  7037. },
  7038. mounted() {
  7039. this.onfaultsdata();
  7040. },
  7041. beforeUnmount() {
  7042. },
  7043. methods: {
  7044. onfaultsdata() {
  7045. let data = {
  7046. page: 1,
  7047. rows: 1e3,
  7048. device: "",
  7049. starttime: "",
  7050. endtime: "",
  7051. rt: 1,
  7052. type: ""
  7053. };
  7054. getfaultsList(data).then((res) => {
  7055. formatAppLog("log", "at pages/supplyss/supplyss.vue:788", res);
  7056. if (res.status == "ok") {
  7057. this.faultsdata = res.data.list;
  7058. }
  7059. });
  7060. },
  7061. // 返回首页
  7062. onreturn() {
  7063. uni.redirectTo({
  7064. url: "/pages/index/index"
  7065. });
  7066. },
  7067. // 启动设备弹窗
  7068. dialogToggle() {
  7069. this.modeinput = "base";
  7070. this.successtype = "success";
  7071. this.confirmText = "确认启动";
  7072. this.title = "你确定要开启该设备吗?";
  7073. this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
  7074. this.$refs.alertDialog.open();
  7075. },
  7076. // 关闭设备弹窗
  7077. onstopit() {
  7078. this.modeinput = "base";
  7079. this.successtype = "error";
  7080. this.confirmText = "确认停止";
  7081. this.title = "你确定要停止该设备吗?";
  7082. this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
  7083. this.$refs.alertDialog.open();
  7084. },
  7085. // 确定
  7086. dialogConfirm() {
  7087. let data = {};
  7088. if (this.segmented == 1) {
  7089. data = {
  7090. id: "3b26469f-ad5b-43bf-b715-4213921321d0",
  7091. issaveinitvalue: false,
  7092. value: this.confirmText == "确认启动" ? "1" : "0"
  7093. };
  7094. } else if (this.segmented == 2) {
  7095. data = {
  7096. id: "78f59493-65f3-4860-8296-7f07bb0ca55b",
  7097. issaveinitvalue: false,
  7098. value: this.confirmText == "确认启动" ? "1" : "0"
  7099. };
  7100. } else {
  7101. data = {
  7102. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  7103. issaveinitvalue: false,
  7104. value: this.confirmText == "确认启动" ? "1" : "0"
  7105. };
  7106. }
  7107. control(data).then((data2) => {
  7108. formatAppLog("log", "at pages/supplyss/supplyss.vue:845", data2);
  7109. if (data2.status == "ok") {
  7110. uni.showToast({
  7111. title: "操作成功",
  7112. icon: "none",
  7113. duration: 2e3
  7114. // 显示时长,单位为毫秒
  7115. });
  7116. } else {
  7117. uni.showToast({
  7118. title: "操作失败",
  7119. icon: "none",
  7120. // 使用 'none' 图标来表示失败
  7121. duration: 2e3
  7122. // 显示时长,单位为毫秒
  7123. });
  7124. }
  7125. });
  7126. },
  7127. // 取消
  7128. dialogClose() {
  7129. formatAppLog("log", "at pages/supplyss/supplyss.vue:864", this.value);
  7130. this.$refs.alertDialog.close();
  7131. },
  7132. // 切换标签
  7133. ontap(e) {
  7134. formatAppLog("log", "at pages/supplyss/supplyss.vue:869", e);
  7135. this.segmented = e;
  7136. if (this.segmented == 1) {
  7137. this.ChargingStation = 1;
  7138. } else if (this.segmented == 2) {
  7139. this.ChargingStation = 2;
  7140. }
  7141. }
  7142. }
  7143. };
  7144. function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
  7145. const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
  7146. const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
  7147. const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
  7148. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  7149. vue.createElementVNode("view", { class: "top" }, [
  7150. vue.createElementVNode("image", {
  7151. class: "top_logo",
  7152. src: _imports_0,
  7153. mode: ""
  7154. }),
  7155. vue.createElementVNode("image", {
  7156. class: "tite",
  7157. src: _imports_1,
  7158. mode: ""
  7159. }),
  7160. vue.createElementVNode("view", { class: "time" }, [
  7161. vue.createElementVNode(
  7162. "view",
  7163. { class: "time_top" },
  7164. vue.toDisplayString(_ctx.formattedTime),
  7165. 1
  7166. /* TEXT */
  7167. ),
  7168. vue.createElementVNode("view", { class: "time_bottom" }, [
  7169. vue.createElementVNode("view"),
  7170. vue.createElementVNode("view", { class: "time_bottom1" }, [
  7171. vue.createTextVNode(" 连接状态: "),
  7172. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  7173. key: 0,
  7174. class: "time_state"
  7175. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  7176. key: 1,
  7177. class: "time_state1"
  7178. }, " 离线 "))
  7179. ])
  7180. ])
  7181. ])
  7182. ]),
  7183. vue.createElementVNode("view", { class: "parameter" }, [
  7184. vue.createElementVNode("view", { class: "parameter_left" }, [
  7185. vue.createElementVNode("view", { class: "parameter_left1" }, [
  7186. vue.createVNode(_component_jerry_gauge),
  7187. vue.createElementVNode("view", { class: "parameter_canvas" }, [
  7188. vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
  7189. vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
  7190. ])
  7191. ]),
  7192. vue.createElementVNode("image", {
  7193. class: "parameter_leftdian1",
  7194. src: _imports_2$1,
  7195. alt: ""
  7196. }),
  7197. vue.createElementVNode("view", { class: "parameter_lef2" }, [
  7198. vue.createElementVNode("image", {
  7199. src: _imports_3,
  7200. mode: ""
  7201. })
  7202. ]),
  7203. vue.createElementVNode("image", {
  7204. class: "parameter_leftche2",
  7205. src: _imports_4,
  7206. mode: ""
  7207. }),
  7208. vue.createElementVNode("view", { class: "parameter_leftview" }, "直流供电")
  7209. ]),
  7210. vue.createElementVNode("view", { class: "parameter_right" }, [
  7211. vue.createElementVNode("view", { class: "parameter_righttop" }, [
  7212. vue.createElementVNode("view", { class: "parameter_1" }, [
  7213. vue.createElementVNode("view", { class: "parameter_2" }, [
  7214. $data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7215. key: 0,
  7216. class: "parameter_3"
  7217. }, [
  7218. vue.createElementVNode("view", { class: "parameter_4" }, [
  7219. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  7220. key: 0,
  7221. src: _imports_5$1,
  7222. mode: ""
  7223. })) : (vue.openBlock(), vue.createElementBlock("image", {
  7224. key: 1,
  7225. src: _imports_6,
  7226. mode: ""
  7227. })),
  7228. vue.createTextVNode(" 连接状态 ")
  7229. ]),
  7230. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7231. key: 0,
  7232. class: "parameter_51"
  7233. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  7234. key: 1,
  7235. class: "parameter_5"
  7236. }, " 断开 "))
  7237. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  7238. key: 1,
  7239. class: "parameter_3"
  7240. }, [
  7241. vue.createElementVNode("view", { class: "parameter_4" }, [
  7242. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  7243. key: 0,
  7244. src: _imports_5$1,
  7245. mode: ""
  7246. })) : (vue.openBlock(), vue.createElementBlock("image", {
  7247. key: 1,
  7248. src: _imports_6,
  7249. mode: ""
  7250. })),
  7251. vue.createTextVNode(" 连接状态 ")
  7252. ]),
  7253. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7254. key: 0,
  7255. class: "parameter_51"
  7256. }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  7257. key: 1,
  7258. class: "parameter_5"
  7259. }, " 断开 "))
  7260. ])),
  7261. $data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7262. key: 2,
  7263. class: "parameter_3"
  7264. }, [
  7265. vue.createElementVNode("view", { class: "parameter_4" }, [
  7266. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  7267. key: 0,
  7268. src: _imports_5$1,
  7269. mode: ""
  7270. })) : (vue.openBlock(), vue.createElementBlock("image", {
  7271. key: 1,
  7272. src: _imports_6,
  7273. mode: ""
  7274. })),
  7275. vue.createTextVNode(" 工作状态 ")
  7276. ]),
  7277. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7278. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
  7279. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
  7280. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
  7281. _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
  7282. ])
  7283. ])) : vue.createCommentVNode("v-if", true),
  7284. $data.ChargingStation == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  7285. key: 3,
  7286. class: "parameter_3"
  7287. }, [
  7288. vue.createElementVNode("view", { class: "parameter_4" }, [
  7289. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
  7290. key: 0,
  7291. src: _imports_5$1,
  7292. mode: ""
  7293. })) : (vue.openBlock(), vue.createElementBlock("image", {
  7294. key: 1,
  7295. src: _imports_6,
  7296. mode: ""
  7297. })),
  7298. vue.createTextVNode(" 工作状态 ")
  7299. ]),
  7300. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7301. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
  7302. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
  7303. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
  7304. _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
  7305. ]),
  7306. vue.createCommentVNode(' <view class="parameter_5" v-else>\r\n 断开\r\n </view> ')
  7307. ])) : vue.createCommentVNode("v-if", true)
  7308. ]),
  7309. vue.createElementVNode("view", { class: "parameter_SOC" }, [
  7310. vue.createElementVNode("image", {
  7311. src: _imports_7,
  7312. mode: ""
  7313. }),
  7314. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  7315. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
  7316. vue.createElementVNode("view", null, [
  7317. vue.createElementVNode(
  7318. "text",
  7319. { class: "parameter_SOCright2" },
  7320. vue.toDisplayString(_ctx.uidatasdata.SOC),
  7321. 1
  7322. /* TEXT */
  7323. ),
  7324. vue.createElementVNode("text", null, "%")
  7325. ])
  7326. ])
  7327. ]),
  7328. vue.createElementVNode("view", { class: "parameter_Battery" }, [
  7329. vue.createElementVNode("image", {
  7330. src: _imports_8,
  7331. mode: ""
  7332. }),
  7333. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  7334. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
  7335. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7336. _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
  7337. _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
  7338. _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  7339. _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  7340. _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  7341. _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  7342. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
  7343. ])
  7344. ])
  7345. ]),
  7346. vue.createElementVNode("view", { class: "parameter_state" }, [
  7347. vue.createElementVNode("image", {
  7348. src: _imports_9,
  7349. mode: ""
  7350. }),
  7351. vue.createElementVNode("view", { class: "parameter_SOCright" }, [
  7352. vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
  7353. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7354. vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
  7355. _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  7356. _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  7357. _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  7358. _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  7359. _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  7360. _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  7361. ])
  7362. ])
  7363. ])
  7364. ])
  7365. ]),
  7366. vue.createElementVNode("view", { class: "parameter_tap" }, [
  7367. vue.createElementVNode(
  7368. "view",
  7369. {
  7370. class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
  7371. onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
  7372. },
  7373. " 枪A信息 ",
  7374. 2
  7375. /* CLASS */
  7376. ),
  7377. vue.createElementVNode(
  7378. "view",
  7379. {
  7380. class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
  7381. onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
  7382. },
  7383. " 枪B信息 ",
  7384. 2
  7385. /* CLASS */
  7386. ),
  7387. vue.createElementVNode(
  7388. "view",
  7389. {
  7390. class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
  7391. onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
  7392. },
  7393. " 电池信息 ",
  7394. 2
  7395. /* CLASS */
  7396. ),
  7397. vue.createElementVNode(
  7398. "view",
  7399. {
  7400. class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
  7401. onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
  7402. },
  7403. " 连接信息 ",
  7404. 2
  7405. /* CLASS */
  7406. ),
  7407. vue.createElementVNode(
  7408. "view",
  7409. {
  7410. class: vue.normalizeClass($data.segmented == 5 ? "parameter_tap1" : "parameter_tap2"),
  7411. onClick: _cache[4] || (_cache[4] = ($event) => $options.ontap(5))
  7412. },
  7413. " 液冷信息 ",
  7414. 2
  7415. /* CLASS */
  7416. )
  7417. ]),
  7418. vue.createElementVNode("view", { class: "parameter_zheng" }, [
  7419. $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7420. key: 0,
  7421. class: "parameter_box"
  7422. }, [
  7423. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  7424. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7425. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
  7426. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7427. vue.createTextVNode(
  7428. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage) + " ",
  7429. 1
  7430. /* TEXT */
  7431. ),
  7432. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  7433. ])
  7434. ]),
  7435. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7436. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
  7437. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7438. vue.createTextVNode(
  7439. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent) + " ",
  7440. 1
  7441. /* TEXT */
  7442. ),
  7443. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  7444. ])
  7445. ]),
  7446. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7447. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
  7448. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7449. vue.createTextVNode(
  7450. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_soc) + " ",
  7451. 1
  7452. /* TEXT */
  7453. ),
  7454. vue.createElementVNode("text", { class: "parameter_zheng14" }, "%")
  7455. ])
  7456. ]),
  7457. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7458. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
  7459. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7460. vue.createTextVNode(
  7461. vue.toDisplayString((_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
  7462. 1
  7463. /* TEXT */
  7464. ),
  7465. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  7466. ])
  7467. ])
  7468. ]),
  7469. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  7470. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7471. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
  7472. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7473. vue.createTextVNode(
  7474. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_ThisChargePower) + " ",
  7475. 1
  7476. /* TEXT */
  7477. ),
  7478. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  7479. ])
  7480. ]),
  7481. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7482. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
  7483. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7484. vue.createTextVNode(
  7485. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
  7486. 1
  7487. /* TEXT */
  7488. ),
  7489. vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
  7490. ])
  7491. ]),
  7492. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7493. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
  7494. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7495. vue.createTextVNode(
  7496. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
  7497. 1
  7498. /* TEXT */
  7499. ),
  7500. vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
  7501. ])
  7502. ]),
  7503. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" }, [
  7504. vue.createElementVNode("view", { class: "parameter_zheng12" }),
  7505. vue.createElementVNode("view", { class: "parameter_zheng13" })
  7506. ])
  7507. ])
  7508. ])) : vue.createCommentVNode("v-if", true),
  7509. $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  7510. key: 1,
  7511. class: "parameter_box"
  7512. }, [
  7513. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  7514. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7515. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
  7516. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7517. vue.createTextVNode(
  7518. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage) + " ",
  7519. 1
  7520. /* TEXT */
  7521. ),
  7522. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  7523. ])
  7524. ]),
  7525. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7526. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
  7527. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7528. vue.createTextVNode(
  7529. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent) + " ",
  7530. 1
  7531. /* TEXT */
  7532. ),
  7533. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  7534. ])
  7535. ]),
  7536. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7537. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
  7538. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7539. vue.createTextVNode(
  7540. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_soc),
  7541. 1
  7542. /* TEXT */
  7543. ),
  7544. vue.createElementVNode("text", { class: "parameter_zheng14" }, " %")
  7545. ])
  7546. ]),
  7547. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7548. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
  7549. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7550. vue.createTextVNode(
  7551. vue.toDisplayString((_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
  7552. 1
  7553. /* TEXT */
  7554. ),
  7555. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  7556. ])
  7557. ])
  7558. ]),
  7559. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  7560. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7561. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
  7562. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7563. vue.createTextVNode(
  7564. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_ThisChargePower) + " ",
  7565. 1
  7566. /* TEXT */
  7567. ),
  7568. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
  7569. ])
  7570. ]),
  7571. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7572. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
  7573. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7574. vue.createTextVNode(
  7575. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
  7576. 1
  7577. /* TEXT */
  7578. ),
  7579. vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
  7580. ])
  7581. ]),
  7582. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7583. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
  7584. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7585. vue.createTextVNode(
  7586. vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
  7587. 1
  7588. /* TEXT */
  7589. ),
  7590. vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
  7591. ])
  7592. ]),
  7593. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" }, [
  7594. vue.createElementVNode("view", { class: "parameter_zheng12" }),
  7595. vue.createElementVNode("view", { class: "parameter_zheng13" })
  7596. ])
  7597. ])
  7598. ])) : vue.createCommentVNode("v-if", true),
  7599. $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
  7600. key: 2,
  7601. class: "parameter_box"
  7602. }, [
  7603. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  7604. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7605. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
  7606. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7607. vue.createTextVNode(
  7608. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
  7609. 1
  7610. /* TEXT */
  7611. ),
  7612. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  7613. ])
  7614. ]),
  7615. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7616. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
  7617. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7618. vue.createTextVNode(
  7619. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
  7620. 1
  7621. /* TEXT */
  7622. ),
  7623. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  7624. ])
  7625. ]),
  7626. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7627. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
  7628. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7629. vue.createTextVNode(
  7630. vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
  7631. 1
  7632. /* TEXT */
  7633. ),
  7634. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  7635. ])
  7636. ]),
  7637. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7638. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
  7639. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7640. vue.createTextVNode(
  7641. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
  7642. 1
  7643. /* TEXT */
  7644. ),
  7645. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  7646. ])
  7647. ]),
  7648. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7649. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
  7650. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7651. vue.createTextVNode(
  7652. vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
  7653. 1
  7654. /* TEXT */
  7655. ),
  7656. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  7657. ])
  7658. ])
  7659. ]),
  7660. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  7661. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7662. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
  7663. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7664. vue.createTextVNode(
  7665. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
  7666. 1
  7667. /* TEXT */
  7668. ),
  7669. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  7670. ])
  7671. ]),
  7672. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7673. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
  7674. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7675. vue.createTextVNode(
  7676. vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
  7677. 1
  7678. /* TEXT */
  7679. ),
  7680. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  7681. ])
  7682. ]),
  7683. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7684. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
  7685. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7686. vue.createTextVNode(
  7687. vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur),
  7688. 1
  7689. /* TEXT */
  7690. ),
  7691. vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
  7692. ])
  7693. ]),
  7694. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7695. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
  7696. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7697. vue.createTextVNode(
  7698. vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
  7699. 1
  7700. /* TEXT */
  7701. ),
  7702. vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
  7703. ])
  7704. ]),
  7705. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7706. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
  7707. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7708. vue.createTextVNode(
  7709. vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
  7710. 1
  7711. /* TEXT */
  7712. ),
  7713. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  7714. ])
  7715. ])
  7716. ])
  7717. ])) : vue.createCommentVNode("v-if", true),
  7718. $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
  7719. key: 3,
  7720. class: "parameter_box"
  7721. }, [
  7722. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  7723. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7724. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
  7725. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7726. vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
  7727. _ctx.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
  7728. _ctx.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
  7729. _ctx.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
  7730. _ctx.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
  7731. ])
  7732. ]),
  7733. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7734. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
  7735. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7736. vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
  7737. _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
  7738. _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
  7739. _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
  7740. _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
  7741. _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
  7742. _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
  7743. ])
  7744. ]),
  7745. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7746. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
  7747. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7748. _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
  7749. _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
  7750. _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
  7751. _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
  7752. _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
  7753. _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
  7754. ])
  7755. ])
  7756. ]),
  7757. vue.createElementVNode("view", { class: "parameter_zheng22" }, [
  7758. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7759. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
  7760. _ctx.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7761. key: 0,
  7762. class: "parameter_Batterystate1"
  7763. }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  7764. key: 1,
  7765. class: "parameter_Batterystate1"
  7766. }, " 无连接 "))
  7767. ]),
  7768. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7769. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
  7770. vue.createElementVNode("view", { class: "parameter_Batterystate1" }, [
  7771. vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
  7772. _ctx.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  7773. _ctx.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
  7774. _ctx.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
  7775. _ctx.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
  7776. ])
  7777. ]),
  7778. vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" })
  7779. ])
  7780. ])) : vue.createCommentVNode("v-if", true),
  7781. $data.segmented == 5 ? (vue.openBlock(), vue.createElementBlock("view", {
  7782. key: 4,
  7783. class: "parameter_box"
  7784. }, [
  7785. vue.createElementVNode("view", { class: "parameter_zheng1" }, [
  7786. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7787. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
  7788. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7789. vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
  7790. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
  7791. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
  7792. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
  7793. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
  7794. _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
  7795. ])
  7796. ]),
  7797. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7798. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
  7799. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7800. vue.createTextVNode(
  7801. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
  7802. 1
  7803. /* TEXT */
  7804. ),
  7805. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  7806. ])
  7807. ]),
  7808. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7809. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
  7810. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7811. vue.createTextVNode(
  7812. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
  7813. 1
  7814. /* TEXT */
  7815. ),
  7816. vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
  7817. ])
  7818. ])
  7819. ]),
  7820. vue.createElementVNode("view", { class: "parameter_zheng2" }, [
  7821. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7822. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
  7823. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7824. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
  7825. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
  7826. _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
  7827. ])
  7828. ]),
  7829. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7830. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
  7831. vue.createElementVNode("view", { class: "parameter_zheng13" }, [
  7832. vue.createTextVNode(
  7833. vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
  7834. 1
  7835. /* TEXT */
  7836. ),
  7837. vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
  7838. ])
  7839. ]),
  7840. vue.createElementVNode("view", { class: "parameter_zheng11" }, [
  7841. vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
  7842. vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
  7843. vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
  7844. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
  7845. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
  7846. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
  7847. _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
  7848. ])
  7849. ])
  7850. ])
  7851. ])) : vue.createCommentVNode("v-if", true),
  7852. this.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7853. key: 5,
  7854. class: "parameter_zheng3"
  7855. }, [
  7856. _ctx.uidatasdata.SysControl_Gun1RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7857. key: 0,
  7858. class: "parameter_zheng31111"
  7859. }, [
  7860. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7861. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  7862. ])
  7863. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  7864. key: 1,
  7865. class: "parameter_zheng31111",
  7866. onClick: _cache[5] || (_cache[5] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  7867. }, [
  7868. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7869. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  7870. ])
  7871. ])),
  7872. _ctx.uidatasdata.SysControl_Gun1RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  7873. key: 2,
  7874. class: "parameter_zheng31111"
  7875. }, [
  7876. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7877. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  7878. ])
  7879. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  7880. key: 3,
  7881. class: "parameter_zheng31111",
  7882. onClick: _cache[6] || (_cache[6] = (...args) => $options.onstopit && $options.onstopit(...args))
  7883. }, [
  7884. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7885. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  7886. ])
  7887. ]))
  7888. ])) : vue.createCommentVNode("v-if", true),
  7889. this.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
  7890. key: 6,
  7891. class: "parameter_zheng3"
  7892. }, [
  7893. _ctx.uidatasdata.SysControl_Gun2RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
  7894. key: 0,
  7895. class: "parameter_zheng31111"
  7896. }, [
  7897. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7898. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
  7899. ])
  7900. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  7901. key: 1,
  7902. class: "parameter_zheng31111",
  7903. onClick: _cache[7] || (_cache[7] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
  7904. }, [
  7905. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7906. vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
  7907. ])
  7908. ])),
  7909. _ctx.uidatasdata.SysControl_Gun2RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
  7910. key: 2,
  7911. class: "parameter_zheng31111"
  7912. }, [
  7913. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7914. vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
  7915. ])
  7916. ])) : (vue.openBlock(), vue.createElementBlock("view", {
  7917. key: 3,
  7918. class: "parameter_zheng31111",
  7919. onClick: _cache[8] || (_cache[8] = (...args) => $options.onstopit && $options.onstopit(...args))
  7920. }, [
  7921. vue.createElementVNode("view", { class: "parameter_zheng31" }, [
  7922. vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
  7923. ])
  7924. ]))
  7925. ])) : vue.createCommentVNode("v-if", true)
  7926. ]),
  7927. vue.createElementVNode("view", { class: "parameter_home" }, [
  7928. vue.createElementVNode("view", {
  7929. class: "parameter_home1",
  7930. onClick: _cache[9] || (_cache[9] = (...args) => $options.onreturn && $options.onreturn(...args))
  7931. }, [
  7932. vue.createElementVNode("image", {
  7933. src: _imports_10,
  7934. mode: ""
  7935. }),
  7936. vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
  7937. ]),
  7938. vue.createElementVNode("view", { class: "parameter_home2" }, [
  7939. vue.createElementVNode("image", {
  7940. src: _imports_11,
  7941. mode: ""
  7942. }),
  7943. vue.createElementVNode("swiper", {
  7944. class: "swiper",
  7945. circular: "",
  7946. autoplay: true,
  7947. interval: 2e3,
  7948. duration: 500,
  7949. vertical: true
  7950. }, [
  7951. (vue.openBlock(true), vue.createElementBlock(
  7952. vue.Fragment,
  7953. null,
  7954. vue.renderList($data.faultsdata, (item, index) => {
  7955. return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
  7956. vue.createElementVNode(
  7957. "view",
  7958. { class: "parameter_home3" },
  7959. vue.toDisplayString(item["CONTENT"]),
  7960. 1
  7961. /* TEXT */
  7962. )
  7963. ]);
  7964. }),
  7965. 128
  7966. /* KEYED_FRAGMENT */
  7967. ))
  7968. ])
  7969. ])
  7970. ])
  7971. ])
  7972. ]),
  7973. vue.createVNode(
  7974. _component_uni_popup,
  7975. { ref: "alertDialog" },
  7976. {
  7977. default: vue.withCtx(() => [
  7978. vue.createVNode(_component_uni_popup_dialog, {
  7979. mode: $data.modeinput,
  7980. placeholder: "请输入内容",
  7981. modelValue: $data.value,
  7982. "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.value = $event),
  7983. type: $data.successtype,
  7984. cancelText: "取消返回",
  7985. confirmText: $data.confirmText,
  7986. title: $data.title,
  7987. content: $data.content,
  7988. onConfirm: $options.dialogConfirm,
  7989. onClose: $options.dialogClose
  7990. }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
  7991. ]),
  7992. _: 1
  7993. /* STABLE */
  7994. },
  7995. 512
  7996. /* NEED_PATCH */
  7997. )
  7998. ]);
  7999. }
  8000. const PagesSupplyssSupplyss = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-0d60935b"], ["__file", "D:/project/esswisdom_ipad/pages/supplyss/supplyss.vue"]]);
  8001. const _imports_2 = "/static/faultlist.png";
  8002. const _sfc_main$1 = {
  8003. data() {
  8004. return {};
  8005. },
  8006. onLoad() {
  8007. },
  8008. computed: {
  8009. // 使用 mapState 映射多个状态到组件的计算属性
  8010. ...mapState(["formattedTime", "status"])
  8011. },
  8012. beforeUnmount() {
  8013. },
  8014. methods: {
  8015. // 返回首页
  8016. onreturn() {
  8017. uni.redirectTo({
  8018. url: "/pages/details/index"
  8019. });
  8020. }
  8021. }
  8022. };
  8023. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  8024. return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
  8025. vue.createElementVNode("view", { class: "top" }, [
  8026. vue.createElementVNode("image", {
  8027. class: "top_logo",
  8028. src: _imports_0,
  8029. mode: ""
  8030. }),
  8031. vue.createElementVNode("image", {
  8032. class: "tite",
  8033. src: _imports_1,
  8034. mode: ""
  8035. }),
  8036. vue.createElementVNode("view", { class: "time" }, [
  8037. vue.createElementVNode(
  8038. "view",
  8039. { class: "time_top" },
  8040. vue.toDisplayString(_ctx.formattedTime),
  8041. 1
  8042. /* TEXT */
  8043. ),
  8044. vue.createElementVNode("view", { class: "time_bottom" }, [
  8045. vue.createElementVNode("view"),
  8046. vue.createElementVNode("view", { class: "time_bottom1" }, [
  8047. vue.createTextVNode(" 连接状态: "),
  8048. _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
  8049. key: 0,
  8050. class: "time_state"
  8051. }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
  8052. key: 1,
  8053. class: "time_state1"
  8054. }, " 离线 "))
  8055. ])
  8056. ])
  8057. ])
  8058. ]),
  8059. vue.createElementVNode("view", { class: "parameter" }, [
  8060. vue.createElementVNode("view", { class: "parameter_list" }, [
  8061. vue.createElementVNode("view", {
  8062. class: "parameter_box",
  8063. onClick: _cache[0] || (_cache[0] = (...args) => $options.onreturn && $options.onreturn(...args))
  8064. }, [
  8065. vue.createElementVNode("view", { class: "parameter_list1" }, [
  8066. vue.createElementVNode("image", {
  8067. src: _imports_2,
  8068. mode: ""
  8069. })
  8070. ]),
  8071. vue.createElementVNode("view", { class: "fault_txt" }, " 故障页面 ")
  8072. ]),
  8073. vue.createElementVNode("view", { class: "parameter_box" }, [
  8074. vue.createElementVNode("view", { class: "parameter_list1" }, [
  8075. vue.createCommentVNode(' <image src="../../static/faultlist.png" mode=""></image> ')
  8076. ]),
  8077. vue.createElementVNode("view", { class: "fault_txt" }, [
  8078. vue.createCommentVNode(" 故障页面 ")
  8079. ])
  8080. ]),
  8081. vue.createElementVNode("view", { class: "parameter_box" }, [
  8082. vue.createElementVNode("view", { class: "parameter_list1" }, [
  8083. vue.createCommentVNode(' <image src="../../static/faultlist.png" mode=""></image> ')
  8084. ]),
  8085. vue.createElementVNode("view", { class: "fault_txt" }, [
  8086. vue.createCommentVNode(" 故障页面 ")
  8087. ])
  8088. ]),
  8089. vue.createElementVNode("view", { class: "parameter_box" }, [
  8090. vue.createElementVNode("view", { class: "parameter_list1" }, [
  8091. vue.createCommentVNode(' <image src="../../static/faultlist.png" mode=""></image> ')
  8092. ]),
  8093. vue.createElementVNode("view", { class: "fault_txt" }, [
  8094. vue.createCommentVNode(" 故障页面 ")
  8095. ])
  8096. ])
  8097. ])
  8098. ])
  8099. ]);
  8100. }
  8101. const PagesFaultlistIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-108f6e37"], ["__file", "D:/project/esswisdom_ipad/pages/faultlist/index.vue"]]);
  8102. __definePage("pages/index/index", PagesIndexIndex);
  8103. __definePage("pages/home/index", PagesHomeIndex);
  8104. __definePage("pages/details/index", PagesDetailsIndex);
  8105. __definePage("pages/electricity/index", PagesElectricityIndex);
  8106. __definePage("pages/supply/supply", PagesSupplySupply);
  8107. __definePage("pages/supplyss/supplyss", PagesSupplyssSupplyss);
  8108. __definePage("pages/faultlist/index", PagesFaultlistIndex);
  8109. const _sfc_main = {
  8110. data() {
  8111. return {
  8112. // uidatas:''
  8113. };
  8114. },
  8115. computed: {},
  8116. onLaunch: function() {
  8117. plus.navigator.setFullscreen(true);
  8118. plus.navigator.hideSystemNavigation();
  8119. },
  8120. mounted() {
  8121. this.$store.dispatch("startClock");
  8122. this.$store.dispatch("fetchFaultsList");
  8123. },
  8124. beforeUnmount() {
  8125. },
  8126. methods: {},
  8127. onShow: function() {
  8128. formatAppLog("log", "at App.vue:33", "App Show");
  8129. },
  8130. onHide: function() {
  8131. formatAppLog("log", "at App.vue:36", "App Hide");
  8132. }
  8133. };
  8134. const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/project/esswisdom_ipad/App.vue"]]);
  8135. const Store = createStore({
  8136. state: {
  8137. formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
  8138. uidatasdata: {},
  8139. selectorid: null,
  8140. selectorindex: null,
  8141. status: null
  8142. },
  8143. mutations: {
  8144. increment(state) {
  8145. state.count++;
  8146. },
  8147. setFormattedTime(state, time) {
  8148. state.formattedTime = time;
  8149. },
  8150. setUidatasData(state, data) {
  8151. state.uidatasdata = data;
  8152. },
  8153. setstatus(state, status) {
  8154. state.status = status;
  8155. },
  8156. setSelectorId(state, id) {
  8157. state.selectorid = id;
  8158. },
  8159. setSelectorIndex(state, index) {
  8160. state.selectorindex = index;
  8161. }
  8162. },
  8163. actions: {
  8164. startClock({ commit }) {
  8165. setInterval(() => {
  8166. const customFormat = "yyyy年MM月dd日 hh:mm:ss";
  8167. const formattedTime = getTime(customFormat);
  8168. commit("setFormattedTime", formattedTime);
  8169. }, 1e3);
  8170. },
  8171. async fetchFaultsList({ commit }) {
  8172. try {
  8173. let data = {
  8174. id: "3224a3eb-2375-4dfc-99ce-b182edd30996",
  8175. page: 1,
  8176. rows: 1e4
  8177. };
  8178. const response2 = await getuidatas(data);
  8179. commit("setstatus", response2.status);
  8180. if (response2.status == "ok") {
  8181. const uidatasdata = response2.data.reduce((obj, item) => {
  8182. let a = item.module;
  8183. let b = item[a];
  8184. let numericValue = parseFloat(b);
  8185. let roundedValue = "";
  8186. if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
  8187. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
  8188. } else {
  8189. roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
  8190. }
  8191. return {
  8192. ...obj,
  8193. [item.id]: roundedValue
  8194. };
  8195. }, {});
  8196. commit("setUidatasData", uidatasdata);
  8197. if (uidatasdata.SysControl_RunCmd == 1 || uidatasdata.SysControl_Gun1RunCmd == 1 || uidatasdata.SysControl_Gun2RunCmd == 1) {
  8198. commit("setSelectorId", uidatasdata.SysInstall_EssRunModeManual);
  8199. commit("setSelectorIndex", 1);
  8200. } else {
  8201. commit("setSelectorId", null);
  8202. commit("setSelectorIndex", null);
  8203. }
  8204. } else {
  8205. }
  8206. } catch (error) {
  8207. commit("setstatus", "NO");
  8208. } finally {
  8209. setTimeout(() => {
  8210. this.dispatch("fetchFaultsList");
  8211. }, 2e3);
  8212. }
  8213. }
  8214. }
  8215. });
  8216. class Request {
  8217. constructor(options = {}) {
  8218. this.baseUrl = options.baseUrl || "http://10.168.1.100";
  8219. this.url = options.url || "";
  8220. this.method = "GET";
  8221. this.data = null;
  8222. this.header = options.header || {};
  8223. this.beforeRequest = null;
  8224. this.afterRequest = null;
  8225. }
  8226. // 添加对header的支持
  8227. _mergeHeaders(customHeader = {}) {
  8228. return Object.assign({}, this.header, customHeader);
  8229. }
  8230. get(url, data = {}, header = {}) {
  8231. this.method = "GET";
  8232. this.url = this.baseUrl + url;
  8233. this.data = data;
  8234. this.header = this._mergeHeaders(header);
  8235. return this._();
  8236. }
  8237. post(url, data = {}, header = {}) {
  8238. this.method = "POST";
  8239. this.url = this.baseUrl + url;
  8240. this.data = data;
  8241. this.header = this._mergeHeaders(header);
  8242. return this._();
  8243. }
  8244. put(url, data = {}) {
  8245. this.method = "PUT";
  8246. this.url = this.baseUrl + url;
  8247. this.data = data;
  8248. return this._();
  8249. }
  8250. delete(url, data = {}) {
  8251. this.method = "DELETE";
  8252. this.url = this.baseUrl + url;
  8253. this.data = data;
  8254. return this._();
  8255. }
  8256. _() {
  8257. if (this.baseUrl == "") {
  8258. this.url = "http://10.168.1.100" + this.url;
  8259. }
  8260. this.beforeRequest && typeof this.beforeRequest === "function" && this.beforeRequest(this);
  8261. return new Promise((resolve, reject) => {
  8262. let weixin = wx;
  8263. if ("undefined" !== typeof uni) {
  8264. weixin = uni;
  8265. }
  8266. weixin.request({
  8267. url: this.url,
  8268. method: this.method,
  8269. data: this.data,
  8270. header: this.header,
  8271. success: (res) => {
  8272. resolve(res);
  8273. },
  8274. fail: (err) => {
  8275. reject(err);
  8276. },
  8277. complete: (res) => {
  8278. this.afterRequest && typeof this.afterRequest === "function" && this.afterRequest(res);
  8279. }
  8280. });
  8281. });
  8282. }
  8283. }
  8284. const $http = new Request();
  8285. function createApp() {
  8286. const app = vue.createVueApp(App);
  8287. app.use(Store);
  8288. return {
  8289. app
  8290. };
  8291. }
  8292. uni.$http = $http;
  8293. $http.baseUrl = "";
  8294. $http.beforeRequest = function(options) {
  8295. };
  8296. $http.afterRequest = function() {
  8297. };
  8298. const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp();
  8299. uni.Vuex = __Vuex__;
  8300. uni.Pinia = __Pinia__;
  8301. __app__.provide("__globalStyles", __uniConfig.styles);
  8302. __app__._component.mpType = "app";
  8303. __app__._component.render = () => {
  8304. };
  8305. __app__.mount("#app");
  8306. })(Vue);