| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197 |
- 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$d = {
- 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$c(_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$d, [["render", _sfc_render$c], ["__scopeId", "data-v-a4566996"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue"]]);
- 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$c = {
- 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$b(_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$c, [["render", _sfc_render$b], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-transition/components/uni-transition/uni-transition.vue"]]);
- const _sfc_main$b = {
- 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$a(_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$b, [["render", _sfc_render$a], ["__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:6", response2);
- if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
- uni.removeStorageSync("token");
- login$1();
- return response2.data;
- }
- return response2.data;
- } catch (error) {
- formatAppLog("log", "at api/api.js:19", error);
- login$1();
- 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:33", response2);
- uni.showToast({
- title: response2.data.msg,
- icon: "none",
- // 使用 'none' 图标来表示失败
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
- uni.removeStorageSync("token");
- login$1();
- return response2.data;
- }
- return response2.data;
- } catch (error) {
- formatAppLog("log", "at api/api.js:52", error);
- login$1();
- 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:67", response2.data);
- if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
- uni.removeStorageSync("token");
- login$1();
- return response2.data;
- }
- return response2.data;
- } catch (error) {
- formatAppLog("error", "at api/api.js:80", "Network request failed:", error);
- formatAppLog("log", "at api/api.js:81", error);
- uni.removeStorageSync("token");
- login$1();
- return response.data;
- }
- };
- const login$1 = async (start, count) => {
- try {
- formatAppLog("log", "at api/api.js:95", "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:98", response2);
- if (response2.statusCode !== 200 || response2.data.error == "token过期且未提供刷新令牌") {
- return response2.data;
- }
- formatAppLog("log", "at api/api.js:107", 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);
- };
- const _imports_0 = "/static/logo.png";
- const _imports_1 = "/static/tite.png";
- const _imports_2$1 = "/static/electricity.png";
- const _imports_3$1 = "/static/choice1.png";
- const _imports_4$3 = "/static/power1.png";
- const _imports_5$2 = "/static/choice2.png";
- const _imports_6$1 = "/static/direct1.png";
- const _imports_7$1 = "/static/choice3.png";
- const _imports_8$1 = "/static/DCpower1.png";
- const _imports_9$1 = "/static/choice4.png";
- const _imports_10$1 = "/static/system.png";
- const _imports_11$1 = "/static/!.png";
- const _sfc_main$a = {
- data() {
- return {
- title: "",
- uidatasdata: {},
- uidatas: "",
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- formatTimeid: "",
- selectorid: 0,
- messageText: ""
- };
- },
- created() {
- this.formatTimeid = setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- this.formattedTime = getTime(customFormat);
- }, 1e3);
- },
- mounted() {
- },
- onLoad() {
- this.onfaultsList();
- },
- beforeUnmount() {
- clearInterval(this.formatTimeid);
- clearInterval(this.uidatas);
- },
- methods: {
- onfaultsList() {
- let data = {
- ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
- page: 1,
- rows: 1e4
- };
- getuidatas(data).then((data2) => {
- if (data2.status == "ok") {
- this.uidatasdata = data2.data.list.reduce((obj, item) => {
- let a = item.module;
- let b = item[a];
- let numericValue = parseFloat(b);
- let roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
- return {
- ...obj,
- [item.id]: roundedValue
- };
- }, {});
- this.selectorid = this.uidatasdata.SysInstall_EssRunModeManual;
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e4);
- } else {
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e4);
- }
- }).catch((error) => {
- formatAppLog("log", "at pages/index/index.vue:133", error);
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- });
- },
- onclick(e) {
- formatAppLog("log", "at pages/index/index.vue:142", e);
- if (this.uidatasdata.SysInstall_EssRunModeManual == e) {
- if (this.uidatasdata.SysInstall_EssRunModeManual == 3) {
- uni.redirectTo({
- url: "/pages/home/index"
- });
- } else if (this.uidatasdata.SysInstall_EssRunModeManual == 2) {
- uni.redirectTo({
- url: "/pages/electricity/index"
- });
- } else if (this.uidatasdata.SysInstall_EssRunModeManual == 4) {
- uni.redirectTo({
- url: "/pages/supply/supply"
- });
- } else if (this.uidatasdata.SysInstall_EssRunModeManual == 1) {
- uni.redirectTo({
- url: "/pages/supplyss/supplyss"
- });
- }
- } else {
- if (this.uidatasdata.SysControl_RunCmd == 1 || this.uidatasdata.SysControl_Gun1RunCmd == 1 || this.uidatasdata.SysControl_Gun2RunCmd == 1) {
- this.messageText = "请停止之前模式,在选择";
- this.$refs.message.open();
- return;
- } else if (e == 3) {
- if (this.uidatasdata.AC_Out_380V_125A_Status == 1) {
- this.messageText = "需将AC输出端125A的开关手动断开";
- this.$refs.message.open();
- return;
- } else if (this.uidatasdata.AC_Out_380V_63A_Status == 1) {
- this.messageText = "需将AC输出端63A的开关手动断开";
- this.$refs.message.open();
- return;
- } else if (this.uidatasdata.AC_Out_220V_16A_Status == 1) {
- this.messageText = "需将AC输出端16A的开关手动断开";
- this.$refs.message.open();
- return;
- } else {
- uni.setStorageSync("selector", e);
- this.pattern(e);
- }
- } else if (e == 2) {
- if (this.uidatasdata.AC_In_380V_63A1_Status == 1) {
- this.messageText = "需将AC输出端63A1的开关手动断开";
- this.$refs.message.open();
- return;
- } else if (this.uidatasdata.AC_In_380V_63A2_Status == 1) {
- this.messageText = "需将AC输出端63A2的开关手动断开";
- this.$refs.message.open();
- return;
- } else {
- uni.setStorageSync("selector", e);
- this.pattern(e);
- }
- } else {
- uni.setStorageSync("selector", e);
- this.pattern(e);
- }
- }
- },
- pattern(unm) {
- let data = {
- id: "c32e6a80-9159-4f6e-9acc-8525cf177808",
- issaveinitvalue: false,
- value: unm + ""
- // 直流供电=1,直流补电=4,交流供电=2,交流补电=3
- };
- control(data).then((data2) => {
- formatAppLog("log", "at pages/index/index.vue:243", 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 {
- uni.hideLoading();
- uni.showToast({
- title: "选择模式失败请重新选择",
- icon: "warning",
- duration: 2500
- // 显示时长,单位为毫秒
- });
- }
- });
- },
- system() {
- uni.redirectTo({
- url: "/pages/details/index"
- });
- }
- }
- };
- function _sfc_render$9(_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($data.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- $data.uidatasdata.bms_ChgLinkSt ? (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",
- onClick: _cache[0] || (_cache[0] = ($event) => $options.onclick(3))
- }, [
- $data.selectorid == 3 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_2$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_3$1,
- mode: ""
- }))
- ]),
- vue.createElementVNode("view", {
- class: "power_1",
- onClick: _cache[1] || (_cache[1] = ($event) => $options.onclick(2))
- }, [
- $data.selectorid == 2 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_4$3,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_5$2,
- mode: ""
- }))
- ]),
- vue.createElementVNode("view", {
- class: "power_1",
- onClick: _cache[2] || (_cache[2] = ($event) => $options.onclick(4))
- }, [
- $data.selectorid == 4 ? (vue.openBlock(), vue.createElementBlock("image", {
- key: 0,
- src: _imports_6$1,
- mode: ""
- })) : (vue.openBlock(), vue.createElementBlock("image", {
- key: 1,
- src: _imports_7$1,
- mode: ""
- }))
- ]),
- vue.createElementVNode("view", {
- class: "power_1",
- onClick: _cache[3] || (_cache[3] = ($event) => $options.onclick(1))
- }, [
- $data.selectorid == 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: ""
- }))
- ]),
- 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: ""
- })
- ])
- ]),
- this.uidatasdata.SysControl_RunCmd == 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$a, [["render", _sfc_render$9], ["__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$9 = {
- 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$8(_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$9, [["render", _sfc_render$8], ["__scopeId", "data-v-d78c88b7"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"]]);
- class Gauge {
- constructor({
- canvasId,
- startAngle = 3.5 / 4 * Math.PI,
- // 135
- endAngle = 0.5 / 4 * 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) {
- 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 _imports_2 = "/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$8 = {
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatasdata: {},
- uidatas: "",
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- formatTimeid: "",
- faultsdata: [],
- messageText: ""
- };
- },
- onLoad() {
- this.formatTimeid = setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- this.formattedTime = getTime(customFormat);
- }, 1e3);
- },
- mounted() {
- this.onfaultsList();
- this.onfaultsdata();
- setTimeout(() => {
- let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
- new Gauge({
- canvasId: "canvas2",
- value: SOC,
- lineWidth: 20,
- progressColor: ["#B0D0FF", "#5B8FF9"],
- valueColor: "blue"
- });
- }, 100);
- },
- beforeUnmount() {
- clearInterval(this.uidatas);
- clearInterval(this.formatTimeid);
- },
- methods: {
- // 页面信息
- onfaultsList() {
- let data = {
- ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
- page: 1,
- rows: 1e4
- };
- getuidatas(data).then((data2) => {
- formatAppLog("log", "at pages/home/index.vue:559", data2);
- if (data2.status == "ok") {
- if (!data2.data.list) {
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- this.uidatasdata = data2.data.list.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
- };
- }, {});
- formatAppLog("log", "at pages/home/index.vue:585", this.uidatasdata);
- if (this.uidatasdata.AC_Out_380V_125A_Status == 1) {
- this.messageText = "需将AC输出端125A的开关手动断开";
- this.$refs.message.open();
- } else if (this.uidatasdata.AC_Out_380V_63A_Status == 1) {
- this.messageText = "需将AC输出端63A的开关手动断开";
- this.$refs.message.open();
- } else if (this.uidatasdata.AC_Out_220V_16A_Status == 1) {
- this.messageText = "需将AC输出端16A的开关手动断开";
- this.$refs.message.open();
- }
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- } else {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- }).catch((error) => {
- formatAppLog("log", "at pages/home/index.vue:609", error);
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- });
- },
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/home/index.vue:629", 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.$refs.alertDialog.open();
- },
- // 确定
- dialogConfirm() {
- 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"
- };
- }
- control(data).then((data2) => {
- formatAppLog("log", "at pages/home/index.vue:684", data2);
- if (data2.status == "ok") {
- uni.showToast({
- title: "操作成功",
- icon: "none",
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- } else {
- uni.showToast({
- title: "操作失败",
- icon: "none",
- // 使用 'none' 图标来表示失败
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- }
- });
- },
- dialogClose() {
- this.$refs.alertDialog.close();
- },
- ontap(e) {
- formatAppLog("log", "at pages/home/index.vue:706", e);
- this.segmented = e;
- }
- }
- };
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
- 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($data.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- $data.uidatasdata.AC_In_380V_63A1_Status ? (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.createElementVNode("canvas", {
- class: "canvas",
- "canvas-id": "canvas2"
- }),
- 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,
- 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" }, [
- $data.uidatasdata.AC_In_380V_63A1_Status == 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(" 63A1状态 ")
- ]),
- $data.uidatasdata.AC_In_380V_63A1_Status == 1 ? (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" }, [
- $data.uidatasdata.AC_In_380V_63A2_Status == 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(" 63A2状态 ")
- ]),
- $data.uidatasdata.AC_In_380V_63A2_Status == 1 ? (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($data.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" }, [
- $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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?'有效':'无效'}} "),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, [
- $data.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])),
- $data.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- 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.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock(
- "text",
- {
- class: "parameter_home3",
- key: index
- },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- );
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ]),
- vue.createVNode(_component_uni_popup, {
- ref: "alertDialog",
- onMaskClick: $options.dialogClose
- }, {
- default: vue.withCtx(() => [
- vue.createVNode(_component_uni_popup_dialog, {
- mode: $data.modeinput,
- placeholder: "功率给定(0~80kW)",
- 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 */
- }, 8, ["onMaskClick"]),
- 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 PagesHomeIndex = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/esswisdom_ipad/pages/home/index.vue"]]);
- const _sfc_main$7 = {
- 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$6(_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$7, [["render", _sfc_render$6], ["__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$6 = {
- 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$5(_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$6, [["render", _sfc_render$5], ["__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$5 = {
- 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$4(_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(
- "text",
- null,
- 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$5, [["render", _sfc_render$4], ["__scopeId", "data-v-88b7506d"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue"]]);
- const _sfc_main$4 = {
- data() {
- return {
- current: 1,
- total: 0,
- pageSize: 10,
- faulttaps: "实时",
- faultsList: [],
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- formatTimeid: ""
- };
- },
- onLoad() {
- this.formatTimeid = setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- this.formattedTime = getTime(customFormat);
- }, 1e3);
- this.onfaultsList();
- },
- beforeUnmount() {
- clearInterval(this.formatTimeid);
- },
- 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:149", 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:167", e);
- this.current = e.current;
- this.onfaultsList();
- },
- taps(e) {
- this.faulttaps = e;
- formatAppLog("log", "at pages/details/index.vue:173", 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$3(_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($data.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- this.total ? (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$4, [["render", _sfc_render$3], ["__scopeId", "data-v-a45dfdea"], ["__file", "D:/project/esswisdom_ipad/pages/details/index.vue"]]);
- const _imports_4$1 = "/static/fang.png";
- const _sfc_main$3 = {
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatasdata: {},
- uidatas: "",
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- formatTimeid: "",
- faultsdata: [],
- messageText: ""
- };
- },
- onLoad() {
- },
- mounted() {
- this.formatTimeid = setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- this.formattedTime = getTime(customFormat);
- }, 1e3);
- this.onfaultsList();
- this.onfaultsdata();
- setTimeout(() => {
- let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
- new Gauge({
- canvasId: "canvas2",
- value: SOC,
- lineWidth: 20,
- progressColor: ["#B0D0FF", "#5B8FF9"],
- valueColor: "blue"
- });
- }, 100);
- },
- beforeUnmount() {
- clearInterval(this.uidatas);
- clearInterval(this.formatTimeid);
- },
- methods: {
- onfaultsList() {
- let data = {
- ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
- page: 1,
- rows: 1e4
- };
- getuidatas(data).then((data2) => {
- if (data2.status == "ok") {
- if (!data2.data.list) {
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- this.uidatasdata = data2.data.list.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
- };
- }, {});
- if (this.uidatasdata.AC_In_380V_63A1_Status == 1) {
- this.messageText = "需将AC输出端63A1的开关手动断开";
- this.$refs.message.open();
- } else if (this.uidatasdata.AC_In_380V_63A2_Status == 1) {
- this.messageText = "需将AC输出端63A2的开关手动断开";
- this.$refs.message.open();
- }
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- } else {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- }).catch((error) => {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- });
- },
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/electricity/index.vue:626", 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/electricity/index.vue:686", this.value);
- this.$refs.alertDialog.close();
- },
- ontap(e) {
- formatAppLog("log", "at pages/electricity/index.vue:690", e);
- this.segmented = e;
- }
- }
- };
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
- 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($data.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- $data.uidatasdata.bms_ChgLinkSt ? (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.createElementVNode("canvas", {
- class: "canvas",
- "canvas-id": "canvas2"
- }),
- 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,
- 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" }, [
- $data.uidatasdata.AC_Out_380V_125A_Status == 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(" 125A状态 ")
- ]),
- $data.uidatasdata.AC_Out_380V_125A_Status == 1 ? (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" }, [
- $data.uidatasdata.AC_Out_380V_63A_Status == 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(" 63A状态 ")
- ]),
- $data.uidatasdata.AC_Out_380V_63A_Status == 1 ? (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" }, [
- $data.uidatasdata.AC_Out_220V_16A_Status == 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(" 16A状态 ")
- ]),
- $data.uidatasdata.AC_Out_220V_16A_Status == 1 ? (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($data.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" }, [
- $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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?'有效':'无效'}} "),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, [
- $data.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])),
- $data.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- 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.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock(
- "text",
- {
- class: "parameter_home3",
- key: index
- },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- );
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ]),
- vue.createVNode(_component_uni_popup, {
- ref: "alertDialog",
- onMaskClick: $options.dialogClose
- }, {
- 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 */
- }, 8, ["onMaskClick"]),
- 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 PagesElectricityIndex = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-a9482145"], ["__file", "D:/project/esswisdom_ipad/pages/electricity/index.vue"]]);
- const _imports_5 = "/static/shan.png";
- const _sfc_main$2 = {
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatasdata: {},
- uidatas: "",
- formatTimeid: "",
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- faultsdata: []
- };
- },
- onLoad() {
- },
- mounted() {
- this.formatTimeid = setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- this.formattedTime = getTime(customFormat);
- }, 1e3);
- this.onfaultsList();
- this.onfaultsdata();
- setTimeout(() => {
- let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
- new Gauge({
- canvasId: "canvas2",
- value: SOC,
- lineWidth: 20,
- progressColor: ["#B0D0FF", "#5B8FF9"],
- valueColor: "blue"
- });
- }, 500);
- },
- beforeUnmount() {
- clearInterval(this.uidatas);
- clearInterval(this.formatTimeid);
- },
- methods: {
- onfaultsList() {
- let data = {
- ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
- page: 1,
- rows: 1e4
- };
- getuidatas(data).then((data2) => {
- if (data2.status == "ok") {
- if (!data2.data.list) {
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- this.uidatasdata = data2.data.list.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 };
- }, {});
- formatAppLog("log", "at pages/supply/supply.vue:591", this.uidatasdata);
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- } else {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- }).catch((error) => {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- });
- },
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/supply/supply.vue:621", 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:681", this.value);
- this.$refs.alertDialog.close();
- },
- ontap(e) {
- formatAppLog("log", "at pages/supply/supply.vue:685", e);
- this.segmented = e;
- }
- }
- };
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
- 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($data.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- $data.uidatasdata.bms_ChgLinkSt ? (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.createElementVNode("canvas", {
- class: "canvas",
- "canvas-id": "canvas2"
- }),
- 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,
- 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(($data.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * $data.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($data.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" }, [
- $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.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> '),
- $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
- $data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, " 充电连接状态 "),
- $data.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_Batterystate"
- }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_Batterystate"
- }, " 无连接 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
- $data.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])) : 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($data.uidatasdata.PCSACChargeEnergy) + " ",
- 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($data.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?'有效':'无效'}} "),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, [
- $data.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31",
- onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])),
- $data.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- 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.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock(
- "text",
- {
- class: "parameter_home3",
- key: index
- },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- );
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ]),
- vue.createVNode(_component_uni_popup, {
- ref: "alertDialog",
- onMaskClick: $options.dialogClose
- }, {
- 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 */
- }, 8, ["onMaskClick"])
- ]);
- }
- const PagesSupplySupply = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-80112fae"], ["__file", "D:/project/esswisdom_ipad/pages/supply/supply.vue"]]);
- const _imports_4 = "/static/che1.png";
- const _sfc_main$1 = {
- data() {
- return {
- successtype: "success",
- confirmText: "确认启动",
- title: "你确定要开启该设备吗?",
- content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
- value: "",
- modeinput: "",
- segmented: 1,
- uidatasdata: {},
- uidatas: "",
- formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
- formatTimeid: "",
- ChargingStation: 1,
- faultsdata: []
- };
- },
- onLoad() {
- },
- mounted() {
- this.formatTimeid = setInterval(() => {
- const customFormat = "yyyy年MM月dd日 hh:mm:ss";
- this.formattedTime = getTime(customFormat);
- }, 1e3);
- this.onfaultsList();
- this.onfaultsdata();
- setTimeout(() => {
- let SOC = (this.uidatasdata.SOC * 1).toFixed(0);
- new Gauge({
- canvasId: "canvas2",
- value: SOC,
- lineWidth: 20,
- progressColor: ["#B0D0FF", "#5B8FF9"],
- valueColor: "blue"
- });
- }, 100);
- },
- beforeUnmount() {
- clearInterval(this.uidatas);
- clearInterval(this.formatTimeid);
- },
- methods: {
- onfaultsList() {
- let data = {
- ID: "3224a3eb-2375-4dfc-99ce-b182edd30996",
- page: 1,
- rows: 1e4
- };
- getuidatas(data).then((data2) => {
- if (data2.status == "ok") {
- if (!data2.data.list) {
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- this.uidatasdata = data2.data.list.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 };
- }, {});
- formatAppLog("log", "at pages/supplyss/supplyss.vue:801", this.uidatasdata);
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- } else {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- }
- }).catch((error) => {
- this.uidatasdata = {};
- this.uidatas = setTimeout(() => {
- this.onfaultsList();
- }, 1e3);
- });
- },
- onfaultsdata() {
- let data = {
- page: 1,
- rows: 1,
- device: "",
- starttime: "",
- endtime: "",
- rt: 1,
- type: ""
- };
- getfaultsList(data).then((res) => {
- formatAppLog("log", "at pages/supplyss/supplyss.vue:833", 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:890", 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:909", this.value);
- this.$refs.alertDialog.close();
- },
- // 切换标签
- ontap(e) {
- formatAppLog("log", "at pages/supplyss/supplyss.vue:914", e);
- this.segmented = e;
- if (this.segmented == 1) {
- this.ChargingStation = 1;
- } else if (this.segmented == 2) {
- this.ChargingStation = 2;
- }
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- 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($data.formattedTime),
- 1
- /* TEXT */
- ),
- vue.createElementVNode("view", { class: "time_bottom" }, [
- vue.createElementVNode("view"),
- vue.createElementVNode("view", { class: "time_bottom1" }, [
- vue.createTextVNode(" 连接状态: "),
- $data.uidatasdata.bms_ChgLinkSt ? (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.createElementVNode("canvas", {
- class: "canvas",
- "canvas-id": "canvas2"
- }),
- 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,
- 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" }, [
- $data.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(" 连接状态 ")
- ]),
- $data.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" }, [
- $data.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(" 连接状态 ")
- ]),
- $data.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" }, [
- $data.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" }, [
- $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, [
- $data.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" }, [
- $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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" }, [
- $data.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- $data.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))
- },
- " 枪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信息 ",
- 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($data.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($data.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($data.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(($data.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * $data.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($data.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($data.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($data.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
- ])
- ])
- ])
- ])) : 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($data.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($data.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($data.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(($data.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage * $data.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($data.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($data.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($data.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
- 1
- /* TEXT */
- ),
- vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
- ])
- ])
- ])
- ])) : 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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
- $data.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?'无效':'有效'}} "),
- $data.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, [
- $data.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
- $data.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" }, " 充电连接状态 "),
- $data.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_Batterystate"
- }, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_Batterystate"
- }, " 无连接 "))
- ]),
- vue.createElementVNode("view", { class: "parameter_zheng11" }, [
- vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
- vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
- vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
- $data.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
- ])
- ])
- ])
- ])) : 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?'有效':'无效'}} "),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
- $data.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($data.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?'无效':'有效'}} "),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
- $data.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"
- }, [
- $data.uidatasdata.SysControl_Gun1RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31",
- onClick: _cache[5] || (_cache[5] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])),
- $data.uidatasdata.SysControl_Gun1RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31",
- onClick: _cache[6] || (_cache[6] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ]))
- ])) : vue.createCommentVNode("v-if", true),
- this.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 6,
- class: "parameter_zheng3"
- }, [
- $data.uidatasdata.SysControl_Gun2RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 0,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 1,
- class: "parameter_zheng31",
- onClick: _cache[7] || (_cache[7] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
- ])),
- $data.uidatasdata.SysControl_Gun2RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
- key: 2,
- class: "parameter_zheng31"
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
- ])) : (vue.openBlock(), vue.createElementBlock("view", {
- key: 3,
- class: "parameter_zheng31",
- onClick: _cache[8] || (_cache[8] = (...args) => $options.onstopit && $options.onstopit(...args))
- }, [
- vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
- ]))
- ])) : vue.createCommentVNode("v-if", true),
- vue.createCommentVNode(' <view class="parameter_zheng3" v-if="this.segmented==3||this.segmented==4||this.segmented==5">\r\n <view v-if="uidatasdata.SysControl_RunCmd==1" class="parameter_zheng31">\r\n <view class="parameter_zheng32ccc">\r\n 开启\r\n </view>\r\n </view>\r\n <view v-else class="parameter_zheng31" @click="dialogToggle">\r\n <view class="parameter_zheng32">\r\n 开启\r\n </view>\r\n </view>\r\n <view class="parameter_zheng31" v-if="uidatasdata.SysControl_RunCmd==0">\r\n <view class="parameter_zheng32ccc">\r\n 停止\r\n </view>\r\n </view>\r\n <view class="parameter_zheng31" v-else @click="onstopit">\r\n <view class="parameter_zheng33">\r\n 停止\r\n </view>\r\n </view>\r\n \r\n </view> ')
- ]),
- 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.openBlock(true), vue.createElementBlock(
- vue.Fragment,
- null,
- vue.renderList($data.faultsdata, (item, index) => {
- return vue.openBlock(), vue.createElementBlock(
- "text",
- {
- class: "parameter_home3",
- key: index
- },
- vue.toDisplayString(item["CONTENT"]),
- 1
- /* TEXT */
- );
- }),
- 128
- /* KEYED_FRAGMENT */
- ))
- ])
- ])
- ])
- ]),
- vue.createVNode(_component_uni_popup, {
- ref: "alertDialog",
- onMaskClick: $options.dialogClose
- }, {
- 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 */
- }, 8, ["onMaskClick"])
- ]);
- }
- const PagesSupplyssSupplyss = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-0d60935b"], ["__file", "D:/project/esswisdom_ipad/pages/supplyss/supplyss.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);
- const _sfc_main = {
- data() {
- return {
- // uidatas:''
- };
- },
- onLaunch: function() {
- plus.navigator.setFullscreen(true);
- plus.navigator.hideSystemNavigation();
- },
- beforeUnmount() {
- },
- methods: {
- onlogin() {
- login().then((data) => {
- formatAppLog("log", "at App.vue:31", data);
- if (data.status == "ok") {
- uni.setStorage({
- key: "token",
- data: data.data.token,
- success: function(res) {
- formatAppLog("log", "at App.vue:37", res);
- }
- });
- } else {
- uni.showToast({
- title: data.msg,
- icon: "none",
- duration: 2e3
- // 显示时长,单位为毫秒
- });
- }
- });
- }
- },
- onShow: function() {
- formatAppLog("log", "at App.vue:52", "App Show");
- },
- onHide: function() {
- formatAppLog("log", "at App.vue:55", "App Hide");
- }
- };
- const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/project/esswisdom_ipad/App.vue"]]);
- 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._();
- }
- _() {
- 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) => {
- formatAppLog("log", "at api/http.js:91", res);
- this.afterRequest && typeof this.afterRequest === "function" && this.afterRequest(res);
- }
- });
- });
- }
- }
- const $http = new Request();
- function createApp() {
- const app = vue.createVueApp(App);
- 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);
|