| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306 |
- if (typeof Promise !== "undefined" && !Promise.prototype.finally) {
- Promise.prototype.finally = function(callback) {
- const promise = this.constructor;
- return this.then(
- (value) => promise.resolve(callback()).then(() => value),
- (reason) => promise.resolve(callback()).then(() => {
- throw reason;
- })
- );
- };
- }
- ;
- if (typeof uni !== "undefined" && uni && uni.requireGlobal) {
- const global2 = uni.requireGlobal();
- ArrayBuffer = global2.ArrayBuffer;
- Int8Array = global2.Int8Array;
- Uint8Array = global2.Uint8Array;
- Uint8ClampedArray = global2.Uint8ClampedArray;
- Int16Array = global2.Int16Array;
- Uint16Array = global2.Uint16Array;
- Int32Array = global2.Int32Array;
- Uint32Array = global2.Uint32Array;
- Float32Array = global2.Float32Array;
- Float64Array = global2.Float64Array;
- BigInt64Array = global2.BigInt64Array;
- BigUint64Array = global2.BigUint64Array;
- }
- ;
- if (uni.restoreGlobal) {
- uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
- }
- (function(vue) {
- "use strict";
- function formatAppLog(type, filename, ...args) {
- if (uni.__log__) {
- uni.__log__(type, filename, ...args);
- } else {
- console[type].apply(console, [...args, filename]);
- }
- }
- function resolveEasycom(component, easycom) {
- return typeof component === "string" ? easycom : component;
- }
- const popup = {
- data() {
- return {};
- },
- created() {
- this.popup = this.getParent();
- },
- methods: {
- /**
- * 获取父元素实例
- */
- getParent(name = "uniPopup") {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent)
- return false;
- parentName = parent.$options.name;
- }
- return parent;
- }
- }
- };
- const _export_sfc = (sfc, props) => {
- const target = sfc.__vccOpts || sfc;
- for (const [key, val] of props) {
- target[key] = val;
- }
- return target;
- };
- const _sfc_main$f = {
- name: "uniPopupMessage",
- mixins: [popup],
- props: {
- /**
- * 主题 success/warning/info/error 默认 success
- */
- type: {
- type: String,
- default: "success"
- },
- /**
- * 消息文字
- */
- message: {
- type: String,
- default: ""
- },
- /**
- * 显示时间,设置为 0 则不会自动关闭
- */
- duration: {
- type: Number,
- default: 3e3
- },
- maskShow: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {};
- },
- created() {
- this.popup.maskShow = this.maskShow;
- this.popup.messageChild = this;
- },
- methods: {
- timerClose() {
- if (this.duration === 0)
- return;
- clearTimeout(this.timer);
- this.timer = setTimeout(() => {
- this.popup.close();
- }, this.duration);
- }
- }
- };
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-message" }, [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass(["uni-popup-message__box fixforpc-width", "uni-popup__" + $props.type])
- },
- [
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
- vue.createElementVNode(
- "text",
- {
- class: vue.normalizeClass(["uni-popup-message-text", "uni-popup__" + $props.type + "-text"])
- },
- vue.toDisplayString($props.message),
- 3
- /* TEXT, CLASS */
- )
- ], true)
- ],
- 2
- /* CLASS */
- )
- ]);
- }
- 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"]]);
- class MPAnimation {
- constructor(options, _this) {
- this.options = options;
- this.animation = uni.createAnimation({
- ...options
- });
- this.currentStepAnimates = {};
- this.next = 0;
- this.$ = _this;
- }
- _nvuePushAnimates(type, args) {
- let aniObj = this.currentStepAnimates[this.next];
- let styles = {};
- if (!aniObj) {
- styles = {
- styles: {},
- config: {}
- };
- } else {
- styles = aniObj;
- }
- if (animateTypes1.includes(type)) {
- if (!styles.styles.transform) {
- styles.styles.transform = "";
- }
- let unit = "";
- if (type === "rotate") {
- unit = "deg";
- }
- styles.styles.transform += `${type}(${args + unit}) `;
- } else {
- styles.styles[type] = `${args}`;
- }
- this.currentStepAnimates[this.next] = styles;
- }
- _animateRun(styles = {}, config = {}) {
- let ref = this.$.$refs["ani"].ref;
- if (!ref)
- return;
- return new Promise((resolve, reject) => {
- nvueAnimation.transition(ref, {
- styles,
- ...config
- }, (res) => {
- resolve();
- });
- });
- }
- _nvueNextAnimate(animates, step = 0, fn) {
- let obj = animates[step];
- if (obj) {
- let {
- styles,
- config
- } = obj;
- this._animateRun(styles, config).then(() => {
- step += 1;
- this._nvueNextAnimate(animates, step, fn);
- });
- } else {
- this.currentStepAnimates = {};
- typeof fn === "function" && fn();
- this.isEnd = true;
- }
- }
- step(config = {}) {
- this.animation.step(config);
- return this;
- }
- run(fn) {
- this.$.animationData = this.animation.export();
- this.$.timer = setTimeout(() => {
- typeof fn === "function" && fn();
- }, this.$.durationTime);
- }
- }
- const animateTypes1 = [
- "matrix",
- "matrix3d",
- "rotate",
- "rotate3d",
- "rotateX",
- "rotateY",
- "rotateZ",
- "scale",
- "scale3d",
- "scaleX",
- "scaleY",
- "scaleZ",
- "skew",
- "skewX",
- "skewY",
- "translate",
- "translate3d",
- "translateX",
- "translateY",
- "translateZ"
- ];
- const animateTypes2 = ["opacity", "backgroundColor"];
- const animateTypes3 = ["width", "height", "left", "right", "top", "bottom"];
- animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => {
- MPAnimation.prototype[type] = function(...args) {
- this.animation[type](...args);
- return this;
- };
- });
- function createAnimation(option, _this) {
- if (!_this)
- return;
- clearTimeout(_this.timer);
- return new MPAnimation(option, _this);
- }
- const _sfc_main$e = {
- name: "uniTransition",
- emits: ["click", "change"],
- props: {
- show: {
- type: Boolean,
- default: false
- },
- modeClass: {
- type: [Array, String],
- default() {
- return "fade";
- }
- },
- duration: {
- type: Number,
- default: 300
- },
- styles: {
- type: Object,
- default() {
- return {};
- }
- },
- customClass: {
- type: String,
- default: ""
- },
- onceRender: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- isShow: false,
- transform: "",
- opacity: 1,
- animationData: {},
- durationTime: 300,
- config: {}
- };
- },
- watch: {
- show: {
- handler(newVal) {
- if (newVal) {
- this.open();
- } else {
- if (this.isShow) {
- this.close();
- }
- }
- },
- immediate: true
- }
- },
- computed: {
- // 生成样式数据
- stylesObject() {
- let styles = {
- ...this.styles,
- "transition-duration": this.duration / 1e3 + "s"
- };
- let transform = "";
- for (let i in styles) {
- let line = this.toLine(i);
- transform += line + ":" + styles[i] + ";";
- }
- return transform;
- },
- // 初始化动画条件
- transformStyles() {
- return "transform:" + this.transform + ";opacity:" + this.opacity + ";" + this.stylesObject;
- }
- },
- created() {
- this.config = {
- duration: this.duration,
- timingFunction: "ease",
- transformOrigin: "50% 50%",
- delay: 0
- };
- this.durationTime = this.duration;
- },
- methods: {
- /**
- * ref 触发 初始化动画
- */
- init(obj = {}) {
- if (obj.duration) {
- this.durationTime = obj.duration;
- }
- this.animation = createAnimation(Object.assign(this.config, obj), this);
- },
- /**
- * 点击组件触发回调
- */
- onClick() {
- this.$emit("click", {
- detail: this.isShow
- });
- },
- /**
- * ref 触发 动画分组
- * @param {Object} obj
- */
- step(obj, config = {}) {
- if (!this.animation)
- return;
- for (let i in obj) {
- try {
- if (typeof obj[i] === "object") {
- this.animation[i](...obj[i]);
- } else {
- this.animation[i](obj[i]);
- }
- } catch (e) {
- formatAppLog("error", "at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148", `方法 ${i} 不存在`);
- }
- }
- this.animation.step(config);
- return this;
- },
- /**
- * ref 触发 执行动画
- */
- run(fn) {
- if (!this.animation)
- return;
- this.animation.run(fn);
- },
- // 开始过度动画
- open() {
- clearTimeout(this.timer);
- this.transform = "";
- this.isShow = true;
- let { opacity, transform } = this.styleInit(false);
- if (typeof opacity !== "undefined") {
- this.opacity = opacity;
- }
- this.transform = transform;
- this.$nextTick(() => {
- this.timer = setTimeout(() => {
- this.animation = createAnimation(this.config, this);
- this.tranfromInit(false).step();
- this.animation.run();
- this.$emit("change", {
- detail: this.isShow
- });
- }, 20);
- });
- },
- // 关闭过度动画
- close(type) {
- if (!this.animation)
- return;
- this.tranfromInit(true).step().run(() => {
- this.isShow = false;
- this.animationData = null;
- this.animation = null;
- let { opacity, transform } = this.styleInit(false);
- this.opacity = opacity || 1;
- this.transform = transform;
- this.$emit("change", {
- detail: this.isShow
- });
- });
- },
- // 处理动画开始前的默认样式
- styleInit(type) {
- let styles = {
- transform: ""
- };
- let buildStyle = (type2, mode) => {
- if (mode === "fade") {
- styles.opacity = this.animationType(type2)[mode];
- } else {
- styles.transform += this.animationType(type2)[mode] + " ";
- }
- };
- if (typeof this.modeClass === "string") {
- buildStyle(type, this.modeClass);
- } else {
- this.modeClass.forEach((mode) => {
- buildStyle(type, mode);
- });
- }
- return styles;
- },
- // 处理内置组合动画
- tranfromInit(type) {
- let buildTranfrom = (type2, mode) => {
- let aniNum = null;
- if (mode === "fade") {
- aniNum = type2 ? 0 : 1;
- } else {
- aniNum = type2 ? "-100%" : "0";
- if (mode === "zoom-in") {
- aniNum = type2 ? 0.8 : 1;
- }
- if (mode === "zoom-out") {
- aniNum = type2 ? 1.2 : 1;
- }
- if (mode === "slide-right") {
- aniNum = type2 ? "100%" : "0";
- }
- if (mode === "slide-bottom") {
- aniNum = type2 ? "100%" : "0";
- }
- }
- this.animation[this.animationMode()[mode]](aniNum);
- };
- if (typeof this.modeClass === "string") {
- buildTranfrom(type, this.modeClass);
- } else {
- this.modeClass.forEach((mode) => {
- buildTranfrom(type, mode);
- });
- }
- return this.animation;
- },
- animationType(type) {
- return {
- fade: type ? 0 : 1,
- "slide-top": `translateY(${type ? "0" : "-100%"})`,
- "slide-right": `translateX(${type ? "0" : "100%"})`,
- "slide-bottom": `translateY(${type ? "0" : "100%"})`,
- "slide-left": `translateX(${type ? "0" : "-100%"})`,
- "zoom-in": `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`,
- "zoom-out": `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})`
- };
- },
- // 内置动画类型与实际动画对应字典
- animationMode() {
- return {
- fade: "opacity",
- "slide-top": "translateY",
- "slide-right": "translateX",
- "slide-bottom": "translateY",
- "slide-left": "translateX",
- "zoom-in": "scale",
- "zoom-out": "scale"
- };
- },
- // 驼峰转中横线
- toLine(name) {
- return name.replace(/([A-Z])/g, "-$1").toLowerCase();
- }
- }
- };
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
- ref: "ani",
- animation: $data.animationData,
- class: vue.normalizeClass($props.customClass),
- style: vue.normalizeStyle($options.transformStyles),
- onClick: _cache[0] || (_cache[0] = (...args) => $options.onClick && $options.onClick(...args))
- }, [
- vue.renderSlot(_ctx.$slots, "default")
- ], 14, ["animation"])), [
- [vue.vShow, $data.isShow]
- ]);
- }
- 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"]]);
- const _sfc_main$d = {
- name: "uniPopup",
- components: {},
- emits: ["change", "maskClick"],
- props: {
- // 开启动画
- animation: {
- type: Boolean,
- default: true
- },
- // 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
- // message: 消息提示 ; dialog : 对话框
- type: {
- type: String,
- default: "center"
- },
- // maskClick
- isMaskClick: {
- type: Boolean,
- default: null
- },
- // TODO 2 个版本后废弃属性 ,使用 isMaskClick
- maskClick: {
- type: Boolean,
- default: null
- },
- backgroundColor: {
- type: String,
- default: "none"
- },
- safeArea: {
- type: Boolean,
- default: true
- },
- maskBackgroundColor: {
- type: String,
- default: "rgba(0, 0, 0, 0.4)"
- },
- borderRadius: {
- type: String
- }
- },
- watch: {
- /**
- * 监听type类型
- */
- type: {
- handler: function(type) {
- if (!this.config[type])
- return;
- this[this.config[type]](true);
- },
- immediate: true
- },
- isDesktop: {
- handler: function(newVal) {
- if (!this.config[newVal])
- return;
- this[this.config[this.type]](true);
- },
- immediate: true
- },
- /**
- * 监听遮罩是否可点击
- * @param {Object} val
- */
- maskClick: {
- handler: function(val) {
- this.mkclick = val;
- },
- immediate: true
- },
- isMaskClick: {
- handler: function(val) {
- this.mkclick = val;
- },
- immediate: true
- },
- // H5 下禁止底部滚动
- showPopup(show) {
- }
- },
- data() {
- return {
- duration: 300,
- ani: [],
- showPopup: false,
- showTrans: false,
- popupWidth: 0,
- popupHeight: 0,
- config: {
- top: "top",
- bottom: "bottom",
- center: "center",
- left: "left",
- right: "right",
- message: "top",
- dialog: "center",
- share: "bottom"
- },
- maskClass: {
- position: "fixed",
- bottom: 0,
- top: 0,
- left: 0,
- right: 0,
- backgroundColor: "rgba(0, 0, 0, 0.4)"
- },
- transClass: {
- backgroundColor: "transparent",
- borderRadius: this.borderRadius || "0",
- position: "fixed",
- left: 0,
- right: 0
- },
- maskShow: true,
- mkclick: true,
- popupstyle: "top"
- };
- },
- computed: {
- getStyles() {
- let res = { backgroundColor: this.bg };
- if (this.borderRadius || "0") {
- res = Object.assign(res, { borderRadius: this.borderRadius });
- }
- return res;
- },
- isDesktop() {
- return this.popupWidth >= 500 && this.popupHeight >= 500;
- },
- bg() {
- if (this.backgroundColor === "" || this.backgroundColor === "none") {
- return "transparent";
- }
- return this.backgroundColor;
- }
- },
- mounted() {
- const fixSize = () => {
- const {
- windowWidth,
- windowHeight,
- windowTop,
- safeArea,
- screenHeight,
- safeAreaInsets
- } = uni.getSystemInfoSync();
- this.popupWidth = windowWidth;
- this.popupHeight = windowHeight + (windowTop || 0);
- if (safeArea && this.safeArea) {
- this.safeAreaInsets = safeAreaInsets.bottom;
- } else {
- this.safeAreaInsets = 0;
- }
- };
- fixSize();
- },
- // TODO vue3
- unmounted() {
- this.setH5Visible();
- },
- activated() {
- this.setH5Visible(!this.showPopup);
- },
- deactivated() {
- this.setH5Visible(true);
- },
- created() {
- if (this.isMaskClick === null && this.maskClick === null) {
- this.mkclick = true;
- } else {
- this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick;
- }
- if (this.animation) {
- this.duration = 300;
- } else {
- this.duration = 0;
- }
- this.messageChild = null;
- this.clearPropagation = false;
- this.maskClass.backgroundColor = this.maskBackgroundColor;
- },
- methods: {
- setH5Visible(visible = true) {
- },
- /**
- * 公用方法,不显示遮罩层
- */
- closeMask() {
- this.maskShow = false;
- },
- /**
- * 公用方法,遮罩层禁止点击
- */
- disableMask() {
- this.mkclick = false;
- },
- // TODO nvue 取消冒泡
- clear(e) {
- e.stopPropagation();
- this.clearPropagation = true;
- },
- open(direction) {
- if (this.showPopup) {
- return;
- }
- let innerType = ["top", "center", "bottom", "left", "right", "message", "dialog", "share"];
- if (!(direction && innerType.indexOf(direction) !== -1)) {
- direction = this.type;
- }
- if (!this.config[direction]) {
- formatAppLog("error", "at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298", "缺少类型:", direction);
- return;
- }
- this[this.config[direction]]();
- this.$emit("change", {
- show: true,
- type: direction
- });
- },
- close(type) {
- this.showTrans = false;
- this.$emit("change", {
- show: false,
- type: this.type
- });
- clearTimeout(this.timer);
- this.timer = setTimeout(() => {
- this.showPopup = false;
- }, 300);
- },
- // TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容
- touchstart() {
- this.clearPropagation = false;
- },
- onTap() {
- if (this.clearPropagation) {
- this.clearPropagation = false;
- return;
- }
- this.$emit("maskClick");
- if (!this.mkclick)
- return;
- this.close();
- },
- /**
- * 顶部弹出样式处理
- */
- top(type) {
- this.popupstyle = this.isDesktop ? "fixforpc-top" : "top";
- this.ani = ["slide-top"];
- this.transClass = {
- position: "fixed",
- left: 0,
- right: 0,
- backgroundColor: this.bg,
- borderRadius: this.borderRadius || "0"
- };
- if (type)
- return;
- this.showPopup = true;
- this.showTrans = true;
- this.$nextTick(() => {
- if (this.messageChild && this.type === "message") {
- this.messageChild.timerClose();
- }
- });
- },
- /**
- * 底部弹出样式处理
- */
- bottom(type) {
- this.popupstyle = "bottom";
- this.ani = ["slide-bottom"];
- this.transClass = {
- position: "fixed",
- left: 0,
- right: 0,
- bottom: 0,
- paddingBottom: this.safeAreaInsets + "px",
- backgroundColor: this.bg,
- borderRadius: this.borderRadius || "0"
- };
- if (type)
- return;
- this.showPopup = true;
- this.showTrans = true;
- },
- /**
- * 中间弹出样式处理
- */
- center(type) {
- this.popupstyle = "center";
- this.ani = ["zoom-out", "fade"];
- this.transClass = {
- position: "fixed",
- display: "flex",
- flexDirection: "column",
- bottom: 0,
- left: 0,
- right: 0,
- top: 0,
- justifyContent: "center",
- alignItems: "center",
- borderRadius: this.borderRadius || "0"
- };
- if (type)
- return;
- this.showPopup = true;
- this.showTrans = true;
- },
- left(type) {
- this.popupstyle = "left";
- this.ani = ["slide-left"];
- this.transClass = {
- position: "fixed",
- left: 0,
- bottom: 0,
- top: 0,
- backgroundColor: this.bg,
- borderRadius: this.borderRadius || "0",
- display: "flex",
- flexDirection: "column"
- };
- if (type)
- return;
- this.showPopup = true;
- this.showTrans = true;
- },
- right(type) {
- this.popupstyle = "right";
- this.ani = ["slide-right"];
- this.transClass = {
- position: "fixed",
- bottom: 0,
- right: 0,
- top: 0,
- backgroundColor: this.bg,
- borderRadius: this.borderRadius || "0",
- display: "flex",
- flexDirection: "column"
- };
- if (type)
- return;
- this.showPopup = true;
- this.showTrans = true;
- }
- }
- };
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_uni_transition = resolveEasycom(vue.resolveDynamicComponent("uni-transition"), __easycom_0$3);
- return $data.showPopup ? (vue.openBlock(), vue.createElementBlock(
- "view",
- {
- key: 0,
- class: vue.normalizeClass(["uni-popup", [$data.popupstyle, $options.isDesktop ? "fixforpc-z-index" : ""]])
- },
- [
- vue.createElementVNode(
- "view",
- {
- onTouchstart: _cache[1] || (_cache[1] = (...args) => $options.touchstart && $options.touchstart(...args))
- },
- [
- $data.maskShow ? (vue.openBlock(), vue.createBlock(_component_uni_transition, {
- key: "1",
- name: "mask",
- "mode-class": "fade",
- styles: $data.maskClass,
- duration: $data.duration,
- show: $data.showTrans,
- onClick: $options.onTap
- }, null, 8, ["styles", "duration", "show", "onClick"])) : vue.createCommentVNode("v-if", true),
- vue.createVNode(_component_uni_transition, {
- key: "2",
- "mode-class": $data.ani,
- name: "content",
- styles: $data.transClass,
- duration: $data.duration,
- show: $data.showTrans,
- onClick: $options.onTap
- }, {
- default: vue.withCtx(() => [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass(["uni-popup__wrapper", [$data.popupstyle]]),
- style: vue.normalizeStyle($options.getStyles),
- onClick: _cache[0] || (_cache[0] = (...args) => $options.clear && $options.clear(...args))
- },
- [
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
- ],
- 6
- /* CLASS, STYLE */
- )
- ]),
- _: 3
- /* FORWARDED */
- }, 8, ["mode-class", "styles", "duration", "show", "onClick"])
- ],
- 32
- /* NEED_HYDRATION */
- )
- ],
- 2
- /* CLASS */
- )) : vue.createCommentVNode("v-if", true);
- }
- 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"]]);
- const control = async (data) => {
- try {
- 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")}` });
- formatAppLog("log", "at api/api.js:5", response2);
- if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
- uni.removeStorageSync("token");
- login();
- return response2.data;
- }
- return response2.data;
- } catch (error) {
- formatAppLog("log", "at api/api.js:18", error);
- login();
- return response.data;
- }
- };
- const getuidatas = async (data) => {
- try {
- 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")}` });
- formatAppLog("log", "at api/api.js:32", response2);
- if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
- uni.removeStorageSync("token");
- login();
- return response2.data;
- }
- return response2.data;
- } catch (error) {
- formatAppLog("log", "at api/api.js:48", error);
- login();
- return response.data;
- }
- };
- const getfaultsList = async (data) => {
- try {
- const response2 = await uni.$http.get("/api/v1/faults", data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
- formatAppLog("log", "at api/api.js:63", response2.data);
- if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
- uni.removeStorageSync("token");
- login();
- return response2.data;
- }
- return response2.data;
- } catch (error) {
- formatAppLog("error", "at api/api.js:76", "Network request failed:", error);
- formatAppLog("log", "at api/api.js:77", error);
- uni.removeStorageSync("token");
- login();
- return response.data;
- }
- };
- const login = async (start, count) => {
- try {
- formatAppLog("log", "at api/api.js:91", "login request");
- const response2 = await uni.$http.post(
- "/api/v1/login",
- { name: "dexnui", pwd: "dexn1001" },
- { "Content-Type": "application/json;charset=utf-8" }
- );
- formatAppLog("log", "at api/api.js:94", response2);
- if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
- return response2.data;
- }
- formatAppLog("log", "at api/api.js:103", response2.data);
- uni.setStorageSync("token", response2.data.data.token);
- return response2.data;
- } catch (error) {
- return response.data;
- }
- };
- const getTime = (format = "yyyy/MM/dd hh:mm:ss") => {
- const date = /* @__PURE__ */ new Date();
- const year = date.getFullYear();
- const month = ("0" + (date.getMonth() + 1)).slice(-2);
- const day = ("0" + date.getDate()).slice(-2);
- const hours = ("0" + date.getHours()).slice(-2);
- const minutes = ("0" + date.getMinutes()).slice(-2);
- const seconds = ("0" + date.getSeconds()).slice(-2);
- return format.replace("yyyy", year).replace("MM", month).replace("dd", day).replace("hh", hours).replace("mm", minutes).replace("ss", seconds);
- };
- function getDevtoolsGlobalHook() {
- return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
- }
- function getTarget() {
- return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
- }
- const isProxyAvailable = typeof Proxy === "function";
- const HOOK_SETUP = "devtools-plugin:setup";
- const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
- class ApiProxy {
- constructor(plugin, hook) {
- this.target = null;
- this.targetQueue = [];
- this.onQueue = [];
- this.plugin = plugin;
- this.hook = hook;
- const defaultSettings = {};
- if (plugin.settings) {
- for (const id in plugin.settings) {
- const item = plugin.settings[id];
- defaultSettings[id] = item.defaultValue;
- }
- }
- const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
- let currentSettings = { ...defaultSettings };
- try {
- const raw = localStorage.getItem(localSettingsSaveId);
- const data = JSON.parse(raw);
- Object.assign(currentSettings, data);
- } catch (e) {
- }
- this.fallbacks = {
- getSettings() {
- return currentSettings;
- },
- setSettings(value) {
- try {
- localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
- } catch (e) {
- }
- currentSettings = value;
- }
- };
- hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
- if (pluginId === this.plugin.id) {
- this.fallbacks.setSettings(value);
- }
- });
- this.proxiedOn = new Proxy({}, {
- get: (_target, prop) => {
- if (this.target) {
- return this.target.on[prop];
- } else {
- return (...args) => {
- this.onQueue.push({
- method: prop,
- args
- });
- };
- }
- }
- });
- this.proxiedTarget = new Proxy({}, {
- get: (_target, prop) => {
- if (this.target) {
- return this.target[prop];
- } else if (prop === "on") {
- return this.proxiedOn;
- } else if (Object.keys(this.fallbacks).includes(prop)) {
- return (...args) => {
- this.targetQueue.push({
- method: prop,
- args,
- resolve: () => {
- }
- });
- return this.fallbacks[prop](...args);
- };
- } else {
- return (...args) => {
- return new Promise((resolve) => {
- this.targetQueue.push({
- method: prop,
- args,
- resolve
- });
- });
- };
- }
- }
- });
- }
- async setRealTarget(target) {
- this.target = target;
- for (const item of this.onQueue) {
- this.target.on[item.method](...item.args);
- }
- for (const item of this.targetQueue) {
- item.resolve(await this.target[item.method](...item.args));
- }
- }
- }
- function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
- const target = getTarget();
- const hook = getDevtoolsGlobalHook();
- const enableProxy = isProxyAvailable && pluginDescriptor.enableEarlyProxy;
- if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
- hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
- } else {
- const proxy = enableProxy ? new ApiProxy(pluginDescriptor, hook) : null;
- const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
- list.push({
- pluginDescriptor,
- setupFn,
- proxy
- });
- if (proxy)
- setupFn(proxy.proxiedTarget);
- }
- }
- /*!
- * vuex v4.1.0
- * (c) 2022 Evan You
- * @license MIT
- */
- var storeKey = "store";
- function forEachValue(obj, fn) {
- Object.keys(obj).forEach(function(key) {
- return fn(obj[key], key);
- });
- }
- function isObject$1(obj) {
- return obj !== null && typeof obj === "object";
- }
- function isPromise(val) {
- return val && typeof val.then === "function";
- }
- function assert(condition, msg) {
- if (!condition) {
- throw new Error("[vuex] " + msg);
- }
- }
- function partial(fn, arg) {
- return function() {
- return fn(arg);
- };
- }
- function genericSubscribe(fn, subs, options) {
- if (subs.indexOf(fn) < 0) {
- options && options.prepend ? subs.unshift(fn) : subs.push(fn);
- }
- return function() {
- var i = subs.indexOf(fn);
- if (i > -1) {
- subs.splice(i, 1);
- }
- };
- }
- function resetStore(store, hot) {
- store._actions = /* @__PURE__ */ Object.create(null);
- store._mutations = /* @__PURE__ */ Object.create(null);
- store._wrappedGetters = /* @__PURE__ */ Object.create(null);
- store._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
- var state = store.state;
- installModule(store, state, [], store._modules.root, true);
- resetStoreState(store, state, hot);
- }
- function resetStoreState(store, state, hot) {
- var oldState = store._state;
- var oldScope = store._scope;
- store.getters = {};
- store._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
- var wrappedGetters = store._wrappedGetters;
- var computedObj = {};
- var computedCache = {};
- var scope = vue.effectScope(true);
- scope.run(function() {
- forEachValue(wrappedGetters, function(fn, key) {
- computedObj[key] = partial(fn, store);
- computedCache[key] = vue.computed(function() {
- return computedObj[key]();
- });
- Object.defineProperty(store.getters, key, {
- get: function() {
- return computedCache[key].value;
- },
- enumerable: true
- // for local getters
- });
- });
- });
- store._state = vue.reactive({
- data: state
- });
- store._scope = scope;
- if (store.strict) {
- enableStrictMode(store);
- }
- if (oldState) {
- if (hot) {
- store._withCommit(function() {
- oldState.data = null;
- });
- }
- }
- if (oldScope) {
- oldScope.stop();
- }
- }
- function installModule(store, rootState, path, module, hot) {
- var isRoot = !path.length;
- var namespace = store._modules.getNamespace(path);
- if (module.namespaced) {
- if (store._modulesNamespaceMap[namespace] && true) {
- console.error("[vuex] duplicate namespace " + namespace + " for the namespaced module " + path.join("/"));
- }
- store._modulesNamespaceMap[namespace] = module;
- }
- if (!isRoot && !hot) {
- var parentState = getNestedState(rootState, path.slice(0, -1));
- var moduleName = path[path.length - 1];
- store._withCommit(function() {
- {
- if (moduleName in parentState) {
- console.warn(
- '[vuex] state field "' + moduleName + '" was overridden by a module with the same name at "' + path.join(".") + '"'
- );
- }
- }
- parentState[moduleName] = module.state;
- });
- }
- var local = module.context = makeLocalContext(store, namespace, path);
- module.forEachMutation(function(mutation, key) {
- var namespacedType = namespace + key;
- registerMutation(store, namespacedType, mutation, local);
- });
- module.forEachAction(function(action, key) {
- var type = action.root ? key : namespace + key;
- var handler = action.handler || action;
- registerAction(store, type, handler, local);
- });
- module.forEachGetter(function(getter, key) {
- var namespacedType = namespace + key;
- registerGetter(store, namespacedType, getter, local);
- });
- module.forEachChild(function(child, key) {
- installModule(store, rootState, path.concat(key), child, hot);
- });
- }
- function makeLocalContext(store, namespace, path) {
- var noNamespace = namespace === "";
- var local = {
- dispatch: noNamespace ? store.dispatch : function(_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (!store._actions[type]) {
- console.error("[vuex] unknown local action type: " + args.type + ", global type: " + type);
- return;
- }
- }
- return store.dispatch(type, payload);
- },
- commit: noNamespace ? store.commit : function(_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (!store._mutations[type]) {
- console.error("[vuex] unknown local mutation type: " + args.type + ", global type: " + type);
- return;
- }
- }
- store.commit(type, payload, options);
- }
- };
- Object.defineProperties(local, {
- getters: {
- get: noNamespace ? function() {
- return store.getters;
- } : function() {
- return makeLocalGetters(store, namespace);
- }
- },
- state: {
- get: function() {
- return getNestedState(store.state, path);
- }
- }
- });
- return local;
- }
- function makeLocalGetters(store, namespace) {
- if (!store._makeLocalGettersCache[namespace]) {
- var gettersProxy = {};
- var splitPos = namespace.length;
- Object.keys(store.getters).forEach(function(type) {
- if (type.slice(0, splitPos) !== namespace) {
- return;
- }
- var localType = type.slice(splitPos);
- Object.defineProperty(gettersProxy, localType, {
- get: function() {
- return store.getters[type];
- },
- enumerable: true
- });
- });
- store._makeLocalGettersCache[namespace] = gettersProxy;
- }
- return store._makeLocalGettersCache[namespace];
- }
- function registerMutation(store, type, handler, local) {
- var entry = store._mutations[type] || (store._mutations[type] = []);
- entry.push(function wrappedMutationHandler(payload) {
- handler.call(store, local.state, payload);
- });
- }
- function registerAction(store, type, handler, local) {
- var entry = store._actions[type] || (store._actions[type] = []);
- entry.push(function wrappedActionHandler(payload) {
- var res = handler.call(store, {
- dispatch: local.dispatch,
- commit: local.commit,
- getters: local.getters,
- state: local.state,
- rootGetters: store.getters,
- rootState: store.state
- }, payload);
- if (!isPromise(res)) {
- res = Promise.resolve(res);
- }
- if (store._devtoolHook) {
- return res.catch(function(err) {
- store._devtoolHook.emit("vuex:error", err);
- throw err;
- });
- } else {
- return res;
- }
- });
- }
- function registerGetter(store, type, rawGetter, local) {
- if (store._wrappedGetters[type]) {
- {
- console.error("[vuex] duplicate getter key: " + type);
- }
- return;
- }
- store._wrappedGetters[type] = function wrappedGetter(store2) {
- return rawGetter(
- local.state,
- // local state
- local.getters,
- // local getters
- store2.state,
- // root state
- store2.getters
- // root getters
- );
- };
- }
- function enableStrictMode(store) {
- vue.watch(function() {
- return store._state.data;
- }, function() {
- {
- assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
- }
- }, { deep: true, flush: "sync" });
- }
- function getNestedState(state, path) {
- return path.reduce(function(state2, key) {
- return state2[key];
- }, state);
- }
- function unifyObjectStyle(type, payload, options) {
- if (isObject$1(type) && type.type) {
- options = payload;
- payload = type;
- type = type.type;
- }
- {
- assert(typeof type === "string", "expects string as the type, but found " + typeof type + ".");
- }
- return { type, payload, options };
- }
- var LABEL_VUEX_BINDINGS = "vuex bindings";
- var MUTATIONS_LAYER_ID = "vuex:mutations";
- var ACTIONS_LAYER_ID = "vuex:actions";
- var INSPECTOR_ID = "vuex";
- var actionId = 0;
- function addDevtools(app, store) {
- setupDevtoolsPlugin(
- {
- id: "org.vuejs.vuex",
- app,
- label: "Vuex",
- homepage: "https://next.vuex.vuejs.org/",
- logo: "https://vuejs.org/images/icons/favicon-96x96.png",
- packageName: "vuex",
- componentStateTypes: [LABEL_VUEX_BINDINGS]
- },
- function(api) {
- api.addTimelineLayer({
- id: MUTATIONS_LAYER_ID,
- label: "Vuex Mutations",
- color: COLOR_LIME_500
- });
- api.addTimelineLayer({
- id: ACTIONS_LAYER_ID,
- label: "Vuex Actions",
- color: COLOR_LIME_500
- });
- api.addInspector({
- id: INSPECTOR_ID,
- label: "Vuex",
- icon: "storage",
- treeFilterPlaceholder: "Filter stores..."
- });
- api.on.getInspectorTree(function(payload) {
- if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
- if (payload.filter) {
- var nodes = [];
- flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, "");
- payload.rootNodes = nodes;
- } else {
- payload.rootNodes = [
- formatStoreForInspectorTree(store._modules.root, "")
- ];
- }
- }
- });
- api.on.getInspectorState(function(payload) {
- if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
- var modulePath = payload.nodeId;
- makeLocalGetters(store, modulePath);
- payload.state = formatStoreForInspectorState(
- getStoreModule(store._modules, modulePath),
- modulePath === "root" ? store.getters : store._makeLocalGettersCache,
- modulePath
- );
- }
- });
- api.on.editInspectorState(function(payload) {
- if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
- var modulePath = payload.nodeId;
- var path = payload.path;
- if (modulePath !== "root") {
- path = modulePath.split("/").filter(Boolean).concat(path);
- }
- store._withCommit(function() {
- payload.set(store._state.data, path, payload.state.value);
- });
- }
- });
- store.subscribe(function(mutation, state) {
- var data = {};
- if (mutation.payload) {
- data.payload = mutation.payload;
- }
- data.state = state;
- api.notifyComponentUpdate();
- api.sendInspectorTree(INSPECTOR_ID);
- api.sendInspectorState(INSPECTOR_ID);
- api.addTimelineEvent({
- layerId: MUTATIONS_LAYER_ID,
- event: {
- time: Date.now(),
- title: mutation.type,
- data
- }
- });
- });
- store.subscribeAction({
- before: function(action, state) {
- var data = {};
- if (action.payload) {
- data.payload = action.payload;
- }
- action._id = actionId++;
- action._time = Date.now();
- data.state = state;
- api.addTimelineEvent({
- layerId: ACTIONS_LAYER_ID,
- event: {
- time: action._time,
- title: action.type,
- groupId: action._id,
- subtitle: "start",
- data
- }
- });
- },
- after: function(action, state) {
- var data = {};
- var duration = Date.now() - action._time;
- data.duration = {
- _custom: {
- type: "duration",
- display: duration + "ms",
- tooltip: "Action duration",
- value: duration
- }
- };
- if (action.payload) {
- data.payload = action.payload;
- }
- data.state = state;
- api.addTimelineEvent({
- layerId: ACTIONS_LAYER_ID,
- event: {
- time: Date.now(),
- title: action.type,
- groupId: action._id,
- subtitle: "end",
- data
- }
- });
- }
- });
- }
- );
- }
- var COLOR_LIME_500 = 8702998;
- var COLOR_DARK = 6710886;
- var COLOR_WHITE = 16777215;
- var TAG_NAMESPACED = {
- label: "namespaced",
- textColor: COLOR_WHITE,
- backgroundColor: COLOR_DARK
- };
- function extractNameFromPath(path) {
- return path && path !== "root" ? path.split("/").slice(-2, -1)[0] : "Root";
- }
- function formatStoreForInspectorTree(module, path) {
- return {
- id: path || "root",
- // all modules end with a `/`, we want the last segment only
- // cart/ -> cart
- // nested/cart/ -> cart
- label: extractNameFromPath(path),
- tags: module.namespaced ? [TAG_NAMESPACED] : [],
- children: Object.keys(module._children).map(
- function(moduleName) {
- return formatStoreForInspectorTree(
- module._children[moduleName],
- path + moduleName + "/"
- );
- }
- )
- };
- }
- function flattenStoreForInspectorTree(result, module, filter, path) {
- if (path.includes(filter)) {
- result.push({
- id: path || "root",
- label: path.endsWith("/") ? path.slice(0, path.length - 1) : path || "Root",
- tags: module.namespaced ? [TAG_NAMESPACED] : []
- });
- }
- Object.keys(module._children).forEach(function(moduleName) {
- flattenStoreForInspectorTree(result, module._children[moduleName], filter, path + moduleName + "/");
- });
- }
- function formatStoreForInspectorState(module, getters, path) {
- getters = path === "root" ? getters : getters[path];
- var gettersKeys = Object.keys(getters);
- var storeState = {
- state: Object.keys(module.state).map(function(key) {
- return {
- key,
- editable: true,
- value: module.state[key]
- };
- })
- };
- if (gettersKeys.length) {
- var tree = transformPathsToObjectTree(getters);
- storeState.getters = Object.keys(tree).map(function(key) {
- return {
- key: key.endsWith("/") ? extractNameFromPath(key) : key,
- editable: false,
- value: canThrow(function() {
- return tree[key];
- })
- };
- });
- }
- return storeState;
- }
- function transformPathsToObjectTree(getters) {
- var result = {};
- Object.keys(getters).forEach(function(key) {
- var path = key.split("/");
- if (path.length > 1) {
- var target = result;
- var leafKey = path.pop();
- path.forEach(function(p) {
- if (!target[p]) {
- target[p] = {
- _custom: {
- value: {},
- display: p,
- tooltip: "Module",
- abstract: true
- }
- };
- }
- target = target[p]._custom.value;
- });
- target[leafKey] = canThrow(function() {
- return getters[key];
- });
- } else {
- result[key] = canThrow(function() {
- return getters[key];
- });
- }
- });
- return result;
- }
- function getStoreModule(moduleMap, path) {
- var names = path.split("/").filter(function(n) {
- return n;
- });
- return names.reduce(
- function(module, moduleName, i) {
- var child = module[moduleName];
- if (!child) {
- throw new Error('Missing module "' + moduleName + '" for path "' + path + '".');
- }
- return i === names.length - 1 ? child : child._children;
- },
- path === "root" ? moduleMap : moduleMap.root._children
- );
- }
- function canThrow(cb) {
- try {
- return cb();
- } catch (e) {
- return e;
- }
- }
- var Module = function Module2(rawModule, runtime) {
- this.runtime = runtime;
- this._children = /* @__PURE__ */ Object.create(null);
- this._rawModule = rawModule;
- var rawState = rawModule.state;
- this.state = (typeof rawState === "function" ? rawState() : rawState) || {};
- };
- var prototypeAccessors$1 = { namespaced: { configurable: true } };
- prototypeAccessors$1.namespaced.get = function() {
- return !!this._rawModule.namespaced;
- };
- Module.prototype.addChild = function addChild(key, module) {
- this._children[key] = module;
- };
- Module.prototype.removeChild = function removeChild(key) {
- delete this._children[key];
- };
- Module.prototype.getChild = function getChild(key) {
- return this._children[key];
- };
- Module.prototype.hasChild = function hasChild(key) {
- return key in this._children;
- };
- Module.prototype.update = function update(rawModule) {
- this._rawModule.namespaced = rawModule.namespaced;
- if (rawModule.actions) {
- this._rawModule.actions = rawModule.actions;
- }
- if (rawModule.mutations) {
- this._rawModule.mutations = rawModule.mutations;
- }
- if (rawModule.getters) {
- this._rawModule.getters = rawModule.getters;
- }
- };
- Module.prototype.forEachChild = function forEachChild(fn) {
- forEachValue(this._children, fn);
- };
- Module.prototype.forEachGetter = function forEachGetter(fn) {
- if (this._rawModule.getters) {
- forEachValue(this._rawModule.getters, fn);
- }
- };
- Module.prototype.forEachAction = function forEachAction(fn) {
- if (this._rawModule.actions) {
- forEachValue(this._rawModule.actions, fn);
- }
- };
- Module.prototype.forEachMutation = function forEachMutation(fn) {
- if (this._rawModule.mutations) {
- forEachValue(this._rawModule.mutations, fn);
- }
- };
- Object.defineProperties(Module.prototype, prototypeAccessors$1);
- var ModuleCollection = function ModuleCollection2(rawRootModule) {
- this.register([], rawRootModule, false);
- };
- ModuleCollection.prototype.get = function get(path) {
- return path.reduce(function(module, key) {
- return module.getChild(key);
- }, this.root);
- };
- ModuleCollection.prototype.getNamespace = function getNamespace(path) {
- var module = this.root;
- return path.reduce(function(namespace, key) {
- module = module.getChild(key);
- return namespace + (module.namespaced ? key + "/" : "");
- }, "");
- };
- ModuleCollection.prototype.update = function update$1(rawRootModule) {
- update2([], this.root, rawRootModule);
- };
- ModuleCollection.prototype.register = function register(path, rawModule, runtime) {
- var this$1$1 = this;
- if (runtime === void 0)
- runtime = true;
- {
- assertRawModule(path, rawModule);
- }
- var newModule = new Module(rawModule, runtime);
- if (path.length === 0) {
- this.root = newModule;
- } else {
- var parent = this.get(path.slice(0, -1));
- parent.addChild(path[path.length - 1], newModule);
- }
- if (rawModule.modules) {
- forEachValue(rawModule.modules, function(rawChildModule, key) {
- this$1$1.register(path.concat(key), rawChildModule, runtime);
- });
- }
- };
- ModuleCollection.prototype.unregister = function unregister(path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- var child = parent.getChild(key);
- if (!child) {
- {
- console.warn(
- "[vuex] trying to unregister module '" + key + "', which is not registered"
- );
- }
- return;
- }
- if (!child.runtime) {
- return;
- }
- parent.removeChild(key);
- };
- ModuleCollection.prototype.isRegistered = function isRegistered(path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- if (parent) {
- return parent.hasChild(key);
- }
- return false;
- };
- function update2(path, targetModule, newModule) {
- {
- assertRawModule(path, newModule);
- }
- targetModule.update(newModule);
- if (newModule.modules) {
- for (var key in newModule.modules) {
- if (!targetModule.getChild(key)) {
- {
- console.warn(
- "[vuex] trying to add a new module '" + key + "' on hot reloading, manual reload is needed"
- );
- }
- return;
- }
- update2(
- path.concat(key),
- targetModule.getChild(key),
- newModule.modules[key]
- );
- }
- }
- }
- var functionAssert = {
- assert: function(value) {
- return typeof value === "function";
- },
- expected: "function"
- };
- var objectAssert = {
- assert: function(value) {
- return typeof value === "function" || typeof value === "object" && typeof value.handler === "function";
- },
- expected: 'function or object with "handler" function'
- };
- var assertTypes = {
- getters: functionAssert,
- mutations: functionAssert,
- actions: objectAssert
- };
- function assertRawModule(path, rawModule) {
- Object.keys(assertTypes).forEach(function(key) {
- if (!rawModule[key]) {
- return;
- }
- var assertOptions = assertTypes[key];
- forEachValue(rawModule[key], function(value, type) {
- assert(
- assertOptions.assert(value),
- makeAssertionMessage(path, key, type, value, assertOptions.expected)
- );
- });
- });
- }
- function makeAssertionMessage(path, key, type, value, expected) {
- var buf = key + " should be " + expected + ' but "' + key + "." + type + '"';
- if (path.length > 0) {
- buf += ' in module "' + path.join(".") + '"';
- }
- buf += " is " + JSON.stringify(value) + ".";
- return buf;
- }
- function createStore(options) {
- return new Store$1(options);
- }
- var Store$1 = function Store2(options) {
- var this$1$1 = this;
- if (options === void 0)
- options = {};
- {
- assert(typeof Promise !== "undefined", "vuex requires a Promise polyfill in this browser.");
- assert(this instanceof Store2, "store must be called with the new operator.");
- }
- var plugins = options.plugins;
- if (plugins === void 0)
- plugins = [];
- var strict = options.strict;
- if (strict === void 0)
- strict = false;
- var devtools = options.devtools;
- this._committing = false;
- this._actions = /* @__PURE__ */ Object.create(null);
- this._actionSubscribers = [];
- this._mutations = /* @__PURE__ */ Object.create(null);
- this._wrappedGetters = /* @__PURE__ */ Object.create(null);
- this._modules = new ModuleCollection(options);
- this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
- this._subscribers = [];
- this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
- this._scope = null;
- this._devtools = devtools;
- var store = this;
- var ref = this;
- var dispatch2 = ref.dispatch;
- var commit2 = ref.commit;
- this.dispatch = function boundDispatch(type, payload) {
- return dispatch2.call(store, type, payload);
- };
- this.commit = function boundCommit(type, payload, options2) {
- return commit2.call(store, type, payload, options2);
- };
- this.strict = strict;
- var state = this._modules.root.state;
- installModule(this, state, [], this._modules.root);
- resetStoreState(this, state);
- plugins.forEach(function(plugin) {
- return plugin(this$1$1);
- });
- };
- var prototypeAccessors = { state: { configurable: true } };
- Store$1.prototype.install = function install(app, injectKey) {
- app.provide(injectKey || storeKey, this);
- app.config.globalProperties.$store = this;
- var useDevtools = this._devtools !== void 0 ? this._devtools : true;
- if (useDevtools) {
- addDevtools(app, this);
- }
- };
- prototypeAccessors.state.get = function() {
- return this._state.data;
- };
- prototypeAccessors.state.set = function(v) {
- {
- assert(false, "use store.replaceState() to explicit replace store state.");
- }
- };
- Store$1.prototype.commit = function commit(_type, _payload, _options) {
- var this$1$1 = this;
- var ref = unifyObjectStyle(_type, _payload, _options);
- var type = ref.type;
- var payload = ref.payload;
- var options = ref.options;
- var mutation = { type, payload };
- var entry = this._mutations[type];
- if (!entry) {
- {
- console.error("[vuex] unknown mutation type: " + type);
- }
- return;
- }
- this._withCommit(function() {
- entry.forEach(function commitIterator(handler) {
- handler(payload);
- });
- });
- this._subscribers.slice().forEach(function(sub) {
- return sub(mutation, this$1$1.state);
- });
- if (options && options.silent) {
- console.warn(
- "[vuex] mutation type: " + type + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
- );
- }
- };
- Store$1.prototype.dispatch = function dispatch(_type, _payload) {
- var this$1$1 = this;
- var ref = unifyObjectStyle(_type, _payload);
- var type = ref.type;
- var payload = ref.payload;
- var action = { type, payload };
- var entry = this._actions[type];
- if (!entry) {
- {
- console.error("[vuex] unknown action type: " + type);
- }
- return;
- }
- try {
- this._actionSubscribers.slice().filter(function(sub) {
- return sub.before;
- }).forEach(function(sub) {
- return sub.before(action, this$1$1.state);
- });
- } catch (e) {
- {
- console.warn("[vuex] error in before action subscribers: ");
- console.error(e);
- }
- }
- var result = entry.length > 1 ? Promise.all(entry.map(function(handler) {
- return handler(payload);
- })) : entry[0](payload);
- return new Promise(function(resolve, reject) {
- result.then(function(res) {
- try {
- this$1$1._actionSubscribers.filter(function(sub) {
- return sub.after;
- }).forEach(function(sub) {
- return sub.after(action, this$1$1.state);
- });
- } catch (e) {
- {
- console.warn("[vuex] error in after action subscribers: ");
- console.error(e);
- }
- }
- resolve(res);
- }, function(error) {
- try {
- this$1$1._actionSubscribers.filter(function(sub) {
- return sub.error;
- }).forEach(function(sub) {
- return sub.error(action, this$1$1.state, error);
- });
- } catch (e) {
- {
- console.warn("[vuex] error in error action subscribers: ");
- console.error(e);
- }
- }
- reject(error);
- });
- });
- };
- Store$1.prototype.subscribe = function subscribe(fn, options) {
- return genericSubscribe(fn, this._subscribers, options);
- };
- Store$1.prototype.subscribeAction = function subscribeAction(fn, options) {
- var subs = typeof fn === "function" ? { before: fn } : fn;
- return genericSubscribe(subs, this._actionSubscribers, options);
- };
- Store$1.prototype.watch = function watch$1(getter, cb, options) {
- var this$1$1 = this;
- {
- assert(typeof getter === "function", "store.watch only accepts a function.");
- }
- return vue.watch(function() {
- return getter(this$1$1.state, this$1$1.getters);
- }, cb, Object.assign({}, options));
- };
- Store$1.prototype.replaceState = function replaceState(state) {
- var this$1$1 = this;
- this._withCommit(function() {
- this$1$1._state.data = state;
- });
- };
- Store$1.prototype.registerModule = function registerModule(path, rawModule, options) {
- if (options === void 0)
- options = {};
- if (typeof path === "string") {
- path = [path];
- }
- {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- assert(path.length > 0, "cannot register the root module by using registerModule.");
- }
- this._modules.register(path, rawModule);
- installModule(this, this.state, path, this._modules.get(path), options.preserveState);
- resetStoreState(this, this.state);
- };
- Store$1.prototype.unregisterModule = function unregisterModule(path) {
- var this$1$1 = this;
- if (typeof path === "string") {
- path = [path];
- }
- {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- this._modules.unregister(path);
- this._withCommit(function() {
- var parentState = getNestedState(this$1$1.state, path.slice(0, -1));
- delete parentState[path[path.length - 1]];
- });
- resetStore(this);
- };
- Store$1.prototype.hasModule = function hasModule(path) {
- if (typeof path === "string") {
- path = [path];
- }
- {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- return this._modules.isRegistered(path);
- };
- Store$1.prototype.hotUpdate = function hotUpdate(newOptions) {
- this._modules.update(newOptions);
- resetStore(this, true);
- };
- Store$1.prototype._withCommit = function _withCommit(fn) {
- var committing = this._committing;
- this._committing = true;
- fn();
- this._committing = committing;
- };
- Object.defineProperties(Store$1.prototype, prototypeAccessors);
- var mapState = normalizeNamespace(function(namespace, states) {
- var res = {};
- if (!isValidMap(states)) {
- console.error("[vuex] mapState: mapper parameter must be either an Array or an Object");
- }
- normalizeMap(states).forEach(function(ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedState() {
- var state = this.$store.state;
- var getters = this.$store.getters;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, "mapState", namespace);
- if (!module) {
- return;
- }
- state = module.context.state;
- getters = module.context.getters;
- }
- return typeof val === "function" ? val.call(this, state, getters) : state[val];
- };
- res[key].vuex = true;
- });
- return res;
- });
- function normalizeMap(map) {
- if (!isValidMap(map)) {
- return [];
- }
- return Array.isArray(map) ? map.map(function(key) {
- return { key, val: key };
- }) : Object.keys(map).map(function(key) {
- return { key, val: map[key] };
- });
- }
- function isValidMap(map) {
- return Array.isArray(map) || isObject$1(map);
- }
- function normalizeNamespace(fn) {
- return function(namespace, map) {
- if (typeof namespace !== "string") {
- map = namespace;
- namespace = "";
- } else if (namespace.charAt(namespace.length - 1) !== "/") {
- namespace += "/";
- }
- return fn(namespace, map);
- };
- }
- function getModuleByNamespace(store, helper, namespace) {
- var module = store._modulesNamespaceMap[namespace];
- if (!module) {
- console.error("[vuex] module namespace not found in " + helper + "(): " + namespace);
- }
- return module;
- }
- const _imports_0 = "/static/logo.png";
- const _imports_1 = "/static/tite.png";
- const _imports_2$2 = "/static/choice1.png";
- const _imports_3$1 = "/static/electricity.png";
- const _imports_4$3 = "/static/choice2.png";
- const _imports_5$2 = "/static/power1.png";
- const _imports_6$1 = "/static/choice3.png";
- const _imports_7$1 = "/static/direct1.png";
- const _imports_8$1 = "/static/choice4.png";
- const _imports_9$1 = "/static/DCpower1.png";
- const _imports_10$1 = "/static/system.png";
- const _imports_11$1 = "/static/!.png";
- const _sfc_main$c = {
- data() {
- return {
- title: "",
- uidatas: "",
- formatTimeid: "",
- messageText: ""
- };
- },
- created() {
- },
- mounted() {
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status", "selectorid", "selectorindex"]),
- ...mapState({
- uidatasdata: (state) => state.uidatasdata
- })
- },
- onLoad() {
- },
- beforeUnmount() {
- clearInterval(this.uidatas);
- },
- methods: {
- onclick(e) {
- this.pattern(e);
- },
- pattern(unm) {
- let data = {
- id: "c32e6a80-9159-4f6e-9acc-8525cf177808",
- issaveinitvalue: true,
- value: unm + ""
- // 直流供电=1,直流补电=4,交流供电=2,交流补电=3
- };
- control(data).then((data2) => {
- formatAppLog("log", "at pages/index/index.vue:115", data2);
- if (data2.status == "ok") {
- if (unm == 3) {
- uni.redirectTo({
- url: "/pages/home/index"
- });
- } else if (unm == 2) {
- uni.redirectTo({
- url: "/pages/electricity/index"
- });
- } else if (unm == 4) {
- uni.redirectTo({
- url: "/pages/supply/supply"
- });
- } else if (unm == 1) {
- uni.redirectTo({
- url: "/pages/supplyss/supplyss"
- });
- }
- } else {
- this.messageText = "选择模式失败请重新选择";
- this.$refs.message.open();
- return;
- }
- });
- },
- system() {
- uni.redirectTo({
- url: "/pages/faultlist/index"
- });
- }
- }
- };
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
- const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "tap" }, [
- vue.createElementVNode("view", { class: "tap_1" }, " AC "),
- vue.createElementVNode("view", { class: "tap_2" }, " DC "),
- vue.createElementVNode("view", { class: "tap_3" }, " System ")
- ]),
- vue.createElementVNode("view", { class: "power" }, [
- vue.createElementVNode("view", { class: "power_1" }, [
- _ctx.selectorid != 3 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_2$2,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_3$1,
- mode: "",
- onClick: _cache[0] || (_cache[0] = ($event) => $options.onclick(3))
- }))
- ]),
- vue.createElementVNode("view", { class: "power_1" }, [
- _ctx.selectorid != 2 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_4$3,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_5$2,
- mode: "",
- onClick: _cache[1] || (_cache[1] = ($event) => $options.onclick(2))
- }))
- ]),
- vue.createElementVNode("view", { class: "power_1" }, [
- _ctx.selectorid != 4 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_6$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_7$1,
- mode: "",
- onClick: _cache[2] || (_cache[2] = ($event) => $options.onclick(4))
- }))
- ]),
- vue.createElementVNode("view", { class: "power_1" }, [
- _ctx.selectorid != 1 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_8$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_9$1,
- mode: "",
- onClick: _cache[3] || (_cache[3] = ($event) => $options.onclick(1))
- }))
- ]),
- vue.createElementVNode("view", {
- class: "power_5",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.system && $options.system(...args))
- }, [
- vue.createElementVNode("image", {
- src: _imports_10$1,
- mode: ""
- })
- ])
- ]),
- _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "power_6"
- }, [
- vue.createElementVNode("image", {
- src: _imports_11$1,
- mode: ""
- }),
- vue.createTextVNode("若想重新选择模式,请返回之前模式停止以后再重新选择! ")
- ])) : vue.createCommentVNode("v-if", true),
- vue.createVNode(
- _component_uni_popup,
- {
- ref: "message",
- type: "message"
- },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_message, {
- type: "error",
- message: $data.messageText,
- duration: 2500
- }, null, 8, ["message"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- )
- ]);
- }
- 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"]]);
- const isObject = (val) => val !== null && typeof val === "object";
- const defaultDelimiters = ["{", "}"];
- class BaseFormatter {
- constructor() {
- this._caches = /* @__PURE__ */ Object.create(null);
- }
- interpolate(message, values, delimiters = defaultDelimiters) {
- if (!values) {
- return [message];
- }
- let tokens = this._caches[message];
- if (!tokens) {
- tokens = parse(message, delimiters);
- this._caches[message] = tokens;
- }
- return compile(tokens, values);
- }
- }
- const RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
- const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
- function parse(format, [startDelimiter, endDelimiter]) {
- const tokens = [];
- let position = 0;
- let text = "";
- while (position < format.length) {
- let char = format[position++];
- if (char === startDelimiter) {
- if (text) {
- tokens.push({ type: "text", value: text });
- }
- text = "";
- let sub = "";
- char = format[position++];
- while (char !== void 0 && char !== endDelimiter) {
- sub += char;
- char = format[position++];
- }
- const isClosed = char === endDelimiter;
- const type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown";
- tokens.push({ value: sub, type });
- } else {
- text += char;
- }
- }
- text && tokens.push({ type: "text", value: text });
- return tokens;
- }
- function compile(tokens, values) {
- const compiled = [];
- let index = 0;
- const mode = Array.isArray(values) ? "list" : isObject(values) ? "named" : "unknown";
- if (mode === "unknown") {
- return compiled;
- }
- while (index < tokens.length) {
- const token = tokens[index];
- switch (token.type) {
- case "text":
- compiled.push(token.value);
- break;
- case "list":
- compiled.push(values[parseInt(token.value, 10)]);
- break;
- case "named":
- if (mode === "named") {
- compiled.push(values[token.value]);
- } else {
- {
- console.warn(`Type of token '${token.type}' and format of value '${mode}' don't match!`);
- }
- }
- break;
- case "unknown":
- {
- console.warn(`Detect 'unknown' type of token!`);
- }
- break;
- }
- index++;
- }
- return compiled;
- }
- const LOCALE_ZH_HANS = "zh-Hans";
- const LOCALE_ZH_HANT = "zh-Hant";
- const LOCALE_EN = "en";
- const LOCALE_FR = "fr";
- const LOCALE_ES = "es";
- const hasOwnProperty = Object.prototype.hasOwnProperty;
- const hasOwn = (val, key) => hasOwnProperty.call(val, key);
- const defaultFormatter = new BaseFormatter();
- function include(str, parts) {
- return !!parts.find((part) => str.indexOf(part) !== -1);
- }
- function startsWith(str, parts) {
- return parts.find((part) => str.indexOf(part) === 0);
- }
- function normalizeLocale(locale, messages2) {
- if (!locale) {
- return;
- }
- locale = locale.trim().replace(/_/g, "-");
- if (messages2 && messages2[locale]) {
- return locale;
- }
- locale = locale.toLowerCase();
- if (locale === "chinese") {
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf("zh") === 0) {
- if (locale.indexOf("-hans") > -1) {
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf("-hant") > -1) {
- return LOCALE_ZH_HANT;
- }
- if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) {
- return LOCALE_ZH_HANT;
- }
- return LOCALE_ZH_HANS;
- }
- let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
- if (messages2 && Object.keys(messages2).length > 0) {
- locales = Object.keys(messages2);
- }
- const lang = startsWith(locale, locales);
- if (lang) {
- return lang;
- }
- }
- class I18n {
- constructor({ locale, fallbackLocale, messages: messages2, watcher, formater: formater2 }) {
- this.locale = LOCALE_EN;
- this.fallbackLocale = LOCALE_EN;
- this.message = {};
- this.messages = {};
- this.watchers = [];
- if (fallbackLocale) {
- this.fallbackLocale = fallbackLocale;
- }
- this.formater = formater2 || defaultFormatter;
- this.messages = messages2 || {};
- this.setLocale(locale || LOCALE_EN);
- if (watcher) {
- this.watchLocale(watcher);
- }
- }
- setLocale(locale) {
- const oldLocale = this.locale;
- this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
- if (!this.messages[this.locale]) {
- this.messages[this.locale] = {};
- }
- this.message = this.messages[this.locale];
- if (oldLocale !== this.locale) {
- this.watchers.forEach((watcher) => {
- watcher(this.locale, oldLocale);
- });
- }
- }
- getLocale() {
- return this.locale;
- }
- watchLocale(fn) {
- const index = this.watchers.push(fn) - 1;
- return () => {
- this.watchers.splice(index, 1);
- };
- }
- add(locale, message, override = true) {
- const curMessages = this.messages[locale];
- if (curMessages) {
- if (override) {
- Object.assign(curMessages, message);
- } else {
- Object.keys(message).forEach((key) => {
- if (!hasOwn(curMessages, key)) {
- curMessages[key] = message[key];
- }
- });
- }
- } else {
- this.messages[locale] = message;
- }
- }
- f(message, values, delimiters) {
- return this.formater.interpolate(message, values, delimiters).join("");
- }
- t(key, locale, values) {
- let message = this.message;
- if (typeof locale === "string") {
- locale = normalizeLocale(locale, this.messages);
- locale && (message = this.messages[locale]);
- } else {
- values = locale;
- }
- if (!hasOwn(message, key)) {
- console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`);
- return key;
- }
- return this.formater.interpolate(message[key], values).join("");
- }
- }
- function watchAppLocale(appVm, i18n) {
- if (appVm.$watchLocale) {
- appVm.$watchLocale((newLocale) => {
- i18n.setLocale(newLocale);
- });
- } else {
- appVm.$watch(() => appVm.$locale, (newLocale) => {
- i18n.setLocale(newLocale);
- });
- }
- }
- function getDefaultLocale() {
- if (typeof uni !== "undefined" && uni.getLocale) {
- return uni.getLocale();
- }
- if (typeof global !== "undefined" && global.getLocale) {
- return global.getLocale();
- }
- return LOCALE_EN;
- }
- function initVueI18n(locale, messages2 = {}, fallbackLocale, watcher) {
- if (typeof locale !== "string") {
- const options = [
- messages2,
- locale
- ];
- locale = options[0];
- messages2 = options[1];
- }
- if (typeof locale !== "string") {
- locale = getDefaultLocale();
- }
- if (typeof fallbackLocale !== "string") {
- fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN;
- }
- const i18n = new I18n({
- locale,
- fallbackLocale,
- messages: messages2,
- watcher
- });
- let t2 = (key, values) => {
- if (typeof getApp !== "function") {
- t2 = function(key2, values2) {
- return i18n.t(key2, values2);
- };
- } else {
- let isWatchedAppLocale = false;
- t2 = function(key2, values2) {
- const appVm = getApp().$vm;
- if (appVm) {
- appVm.$locale;
- if (!isWatchedAppLocale) {
- isWatchedAppLocale = true;
- watchAppLocale(appVm, i18n);
- }
- }
- return i18n.t(key2, values2);
- };
- }
- return t2(key, values);
- };
- return {
- i18n,
- f(message, values, delimiters) {
- return i18n.f(message, values, delimiters);
- },
- t(key, values) {
- return t2(key, values);
- },
- add(locale2, message, override = true) {
- return i18n.add(locale2, message, override);
- },
- watch(fn) {
- return i18n.watchLocale(fn);
- },
- getLocale() {
- return i18n.getLocale();
- },
- setLocale(newLocale) {
- return i18n.setLocale(newLocale);
- }
- };
- }
- const en$1 = {
- "uni-popup.cancel": "cancel",
- "uni-popup.ok": "ok",
- "uni-popup.placeholder": "pleace enter",
- "uni-popup.title": "Hint",
- "uni-popup.shareTitle": "Share to"
- };
- const zhHans$1 = {
- "uni-popup.cancel": "取消",
- "uni-popup.ok": "确定",
- "uni-popup.placeholder": "请输入",
- "uni-popup.title": "提示",
- "uni-popup.shareTitle": "分享到"
- };
- const zhHant$1 = {
- "uni-popup.cancel": "取消",
- "uni-popup.ok": "確定",
- "uni-popup.placeholder": "請輸入",
- "uni-popup.title": "提示",
- "uni-popup.shareTitle": "分享到"
- };
- const messages$1 = {
- en: en$1,
- "zh-Hans": zhHans$1,
- "zh-Hant": zhHant$1
- };
- const {
- t: t$1
- } = initVueI18n(messages$1);
- const _sfc_main$b = {
- name: "uniPopupDialog",
- mixins: [popup],
- emits: ["confirm", "close", "update:modelValue", "input"],
- props: {
- inputType: {
- type: String,
- default: "text"
- },
- showClose: {
- type: Boolean,
- default: true
- },
- modelValue: {
- type: [Number, String],
- default: ""
- },
- placeholder: {
- type: [String, Number],
- default: ""
- },
- type: {
- type: String,
- default: "error"
- },
- mode: {
- type: String,
- default: "base"
- },
- title: {
- type: String,
- default: ""
- },
- content: {
- type: String,
- default: ""
- },
- beforeClose: {
- type: Boolean,
- default: false
- },
- cancelText: {
- type: String,
- default: ""
- },
- confirmText: {
- type: String,
- default: ""
- },
- maxlength: {
- type: Number,
- default: -1
- },
- focus: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- dialogType: "error",
- val: ""
- };
- },
- computed: {
- okText() {
- return this.confirmText || t$1("uni-popup.ok");
- },
- closeText() {
- return this.cancelText || t$1("uni-popup.cancel");
- },
- placeholderText() {
- return this.placeholder || t$1("uni-popup.placeholder");
- },
- titleText() {
- return this.title || t$1("uni-popup.title");
- }
- },
- watch: {
- type(val) {
- this.dialogType = val;
- },
- mode(val) {
- if (val === "input") {
- this.dialogType = "info";
- }
- },
- value(val) {
- if (this.maxlength != -1 && this.mode === "input") {
- this.val = val.slice(0, this.maxlength);
- } else {
- this.val = val;
- }
- },
- val(val) {
- this.$emit("update:modelValue", val);
- }
- },
- created() {
- this.popup.disableMask();
- if (this.mode === "input") {
- this.dialogType = "info";
- this.val = this.value;
- this.val = this.modelValue;
- } else {
- this.dialogType = this.type;
- }
- },
- methods: {
- /**
- * 点击确认按钮
- */
- onOk() {
- if (this.mode === "input") {
- this.$emit("confirm", this.val);
- } else {
- this.$emit("confirm");
- }
- if (this.beforeClose)
- return;
- this.popup.close();
- },
- /**
- * 点击取消按钮
- */
- closeDialog() {
- this.$emit("close");
- if (this.beforeClose)
- return;
- this.popup.close();
- },
- close() {
- this.popup.close();
- }
- }
- };
- function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-dialog" }, [
- vue.createElementVNode("view", { class: "uni-dialog-title" }, [
- vue.createElementVNode(
- "text",
- {
- class: vue.normalizeClass(["uni-dialog-title-text", ["uni-popup__" + $data.dialogType]])
- },
- vue.toDisplayString($options.titleText),
- 3
- /* TEXT, CLASS */
- )
- ]),
- $props.mode === "base" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "uni-dialog-content"
- }, [
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
- vue.createElementVNode(
- "text",
- { class: "uni-dialog-content-text" },
- vue.toDisplayString($props.content),
- 1
- /* TEXT */
- )
- ], true)
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "uni-dialog-content"
- }, [
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
- vue.withDirectives(vue.createElementVNode("input", {
- class: "uni-dialog-input",
- maxlength: $props.maxlength,
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.val = $event),
- type: $props.inputType,
- placeholder: $options.placeholderText,
- focus: $props.focus
- }, null, 8, ["maxlength", "type", "placeholder", "focus"]), [
- [vue.vModelDynamic, $data.val]
- ])
- ], true)
- ])),
- vue.createElementVNode("view", { class: "uni-dialog-button-group" }, [
- $props.showClose ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "uni-dialog-button",
- onClick: _cache[1] || (_cache[1] = (...args) => $options.closeDialog && $options.closeDialog(...args))
- }, [
- vue.createElementVNode(
- "text",
- { class: "uni-dialog-button-text" },
- vue.toDisplayString($options.closeText),
- 1
- /* TEXT */
- )
- ])) : vue.createCommentVNode("v-if", true),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass(["uni-dialog-button", $props.showClose ? "uni-border-left" : ""]),
- onClick: _cache[2] || (_cache[2] = (...args) => $options.onOk && $options.onOk(...args))
- },
- [
- vue.createElementVNode(
- "text",
- { class: "uni-dialog-button-text uni-button-color" },
- vue.toDisplayString($options.okText),
- 1
- /* TEXT */
- )
- ],
- 2
- /* CLASS */
- )
- ])
- ]);
- }
- 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"]]);
- class Gauge {
- constructor({
- canvasId,
- startAngle = 2.8 / 3 * Math.PI,
- // 135
- endAngle = 0.13 / 2 * Math.PI,
- // 45
- width = 180,
- min = 0,
- max = 100,
- value = 0,
- unit = "%",
- showTick = false,
- valueColor = "#555",
- progressColor = "#f58220",
- trackColor = "#F1F1F1",
- lineWidth = 10
- }) {
- this.ctx = uni.createCanvasContext(canvasId);
- this.startAngle = startAngle;
- this.endAngle = endAngle;
- this.width = width;
- this.min = min;
- this.max = max;
- this.value = value;
- this.unit = unit;
- this.showTick = showTick;
- this.valueColor = valueColor;
- this.progressColor = progressColor;
- this.trackColor = trackColor;
- this.lineWidth = lineWidth;
- this.radius = this.width / 2;
- this.process = min || -1;
- this.tickLength = this.max - this.min;
- this.trackRadius = this.radius - this.lineWidth / 2;
- this.tickRad = (2 * Math.PI - this.startAngle + this.endAngle) / this.tickLength;
- this.start();
- }
- draw() {
- this.ctx.translate(this.radius, this.radius);
- this.drawTrack();
- this.drawValueText();
- this.drawProgress();
- if (this.showTick) {
- this.drawTick();
- this.drawTickText();
- }
- this.ctx.draw();
- }
- // 轨迹圆环
- drawTrack() {
- this.ctx.save();
- this.ctx.lineWidth = this.lineWidth;
- this.ctx.strokeStyle = this.trackColor;
- this.ctx.arc(0, 0, this.trackRadius, this.startAngle, this.endAngle);
- this.ctx.stroke();
- this.ctx.restore();
- }
- // 当前值显示
- drawValueText() {
- this.ctx.save();
- this.ctx.fillStyle = this.valueColor;
- this.ctx.font = "34px serif";
- this.ctx.textAlign = "center";
- this.ctx.textBaseline = "middle";
- this.ctx.fillText(`${this.value}${this.unit}`, 0, 0);
- this.ctx.restore();
- }
- // 进度圆环
- drawProgress() {
- this.ctx.save();
- const valueRad = this.getValueRad();
- this.ctx.beginPath();
- this.ctx.lineWidth = this.lineWidth;
- this.ctx.strokeStyle = typeof this.progressColor === "string" ? this.progressColor : this.getGradient(this.progressColor);
- this.ctx.lineJoin = "round";
- this.ctx.arc(0, 0, this.trackRadius, this.startAngle, valueRad);
- this.ctx.stroke();
- this.ctx.restore();
- }
- // 刻度线
- drawTick() {
- let deg = this.startAngle;
- for (let i = this.min; i <= this.max; i++) {
- this.ctx.save();
- this.ctx.lineWidth = 1;
- this.ctx.strokeStyle = "#999";
- this.ctx.beginPath();
- let x0 = (this.radius - this.lineWidth - 2) * Math.cos(deg);
- let y0 = (this.radius - this.lineWidth - 2) * Math.sin(deg);
- var x1 = (this.radius - this.lineWidth - 8) * Math.cos(deg);
- var y1 = (this.radius - this.lineWidth - 8) * Math.sin(deg);
- this.ctx.moveTo(x0, y0);
- this.ctx.lineTo(x1, y1);
- deg += this.tickRad;
- this.ctx.stroke();
- this.ctx.restore();
- }
- }
- // 刻度值
- drawTickText() {
- let deg = this.startAngle;
- for (let i = this.min; i <= this.max; i++) {
- let x = (this.radius - this.lineWidth - 20) * Math.cos(deg);
- let y = (this.radius - this.lineWidth - 20) * Math.sin(deg);
- deg += this.tickRad;
- this.ctx.save();
- this.ctx.font = "12px serif";
- this.ctx.fillStyle = "#999";
- this.ctx.textAlign = "center";
- this.ctx.textBaseline = "middle";
- this.ctx.fillText(i, x, y);
- this.ctx.restore();
- }
- }
- // 当前值的弧度
- getValueRad() {
- if (this.value > this.max) {
- return (this.max - this.min) * this.tickRad + this.startAngle;
- }
- return (this.process - this.min) * this.tickRad + this.startAngle;
- }
- start() {
- let update = () => {
- this.process = this.process + (this.max - this.min) / 100;
- if (this.process > this.value) {
- uni.cancelAnimationFrame(update);
- } else {
- this.draw();
- uni.requestAnimationFrame(update);
- }
- };
- uni.requestAnimationFrame(update);
- }
- // 渐变
- getGradient(colorList) {
- let grd = this.ctx.createLinearGradient(0, 0, this.trackRadius, 0);
- colorList.forEach((color, index) => {
- grd.addColorStop(index / (colorList.length - 1), color);
- });
- return grd;
- }
- }
- uni.requestAnimationFrame = function(callback) {
- var lastTime = 0;
- var currTime = (/* @__PURE__ */ new Date()).getTime();
- var timeToCall = Math.max(0, 16 - (currTime - lastTime));
- var id = setTimeout(function() {
- callback(currTime + timeToCall);
- }, timeToCall);
- lastTime = currTime + timeToCall;
- return id;
- };
- uni.cancelAnimationFrame = function(id) {
- clearTimeout(id);
- };
- (function() {
- var vendors = ["webkit", "moz", "ms", "o"];
- for (var x = 0; x < vendors.length && !uni.requestAnimationFrame; ++x) {
- uni.requestAnimationFrame = uni[vendors[x] + "RequestAnimationFrame"];
- uni.cancelAnimationFrame = uni[vendors[x] + "CancelAnimationFrame"] || uni[vendors[x] + "CancelRequestAnimationFrame"];
- }
- if (!uni.requestAnimationFrame)
- uni.requestAnimationFrame = function(callback) {
- return setTimeout(callback, 16);
- };
- if (!uni.cancelAnimationFrame)
- uni.cancelAnimationFrame = function(id) {
- clearTimeout(id);
- };
- })();
- const _sfc_main$a = {
- name: "gauge",
- data() {
- return {};
- },
- computed: {
- ...mapState({
- uidatasdata: (state) => state.uidatasdata
- })
- },
- mounted() {
- let SOC = "";
- if ((this.$store.state.uidatasdata.SOC * 1).toFixed(0)) {
- SOC = (this.$store.state.uidatasdata.SOC * 1).toFixed(0);
- } else {
- SOC = 10;
- }
- new Gauge({
- canvasId: "canvas2",
- value: SOC,
- lineWidth: 20,
- progressColor: ["#B0D0FF", "#5B8FF9"],
- valueColor: "blue"
- });
- }
- };
- function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.openBlock(), vue.createElementBlock("view", { class: "gauge-container" }, [
- vue.createElementVNode("canvas", {
- class: "canvas",
- "canvas-id": "canvas2"
- })
- ]);
- }
- 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"]]);
- const _imports_2$1 = "/static/dian1.png";
- const _imports_3 = "/static/dian2.png";
- const _imports_4$2 = "/static/che.png";
- const _imports_5$1 = "/static/y8.png";
- const _imports_6 = "/static/y6.png";
- const _imports_7 = "/static/SOC.png";
- const _imports_8 = "/static/Battery.png";
- const _imports_9 = "/static/setup.png";
- const _imports_10 = "/static/home.png";
- const _imports_11 = "/static/home1.png";
- const _sfc_main$9 = {
- components: {
- JerryGauge
- },
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatas: "",
- formatTimeid: "",
- faultsdata: []
- };
- },
- onLoad() {
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status"]),
- ...mapState({
- uidatasdata: (state) => state.uidatasdata
- })
- },
- mounted() {
- this.onfaultsdata();
- },
- beforeUnmount() {
- if (this.scrollInterval) {
- clearInterval(this.scrollInterval);
- }
- },
- watch: {
- uidatasdata: {
- handler(newVal, oldVal) {
- this.handleDataChange(newVal);
- },
- deep: true
- // 监听深层次的变化
- }
- },
- methods: {
- handleDataChange(newData) {
- },
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1e3,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/home/index.vue:616", res);
- if (res.status == "ok") {
- this.faultsdata = res.data.list;
- }
- });
- },
- // 返回首页
- onreturn() {
- uni.redirectTo({
- url: "/pages/index/index"
- });
- },
- // 启动设备弹窗
- dialogToggle() {
- this.modeinput = "base";
- this.successtype = "success";
- this.confirmText = "确认启动";
- this.title = "你确定要开启该设备吗?";
- this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
- this.$refs.alertDialog.open();
- },
- onstopit() {
- this.modeinput = "base";
- this.successtype = "error";
- this.confirmText = "确认停止";
- this.title = "你确定要停止该设备吗?";
- this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
- this.$refs.alertDialog.open();
- },
- onpower() {
- this.modeinput = "input";
- this.title = "功率给定";
- this.confirmText = "确认";
- this.$refs.alertDialog.open();
- },
- // this.uidatasdata.AC_In_380V_63A1_Status==0
- // this.messageText = '需将AC输出端63A1的开关手动断开'
- // this.$refs.message.open()
- // this.uidatasdata.AC_In_380V_63A2_Status==0
- // this.messageText = '需将AC输出端63A2的开关手动断开'
- // this.$refs.message.open()
- // 确定
- dialogConfirm() {
- let uidatasdata = this.$store.state.uidatasdata;
- let data = {};
- if (this.title == "功率给定") {
- data = {
- id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
- issaveinitvalue: false,
- value: this.value
- };
- } else {
- data = {
- id: "c35c4db0-113f-442a-9e26-728489265fdb",
- issaveinitvalue: false,
- value: this.confirmText == "确认启动" ? "1" : "0"
- };
- }
- if (this.confirmText == "确认启动") {
- if (uidatasdata.AC_Out_380V_125A_Status == 0 || uidatasdata.AC_Out_380V_63A_Status == 0 || uidatasdata.AC_Out_220V_16A_Status == 0) {
- this.messageText = "AC补电时AC输出端应全部断开";
- this.$refs.message.open();
- return;
- }
- }
- control(data).then((data2) => {
- formatAppLog("log", "at pages/home/index.vue:687", data2);
- if (data2.status == "ok") {
- if (this.title == "功率给定") {
- plus.navigator.hideSystemNavigation();
- }
- this.$refs.alertDialog.close();
- uni.showToast({
- title: "操作成功",
- icon: "none",
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- } else {
- this.$refs.alertDialog.close();
- uni.showToast({
- title: "操作失败",
- icon: "none",
- // 使用 'none' 图标来表示失败
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- }
- });
- },
- dialogClose() {
- if (this.title == "功率给定") {
- plus.navigator.hideSystemNavigation();
- }
- this.$refs.alertDialog.close();
- },
- ontap(e) {
- formatAppLog("log", "at pages/home/index.vue:717", e);
- this.segmented = e;
- }
- }
- };
- function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
- const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
- const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
- const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter" }, [
- vue.createElementVNode("view", { class: "parameter_left" }, [
- vue.createElementVNode("view", { class: "parameter_left1" }, [
- vue.createVNode(_component_jerry_gauge),
- vue.createElementVNode("view", { class: "parameter_canvas" }, [
- vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
- vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
- ])
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftdian1",
- src: _imports_2$1,
- alt: ""
- }),
- vue.createElementVNode("view", { class: "parameter_lef2" }, [
- vue.createElementVNode("image", {
- src: _imports_3,
- mode: ""
- })
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftche",
- src: _imports_4$2,
- mode: ""
- }),
- vue.createCommentVNode(' <image class="parameter_leftche1" src="../../static/fang.png" mode=""></image> '),
- vue.createCommentVNode(' <image class="parameter_leftche" src="../../static/che.png" mode=""></image> '),
- vue.createCommentVNode(' <image class="parameter_leftche2" src="../../static/che1.png" mode=""></image> '),
- vue.createElementVNode("view", { class: "parameter_leftview" }, "交流补电"),
- vue.createCommentVNode(' <view class="parameter_leftview">交流供电</view> '),
- vue.createCommentVNode(' <view class="parameter_leftview">直流补电</view> '),
- vue.createCommentVNode(' <view class="parameter_leftview">直流供电</view> ')
- ]),
- vue.createElementVNode("view", { class: "parameter_right" }, [
- vue.createElementVNode("view", { class: "parameter_righttop" }, [
- vue.createElementVNode("view", { class: "parameter_1" }, [
- vue.createElementVNode("view", { class: "parameter_2" }, [
- vue.createElementVNode("view", { class: "parameter_3" }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.AC_In_380V_63A1_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 63A1状态 ")
- ]),
- _ctx.uidatasdata.AC_In_380V_63A1_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_3" }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.AC_In_380V_63A2_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 63A2状态 ")
- ]),
- _ctx.uidatasdata.AC_In_380V_63A2_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_SOC" }, [
- vue.createElementVNode("image", {
- src: _imports_7,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
- vue.createElementVNode("view", null, [
- vue.createElementVNode(
- "text",
- { class: "parameter_SOCright2" },
- vue.toDisplayString(_ctx.uidatasdata.SOC),
- 1
- /* TEXT */
- ),
- vue.createTextVNode(),
- vue.createElementVNode("text", null, "%")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_Battery" }, [
- vue.createElementVNode("image", {
- src: _imports_8,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_state" }, [
- vue.createElementVNode("image", {
- src: _imports_9,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_tap" }, [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
- },
- " 交流信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
- },
- " 电池信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
- },
- " 统计信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
- },
- " 液冷信息 ",
- 2
- /* CLASS */
- )
- ]),
- vue.createElementVNode("view", {
- class: "parameter_zheng",
- key: "index"
- }, [
- $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSPortAPhaseVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSPortBPhaseVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSPortCPhaseVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电电量 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSACChargeEnergy) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata["PCSOutputC-phaseCurrent"]) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSTotalOutputPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng10" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- vue.createElementVNode("view", { class: "parameter_zheng3" }, [
- _ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31111",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])
- ])),
- _ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31111",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ])
- ])),
- vue.createElementVNode("view", {
- class: "parameter_zheng31111",
- onClick: _cache[6] || (_cache[6] = (...args) => $options.onpower && $options.onpower(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng34" }, [
- vue.createElementVNode("view", null, " 功率 "),
- vue.createElementVNode("view", null, " 给定 ")
- ])
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_home" }, [
- vue.createElementVNode("view", {
- class: "parameter_home1",
- onClick: _cache[7] || (_cache[7] = (...args) => $options.onreturn && $options.onreturn(...args))
- }, [
- vue.createElementVNode("image", {
- src: _imports_10,
- mode: ""
- }),
- vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
- ]),
- vue.createElementVNode("view", { class: "parameter_home2" }, [
- vue.createElementVNode("image", {
- src: _imports_11,
- mode: ""
- }),
- vue.createElementVNode("swiper", {
- class: "swiper",
- circular: "",
- autoplay: true,
- interval: 2e3,
- duration: 500,
- vertical: true
- }, [
- (vue.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
- vue.createElementVNode(
- "view",
- { class: "parameter_home3" },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- )
- ]);
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ])
- ]),
- vue.createVNode(
- _component_uni_popup,
- { ref: "alertDialog" },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_dialog, {
- mode: $data.modeinput,
- placeholder: "功率给定(0~80kW)",
- modelValue: $data.value,
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.value = $event),
- focus: false,
- type: $data.successtype,
- cancelText: "取消返回",
- confirmText: $data.confirmText,
- beforeClose: true,
- title: $data.title,
- content: $data.content,
- onConfirm: $options.dialogConfirm,
- onClose: $options.dialogClose
- }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- ),
- vue.createVNode(
- _component_uni_popup,
- {
- ref: "message",
- type: "message"
- },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_message, {
- type: "error",
- message: _ctx.messageText,
- duration: 3e3
- }, null, 8, ["message"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- )
- ]);
- }
- 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"]]);
- const _sfc_main$8 = {
- props: {
- visible: Boolean,
- color: {
- type: String,
- default: "#303133"
- },
- placement: {
- type: String,
- default: "top"
- },
- content: {
- type: String,
- default: ""
- },
- show: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- isShow: this.visible,
- title: "Hello",
- arrowLeft: 0,
- query: null,
- style: {},
- arrowStyle: {}
- };
- },
- onLoad() {
- },
- watch: {
- isShow: {
- handler(val) {
- this.$emit("update:visible", val);
- },
- immediate: true
- },
- visible: {
- handler(val) {
- if (val) {
- this.$nextTick(() => {
- this.getPosition();
- });
- }
- this.isShow = val;
- },
- immediate: true
- }
- },
- mounted() {
- this.getPosition();
- },
- methods: {
- close() {
- this.isShow = false;
- },
- fixedWrap() {
- this.isShow = false;
- },
- async handleClick() {
- if (this.isShow) {
- return this.isShow = false;
- }
- await this.getPosition();
- this.isShow = true;
- },
- getPosition() {
- return new Promise((resolve) => {
- uni.createSelectorQuery().in(this).selectAll(".zb_tooltip_content,.zb_tooltip__popper").boundingClientRect(async (data) => {
- let { left, bottom, right, top, width, height } = data[0];
- let obj1 = data[1];
- let objStyle = {};
- let objStyle1 = {};
- switch (this.placement) {
- case "top":
- if (obj1.width > width) {
- objStyle.left = `-${(obj1.width - width) / 2}px`;
- } else {
- objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
- }
- objStyle.bottom = `${height + 8}px`;
- objStyle1.left = obj1.width / 2 - 6 + "px";
- break;
- case "top-start":
- objStyle.left = `0px`;
- objStyle.bottom = `${height + 8}px`;
- break;
- case "top-end":
- objStyle.right = `0px`;
- objStyle.bottom = `${height + 8}px`;
- objStyle1.right = `8px`;
- break;
- case "bottom":
- if (obj1.width > width) {
- objStyle.left = `-${(obj1.width - width) / 2}px`;
- } else {
- objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
- }
- objStyle.top = `${height + 8}px`;
- objStyle1.left = obj1.width / 2 - 6 + "px";
- break;
- case "bottom-start":
- objStyle.left = `0px`;
- objStyle.top = `${height + 8}px`;
- objStyle1.left = `8px`;
- break;
- case "bottom-end":
- objStyle.right = `0px`;
- objStyle.top = `${height + 8}px`;
- objStyle1.right = `8px`;
- break;
- case "right":
- objStyle.left = `${width + 8}px`;
- if (obj1.height > height) {
- objStyle.top = `-${(obj1.height - height) / 2}px`;
- } else {
- objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
- }
- objStyle1.top = `${obj1.height / 2 - 6}px`;
- break;
- case "right-start":
- objStyle.left = `${width + 8}px`;
- objStyle.top = `0px`;
- objStyle1.top = `8px`;
- break;
- case "right-end":
- objStyle.left = `${width + 8}px`;
- objStyle.bottom = `0px`;
- objStyle1.bottom = `8px`;
- break;
- case "left":
- objStyle.right = `${width + 8}px`;
- if (obj1.height > height) {
- objStyle.top = `-${(obj1.height - height) / 2}px`;
- } else {
- objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
- }
- objStyle1.top = `${obj1.height / 2 - 6}px`;
- break;
- case "left-start":
- objStyle.right = `${width + 8}px`;
- objStyle.top = `0px`;
- objStyle1.top = `8px`;
- break;
- case "left-end":
- objStyle.right = `${width + 8}px`;
- objStyle.bottom = `0px`;
- objStyle1.bottom = `8px`;
- break;
- }
- this.style = objStyle;
- this.arrowStyle = objStyle1;
- resolve();
- }).exec();
- });
- }
- }
- };
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.openBlock(), vue.createElementBlock(
- "view",
- {
- class: "zb-tooltip",
- style: vue.normalizeStyle({
- "--theme-bg-color": $props.color
- })
- },
- [
- vue.createElementVNode("view", {
- class: "zb_tooltip_content",
- onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.handleClick && $options.handleClick(...args), ["stop"]))
- }, [
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
- vue.createElementVNode(
- "view",
- {
- class: "zb_tooltip__popper",
- onClick: vue.withModifiers(() => {
- }, ["stop"]),
- style: vue.normalizeStyle([$data.style, {
- visibility: $data.isShow ? "visible" : "hidden",
- color: $props.color === "white" ? "" : "#fff",
- boxShadow: $props.color === "white" ? "0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d" : ""
- }])
- },
- [
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
- vue.createTextVNode(
- vue.toDisplayString($props.content),
- 1
- /* TEXT */
- )
- ], true),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass(["zb_popper__icon", [{
- "zb_popper__up": $props.placement.indexOf("bottom") === 0,
- "zb_popper__arrow": $props.placement.indexOf("top") === 0,
- "zb_popper__right": $props.placement.indexOf("right") === 0,
- "zb_popper__left": $props.placement.indexOf("left") === 0
- }]]),
- style: vue.normalizeStyle([$data.arrowStyle])
- },
- null,
- 6
- /* CLASS, STYLE */
- )
- ],
- 4
- /* STYLE */
- )
- ])
- ],
- 4
- /* STYLE */
- );
- }
- 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"]]);
- const fontData = [
- {
- "font_class": "arrow-down",
- "unicode": ""
- },
- {
- "font_class": "arrow-left",
- "unicode": ""
- },
- {
- "font_class": "arrow-right",
- "unicode": ""
- },
- {
- "font_class": "arrow-up",
- "unicode": ""
- },
- {
- "font_class": "auth",
- "unicode": ""
- },
- {
- "font_class": "auth-filled",
- "unicode": ""
- },
- {
- "font_class": "back",
- "unicode": ""
- },
- {
- "font_class": "bars",
- "unicode": ""
- },
- {
- "font_class": "calendar",
- "unicode": ""
- },
- {
- "font_class": "calendar-filled",
- "unicode": ""
- },
- {
- "font_class": "camera",
- "unicode": ""
- },
- {
- "font_class": "camera-filled",
- "unicode": ""
- },
- {
- "font_class": "cart",
- "unicode": ""
- },
- {
- "font_class": "cart-filled",
- "unicode": ""
- },
- {
- "font_class": "chat",
- "unicode": ""
- },
- {
- "font_class": "chat-filled",
- "unicode": ""
- },
- {
- "font_class": "chatboxes",
- "unicode": ""
- },
- {
- "font_class": "chatboxes-filled",
- "unicode": ""
- },
- {
- "font_class": "chatbubble",
- "unicode": ""
- },
- {
- "font_class": "chatbubble-filled",
- "unicode": ""
- },
- {
- "font_class": "checkbox",
- "unicode": ""
- },
- {
- "font_class": "checkbox-filled",
- "unicode": ""
- },
- {
- "font_class": "checkmarkempty",
- "unicode": ""
- },
- {
- "font_class": "circle",
- "unicode": ""
- },
- {
- "font_class": "circle-filled",
- "unicode": ""
- },
- {
- "font_class": "clear",
- "unicode": ""
- },
- {
- "font_class": "close",
- "unicode": ""
- },
- {
- "font_class": "closeempty",
- "unicode": ""
- },
- {
- "font_class": "cloud-download",
- "unicode": ""
- },
- {
- "font_class": "cloud-download-filled",
- "unicode": ""
- },
- {
- "font_class": "cloud-upload",
- "unicode": ""
- },
- {
- "font_class": "cloud-upload-filled",
- "unicode": ""
- },
- {
- "font_class": "color",
- "unicode": ""
- },
- {
- "font_class": "color-filled",
- "unicode": ""
- },
- {
- "font_class": "compose",
- "unicode": ""
- },
- {
- "font_class": "contact",
- "unicode": ""
- },
- {
- "font_class": "contact-filled",
- "unicode": ""
- },
- {
- "font_class": "down",
- "unicode": ""
- },
- {
- "font_class": "bottom",
- "unicode": ""
- },
- {
- "font_class": "download",
- "unicode": ""
- },
- {
- "font_class": "download-filled",
- "unicode": ""
- },
- {
- "font_class": "email",
- "unicode": ""
- },
- {
- "font_class": "email-filled",
- "unicode": ""
- },
- {
- "font_class": "eye",
- "unicode": ""
- },
- {
- "font_class": "eye-filled",
- "unicode": ""
- },
- {
- "font_class": "eye-slash",
- "unicode": ""
- },
- {
- "font_class": "eye-slash-filled",
- "unicode": ""
- },
- {
- "font_class": "fire",
- "unicode": ""
- },
- {
- "font_class": "fire-filled",
- "unicode": ""
- },
- {
- "font_class": "flag",
- "unicode": ""
- },
- {
- "font_class": "flag-filled",
- "unicode": ""
- },
- {
- "font_class": "folder-add",
- "unicode": ""
- },
- {
- "font_class": "folder-add-filled",
- "unicode": ""
- },
- {
- "font_class": "font",
- "unicode": ""
- },
- {
- "font_class": "forward",
- "unicode": ""
- },
- {
- "font_class": "gear",
- "unicode": ""
- },
- {
- "font_class": "gear-filled",
- "unicode": ""
- },
- {
- "font_class": "gift",
- "unicode": ""
- },
- {
- "font_class": "gift-filled",
- "unicode": ""
- },
- {
- "font_class": "hand-down",
- "unicode": ""
- },
- {
- "font_class": "hand-down-filled",
- "unicode": ""
- },
- {
- "font_class": "hand-up",
- "unicode": ""
- },
- {
- "font_class": "hand-up-filled",
- "unicode": ""
- },
- {
- "font_class": "headphones",
- "unicode": ""
- },
- {
- "font_class": "heart",
- "unicode": ""
- },
- {
- "font_class": "heart-filled",
- "unicode": ""
- },
- {
- "font_class": "help",
- "unicode": ""
- },
- {
- "font_class": "help-filled",
- "unicode": ""
- },
- {
- "font_class": "home",
- "unicode": ""
- },
- {
- "font_class": "home-filled",
- "unicode": ""
- },
- {
- "font_class": "image",
- "unicode": ""
- },
- {
- "font_class": "image-filled",
- "unicode": ""
- },
- {
- "font_class": "images",
- "unicode": ""
- },
- {
- "font_class": "images-filled",
- "unicode": ""
- },
- {
- "font_class": "info",
- "unicode": ""
- },
- {
- "font_class": "info-filled",
- "unicode": ""
- },
- {
- "font_class": "left",
- "unicode": ""
- },
- {
- "font_class": "link",
- "unicode": ""
- },
- {
- "font_class": "list",
- "unicode": ""
- },
- {
- "font_class": "location",
- "unicode": ""
- },
- {
- "font_class": "location-filled",
- "unicode": ""
- },
- {
- "font_class": "locked",
- "unicode": ""
- },
- {
- "font_class": "locked-filled",
- "unicode": ""
- },
- {
- "font_class": "loop",
- "unicode": ""
- },
- {
- "font_class": "mail-open",
- "unicode": ""
- },
- {
- "font_class": "mail-open-filled",
- "unicode": ""
- },
- {
- "font_class": "map",
- "unicode": ""
- },
- {
- "font_class": "map-filled",
- "unicode": ""
- },
- {
- "font_class": "map-pin",
- "unicode": ""
- },
- {
- "font_class": "map-pin-ellipse",
- "unicode": ""
- },
- {
- "font_class": "medal",
- "unicode": ""
- },
- {
- "font_class": "medal-filled",
- "unicode": ""
- },
- {
- "font_class": "mic",
- "unicode": ""
- },
- {
- "font_class": "mic-filled",
- "unicode": ""
- },
- {
- "font_class": "micoff",
- "unicode": ""
- },
- {
- "font_class": "micoff-filled",
- "unicode": ""
- },
- {
- "font_class": "minus",
- "unicode": ""
- },
- {
- "font_class": "minus-filled",
- "unicode": ""
- },
- {
- "font_class": "more",
- "unicode": ""
- },
- {
- "font_class": "more-filled",
- "unicode": ""
- },
- {
- "font_class": "navigate",
- "unicode": ""
- },
- {
- "font_class": "navigate-filled",
- "unicode": ""
- },
- {
- "font_class": "notification",
- "unicode": ""
- },
- {
- "font_class": "notification-filled",
- "unicode": ""
- },
- {
- "font_class": "paperclip",
- "unicode": ""
- },
- {
- "font_class": "paperplane",
- "unicode": ""
- },
- {
- "font_class": "paperplane-filled",
- "unicode": ""
- },
- {
- "font_class": "person",
- "unicode": ""
- },
- {
- "font_class": "person-filled",
- "unicode": ""
- },
- {
- "font_class": "personadd",
- "unicode": ""
- },
- {
- "font_class": "personadd-filled",
- "unicode": ""
- },
- {
- "font_class": "personadd-filled-copy",
- "unicode": ""
- },
- {
- "font_class": "phone",
- "unicode": ""
- },
- {
- "font_class": "phone-filled",
- "unicode": ""
- },
- {
- "font_class": "plus",
- "unicode": ""
- },
- {
- "font_class": "plus-filled",
- "unicode": ""
- },
- {
- "font_class": "plusempty",
- "unicode": ""
- },
- {
- "font_class": "pulldown",
- "unicode": ""
- },
- {
- "font_class": "pyq",
- "unicode": ""
- },
- {
- "font_class": "qq",
- "unicode": ""
- },
- {
- "font_class": "redo",
- "unicode": ""
- },
- {
- "font_class": "redo-filled",
- "unicode": ""
- },
- {
- "font_class": "refresh",
- "unicode": ""
- },
- {
- "font_class": "refresh-filled",
- "unicode": ""
- },
- {
- "font_class": "refreshempty",
- "unicode": ""
- },
- {
- "font_class": "reload",
- "unicode": ""
- },
- {
- "font_class": "right",
- "unicode": ""
- },
- {
- "font_class": "scan",
- "unicode": ""
- },
- {
- "font_class": "search",
- "unicode": ""
- },
- {
- "font_class": "settings",
- "unicode": ""
- },
- {
- "font_class": "settings-filled",
- "unicode": ""
- },
- {
- "font_class": "shop",
- "unicode": ""
- },
- {
- "font_class": "shop-filled",
- "unicode": ""
- },
- {
- "font_class": "smallcircle",
- "unicode": ""
- },
- {
- "font_class": "smallcircle-filled",
- "unicode": ""
- },
- {
- "font_class": "sound",
- "unicode": ""
- },
- {
- "font_class": "sound-filled",
- "unicode": ""
- },
- {
- "font_class": "spinner-cycle",
- "unicode": ""
- },
- {
- "font_class": "staff",
- "unicode": ""
- },
- {
- "font_class": "staff-filled",
- "unicode": ""
- },
- {
- "font_class": "star",
- "unicode": ""
- },
- {
- "font_class": "star-filled",
- "unicode": ""
- },
- {
- "font_class": "starhalf",
- "unicode": ""
- },
- {
- "font_class": "trash",
- "unicode": ""
- },
- {
- "font_class": "trash-filled",
- "unicode": ""
- },
- {
- "font_class": "tune",
- "unicode": ""
- },
- {
- "font_class": "tune-filled",
- "unicode": ""
- },
- {
- "font_class": "undo",
- "unicode": ""
- },
- {
- "font_class": "undo-filled",
- "unicode": ""
- },
- {
- "font_class": "up",
- "unicode": ""
- },
- {
- "font_class": "top",
- "unicode": ""
- },
- {
- "font_class": "upload",
- "unicode": ""
- },
- {
- "font_class": "upload-filled",
- "unicode": ""
- },
- {
- "font_class": "videocam",
- "unicode": ""
- },
- {
- "font_class": "videocam-filled",
- "unicode": ""
- },
- {
- "font_class": "vip",
- "unicode": ""
- },
- {
- "font_class": "vip-filled",
- "unicode": ""
- },
- {
- "font_class": "wallet",
- "unicode": ""
- },
- {
- "font_class": "wallet-filled",
- "unicode": ""
- },
- {
- "font_class": "weibo",
- "unicode": ""
- },
- {
- "font_class": "weixin",
- "unicode": ""
- }
- ];
- const getVal = (val) => {
- const reg = /^[0-9]*$/g;
- return typeof val === "number" || reg.test(val) ? val + "px" : val;
- };
- const _sfc_main$7 = {
- name: "UniIcons",
- emits: ["click"],
- props: {
- type: {
- type: String,
- default: ""
- },
- color: {
- type: String,
- default: "#333333"
- },
- size: {
- type: [Number, String],
- default: 16
- },
- customPrefix: {
- type: String,
- default: ""
- },
- fontFamily: {
- type: String,
- default: ""
- }
- },
- data() {
- return {
- icons: fontData
- };
- },
- computed: {
- unicode() {
- let code = this.icons.find((v) => v.font_class === this.type);
- if (code) {
- return code.unicode;
- }
- return "";
- },
- iconSize() {
- return getVal(this.size);
- },
- styleObj() {
- if (this.fontFamily !== "") {
- return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`;
- }
- return `color: ${this.color}; font-size: ${this.iconSize};`;
- }
- },
- methods: {
- _onClick() {
- this.$emit("click");
- }
- }
- };
- function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.openBlock(), vue.createElementBlock(
- "text",
- {
- style: vue.normalizeStyle($options.styleObj),
- class: vue.normalizeClass(["uni-icons", ["uniui-" + $props.type, $props.customPrefix, $props.customPrefix ? $props.type : ""]]),
- onClick: _cache[0] || (_cache[0] = (...args) => $options._onClick && $options._onClick(...args))
- },
- [
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
- ],
- 6
- /* CLASS, STYLE */
- );
- }
- 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"]]);
- const en = {
- "uni-pagination.prevText": "prev",
- "uni-pagination.nextText": "next",
- "uni-pagination.piecePerPage": "piece/page"
- };
- const es = {
- "uni-pagination.prevText": "anterior",
- "uni-pagination.nextText": "prxima",
- "uni-pagination.piecePerPage": "Art��culo/P��gina"
- };
- const fr = {
- "uni-pagination.prevText": "précédente",
- "uni-pagination.nextText": "suivante",
- "uni-pagination.piecePerPage": "Articles/Pages"
- };
- const zhHans = {
- "uni-pagination.prevText": "上一页",
- "uni-pagination.nextText": "下一页",
- "uni-pagination.piecePerPage": "条/页"
- };
- const zhHant = {
- "uni-pagination.prevText": "上一頁",
- "uni-pagination.nextText": "下一頁",
- "uni-pagination.piecePerPage": "條/頁"
- };
- const messages = {
- en,
- es,
- fr,
- "zh-Hans": zhHans,
- "zh-Hant": zhHant
- };
- const {
- t
- } = initVueI18n(messages);
- const _sfc_main$6 = {
- name: "UniPagination",
- emits: ["update:modelValue", "input", "change", "pageSizeChange"],
- props: {
- value: {
- type: [Number, String],
- default: 1
- },
- modelValue: {
- type: [Number, String],
- default: 1
- },
- prevText: {
- type: String
- },
- nextText: {
- type: String
- },
- piecePerPageText: {
- type: String
- },
- current: {
- type: [Number, String],
- default: 1
- },
- total: {
- // 数据总量
- type: [Number, String],
- default: 0
- },
- pageSize: {
- // 每页数据量
- type: [Number, String],
- default: 10
- },
- showIcon: {
- // 是否以 icon 形式展示按钮
- type: [Boolean, String],
- default: false
- },
- showPageSize: {
- // 是否以 icon 形式展示按钮
- type: [Boolean, String],
- default: false
- },
- pagerCount: {
- type: Number,
- default: 5
- },
- pageSizeRange: {
- type: Array,
- default: () => [20, 50, 100, 500]
- }
- },
- data() {
- return {
- pageSizeIndex: 0,
- currentIndex: 1,
- paperData: [],
- pickerShow: false
- };
- },
- computed: {
- piecePerPage() {
- return this.piecePerPageText || t("uni-pagination.piecePerPage");
- },
- prevPageText() {
- return this.prevText || t("uni-pagination.prevText");
- },
- nextPageText() {
- return this.nextText || t("uni-pagination.nextText");
- },
- maxPage() {
- let maxPage = 1;
- let total = Number(this.total);
- let pageSize = Number(this.pageSize);
- if (total && pageSize) {
- maxPage = Math.ceil(total / pageSize);
- }
- return maxPage;
- },
- paper() {
- const num = this.currentIndex;
- const pagerCount = this.pagerCount;
- const total = this.total;
- const pageSize = this.pageSize;
- let totalArr = [];
- let showPagerArr = [];
- let pagerNum = Math.ceil(total / pageSize);
- for (let i = 0; i < pagerNum; i++) {
- totalArr.push(i + 1);
- }
- showPagerArr.push(1);
- const totalNum = totalArr[totalArr.length - (pagerCount + 1) / 2];
- totalArr.forEach((item, index) => {
- if ((pagerCount + 1) / 2 >= num) {
- if (item < pagerCount + 1 && item > 1) {
- showPagerArr.push(item);
- }
- } else if (num + 2 <= totalNum) {
- if (item > num - (pagerCount + 1) / 2 && item < num + (pagerCount + 1) / 2) {
- showPagerArr.push(item);
- }
- } else {
- if ((item > num - (pagerCount + 1) / 2 || pagerNum - pagerCount < item) && item < totalArr[totalArr.length - 1]) {
- showPagerArr.push(item);
- }
- }
- });
- if (pagerNum > pagerCount) {
- if ((pagerCount + 1) / 2 >= num) {
- showPagerArr[showPagerArr.length - 1] = "...";
- } else if (num + 2 <= totalNum) {
- showPagerArr[1] = "...";
- showPagerArr[showPagerArr.length - 1] = "...";
- } else {
- showPagerArr[1] = "...";
- }
- showPagerArr.push(totalArr[totalArr.length - 1]);
- } else {
- if ((pagerCount + 1) / 2 >= num)
- ;
- else if (num + 2 <= totalNum)
- ;
- else {
- showPagerArr.shift();
- showPagerArr.push(totalArr[totalArr.length - 1]);
- }
- }
- return showPagerArr;
- }
- },
- watch: {
- current: {
- immediate: true,
- handler(val, old) {
- if (val < 1) {
- this.currentIndex = 1;
- } else {
- this.currentIndex = val;
- }
- }
- },
- value: {
- immediate: true,
- handler(val) {
- if (Number(this.current) !== 1)
- return;
- if (val < 1) {
- this.currentIndex = 1;
- } else {
- this.currentIndex = val;
- }
- }
- },
- pageSizeIndex(val) {
- this.$emit("pageSizeChange", this.pageSizeRange[val]);
- }
- },
- methods: {
- pickerChange(e) {
- this.pageSizeIndex = e.detail.value;
- this.pickerClick();
- },
- pickerClick() {
- },
- // 选择标签
- selectPage(e, index) {
- if (parseInt(e)) {
- this.currentIndex = e;
- this.change("current");
- } else {
- let pagerNum = Math.ceil(this.total / this.pageSize);
- if (index <= 1) {
- if (this.currentIndex - 5 > 1) {
- this.currentIndex -= 5;
- } else {
- this.currentIndex = 1;
- }
- return;
- }
- if (index >= 6) {
- if (this.currentIndex + 5 > pagerNum) {
- this.currentIndex = pagerNum;
- } else {
- this.currentIndex += 5;
- }
- return;
- }
- }
- },
- clickLeft() {
- if (Number(this.currentIndex) === 1) {
- return;
- }
- this.currentIndex -= 1;
- this.change("prev");
- },
- clickRight() {
- if (Number(this.currentIndex) >= this.maxPage) {
- return;
- }
- this.currentIndex += 1;
- this.change("next");
- },
- change(e) {
- this.$emit("input", this.currentIndex);
- this.$emit("update:modelValue", this.currentIndex);
- this.$emit("change", {
- type: e,
- current: this.currentIndex
- });
- }
- }
- };
- function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0);
- return vue.openBlock(), vue.createElementBlock("view", { class: "uni-pagination" }, [
- $props.showPageSize === true || $props.showPageSize === "true" ? (vue.openBlock(), vue.createElementBlock("picker", {
- key: 0,
- class: "select-picker",
- mode: "selector",
- value: $data.pageSizeIndex,
- range: $props.pageSizeRange,
- onChange: _cache[0] || (_cache[0] = (...args) => $options.pickerChange && $options.pickerChange(...args)),
- onCancel: _cache[1] || (_cache[1] = (...args) => $options.pickerClick && $options.pickerClick(...args)),
- onClick: _cache[2] || (_cache[2] = (...args) => $options.pickerClick && $options.pickerClick(...args))
- }, [
- vue.createElementVNode("button", {
- type: "default",
- size: "mini",
- plain: true
- }, [
- vue.createElementVNode(
- "text",
- null,
- vue.toDisplayString($props.pageSizeRange[$data.pageSizeIndex]) + " " + vue.toDisplayString($options.piecePerPage),
- 1
- /* TEXT */
- ),
- vue.createVNode(_component_uni_icons, {
- class: "select-picker-icon",
- type: "arrowdown",
- size: "12",
- color: "#999"
- })
- ])
- ], 40, ["value", "range"])) : vue.createCommentVNode("v-if", true),
- vue.createElementVNode(
- "view",
- { class: "uni-pagination__total is-phone-hide" },
- "共 " + vue.toDisplayString($props.total) + " 条",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", {
- class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex === 1 ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
- "hover-class": $data.currentIndex === 1 ? "" : "uni-pagination--hover",
- "hover-start-time": 20,
- "hover-stay-time": 70,
- onClick: _cache[3] || (_cache[3] = (...args) => $options.clickLeft && $options.clickLeft(...args))
- }, [
- $props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
- key: 0,
- color: "#666",
- size: "24",
- type: "left"
- })) : (vue.openBlock(), vue.createElementBlock(
- "text",
- {
- key: 1,
- class: "uni-pagination__child-btn"
- },
- vue.toDisplayString($options.prevPageText),
- 1
- /* TEXT */
- ))
- ], 10, ["hover-class"]),
- vue.createElementVNode("view", { class: "uni-pagination__num uni-pagination__num-flex-none" }, [
- vue.createElementVNode("view", { class: "uni-pagination__num-current" }, [
- vue.createElementVNode(
- "text",
- { class: "uni-pagination__num-current-text is-pc-hide current-index-text" },
- vue.toDisplayString($data.currentIndex),
- 1
- /* TEXT */
- ),
- vue.createElementVNode(
- "text",
- { class: "uni-pagination__num-current-text is-pc-hide" },
- "/" + vue.toDisplayString($options.maxPage || 0),
- 1
- /* TEXT */
- ),
- (vue.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($options.paper, (item, index) => {
- return vue.openBlock(), vue.createElementBlock("view", {
- key: index,
- class: vue.normalizeClass([{ "page--active": item === $data.currentIndex }, "uni-pagination__num-tag tag--active is-phone-hide"]),
- onClick: ($event) => $options.selectPage(item, index)
- }, [
- vue.createElementVNode(
- "view",
- { class: "uni-pagination__num-tagwight" },
- vue.toDisplayString(item),
- 1
- /* TEXT */
- )
- ], 10, ["onClick"]);
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ]),
- vue.createElementVNode("view", {
- class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex >= $options.maxPage ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
- "hover-class": $data.currentIndex === $options.maxPage ? "" : "uni-pagination--hover",
- "hover-start-time": 20,
- "hover-stay-time": 70,
- onClick: _cache[4] || (_cache[4] = (...args) => $options.clickRight && $options.clickRight(...args))
- }, [
- $props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
- key: 0,
- color: "#666",
- size: "24",
- type: "right"
- })) : (vue.openBlock(), vue.createElementBlock(
- "text",
- {
- key: 1,
- class: "uni-pagination__child-btn"
- },
- vue.toDisplayString($options.nextPageText),
- 1
- /* TEXT */
- ))
- ], 10, ["hover-class"])
- ]);
- }
- 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"]]);
- const _sfc_main$5 = {
- data() {
- return {
- current: 1,
- total: 0,
- pageSize: 10,
- faulttaps: "实时",
- faultsList: []
- };
- },
- onLoad() {
- this.onfaultsList();
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status"])
- },
- beforeUnmount() {
- },
- methods: {
- onfaultsList() {
- let data = {
- page: this.current,
- rows: this.pageSize,
- device: "",
- starttime: "",
- endtime: "",
- rt: this.faulttaps == "实时" ? 1 : 0,
- type: this.faulttaps == "实时" ? "" : this.faulttaps
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/details/index.vue:154", res);
- if (res.status == "ok") {
- this.faultsList = res.data.list;
- this.total = res.data.pagination.total;
- }
- });
- },
- onclick() {
- uni.redirectTo({
- url: "/pages/index/index"
- });
- },
- change(e) {
- formatAppLog("log", "at pages/details/index.vue:172", e);
- this.current = e.current;
- this.onfaultsList();
- },
- taps(e) {
- this.faulttaps = e;
- formatAppLog("log", "at pages/details/index.vue:178", e);
- this.onfaultsList();
- },
- // 文字提示
- closedevice() {
- for (let i = 1; i < this.total; i++) {
- this.$refs["device" + i].close();
- }
- },
- close() {
- for (let i = 1; i < this.total; i++) {
- this.$refs["tooltip" + i].close();
- }
- }
- }
- };
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_zb_tooltip = resolveEasycom(vue.resolveDynamicComponent("zb-tooltip"), __easycom_0$1);
- const _component_uni_pagination = resolveEasycom(vue.resolveDynamicComponent("uni-pagination"), __easycom_1);
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter" }, [
- vue.createElementVNode("view", { class: "parameter_xian" }, [
- vue.createElementVNode("view", { class: "parameter_xian1" }, " 序号 "),
- vue.createElementVNode("view", { class: "parameter_xian2" }, " 类型 "),
- vue.createElementVNode("view", { class: "parameter_xian3" }, " 设备 "),
- vue.createElementVNode("view", { class: "parameter_xian4" }, " 内容 "),
- vue.createElementVNode("view", { class: "parameter_xian5" }, " 发生时间 "),
- vue.createElementVNode("view", { class: "parameter_xian6" }, " 恢复时间 ")
- ]),
- vue.createElementVNode("view", { class: "parameter_box" }, [
- (vue.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsList, (item, index) => {
- return vue.openBlock(), vue.createElementBlock(
- "view",
- {
- class: vue.normalizeClass(item.RESETTIME == "" ? "parameter_divred" : "parameter_div"),
- key: index
- },
- [
- vue.createElementVNode(
- "view",
- { class: "parameter_xian1" },
- vue.toDisplayString(item.ID),
- 1
- /* TEXT */
- ),
- vue.createElementVNode(
- "view",
- { class: "parameter_xian2" },
- vue.toDisplayString(item.TYPE),
- 1
- /* TEXT */
- ),
- vue.createVNode(_component_zb_tooltip, {
- onClick: $options.closedevice,
- content: item.DEVICE,
- placement: "top",
- ref_for: true,
- ref: "device" + index
- }, {
- default: vue.withCtx(() => [
- vue.createElementVNode(
- "view",
- { class: "parameter_xian3" },
- vue.toDisplayString(item.DEVICE),
- 1
- /* TEXT */
- )
- ]),
- _: 2
- /* DYNAMIC */
- }, 1032, ["onClick", "content"]),
- vue.createVNode(_component_zb_tooltip, {
- onClick: $options.close,
- content: item.CONTENT,
- placement: "top",
- ref_for: true,
- ref: "tooltip" + index
- }, {
- default: vue.withCtx(() => [
- vue.createElementVNode(
- "view",
- { class: "parameter_xian4" },
- vue.toDisplayString(item.CONTENT),
- 1
- /* TEXT */
- )
- ]),
- _: 2
- /* DYNAMIC */
- }, 1032, ["onClick", "content"]),
- vue.createElementVNode(
- "view",
- { class: "parameter_xian5" },
- vue.toDisplayString(item.FAULTTIME.substring(0, 19)),
- 1
- /* TEXT */
- ),
- vue.createElementVNode(
- "view",
- { class: "parameter_xian6" },
- vue.toDisplayString(item.RESETTIME.substring(0, 19)),
- 1
- /* TEXT */
- )
- ],
- 2
- /* CLASS */
- );
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ]),
- vue.createElementVNode("view", { class: "parameter_bottom" }, [
- vue.createElementVNode("view", {
- class: "parameter_bottom1",
- onClick: _cache[0] || (_cache[0] = (...args) => $options.onclick && $options.onclick(...args))
- }, [
- vue.createElementVNode("image", {
- src: _imports_10,
- mode: ""
- }),
- vue.createElementVNode("text", { class: "parameter_bottom2" }, "返回模式选择")
- ]),
- vue.createElementVNode("view", { class: "parameter_bottom3" }, [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.faulttaps == "实时" ? "parameter_bottom31" : "parameter_bottom32"),
- onClick: _cache[1] || (_cache[1] = ($event) => $options.taps("实时"))
- },
- " 实时 ",
- 2
- /* CLASS */
- ),
- vue.createCommentVNode(` <view :class="faulttaps=='全部'?'parameter_bottom31':'parameter_bottom32'" @click="taps('全部')">\r
- 全部\r
- </view> `),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.faulttaps == "故障" ? "parameter_bottom31" : "parameter_bottom32"),
- onClick: _cache[2] || (_cache[2] = ($event) => $options.taps("故障"))
- },
- " 故障 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.faulttaps == "告警" ? "parameter_bottom31" : "parameter_bottom32"),
- onClick: _cache[3] || (_cache[3] = ($event) => $options.taps("告警"))
- },
- " 告警 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.faulttaps == "事件" ? "parameter_bottom31" : "parameter_bottom32"),
- onClick: _cache[4] || (_cache[4] = ($event) => $options.taps("事件"))
- },
- " 事件 ",
- 2
- /* CLASS */
- )
- ]),
- vue.createElementVNode("view", { class: "parameter_bottom4" }, [
- vue.createElementVNode("view", { class: "eliminate" }, " 故障清除 "),
- vue.createVNode(_component_uni_pagination, {
- total: $data.total,
- title: "标题文字",
- "show-icon": true,
- onChange: $options.change
- }, null, 8, ["total", "onChange"])
- ])
- ])
- ])
- ]);
- }
- 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"]]);
- const _imports_4$1 = "/static/fang.png";
- const _sfc_main$4 = {
- components: {
- JerryGauge
- },
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatas: "",
- formatTimeid: "",
- faultsdata: [],
- messageText: ""
- };
- },
- onLoad() {
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status"]),
- ...mapState({
- uidatasdata: (state) => state.uidatasdata
- })
- },
- mounted() {
- this.onfaultsdata();
- },
- beforeUnmount() {
- },
- methods: {
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1e3,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/electricity/index.vue:574", res);
- if (res.status == "ok") {
- this.faultsdata = res.data.list;
- }
- });
- },
- // 返回首页
- onreturn() {
- uni.redirectTo({
- url: "/pages/index/index"
- });
- },
- // 启动设备弹窗
- dialogToggle() {
- this.modeinput = "base";
- this.successtype = "success";
- this.confirmText = "确认启动";
- this.title = "你确定要开启该设备吗?";
- this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
- this.$refs.alertDialog.open();
- },
- onstopit() {
- this.modeinput = "base";
- this.successtype = "error";
- this.confirmText = "确认停止";
- this.title = "你确定要停止该设备吗?";
- this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
- this.$refs.alertDialog.open();
- },
- // 确认弹窗
- dialogConfirm() {
- let uidatasdata = this.$store.state.uidatasdata;
- let data = {
- id: "c35c4db0-113f-442a-9e26-728489265fdb",
- issaveinitvalue: false,
- value: this.confirmText == "确认启动" ? "1" : "0"
- };
- if (this.confirmText == "确认启动") {
- if (uidatasdata.AC_In_380V_63A1_Status == 0 || uidatasdata.AC_In_380V_63A2_Status == 0) {
- this.messageText = "AC供电时AC输入端应全部断开";
- this.$refs.message.open();
- return;
- }
- }
- control(data).then((data2) => {
- if (data2.status == "ok") {
- this.$refs.alertDialog.close();
- uni.showToast({
- title: "操作成功",
- icon: "none",
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- } else {
- this.$refs.alertDialog.close();
- uni.showToast({
- title: "操作失败",
- icon: "none",
- // 使用 'none' 图标来表示失败
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- }
- });
- },
- dialogClose() {
- formatAppLog("log", "at pages/electricity/index.vue:644", this.value);
- this.$refs.alertDialog.close();
- },
- ontap(e) {
- formatAppLog("log", "at pages/electricity/index.vue:648", e);
- this.segmented = e;
- }
- }
- };
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
- const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
- const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
- const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter" }, [
- vue.createElementVNode("view", { class: "parameter_left" }, [
- vue.createElementVNode("view", { class: "parameter_left1" }, [
- vue.createVNode(_component_jerry_gauge),
- vue.createElementVNode("view", { class: "parameter_canvas" }, [
- vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
- vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
- ])
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftdian1",
- src: _imports_2$1,
- alt: ""
- }),
- vue.createElementVNode("view", { class: "parameter_lef2" }, [
- vue.createElementVNode("image", {
- src: _imports_3,
- mode: ""
- })
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftche1",
- src: _imports_4$1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_leftview" }, "交流供电")
- ]),
- vue.createElementVNode("view", { class: "parameter_right" }, [
- vue.createElementVNode("view", { class: "parameter_righttop" }, [
- vue.createElementVNode("view", { class: "parameter_1" }, [
- vue.createElementVNode("view", { class: "parameter_2" }, [
- vue.createElementVNode("view", { class: "parameter_31" }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.AC_Out_380V_125A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 125A状态 ")
- ]),
- _ctx.uidatasdata.AC_Out_380V_125A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_31" }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.AC_Out_380V_63A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 63A状态 ")
- ]),
- _ctx.uidatasdata.AC_Out_380V_63A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_31" }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.AC_Out_220V_16A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 16A状态 ")
- ]),
- _ctx.uidatasdata.AC_Out_220V_16A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_SOC" }, [
- vue.createElementVNode("image", {
- src: _imports_7,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
- vue.createElementVNode("view", null, [
- vue.createElementVNode(
- "text",
- { class: "parameter_SOCright2" },
- vue.toDisplayString(_ctx.uidatasdata.SOC),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", null, " %")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_Battery" }, [
- vue.createElementVNode("image", {
- src: _imports_8,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_state" }, [
- vue.createElementVNode("image", {
- src: _imports_9,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_tap" }, [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
- },
- " 交流信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
- },
- " 电池信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
- },
- " 统计信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
- },
- " 液冷信息 ",
- 2
- /* CLASS */
- )
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng" }, [
- $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSPortAPhaseVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSPortBPhaseVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSPortCPhaseVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电电量 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSACDisChargeEnergy) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata["PCSOutputC-phaseCurrent"]),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSTotalOutputReactivePower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng10" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- vue.createElementVNode("view", { class: "parameter_zheng3" }, [
- _ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31111",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])
- ])),
- _ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31111",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ])
- ]))
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_home" }, [
- vue.createElementVNode("view", {
- class: "parameter_home1",
- onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
- }, [
- vue.createElementVNode("image", {
- src: _imports_10,
- mode: ""
- }),
- vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
- ]),
- vue.createElementVNode("view", { class: "parameter_home2" }, [
- vue.createElementVNode("image", {
- src: _imports_11,
- mode: ""
- }),
- vue.createElementVNode("swiper", {
- class: "swiper",
- circular: "",
- autoplay: true,
- interval: 2e3,
- duration: 500,
- vertical: true
- }, [
- (vue.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
- vue.createElementVNode(
- "view",
- { class: "parameter_home3" },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- )
- ]);
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ])
- ]),
- vue.createVNode(
- _component_uni_popup,
- { ref: "alertDialog" },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_dialog, {
- mode: $data.modeinput,
- placeholder: "请输入内容",
- modelValue: $data.value,
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
- type: $data.successtype,
- cancelText: "取消返回",
- confirmText: $data.confirmText,
- title: $data.title,
- content: $data.content,
- beforeClose: true,
- onConfirm: $options.dialogConfirm,
- onClose: $options.dialogClose
- }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- ),
- vue.createVNode(
- _component_uni_popup,
- {
- ref: "message",
- type: "message"
- },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_message, {
- type: "error",
- message: $data.messageText,
- duration: 3e3
- }, null, 8, ["message"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- )
- ]);
- }
- 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"]]);
- const _imports_5 = "/static/shan.png";
- const _sfc_main$3 = {
- components: {
- JerryGauge
- },
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatas: "",
- formatTimeid: "",
- faultsdata: []
- };
- },
- onLoad() {
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status"]),
- ...mapState({
- uidatasdata: (state) => state.uidatasdata
- })
- },
- mounted() {
- this.onfaultsdata();
- },
- beforeUnmount() {
- },
- methods: {
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1e3,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/supply/supply.vue:583", res);
- if (res.status == "ok") {
- this.faultsdata = res.data.list;
- }
- });
- },
- // 返回首页
- onreturn() {
- uni.redirectTo({
- url: "/pages/index/index"
- });
- },
- // 启动设备弹窗
- dialogToggle() {
- this.modeinput = "base";
- this.successtype = "success";
- this.confirmText = "确认启动";
- this.title = "你确定要开启该设备吗?";
- this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
- this.$refs.alertDialog.open();
- },
- onstopit() {
- this.modeinput = "base";
- this.successtype = "error";
- this.confirmText = "确认停止";
- this.title = "你确定要停止该设备吗?";
- this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
- this.$refs.alertDialog.open();
- },
- // 确认弹窗
- dialogConfirm() {
- let data = {
- id: "c35c4db0-113f-442a-9e26-728489265fdb",
- issaveinitvalue: false,
- value: this.confirmText == "确认启动" ? "1" : "0"
- };
- control(data).then((data2) => {
- if (data2.status == "ok") {
- uni.showToast({
- title: "操作成功",
- icon: "none",
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- } else {
- uni.showToast({
- title: "操作失败",
- icon: "none",
- // 使用 'none' 图标来表示失败
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- }
- });
- },
- dialogClose() {
- formatAppLog("log", "at pages/supply/supply.vue:643", this.value);
- this.$refs.alertDialog.close();
- },
- ontap(e) {
- formatAppLog("log", "at pages/supply/supply.vue:647", e);
- this.segmented = e;
- }
- }
- };
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
- const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
- const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter" }, [
- vue.createElementVNode("view", { class: "parameter_left" }, [
- vue.createElementVNode("view", { class: "parameter_left1" }, [
- vue.createVNode(_component_jerry_gauge),
- vue.createElementVNode("view", { class: "parameter_canvas" }, [
- vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
- vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
- ])
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftdian1",
- src: _imports_2$1,
- alt: ""
- }),
- vue.createElementVNode("view", { class: "parameter_lef2" }, [
- vue.createElementVNode("image", {
- src: _imports_3,
- mode: ""
- })
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftche",
- src: _imports_4$2,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_leftview" }, "直流补电")
- ]),
- vue.createElementVNode("view", { class: "parameter_right" }, [
- vue.createElementVNode("view", { class: "parameter_righttop" }, [
- vue.createElementVNode("view", { class: "parameter_1" }, [
- vue.createElementVNode("view", { class: "parameter_shan" }, [
- vue.createElementVNode("image", {
- src: _imports_5,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 充电功率 "),
- vue.createElementVNode("view", null, [
- vue.createElementVNode(
- "text",
- { class: "parameter_SOCright2" },
- vue.toDisplayString((_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", null, " kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_SOC" }, [
- vue.createElementVNode("image", {
- src: _imports_7,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
- vue.createElementVNode("view", null, [
- vue.createElementVNode(
- "text",
- { class: "parameter_SOCright2" },
- vue.toDisplayString(_ctx.uidatasdata.SOC),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", null, " %")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_Battery" }, [
- vue.createElementVNode("image", {
- src: _imports_8,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_state" }, [
- vue.createElementVNode("image", {
- src: _imports_9,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
- 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> '),
- _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_tap" }, [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
- },
- " 电池信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
- },
- " 连接信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
- },
- " 统计信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
- },
- " 液冷信息 ",
- 2
- /* CLASS */
- )
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng" }, [
- $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "v")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, " A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, " v")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, " ℃")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_ChargeStatus==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
- _ctx.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_Batterystate1"
- }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_Batterystate1"
- }, " 无连接 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate1" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" })
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng10" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 交流累计充电电量 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSACChargeEnergy) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 直流累计充电电量 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.PCSDCDisChargeEnergy) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- vue.createElementVNode("view", { class: "parameter_zheng3" }, [
- _ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31111",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])
- ])),
- _ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31111",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ])
- ]))
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_home" }, [
- vue.createElementVNode("view", {
- class: "parameter_home1",
- onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
- }, [
- vue.createElementVNode("image", {
- src: _imports_10,
- mode: ""
- }),
- vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
- ]),
- vue.createElementVNode("view", { class: "parameter_home2" }, [
- vue.createElementVNode("image", {
- src: _imports_11,
- mode: ""
- }),
- vue.createElementVNode("swiper", {
- class: "swiper",
- circular: "",
- autoplay: true,
- interval: 2e3,
- duration: 500,
- vertical: true
- }, [
- (vue.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
- vue.createElementVNode(
- "view",
- { class: "parameter_home3" },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- )
- ]);
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ])
- ]),
- vue.createVNode(
- _component_uni_popup,
- { ref: "alertDialog" },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_dialog, {
- mode: $data.modeinput,
- placeholder: "请输入内容",
- modelValue: $data.value,
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
- type: $data.successtype,
- cancelText: "取消返回",
- confirmText: $data.confirmText,
- title: $data.title,
- content: $data.content,
- onConfirm: $options.dialogConfirm,
- onClose: $options.dialogClose
- }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- )
- ]);
- }
- 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"]]);
- const _imports_4 = "/static/che1.png";
- const _sfc_main$2 = {
- components: {
- JerryGauge
- },
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- ChargingStation: 1,
- faultsdata: []
- };
- },
- onLoad() {
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status"]),
- ...mapState({
- uidatasdata: (state) => state.uidatasdata
- })
- },
- mounted() {
- this.onfaultsdata();
- },
- beforeUnmount() {
- },
- methods: {
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1e3,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/supplyss/supplyss.vue:788", res);
- if (res.status == "ok") {
- this.faultsdata = res.data.list;
- }
- });
- },
- // 返回首页
- onreturn() {
- uni.redirectTo({
- url: "/pages/index/index"
- });
- },
- // 启动设备弹窗
- dialogToggle() {
- this.modeinput = "base";
- this.successtype = "success";
- this.confirmText = "确认启动";
- this.title = "你确定要开启该设备吗?";
- this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
- this.$refs.alertDialog.open();
- },
- // 关闭设备弹窗
- onstopit() {
- this.modeinput = "base";
- this.successtype = "error";
- this.confirmText = "确认停止";
- this.title = "你确定要停止该设备吗?";
- this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
- this.$refs.alertDialog.open();
- },
- // 确定
- dialogConfirm() {
- let data = {};
- if (this.segmented == 1) {
- data = {
- id: "3b26469f-ad5b-43bf-b715-4213921321d0",
- issaveinitvalue: false,
- value: this.confirmText == "确认启动" ? "1" : "0"
- };
- } else if (this.segmented == 2) {
- data = {
- id: "78f59493-65f3-4860-8296-7f07bb0ca55b",
- issaveinitvalue: false,
- value: this.confirmText == "确认启动" ? "1" : "0"
- };
- } else {
- data = {
- id: "c35c4db0-113f-442a-9e26-728489265fdb",
- issaveinitvalue: false,
- value: this.confirmText == "确认启动" ? "1" : "0"
- };
- }
- control(data).then((data2) => {
- formatAppLog("log", "at pages/supplyss/supplyss.vue:845", data2);
- if (data2.status == "ok") {
- uni.showToast({
- title: "操作成功",
- icon: "none",
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- } else {
- uni.showToast({
- title: "操作失败",
- icon: "none",
- // 使用 'none' 图标来表示失败
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- }
- });
- },
- // 取消
- dialogClose() {
- formatAppLog("log", "at pages/supplyss/supplyss.vue:864", this.value);
- this.$refs.alertDialog.close();
- },
- // 切换标签
- ontap(e) {
- formatAppLog("log", "at pages/supplyss/supplyss.vue:869", e);
- this.segmented = e;
- if (this.segmented == 1) {
- this.ChargingStation = 1;
- } else if (this.segmented == 2) {
- this.ChargingStation = 2;
- }
- }
- }
- };
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
- const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
- const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
- const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter" }, [
- vue.createElementVNode("view", { class: "parameter_left" }, [
- vue.createElementVNode("view", { class: "parameter_left1" }, [
- vue.createVNode(_component_jerry_gauge),
- vue.createElementVNode("view", { class: "parameter_canvas" }, [
- vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
- vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
- ])
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftdian1",
- src: _imports_2$1,
- alt: ""
- }),
- vue.createElementVNode("view", { class: "parameter_lef2" }, [
- vue.createElementVNode("image", {
- src: _imports_3,
- mode: ""
- })
- ]),
- vue.createElementVNode("image", {
- class: "parameter_leftche2",
- src: _imports_4,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_leftview" }, "直流供电")
- ]),
- vue.createElementVNode("view", { class: "parameter_right" }, [
- vue.createElementVNode("view", { class: "parameter_righttop" }, [
- vue.createElementVNode("view", { class: "parameter_1" }, [
- vue.createElementVNode("view", { class: "parameter_2" }, [
- $data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_3"
- }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 连接状态 ")
- ]),
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_3"
- }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 连接状态 ")
- ]),
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_51"
- }, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_5"
- }, " 断开 "))
- ])),
- $data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_3"
- }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 工作状态 ")
- ]),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.ChargingStation == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_3"
- }, [
- vue.createElementVNode("view", { class: "parameter_4" }, [
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_5$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_6,
- mode: ""
- })),
- vue.createTextVNode(" 工作状态 ")
- ]),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
- ]),
- vue.createCommentVNode(' <view class="parameter_5" v-else>\r\n 断开\r\n </view> ')
- ])) : vue.createCommentVNode("v-if", true)
- ]),
- vue.createElementVNode("view", { class: "parameter_SOC" }, [
- vue.createElementVNode("image", {
- src: _imports_7,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
- vue.createElementVNode("view", null, [
- vue.createElementVNode(
- "text",
- { class: "parameter_SOCright2" },
- vue.toDisplayString(_ctx.uidatasdata.SOC),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", null, "%")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_Battery" }, [
- vue.createElementVNode("image", {
- src: _imports_8,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_state" }, [
- vue.createElementVNode("image", {
- src: _imports_9,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "parameter_SOCright" }, [
- vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_tap" }, [
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
- },
- " 枪A信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
- },
- " 枪B信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
- },
- " 电池信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
- },
- " 连接信息 ",
- 2
- /* CLASS */
- ),
- vue.createElementVNode(
- "view",
- {
- class: vue.normalizeClass($data.segmented == 5 ? "parameter_tap1" : "parameter_tap2"),
- onClick: _cache[4] || (_cache[4] = ($event) => $options.ontap(5))
- },
- " 液冷信息 ",
- 2
- /* CLASS */
- )
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng" }, [
- $data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_soc) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "%")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString((_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_ThisChargePower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }),
- vue.createElementVNode("view", { class: "parameter_zheng13" })
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_soc),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, " %")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString((_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_ThisChargePower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }),
- vue.createElementVNode("view", { class: "parameter_zheng13" })
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- _ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng22" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
- _ctx.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_Batterystate1"
- }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_Batterystate1"
- }, " 无连接 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate1" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" })
- ])
- ])) : vue.createCommentVNode("v-if", true),
- $data.segmented == 5 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 4,
- class: "parameter_box"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng1" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> '),
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng2" }, [
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
- vue.createElementVNode("view", { class: "parameter_zheng13" }, [
- vue.createTextVNode(
- vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- _ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])) : vue.createCommentVNode("v-if", true),
- this.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 5,
- class: "parameter_zheng3"
- }, [
- _ctx.uidatasdata.SysControl_Gun1RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31111",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])
- ])),
- _ctx.uidatasdata.SysControl_Gun1RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31111",
- onClick: _cache[6] || (_cache[6] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ])
- ]))
- ])) : vue.createCommentVNode("v-if", true),
- this.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 6,
- class: "parameter_zheng3"
- }, [
- _ctx.uidatasdata.SysControl_Gun2RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31111",
- onClick: _cache[7] || (_cache[7] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])
- ])),
- _ctx.uidatasdata.SysControl_Gun2RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31111"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31111",
- onClick: _cache[8] || (_cache[8] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng31" }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ])
- ]))
- ])) : vue.createCommentVNode("v-if", true)
- ]),
- vue.createElementVNode("view", { class: "parameter_home" }, [
- vue.createElementVNode("view", {
- class: "parameter_home1",
- onClick: _cache[9] || (_cache[9] = (...args) => $options.onreturn && $options.onreturn(...args))
- }, [
- vue.createElementVNode("image", {
- src: _imports_10,
- mode: ""
- }),
- vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
- ]),
- vue.createElementVNode("view", { class: "parameter_home2" }, [
- vue.createElementVNode("image", {
- src: _imports_11,
- mode: ""
- }),
- vue.createElementVNode("swiper", {
- class: "swiper",
- circular: "",
- autoplay: true,
- interval: 2e3,
- duration: 500,
- vertical: true
- }, [
- (vue.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
- vue.createElementVNode(
- "view",
- { class: "parameter_home3" },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- )
- ]);
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ])
- ]),
- vue.createVNode(
- _component_uni_popup,
- { ref: "alertDialog" },
- {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_dialog, {
- mode: $data.modeinput,
- placeholder: "请输入内容",
- modelValue: $data.value,
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.value = $event),
- type: $data.successtype,
- cancelText: "取消返回",
- confirmText: $data.confirmText,
- title: $data.title,
- content: $data.content,
- onConfirm: $options.dialogConfirm,
- onClose: $options.dialogClose
- }, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
- ]),
- _: 1
- /* STABLE */
- },
- 512
- /* NEED_PATCH */
- )
- ]);
- }
- 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"]]);
- const _imports_2 = "/static/faultlist.png";
- const _sfc_main$1 = {
- data() {
- return {};
- },
- onLoad() {
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(["formattedTime", "status"])
- },
- beforeUnmount() {
- },
- methods: {
- // 返回首页
- onreturn() {
- uni.redirectTo({
- url: "/pages/details/index"
- });
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
- vue.createElementVNode("view", { class: "top" }, [
- vue.createElementVNode("image", {
- class: "top_logo",
- src: _imports_0,
- mode: ""
- }),
- vue.createElementVNode("image", {
- class: "tite",
- src: _imports_1,
- mode: ""
- }),
- vue.createElementVNode("view", { class: "time" }, [
- vue.createElementVNode(
- "view",
- { class: "time_top" },
- vue.toDisplayString(_ctx.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- _ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "time_state"
- }, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "time_state1"
- }, " 离线 "))
- ])
- ])
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter" }, [
- vue.createElementVNode("view", { class: "parameter_list" }, [
- vue.createElementVNode("view", {
- class: "parameter_box",
- onClick: _cache[0] || (_cache[0] = (...args) => $options.onreturn && $options.onreturn(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_list1" }, [
- vue.createElementVNode("image", {
- src: _imports_2,
- mode: ""
- })
- ]),
- vue.createElementVNode("view", { class: "fault_txt" }, " 故障页面 ")
- ]),
- vue.createElementVNode("view", { class: "parameter_box" }, [
- vue.createElementVNode("view", { class: "parameter_list1" }, [
- vue.createCommentVNode(' <image src="../../static/faultlist.png" mode=""></image> ')
- ]),
- vue.createElementVNode("view", { class: "fault_txt" }, [
- vue.createCommentVNode(" 故障页面 ")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_box" }, [
- vue.createElementVNode("view", { class: "parameter_list1" }, [
- vue.createCommentVNode(' <image src="../../static/faultlist.png" mode=""></image> ')
- ]),
- vue.createElementVNode("view", { class: "fault_txt" }, [
- vue.createCommentVNode(" 故障页面 ")
- ])
- ]),
- vue.createElementVNode("view", { class: "parameter_box" }, [
- vue.createElementVNode("view", { class: "parameter_list1" }, [
- vue.createCommentVNode(' <image src="../../static/faultlist.png" mode=""></image> ')
- ]),
- vue.createElementVNode("view", { class: "fault_txt" }, [
- vue.createCommentVNode(" 故障页面 ")
- ])
- ])
- ])
- ])
- ]);
- }
- const PagesFaultlistIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-108f6e37"], ["__file", "D:/project/esswisdom_ipad/pages/faultlist/index.vue"]]);
- __definePage("pages/index/index", PagesIndexIndex);
- __definePage("pages/home/index", PagesHomeIndex);
- __definePage("pages/details/index", PagesDetailsIndex);
- __definePage("pages/electricity/index", PagesElectricityIndex);
- __definePage("pages/supply/supply", PagesSupplySupply);
- __definePage("pages/supplyss/supplyss", PagesSupplyssSupplyss);
- __definePage("pages/faultlist/index", PagesFaultlistIndex);
- const _sfc_main = {
- data() {
- return {
- // uidatas:''
- };
- },
- computed: {},
- onLaunch: function() {
- plus.navigator.setFullscreen(true);
- plus.navigator.hideSystemNavigation();
- },
- mounted() {
- this.$store.dispatch("startClock");
- this.$store.dispatch("fetchFaultsList");
- },
- beforeUnmount() {
- },
- methods: {},
- onShow: function() {
- formatAppLog("log", "at App.vue:33", "App Show");
- },
- onHide: function() {
- formatAppLog("log", "at App.vue:36", "App Hide");
- }
- };
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/project/esswisdom_ipad/App.vue"]]);
- const Store = createStore({
- state: {
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- uidatasdata: {},
- selectorid: null,
- selectorindex: null,
- status: null
- },
- mutations: {
- increment(state) {
- state.count++;
- },
- setFormattedTime(state, time) {
- state.formattedTime = time;
- },
- setUidatasData(state, data) {
- state.uidatasdata = data;
- },
- setstatus(state, status) {
- state.status = status;
- },
- setSelectorId(state, id) {
- state.selectorid = id;
- },
- setSelectorIndex(state, index) {
- state.selectorindex = index;
- }
- },
- actions: {
- startClock({ commit }) {
- setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- const formattedTime = getTime(customFormat);
- commit("setFormattedTime", formattedTime);
- }, 1e3);
- },
- async fetchFaultsList({ commit }) {
- try {
- let data = {
- id: "3224a3eb-2375-4dfc-99ce-b182edd30996",
- page: 1,
- rows: 1e4
- };
- const response2 = await getuidatas(data);
- commit("setstatus", response2.status);
- if (response2.status == "ok") {
- const uidatasdata = response2.data.reduce((obj, item) => {
- let a = item.module;
- let b = item[a];
- let numericValue = parseFloat(b);
- let roundedValue = "";
- if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
- roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
- } else {
- roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
- }
- return {
- ...obj,
- [item.id]: roundedValue
- };
- }, {});
- commit("setUidatasData", uidatasdata);
- if (uidatasdata.SysControl_RunCmd == 1 || uidatasdata.SysControl_Gun1RunCmd == 1 || uidatasdata.SysControl_Gun2RunCmd == 1) {
- commit("setSelectorId", uidatasdata.SysInstall_EssRunModeManual);
- commit("setSelectorIndex", 1);
- } else {
- commit("setSelectorId", null);
- commit("setSelectorIndex", null);
- }
- } else {
- }
- } catch (error) {
- commit("setstatus", "NO");
- } finally {
- setTimeout(() => {
- this.dispatch("fetchFaultsList");
- }, 2e3);
- }
- }
- }
- });
- class Request {
- constructor(options = {}) {
- this.baseUrl = options.baseUrl || "http://10.168.1.100";
- this.url = options.url || "";
- this.method = "GET";
- this.data = null;
- this.header = options.header || {};
- this.beforeRequest = null;
- this.afterRequest = null;
- }
- // 添加对header的支持
- _mergeHeaders(customHeader = {}) {
- return Object.assign({}, this.header, customHeader);
- }
- get(url, data = {}, header = {}) {
- this.method = "GET";
- this.url = this.baseUrl + url;
- this.data = data;
- this.header = this._mergeHeaders(header);
- return this._();
- }
- post(url, data = {}, header = {}) {
- this.method = "POST";
- this.url = this.baseUrl + url;
- this.data = data;
- this.header = this._mergeHeaders(header);
- return this._();
- }
- put(url, data = {}) {
- this.method = "PUT";
- this.url = this.baseUrl + url;
- this.data = data;
- return this._();
- }
- delete(url, data = {}) {
- this.method = "DELETE";
- this.url = this.baseUrl + url;
- this.data = data;
- return this._();
- }
- _() {
- if (this.baseUrl == "") {
- this.url = "http://10.168.1.100" + this.url;
- }
- this.beforeRequest && typeof this.beforeRequest === "function" && this.beforeRequest(this);
- return new Promise((resolve, reject) => {
- let weixin = wx;
- if ("undefined" !== typeof uni) {
- weixin = uni;
- }
- weixin.request({
- url: this.url,
- method: this.method,
- data: this.data,
- header: this.header,
- success: (res) => {
- resolve(res);
- },
- fail: (err) => {
- reject(err);
- },
- complete: (res) => {
- this.afterRequest && typeof this.afterRequest === "function" && this.afterRequest(res);
- }
- });
- });
- }
- }
- const $http = new Request();
- function createApp() {
- const app = vue.createVueApp(App);
- app.use(Store);
- return {
- app
- };
- }
- uni.$http = $http;
- $http.baseUrl = "";
- $http.beforeRequest = function(options) {
- };
- $http.afterRequest = function() {
- };
- const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp();
- uni.Vuex = __Vuex__;
- uni.Pinia = __Pinia__;
- __app__.provide("__globalStyles", __uniConfig.styles);
- __app__._component.mpType = "app";
- __app__._component.render = () => {
- };
- __app__.mount("#app");
- })(Vue);
|