123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861 |
- <template>
- <div class="projectManagement_template">
- <div class="nav_top">
- <div class="left_title">
- <img src="../img/iconfont/notice.png"><span class="span">Please pay attention to the updated content at any time.</span>
- </div>
- <div class="right_operation">
- <el-dropdown @command="commandDropdown" trigger="click" @visible-change="commandHide('dropdown_projectManagement_division')">
- <span class="el-dropdown-link">
- <span>{{divisionName}}</span><i class="el-icon-caret-bottom el-icon--right"></i>
- </span>
- <el-dropdown-menu slot="dropdown" class="scrollbar_style dropdown_projectManagement_division">
- <el-dropdown-item v-for="item in divisionNav" :class="{'select':item.id==division}" :command="{'key':'division','id':item.id}" :key="item.id">{{item.name}}</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- <el-input placeholder="search..." v-model="keywords" @keyup.native="getLightListKeyUp($event)" class="input-with-select">
- <i slot="suffix" class="el-input__icon el-icon-search" @click="getLightList()"></i>
- </el-input>
- <div class="btn" @click="addItemFun()"><img src="../img/iconfont/add.png"><span>New project</span></div>
- </div>
- </div>
- <div class="projectManagement_main">
- <side-bar-idcol class="side_bar_left" :sideBarList="projectNav" :companyId="companyId" :projectId="projectId" :roadId="roadId" :sideBarListIsOpen="sideBarListIsOpen" :projectSelectFun="projectSelectFun" :roadSelectFun="roadSelectFun" :sideBarIsOn="sideBarIsOn" :sideBarType="sideBarType" :sideBarCompanyList="sideBarCompanyList"></side-bar-idcol>
- <div class="main_top">
- <div class="main_top_left">
- <div class="main_top_left_left">
- <div class="title">
- <div class="l_text">
- <span class="span1">{{detailData.projectname}}</span>
- <span class="span2">Number:{{detailData.number}}</span>
- </div>
- <div class="r_btn" @click="editProject()"><i class="iconfont icon-bianji"></i></div>
- </div>
- <p class="p"><i class="iconfont icon-dizhi"></i><span class="span2">{{detailData.location}}</span></p>
- <div class="data_bpx">
- <div class="li">
- <p class="p1">{{Number(deviceTotalData.light_num).formatNumberRgx()}}</p>
- <p class="p2">Lights</p>
- </div>
- <div class="li">
- <p class="p1"><span class="span1">{{Number(deviceTotalData.online_num).formatNumberRgx()}}</span><span class="span2">{{deviceTotalData.online_rate}}</span></p>
- <p class="p2">On-line</p>
- </div>
- <div class="li">
- <p class="p1"><span class="span1">{{Number(deviceTotalData.light_num).formatNumberRgx()}}</span><span class="span2">{{deviceTotalData.light_rate}}</span></p>
- <p class="p2">Light-up</p>
- </div>
- <div class="li">
- <p class="p1"><span class="span1">{{Number(deviceTotalData.fault_count).formatNumberRgx()}}</span><span class="span2">{{deviceTotalData.fault_rate}}</span></p>
- <p class="p2">Flaut</p>
- </div>
- </div>
- </div>
- <div class="main_top_left_right">
- <div class="box box1">
- <p class="p1"><i></i><span>Time zone</span></p>
- <p class="p2">{{detailData.timezone}}</p>
- </div>
- <div class="box box2">
- <p class="p1"><i></i><span>Creation time</span></p>
- <p class="p2">{{detailData.create_time}}</p>
- </div>
- <div class="box box3">
- <p class="p1"><i></i><span>Region</span></p>
- <p class="p2">{{detailData.address}}</p>
- </div>
- </div>
- </div>
- <div class="main_top_right">
- <template v-if="weatherList.length>0">
- <div class="weather_top">
- <div class="weather_top_l">
- <div class="box1">
- <img src="../img/weather/304.png">
- </div>
- <div class="box2">
- <p class="p1">Today</p>
- <p class="p2">{{weatherList[0].Thundershower}}</p>
- </div>
- </div>
- <div class="weather_top_r">
- <div class="box1">
- <img src="../img/sunrise.png">
- <p class="p2">{{weatherList[0].sr}}</p>
- </div>
- <div class="box2">
- <img src="../img/sunset.png">
- <p class="p2">{{weatherList[0].ss}}</p>
- </div>
- <div class="box3"><span>{{(currentTime.format('HH:MM'))}}</span></div>
- </div>
- </div>
- <div class="weather_top_bottom" v-if="weatherList.length>1">
- <div class="li">
- <p class="p1">{{weatherList[1].dateStr}}</p>
- <img :src="require('../img/weather/'+weatherList[1].code+'.png')">
- <p class="p2">{{weatherList[1].maxTmp+'/'+weatherList[1].minTmp}}</p>
- </div>
- <div class="li">
- <p class="p1">{{weatherList[2].dateStr}}</p>
- <img :src="require('../img/weather/'+weatherList[2].code+'.png')">
- <p class="p2">{{weatherList[2].maxTmp+'/'+weatherList[2].minTmp}}</p>
- </div>
- <div class="li">
- <p class="p1">{{weatherList[3].dateStr}}</p>
- <img :src="require('../img/weather/'+weatherList[3].code+'.png')">
- <p class="p2">{{weatherList[3].maxTmp+'/'+weatherList[3].minTmp}}</p>
- </div>
- <div class="li">
- <p class="p1">{{weatherList[4].dateStr}}</p>
- <img :src="require('../img/weather/'+weatherList[4].code+'.png')">
- <p class="p2">{{weatherList[4].maxTmp+'/'+weatherList[4].minTmp}}</p>
- </div>
- <div class="li">
- <p class="p1">{{weatherList[5].dateStr}}</p>
- <img :src="require('../img/weather/'+weatherList[2].code+'.png')">
- <p class="p2">{{weatherList[5].maxTmp+'/'+weatherList[5].minTmp}}</p>
- </div>
- <div class="li">
- <p class="p1">{{weatherList[6].dateStr}}</p>
- <img :src="require('../img/weather/'+weatherList[6].code+'.png')">
- <p class="p2">{{weatherList[6].maxTmp+'/'+weatherList[6].minTmp}}</p>
- </div>
- </div>
- </template>
- </div>
- </div>
- <div class="main_table">
- <div class="table_top">
- <div class="table_top_l">
- <el-dropdown @command="commandDropdown" trigger="click" @visible-change="commandHide('dropdown_projectManagement_roadId')">
- <span class="el-dropdown-link">
- <span>{{roadIdName}}</span><i class="el-icon-caret-bottom el-icon--right"></i>
- </span>
- <el-dropdown-menu slot="dropdown" class="scrollbar_style dropdown_projectManagement_roadId">
- <el-dropdown-item :class="{'select':roadId== 0}" :command="{'key':'roadId','id':0}" :key="0">All</el-dropdown-item>
- <el-dropdown-item v-for="item in tabNavList" :class="{'select':item.id==roadId}" :command="{'key':'roadId','id':item.id}" :key="item.id">{{item.name}}</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- <div class="nav_box">
- <div class="li" :class="{'select':status=='0' && alarmtype == '0' && offline == '0' && online == '0'}" @click="statusTypeFun('0','0','0','0')"><span>All</span></div>
- <div class="li" :class="{'select':alarmtype == '1'}" @click="statusTypeFun('0','1','0','0')"><span>Overdischarge</span></div>
- <div class="li" :class="{'select':alarmtype == '2'}" @click="statusTypeFun('0','2','0','0')"><span>Overpressure</span></div>
- <div class="li" :class="{'select':offline == '1'}" @click="statusTypeFun('0','0','1','0')"><span>Offline</span></div>
- <div class="li" :class="{'select':online == '1'}" @click="statusTypeFun('0','0','0','1')"><span>Online</span></div>
- <div class="li" :class="{'select':status == '1'}" @click="statusTypeFun('1','0','0','0')"><span>Warning</span></div>
- </div>
- <div class="btn" @click="batchProcessingFun('on')" v-if="batchProcessing=='off'"><i class="iconfont icon-piliangcaozuo"></i><span>Batch management</span></div>
- <div class="left_button" v-if="batchProcessing=='on'">
- <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='1'}" @click="batchOperation('1')"><span>Turn-on</span></div>
- <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='0'}" @click="batchOperation('0')"><span>Turn-off</span></div>
- <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='参数'}" @click="batchOperation('参数')"><span>Parameter</span></div>
- <div class="dimming_slider_box" :class="{'lampcontrol_type_select':lampcontrolOperationType=='调光'}" @click="batchOperation('调光')">
- <span>Dimming</span>
- <el-slider v-model="batchDimmingVal" v-if="lampcontrolOperationType=='调光'"></el-slider>
- <span class="span_last" v-if="lampcontrolOperationType=='调光'">{{batchDimmingVal}}%</span>
- </div>
- <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='3'}" @click="batchOperation('3')"><span class="del">Delete</span></div>
- <div :class="{'wxzzt':lampcontrolOperationType == '-1'}"><span @click="batchProcessingFun('off')" v-loading="loading.batchProcessingFun">{{lampcontrolOperationType=='参数'?'modify':'Save'}}</span></div>
- <div @click="batchProcessingFun('cancel')"><span>Cancel</span></div>
- </div>
- <div class="btn" @click="lampcontrolUpdate()" v-loading="loading.lampcontrolUpdate">Update</div>
- </div>
- <div class="table_top_r">
- <div class="btn" @click="getLightList()">
- <i class="iconfont icon-shuaxin"></i>
- </div>
- <div class="btn" @click="fieldManagement()">
- <i class="iconfont icon-ziduan"></i><span>Field</span>
- </div>
- <div class="btn" @click="addLightControlFun()">
- <img src="../img/iconfont/add.png"><span>New Light</span>
- </div>
- </div>
- </div>
- <el-table
- ref="deviceList"
- v-loading="loading.deviceList"
- element-loading-background="rgba(255, 255, 255, 0.5)"
- height="calc(100% - 9.6rem)"
- @selection-change="handleSelectionChange"
- :data="deviceList">
- <el-table-column
- fixed
- type="selection"
- width="50">
- </el-table-column>
- <el-table-column
- label="Num"
- prop="webIndex"
- align="center"
- header-align="center"
- width="60">
- </el-table-column>
- <el-table-column
- v-for="(item) in deviceArr"
- :key="'table_'+item.prop"
- :prop="item.prop"
- :label="item.label"
- :align="item.align?item.align:'center'"
- :width="item.width"
- :show-overflow-tooltip="true"
- :min-width="item.minWidth">
- <template slot-scope="scope">
- <span v-if="item.prop != 'status'&&item.prop != 'lighteness'">{{scope.row[item.prop]}}{{item.unit?item.unit:''}}</span>
- <div v-if="item.prop == 'status'" class="status">
- <img src="../img/projectManagement/Online.png" v-if="scope.row[item.prop] == '1'">
- <img src="../img/projectManagement/Offline.png" v-if="scope.row[item.prop] == '0'" >
- </div>
- <div v-if="item.prop == 'lighteness'" class="Brightness">
- <div class="progress_outer" @click="brightnessAdjustment($event,scope.row)">
- <div class="progress_inner" :style="{'width':scope.row['lighteness']+'%'}">
- </div>
- <div class="text" :class="{'light50':scope.row['lighteness'] >55,'light0':scope.row['lighteness'] ==0}">{{scope.row['lighteness'] != 0 ? scope.row['lighteness']+'%':'off'}}</div>
- </div>
- <!-- <div style="position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;" ></div> -->
- </div>
- </template>
- </el-table-column>
- <el-table-column
- fixed="right"
- align="center"
- :width="12*remRatio"
- :label="'operation'">
- <template slot-scope="scope">
- <span class="btn" @click="seeFun(scope.row)" title="See">
- <i class="iconfont icon-chakanxiangqing"></i>
- </span>
- <span class="btn" @click="editFun(scope.row)" title="Edit">
- <i class="iconfont icon-bianji"></i>
- </span>
- <span class="btn" @click="historicalFun(scope.row)" title="Historical">
- <i class="iconfont icon-lishi"></i>
- </span>
- <span class="btn" @click="gisFun(scope.row,'GIS')" title="GIS">
- <i class="iconfont icon-GIS"></i>
- </span>
- <span class="btn" @click="monitorFun(scope.row)" title="Weather">
- <i class="iconfont icon-canshu"></i>
- </span>
- </template>
- </el-table-column>
- </el-table>
- <div class="pagination_box">
- <div class="left">
- <div class="totle">
- <span class="span1">Total</span>
- <span class="span2">{{total}}</span>
- </div>
- <div class="line"></div>
- <el-dropdown @command="commandDropdown" trigger="click" @visible-change="commandHide('dropdown_projectManagement_division')">
- <span class="el-dropdown-link">
- <span>{{pageSizeName}}</span><i class="el-icon-caret-bottom el-icon--right"></i>
- </span>
- <el-dropdown-menu slot="dropdown" class="scrollbar_style dropdown_projectManagement_pageSize">
- <el-dropdown-item v-for="item in pageSizeArr" :class="{'select':item.id==pageSize}" :command="{'key':'pageSize','id':item.id}" :key="item.id">{{item.name}}</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- </div>
- <el-pagination
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- :page-sizes="pageSizeArr"
- :page-size="pageSize"
- layout="prev, pager, next, jumper"
- :total="total">
- </el-pagination>
- </div>
- </div>
- </div>
- <div class="lamp_light_slider" v-show="lampLightSliderShow">
- <div class="bg" @click="lampLightSliderClose()"></div>
- <div class="box" :style="{'top':lampLightSliderPageY+'px','left':lampLightSliderPageX+'px'}">
- <div class="div1">
- <span></span><i></i>
- </div>
- <div class="div2">
- <div>
- <span>{{'brightness'}}: {{lampLightSlider}}%</span>
- <span @click="lampLightSliderSave()" v-loading="loading.lampLightSlider">{{'save'}}</span>
- </div>
- <div>
- <el-slider v-model="lampLightSlider"></el-slider>
- </div>
- </div>
- </div>
- </div>
- <!-- 添加/编辑项目弹框 -->
- <el-dialog
- :title="projectTitle"
- :visible.sync="addItemDialog"
- :close-on-click-modal="false"
- class="addItem_box"
- width="60%">
- <el-form ref="addItemData" label-width="120px" :model="addItemData" label-position="right" class="box">
- <el-row>
- <el-col :span="12" class="left_box">
- <el-form-item label="Project name:" prop="projectName" :rules="{required: true, message: 'Can not be empty', trigger: 'blur'}">
- <el-input v-model="addItemData.projectName" @keyup.native="projectKeydown($event)"></el-input>
- </el-form-item>
- <el-form-item label="Country:" prop="countryId" :rules="{required: true, message: 'Not null', trigger: 'change'}">
- <el-select v-model="addItemData.countryId" @change = "countryType" @keyup.native="projectKeydown($event)">
- <el-option
- v-for="item in countryList"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="City:" prop="cityId" :rules="{required: true, message: 'Not null', trigger: 'change'}" v-if="cityList.length > 0">
- <el-select v-model="addItemData.cityId" @change = "cityType" @keyup.native="projectKeydown($event)">
- <el-option
- v-for="item in cityList"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="City:" v-if="cityList.length == 0">
- <el-input v-model="addItemData.cityId" :disabled="true"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="Number:" prop="projectNo" :rules="{required: true, message: 'Can not be empty', trigger: 'blur'}">
- <el-input v-model="addItemData.projectNo" @keyup.native="projectKeydown($event)"></el-input>
- </el-form-item>
- <el-form-item label="Province:" prop="provinceId" :rules="{required: true, message:'Not null', trigger: 'change'}" v-if="provinceList.length > 0">
- <el-select v-model="addItemData.provinceId" @change = "provinceType" @keyup.native="projectKeydown($event)">
- <el-option
- v-for="item in provinceList"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="Province:" v-if="provinceList.length == 0">
- <el-input v-model="addItemData.provinceId" :disabled="true"></el-input>
- </el-form-item>
- <el-form-item label="Area:" prop="areaId" :rules="{required: true, message:'Not null', trigger: 'change'}" v-if="areaList.length > 0">
- <el-select v-model="addItemData.areaId" @keyup.native="projectKeydown($event)">
- <el-option
- v-for="item in areaList"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="Area:" v-if="areaList.length == 0">
- <el-input v-model="addItemData.areaId" :disabled="true"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-form-item label="Inspection time:" prop="patrolinterval">
- <el-select v-model="addItemData.patrolinterval" style="width:100%" @keyup.native="projectKeydown($event)">
- <el-option key="0" value="0" :label="'Close inspection'"></el-option>
- <el-option key="5" value="5" :label="'5min'"></el-option>
- <el-option key="10" value="10" :label="'10min'"></el-option>
- <el-option key="30" value="30" :label="'30min'"></el-option>
- <el-option key="60" value="60" :label="'1h'"></el-option>
- <el-option key="120" value="120" :label="'2h'"></el-option>
- <el-option key="360" value="360" :label="'6h'"></el-option>
- <el-option key="720" value="720" :label="'12h'"></el-option>
- <el-option key="1440" value="1440" :label="'24h'"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="Address:" prop="address">
- <el-input v-model="addItemData.address" type="textarea" @keyup.native="projectKeydown($event)"></el-input>
- </el-form-item>
- </el-form>
- <div class="dialog_foot">
- <el-button type="primary" @click="projectSaveFun()" v-loading="projectSaveLoading">{{projectButton}}</el-button>
- <span class="project_del" v-if="projectTitle == 'Edit Project'" @click="projectSaveDel()">{{'Delete Project'}}</span>
- </div>
- </el-dialog>
- <!-- 字段管理弹框 -->
- <el-dialog
- :title="'Field Management'"
- :visible.sync="fieldDialog"
- :close-on-click-modal="false"
- class="field_box"
- width="95%">
- <div class="clearfix" :class="{'fielf_box':(windowWidth < 1600 && version == 0)}">
- <div class="field_list" :class="{'field_select':item.select=='1'&&item.select}" v-for="(item) in fieldList" :key="item.fields" v-show="item.fields1 != 'lighteness'">
- <div @click="fieldSelect(item)">
- <img src="../img/projectManagement/select.png" height="12" width="12" v-if="item.select=='1'">
- <span>{{item.enname}}</span>
- </div>
- </div>
- </div>
- <div class="dialog_foot">
- <el-button type="primary" @click="fieldKeep()" v-loading="loading.fieldKeep">{{'Save'}}</el-button>
- </div>
- </el-dialog>
- <!-- 表格详情弹框 -->
- <el-dialog
- title="Lamp Details"
- :visible.sync="detailsDialog"
- :close-on-click-modal="false"
- class="solar_dialig details_box"
- width="95%">
- <div class="wrap">
- <div class="nav clearfix" style="width: 550px;margin-left: -275px;">
- <div class="nav_list"
- :class="{'details_nav_select':detailsNavSelect==item.model}"
- v-for="item in detailsNavListEN"
- :key="item.label"
- @click="detailsNavSelectFun(item)"><span>{{item.label}}</span></div>
- </div>
- <div class="details_list_box clearfix" :class="{'details_list_box_EN':version == 0}" v-loading="loading.detailsFieldList">
- <div class="details_list" :class="{'details_list_min':(windowWidth < 1600 && version == 0)}" v-for="item in detailsFieldList" :key="item.key">
- <template v-if="!(lampcontrolListHC['devicetype'] == '1')&&!(item.model =='lighteness'&&lampLoadtype=='1')">
- <span v-if="item.unit">{{item.key+'('+item.unit+'):'}}</span>
- <span v-if="!item.unit">{{item.key+':'}}</span>
- <span v-if="item.value && item.model!='lampstatus'&&item.model !='status'&&item.model !='devicetype'&&item.model !='battstatus'&&item.model !='chargestage'" :title="item.value">{{item.value}}</span>
- <span v-if="item.model && item.model=='lampstatus' && item.value == '0'" :title="'Off'">{{'Off'}}</span>
- <span v-if="item.model && item.model=='lampstatus' && item.value == '1'" :title="'On'">{{'On'}}</span>
- <span v-if="item.model && item.model=='status' && item.value == '0'" :title="'Not online'">{{'Not online'}}</span>
- <span v-if="item.model && item.model=='status' && item.value == '1'" :title="'Online'">{{'Online'}}</span>
- <span v-if="item.model && item.model=='battstatus' && item.value == '0'" :title="'idle'">{{'idle'}}</span>
- <span v-if="item.model && item.model=='battstatus' && item.value == '1'" :title="'Discharging'">{{'Discharging'}}</span>
- <span v-if="item.model && item.model=='battstatus' && item.value == '2'" :title="'Charging'">{{'Charging'}}</span>
- <span v-if="item.model && item.model=='battstatus' && item.value == '3'" :title="'Discharge while charging'">{{'Discharge while charging'}}</span>
- <span v-if="item.model && item.model=='chargestage' && (item.value == ''||item.value == null)" :title="'Unknown state'">{{'Unknown state'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '0'" :title="'Uncharged'">{{'Uncharged'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '1'" :title="'Start charging'">{{'Uncharged'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '6'" :title="'Current limiting'">{{'Uncharged'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '7'" :title="'Full'">{{'Uncharged'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '16'" :title="'MPPT charging'">{{'MPPT charging'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '32'" :title="'Balanced charge'">{{'Balanced charge'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '48'" :title="'Increase charging'">{{'Increase charging'}}</span>
- <span v-if="item.model && item.model=='chargestage' && item.value == '64'" :title="'Floating charge'">{{'Floating charge'}}</span>
- <span v-if="!(item.value)">{{item.value}}</span>
- </template>
- </div>
- <div v-if="detailsFieldList.length == 0 && !loading.detailsFieldList" style="text-align:center;">
- {{'No relevant data was queried'}}
- </div>
- </div>
- </div>
- </el-dialog>
- <!-- 灯控添加编辑 -->
- <el-dialog
- :title="lightControlTitle"
- :visible.sync="addLightControlDialog"
- :close-on-click-modal="false"
- class="solar_dialig addLightControl_box"
- width="95%">
- <el-dialog
- width="80%"
- :title="'Lamp positioning'"
- :visible.sync="amapWrapper"
- :close-on-click-modal="false"
- append-to-body>
- <div class="lampAmapWrapper_box">
- <el-input class="screenMap" v-model="screenMap" @keyup.native="screenMapKeyUp($event)" :placeholder="'Please enter the keyword search'" clearable>
- <i slot="prefix" class="scree-icon el-icon-search" @click="screenMapChange(screenMap)"></i>
- </el-input>
- <div id="lampAmapWrapper">
- </div>
- </div>
- </el-dialog>
- <el-form label-width="200px" ref="lightControlData" :model="lightControlData" :rules="lightControlDataRulesEN" label-position="right" class="clearfix">
- <el-form-item :label="item.label+item.unit+':'" :key="item.id" v-for="item in lightControlListEN_for" class="list_box" :class="{'list_box_min':windowWidth < 1600}" :prop="item.model">
- <el-input v-model="lightControlData[item.model]" v-if="item.type != 'select'&&item.type != 'select_filterable'&&item.model !='lamp_no'"
- @keyup.native="lampKeydown($event)"></el-input>
- <el-input-number v-model="lightControlData[item.model]" controls-position="right" :min="0" :max="999999" v-if="item.type != 'select'&&item.model =='lamp_no'"
- @keyup.native="lampKeydown($event)"></el-input-number>
- <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'protocoltype'" @keyup.native="lampKeydown($event)">
- <el-option :key="0" label="mqtt" :value="0"></el-option>
- </el-select>
- <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'poName'" @keyup.native="lampKeydown($event)">
- <el-option :key="item.id" :label="item.name" :value="item.id" v-for="item in companyNavPO"></el-option>
- </el-select>
- <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'supplierName'" @keyup.native="lampKeydown($event)">
- <el-option :key="item.id" :label="item.name" :value="item.id" v-for="item in companyNavSupplier"></el-option>
- </el-select>
- <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'loadtype'" @keyup.native="lampKeydown($event)">
- <el-option key="0" label="LED" value="0"></el-option>
- <el-option key="1" label="Insecticidal lamp" value="1"></el-option>
- </el-select>
- <el-select
- v-model="lightControlData[item.model]"
- placeholder="please choose"
- @keyup.native="lampKeydown($event)"
- v-if="item.type == 'select_filterable' && item.model == 'polematerial'">
- <el-option key="Cold galvanizing" label="Cold galvanizing" value="Cold galvanizing"></el-option>
- <el-option key="Hot galvanizing" label="Hot galvanizing" value="Hot galvanizing"></el-option>
- <el-option key="Stainless steel" label="Stainless steel" value="Stainless steel"></el-option>
- </el-select>
- <el-select
- v-model="lightControlData[item.model]"
- placeholder="please choose"
- @keyup.native="lampKeydown($event)"
- v-if="item.type == 'select_filterable' && item.model == 'lighttype'">
- <el-option key="LED lamp" label="LED lamp" value="LED lamp"></el-option>
- <el-option key="Sodium lamp" label="Sodium lamp" value="Sodium lamp"></el-option>
- <el-option key="Energy saving light" label="Energy saving light" value="Energy saving light"></el-option>
- </el-select>
- <el-select
- v-model="lightControlData[item.model]"
- placeholder="please choose"
- @keyup.native="lampKeydown($event)"
- v-if="item.type == 'select_filterable' && item.model == 'lamptype'">
- <el-option key="Solar street lamp" label="Solar street lamp" value="Solar street lamp" v-if="lampLoadtype == '0'"></el-option>
- <el-option key="Solar street lamp" label="Solar street lamp" value="Solar street lamp" v-if="lampLoadtype == '1'"></el-option>
- <el-option key="Landscape Insect trap" label="Landscape Insect trap" value="Landscape Insect trap"></el-option>
- <el-option key="Garden light" label="Garden light" value="Garden light"></el-option>
- </el-select>
- <el-select
- v-model="lightControlData[item.model]"
- placeholder="please choose"
- @keyup.native="lampKeydown($event)"
- v-if="item.type == 'select_filterable' && item.model == 'boardtype'">
- <el-option key="Single crystal plate" label="Single crystal plate" value="Single crystal plate"></el-option>
- <el-option key="Polycrystalline plate" label="Polycrystalline plate" value="Polycrystalline plate"></el-option>
- <el-option key="Amorphous plate" label="Amorphous plate" value="Amorphous plate"></el-option>
- </el-select>
- <el-select
- v-model="lightControlData[item.model]"
- placeholder="please choose"
- @keyup.native="lampKeydown($event)"
- v-if="item.type == 'select_filterable' && item.model == 'batterytype'">
- <el-option key="Lead acid battery" label="Lead acid battery" value="Lead acid battery"></el-option>
- <el-option key="Lithium battery" label="Lithium battery" value="Lithium battery"></el-option>
- <el-option key="Supercapacitor" label="Supercapacitor" value="Supercapacitor"></el-option>
- </el-select>
- </el-form-item>
- <img src="../img/projectManagement/location.png" width="40" height="40" style="margin-left: 20px;cursor: pointer;" @click="amapWrapperFun()">
- </el-form>
- <div class="dialog_foot">
- <el-button type="primary" @click="lightControlFun()">{{lightControlButton}}</el-button>
- </div>
- </el-dialog>
- <!-- 表格历史弹框 -->
- <el-dialog
- title="Historical Data"
- :visible.sync="historicalDialog"
- :close-on-click-modal="false"
- class="solar_dialig history_box"
- width="95%">
- <div class="wrap">
- <div class="main_list">
- <div class="main_list_title">
- <p>{{'Lamp number'}}</p>
- </div>
- <div class="main_list_box" :class="{'EN':version == '0'}">
- <div class="lamp_list scroll_show_all">
- <div class="li" :class="{'select':item.id==historicalLampId}" v-for="item in historicalLampList" @click="historicalLampClick(item.id)" :key="item.id">
- {{item.number}}
- </div>
- </div>
- <div class="historicalnav clearfix">
- <div class="nav_list"
- :class="{'details_nav_select':historicalNavSelect==item.model}"
- v-for="item in historicalNavListENFor" :key="item.id"
- @click="historicalNavSelectFun(item)"><span :title="item.label">{{item.label}}</span>
- </div>
- </div>
- </div>
- </div>
- <div class="main_box">
- <div class="screen_box" v-if="dataLSType == '1'">
- <el-pagination
- @current-change="handleCurrentChangeLS"
- :current-page.sync="currentPageLS"
- :page-size="16"
- layout="prev, pager, next, jumper"
- :total="totalLS">
- </el-pagination>
- <div>
- <div class="screen_date">
- <el-date-picker
- v-model="screenDateLS"
- format="MM-dd"
- value-format="yyyy-MM-dd"
- size="small"
- :clearable="false"
- prefix-icon=" "
- type="daterange"
- range-separator="-"
- start-placeholder=""
- end-placeholder="">
- </el-date-picker>
- <el-button size="small" @click="screenDateFun()">{{'Determine'}}<i class="el-icon-arrow-right"></i></el-button>
- </div>
- <el-button round size="small" @click="exportTableLS()" v-loading="loading.exportTableLS">{{'Export'}}</el-button>
- </div>
- </div>
- <el-table
- v-if="dataLSType == '1'"
- ref="multipleTable"
- v-loading="historicalTableLoading"
- :data="historicalTableData"
- border
- align="center"
- style="width: 100%;"
- height="calc(100% - 11.5rem)">
- <el-table-column
- label="Number"
- prop="LSLD_index"
- align="center"
- :show-overflow-tooltip="true"
- width="82">
- </el-table-column>
- <template>
- <el-table-column :show-overflow-tooltip="true" :sortable="item.sortable" :prop="item.prop" :label="item.label" :key="item.id" v-for="item in historicalTableList" align="center">
- <template slot-scope="scope">
- <span v-if="item.prop !='lampstatus' && item.prop !='battstatus' && item.prop !='chargestage'">{{scope.row[item.prop]}}</span>
- <span v-if="item.prop=='lampstatus'&&scope.row[item.prop]=='1'">on</span>
- <span v-if="item.prop=='lampstatus'&&scope.row[item.prop]=='0'">off</span>
- <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='0'">free</span>
- <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='1'">discharge</span>
- <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='2'">Charge</span>
- <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='3'">Discharge while charging</span>
- <template>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='0'">No charge</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='1'">Start charging</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='6'">Current limiting</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='7'">Full</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='16'">MPPT charging</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='32'">Equalizing charging</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='48'">Boost charging</span>
- <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='64'">floating charge</span>
- </template>
- </template>
- </el-table-column>
- </template>
- <!-- <el-table-column :show-overflow-tooltip="true" header-align="center" prop="updatetime" label="更新时间" width="160px" v-if="version == 0">
- </el-table-column> -->
- <el-table-column :show-overflow-tooltip="true" header-align="center" prop="updatetime" label="Update time" width="160px">
- </el-table-column>
- </el-table>
- <div v-if="dataLSType == '0'" class="LS_echarts">
- <div class="left_echarts">
- <div class="echarts_top">
- <div></div>
- <div>
- <div class="screen_date_select">
- <div class="li" :class="{'select':LSDataType == '0'}" @click="LSDataTypeFun('0',1)">1{{'Day'}}</div>
- <div class="li" :class="{'select':LSDataType == '1'}" @click="LSDataTypeFun('1',3)">3{{'Day'}}</div>
- <div class="li" :class="{'select':LSDataType == '2'}" @click="LSDataTypeFun('2',7)">7{{'Day'}}</div>
- <div class="li" :class="{'select':LSDataType == '3'}" @click="LSDataTypeFun('3',14)">14{{'Day'}}</div>
- </div>
- <div class="screen_date">
- <el-date-picker
- v-model="screenDateLS"
- format="MM-dd"
- value-format="yyyy-MM-dd"
- size="small"
- :clearable="false"
- prefix-icon=" "
- type="daterange"
- range-separator="-"
- start-placeholder=""
- end-placeholder="">
- </el-date-picker>
- <el-button size="small" @click="screenDateFun()">{{'Determine'}}<i class="el-icon-arrow-right"></i></el-button>
- </div>
- </div>
- </div>
- <div class="history_echarts" v-loading="loading.historyEcharts" v-show="historyDataInfo.list.updatetime"></div>
- <div class="history_echarts_noData" v-show="!historyDataInfo.list.updatetime">
- <h3>{{'No data can be queried'}}</h3>
- </div>
- <div class="echarts_bottom echarts_line">
- <div class="echarts_bottom_text">{{'sampling period'}}: {{historyDataInfo.patrolinterval}}{{'minutes'}}</div>
- <div class="data_type_nav">
- <div class="li" :class="{'select':dataLSType == '0'}" @click="dataLSTypeFun('0')">{{'Diagram'}}</div>
- <div class="li" :class="{'select':dataLSType == '1'}" @click="dataLSTypeFun('1')">{{'list'}}</div>
- </div>
- </div>
- </div>
- <div class="left_data">
- <p><img src="../img/projectManagement/data.png">{{'Statistical extremum'}}</p>
- <div class="ul" :class="{'EN':version == '0'}">
- <div class="li" v-if="historicalNavSelect != '3'">
- <span class="span1">{{'Maximum voltage'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxvoltage">{{historyDataInfo.maxvoltage}}</span>
- <span class="span3">V</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
- <span class="span1">{{'Minimum voltage'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.minvoltage">{{historyDataInfo.minvoltage}}</span>
- <span class="span3">V</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect != '3'&&historicalNavSelect != 'battery_info_log'">
- <span class="span1">{{'Maximum current'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxcurrent">{{historyDataInfo.maxcurrent}}</span>
- <span class="span3">A</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
- <span class="span1">{{'Max charging current'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxcurrent">{{historyDataInfo.maxcurrent}}</span>
- <span class="span3">A</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect =='battery_info_log'">
- <span class="span1">{{'Max discharge current'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.mincurrent">{{historyDataInfo.mincurrent}}</span>
- <span class="span3">A</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect =='battery_info_log'">
- <span class="span1">{{'Max charging power'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxpower">{{historyDataInfo.maxpower}}</span>
- <span class="span3">W</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect != '3'&&historicalNavSelect != 'battery_info_log'">
- <span class="span1">{{'maximum power'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxpower">{{historyDataInfo.maxpower}}</span>
- <span class="span3">W</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect =='battery_info_log'">
- <span class="span1">{{'Max discharge power'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.minpower">{{historyDataInfo.minpower}}</span>
- <span class="span3">W</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'lamp_info_log'">
- <span class="span1">{{'Maximum brightness'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxlighteness">{{historyDataInfo.maxlighteness}}</span>
- <span class="span3">%</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
- <span class="span1">{{'Max temperature'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxbatttemper">{{historyDataInfo.maxbatttemper}}</span>
- <span class="span3">℃</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
- <span class="span1">{{'Min temperature'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.minbatttemper">{{historyDataInfo.minbatttemper}}</span>
- <span class="span3">℃</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'solar_info_log'">
- <span class="span1">{{'Charging time'}}</span>
- <span class="span_r">
- <span class="span2">{{historyDataInfo.maxdaydischargemincurrent}}</span>
- <!-- <span class="span3"></span> -->
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == 'lamp_info_log'">
- <span class="span1">{{'Lights on time'}}</span>
- <span class="span_r">
- <span class="span2">{{historyDataInfo.maxdaychargemincurrent}}</span>
- <!-- <span class="span3">%</span> -->
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == '3'">
- <span class="span1">{{'Max charge ampere hours'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxdaychargeah">{{historyDataInfo.maxdaychargeah}}</span>
- <span class="span3">AH</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == '3'">
- <span class="span1">{{'Min charge ampere hours'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.mindaychargeah">{{historyDataInfo.mindaychargeah}}</span>
- <span class="span3">AH</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == '3'">
- <span class="span1">{{'Max discharge amperes'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.maxdaydischarah">{{historyDataInfo.maxdaydischarah}}</span>
- <span class="span3">AH</span>
- </span>
- </div>
- <div class="li" v-if="historicalNavSelect == '3'">
- <span class="span1">{{'Min discharge amperes'}}</span>
- <span class="span_r">
- <span class="span2" :title="historyDataInfo.mindaydischarah">{{historyDataInfo.mindaydischarah}}</span>
- <span class="span3">AH</span>
- </span>
- </div>
- </div>
- </div>
- </div>
- <div class="echarts_bottom" v-if="dataLSType == '1'">
- <div class="data_type_nav">
- <div class="li" :class="{'select':dataLSType == '0'}" @click="dataLSTypeFun('0')">{{'Diagram'}}</div>
- <div class="li" :class="{'select':dataLSType == '1'}" @click="dataLSTypeFun('1')">{{'list'}}</div>
- </div>
- </div>
- </div>
- </div>
- </el-dialog>
- <!-- 参数弹框 -->
- <el-dialog
- :visible.sync="monitorDialog"
- :close-on-click-modal="false"
- :close-on-press-escape="!loading.loadSetting&&!loading.batterySetting"
- :show-close="!loading.loadSetting&&!loading.batterySetting"
- class="monitor_box"
- width="95%">
- <div class="wrap">
- <div class="nav clearfix">
- <div @click="monitorSwitchFun('loadParameters')" class="parameter_nav" :class="{'monitor_type':monitorType=='loadParameters'}"><span>{{'Load parameter'}}</span></div>
- <div @click="monitorSwitchFun('batteryParameters')" class="parameter_nav" :class="{'monitor_type':monitorType=='batteryParameters'}"><span>{{'Battery parameters'}}</span></div>
- </div>
- <div class="button" v-if="monitorType=='loadParameters'">
- <el-button round icon="el-icon-refresh" v-if="!loading.loadSetting&&batchModificationParameters" @click="loadSettingFun()">Get parameters</el-button>
- <el-button round icon="el-icon-refresh" v-if="loading.loadSetting&&batchModificationParameters" v-loading="loading.loadSetting">Getting parameters</el-button>
- </div>
- <div class="button" v-if="monitorType=='batteryParameters'">
- <el-button round icon="el-icon-refresh" v-if="!loading.batterySetting" @click="batterySettingFun()">Get parameters</el-button>
- <el-button round icon="el-icon-refresh" v-if="loading.batterySetting" v-loading="loading.batterySetting">Getting parameters</el-button>
- </div>
- <div class="box clearfix">
- <el-form label-width="260px" ref="loadParametersData" :model="loadParametersData" label-position="right" class="clearfix" v-if="monitorType=='loadParameters'">
- <el-form-item :label="item.label+item.unit+':'" :key="item.id" v-for="(item) in loadParametersListEN" class="list_box" :prop="item.model" :label-width="item.model=='intell_power'||item.model=='begin_voltage'||item.model=='end_voltage'||item.model=='end_current'?'210px':''"
- :style="{'visibility':
- ((item.model=='begin_voltage'||item.model=='end_voltage'||item.model=='end_current')&&loadParametersData['intell_power']!='5')
- ||
- ((parseInt(loadParametersData['induction_delay'])==0&&(item.model=='first_light_unman_power'||item.model=='second_light_unman_power'||item.model=='third_light_unman_power'||item.model=='fourth_light_unman_power'||item.model=='fifth_light_unman_power'||item.model=='sixth_light_unman_power'||item.model=='seventh_light_unman_power'||item.model=='eighth_light_unman_power'||item.model=='ninth_light_unman_power'||item.model=='tenth_light_unman_power')))
- ?'hidden':'',
- 'width':
- (item.model!='intell_power'&&item.model!='light_type')?'33.33%':'50%'}">
- <el-input v-model="loadParametersData[item.model]" v-if="item.type == 'input'" :disabled="!loadSettingIsTrue||!parameterLoadIsEdit"></el-input>
- <el-select v-model="loadParametersData[item.model]" v-if="item.type == 'select'" :disabled="!loadSettingIsTrue||!parameterLoadIsEdit">
- <el-option
- v-for="item in option[item.option]"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- <!-- :controls="false" -->
- <el-input-number
- v-if="item.type == 'number'"
- controls-position="right"
- :disabled="!loadSettingIsTrue||!parameterLoadIsEdit"
- :max="item.max" :min="item.min" :precision="item.precision" :step="item.step"
- v-model="loadParametersData[item.model]">
- </el-input-number>
- <el-time-picker
- v-if="item.type == 'timeSelect'"
- v-model="loadParametersData[item.model]"
- :disabled="!loadSettingIsTrue||!parameterLoadIsEdit"
- :picker-options="{
- selectableRange: '00:00:00 - 15:00:00'
- }"
- format="HH:mm">
- </el-time-picker>
- </el-form-item>
- </el-form>
- <el-form label-width="260px" ref="batteryParametersData" :model="batteryParametersData" label-position="right" class="clearfix" v-if="monitorType=='batteryParameters'">
- <!-- {model:'',label:'',unit:'',type:'select',option:'batteryListEN'}, -->
- <el-form-item label="Battery type:" class="list_boxEN" prop="batterytype">
- <el-select v-model="batteryParametersData['battery_type']" :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit">
- <el-option
- v-for="item in option['batteryListEN']"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <template>
- <el-form-item v-for="(item) in batteryParametersList1EN" :label="item.label+item.unit+':'" :key="item.id" class="list_boxEN" :prop="item.model">
- <el-input v-model="batteryParametersData[item.model]" v-if="item.type == 'input'" :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit"></el-input>
- <el-select v-model="batteryParametersData[item.model]" v-if="item.type == 'select'" :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit">
- <el-option
- v-for="item in option[item.option]"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- <!-- :controls="false" -->
- <el-input-number
- v-if="item.type == 'number'"
- controls-position="right"
- :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit"
- :max="item.max" :min="item.min" :precision="item.precision" :step="item.step"
- v-model="batteryParametersData[item.model]">
- </el-input-number>
- </el-form-item>
- </template>
- </el-form>
- </div>
- </div>
- <div class="dialog_foot" v-if="monitorType=='loadParameters'">
- <el-button type="primary" :disabled="!loadSettingIsTrue" v-if="!parameterLoadIsEdit" @click="parameterLoadIsEdit = true">Modify</el-button>
- <el-button type="text" :disabled="!loadSettingIsTrue" v-if="!parameterLoadIsEdit" @click="monitorDialog = false">Close</el-button>
- <el-button type="primary" :disabled="!loadSettingIsTrue" v-if="parameterLoadIsEdit&&!loading.setLoadFun" @click="setLoadFun()">Save</el-button>
- <el-button type="text" :disabled="!loadSettingIsTrue" v-if="parameterLoadIsEdit&&!loading.setLoadFun" @click="loadNoEditFun()">Cancel save</el-button>
- <el-button type="primary" v-if="loading.setLoadFun&¶meterLoadIsEdit" v-loading="loading.setLoadFun">Setting parameters</el-button>
- </div>
- <div class="dialog_foot" v-if="monitorType=='batteryParameters'">
- <el-button type="primary" :disabled="!batterySettingIsTrue" v-if="!parameterBatteryIsEdit" @click="parameterBatteryIsEdit = true">Modify</el-button>
- <el-button type="text" :disabled="!batterySettingIsTrue||!loadSettingIsTrue" v-if="!parameterBatteryIsEdit" @click="monitorDialog = false">Close</el-button>
- <el-button type="primary" :disabled="!batterySettingIsTrue" v-if="parameterBatteryIsEdit&&!loading.setBatteryFun" @click="setBatteryFun()">Save</el-button>
- <el-button type="text" :disabled="!batterySettingIsTrue" v-if="parameterBatteryIsEdit&&!loading.setBatteryFun" @click="batteryNoEditFun()">Cancel save</el-button>
- <el-button type="primary" v-if="loading.setBatteryFun&¶meterBatteryIsEdit" v-loading="loading.setBatteryFun">Setting parameters</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script type="text/javascript">
- import allUrl from '../api/allUel.js'
- import baseApi from '../api/base.js'
- import { mapGetters } from 'vuex'
- import sideBarIdcol from '../components/sideBar_idcol.vue'
- export default {
- name:'projectManagement',
- data(){
- return{
- keywords:'',
- division:'',
- networkId:'0',
- lamptype:1,
- legendWidth:'',
- divisionNav:[{id:'0',name:'All'}],
- rightDate:'',
- rightDateNav:[{id:'0',name:'Today'}],
- myChart1:'',
- lampLightSlider:0,
- lampLightSliderShow:false,
- lampLightSliderPageX:0,
- lampLightSliderPageY:0,
- roadId:null,
- projectId:0,
- companyId:'',
- detailData:{},
- weatherList:[{
- code: null,
- date: null,
- dateStr: null,
- sr: null,
- ss: null,
- tmp: 28
- }],
- /*表格*/
- tabNavList:[],
- deviceList:[],
- multipleSelection:[],
- lampcontrolOperationType:'-1',
- deviceArr:[],
- tableConfig:{
- label:[],
- prop:[],
- prop1:[],
- width:[],
- sortable:[],
- },
- offline:0,
- online:0,
- alarmtype:0,
- status:0,
- deviceTotalData:{
- light_num:0,
- online_num:0,
- fault_count:0,
- network_num:0,
- },
- /*侧边栏*/
- projectNav:[{id: "17247",name: "0--0",number:7,isOpen:false,project_list: [{id: "17582", projectname: "太阳能路灯", lampcount: "2"}]}],
- sideBarType:'off',
- /*项目弹框*/
- projectSaveLoading:false,
- projectTitle:'新建项目',
- projectButton:'立 刻 创 建',
- projectList:[],
- provinceList:[],
- countryList:[],
- cityList:[],
- areaList:[],
- batchProcessing:'off',
- fieldDialog:false,
- fieldList:[],
- /*参数弹框*/
- companyNavPO:[],
- companyNavSupplier:[],
- detailsDialog:false,
- detailsNavSelect:'lamp_info_log',
- detailsNavList:[{model:'lamp_info_log',label:'路灯'},{model:'lampinfo',label:'配置'},{model:'system_info_log',label:'系统'},{model:'solar_info_log',label:'太阳能板'},{model:'battery_info_log',label:'蓄电池'}],
- detailsNavListEN:[{model:'lamp_info_log',label:'Lamp'},{model:'lampinfo',label:'Configuration'},{model:'system_info_log',label:'System'},{model:'solar_info_log',label:'Solar panels'},{model:'battery_info_log',label:'Battery'}],
- detailsFieldList:[],
- addItemDialog:false,
- addItemData:{
- projectName:'',
- projectNo:'',
- customer:'',
- countryId:'',
- provinceId:'',
- cityId:'',
- areaId:'',
- zoneId:'',
- address:'',
- company:'',
- timezone:'',
- patrolinterval:'',
- },
- addLightControlDialog:false,
- lightControlData:{
- lamp_no:'',
- status:'',
- section:'',
- address:'',
- poleheight:'',
- polediameter:'',
- polematerial:'',
- lighttype:'',
- lamptype:'',
- boardtype:'',
- batterytype:'',
- boardpower:'',
- batteryah:'',
- loadpower:'',
- longitude:'',
- latitude:'',
- poName:'',
- supplierName:'',
- protocoltype:'',
- loadtype:'0',
- },
- lightControlListEN:[
- {model:'lamp_no',label:'Lamp number',unit:''},
- {model:'poName',label:'PO name',type:'select',unit:''},
- {model:'supplierName',label:'Supplier name',type:'select',unit:''},
- {model:'protocoltype',label:'Network protocol type',type:"select",unit:''},{model:'section',label:'Road',unit:''},{model:'address',label:'Wireless module address',unit:''},
- // {model:'poleheight',label:'Lamp-post length',unit:'(m)'},
- // {model:'polediameter',label:'Lamp-post diameter',unit:'(mm)'},
- // {model:'polematerial',label:'Lamp-post materials',type:"select_filterable",unit:''},
- // {model:'lighttype',label:'Light type',type:"select_filterable",unit:''},
- {model:'lamptype',label:'Lamp type',type:"select_filterable",unit:''},{model:'boardtype',label:'Solar panel type',type:"select_filterable",unit:''},{model:'batterytype',label:'Battery type',type:"select_filterable",unit:''},{model:'boardpower',label:'Solar panel power',unit:'(W)'},{model:'batteryah',label:'Battery capacity',unit:'(Ah)'},{model:'loadpower',label:'Load power',unit:'(W)'},
- {model:'loadtype',label:'Load type',unit:'',type:"select"},
- {model:'longitude',label:'Longitude',unit:''},
- {model:'latitude',label:'Latitude',unit:''}
- ],
- lightControlListEN_for:[
- {model:'lamp_no',label:'Lamp number',unit:''},
- {model:'poName',label:'PO name',type:'select',unit:''},
- {model:'supplierName',label:'Supplier name',type:'select',unit:''},
- {model:'protocoltype',label:'Network protocol type',type:"select",unit:''},{model:'section',label:'Road',unit:''},{model:'address',label:'Wireless module address',unit:''},
- // {model:'poleheight',label:'Lamp-post length',unit:'(m)'},
- // {model:'polediameter',label:'Lamp-post diameter',unit:'(mm)'},
- // {model:'polematerial',label:'Lamp-post materials',type:"select_filterable",unit:''},
- // {model:'lighttype',label:'Light type',type:"select_filterable",unit:''},
- {model:'lamptype',label:'Lamp type',type:"select_filterable",unit:''},{model:'boardtype',label:'Solar panel type',type:"select_filterable",unit:''},{model:'batterytype',label:'Battery type',type:"select_filterable",unit:''},{model:'boardpower',label:'Solar panel power',unit:'(W)'},{model:'batteryah',label:'Battery capacity',unit:'(Ah)'},{model:'loadpower',label:'Load power',unit:'(W)'},
- {model:'loadtype',label:'Load type',unit:'',type:"select"},
- {model:'longitude',label:'Longitude',unit:''},
- {model:'latitude',label:'Latitude',unit:''}
- ],
- streetlightDetails:[{model:'lighteness',label:'路灯亮度',unit:'%'},{model:'lampstatus',label:'路灯状态'},{model:'lampvoltage',label:'路灯电压',unit:'V'},{model:'lampcurrent',label:'路灯电流',unit:'A'},{model:'lamppower',label:'路灯功率',unit:'W'},{model:'temper',label:'灯头温度',unit:'°C'},{model:'updatetime',label:'最新更新时间'},{model:'status',label:'网络状态'},{model:'isfaulted',label:'是否故障'},{model:'lamp_no',label:'路灯编号'},{model:'network_no',label:'网络编号'},{model:'project_name',label:'项目名称'},{model:'address',label:'无线模块地址'},{model:'longitude',label:'经度'},{model:'latitude',label:'纬度'},{model:'section',label:'路段'},{model:'boardpower',label:'太阳能板功率',unit:'W'},{model:'poleheight',label:'灯杆高度',unit:'m'},{model:'polediameter',label:'灯杆直径',unit:'mm'},{model:'polematerial',label:'灯杆材质'},{model:'lighttype',label:'灯具类型'},{model:'lamptype',label:'路灯类型'},{model:'boardtype',label:'太阳能板类型'},{model:'batteryah',label:'蓄电池AH数'},{model:'loadpower',label:'负载功率',unit:'W'},{model:'solarvoltage',label:'太阳能板电压',unit:'V'},{model:'solarcurrent',label:'太阳能板电流',unit:'A'},{model:'solarpower',label:'太阳能板功率',unit:'W'},{model:'battstatus',label:'电池状态'},{model:'chargestage',label:'蓄电池充电阶段'},{model:'battvoltage',label:'蓄电池电压',unit:'V'},{model:'chargecurrent',label:'蓄电池充电电流',unit:'A'},{model:'discharcurrent',label:'蓄电池放电电流',unit:'A'},{model:'chargepower',label:'蓄电池充电功率',unit:'W'},{model:'dischargepower',label:'蓄电池放电功率',unit:'W'},{model:'batttemper',label:'蓄电池表面温度',unit:'°C'},{model:'electrictotal',label:'蓄电池总电量',unit:'AH'},{model:'electricleft',label:'蓄电池剩余电量',unit:'AH'},{model:'electricSOC',label:'蓄电池电量SOC',unit:'%'},{model:'voltagedaymin',label:'当天最低电压',unit:'V'},{model:'daychargeah',label:'当天充电安时数',unit:'AH'},{model:'daydischarah',label:'当天放电安时数',unit:'AH'},{model:'daychargemaxpow',label:'当天充电最大功率',unit:'V'},{model:'daydischarmaxpow',label:'当天放电最大功率',unit:'V'},{model:'daychargemincurrent',label:'当天充电最小电流',unit:'A'},{model:'daycharmaxcurrent',label:'当天充电最大电流',unit:'A'},{model:'daydischargemincurrent',label:'当天放电最小电流',unit:'A'},{model:'daydischarmaxcurrent',label:'当天放电最大电流',unit:'A'},{model:'daybattmintemper',label:'当天蓄电池最低温度',unit:'°C'},{model:'daybattmaxtemper',label:'当天蓄电池最高温度',unit:'°C'},{model:'devicetype',label:'设备类型'},{model:'simid',label:'SIM卡号'},{model:'packageSurplus',label:'套餐剩余'},{model:'monthly_can_usage',label:'套餐总量',unit:'M'},{model:'monthly_already_usage',label:'套餐使用量',unit:'M'},{model:'iccid',label:'ICCID',unit:''}],
- /*添加编辑灯控*/
- lightControlTitle:'创建灯控',
- lightControlButton:'立 刻 创 建',
- lampcontrolListHC:{},
- lightControlDataRules:{
- lamp_no: [
- { required: true, message: '不能为空'},
- ],
- address: [
- { required: true, message: '不能为空', trigger: 'blur' }
- ],
- protocoltype: [
- { required: true, message: '不能为空', trigger: 'blur' }
- ],
- section:[
- { required: true, message: '不能为空', trigger: 'blur' }
- ],
- },
- lightControlDataRulesEN:{
- lamp_no: [
- { required: true, message: 'Not null'},
- ],
- address: [
- { required: true, message: 'Not null', trigger: 'blur' }
- ],
- protocoltype: [
- { required: true, message: 'Not null', trigger: 'blur' }
- ],
- section:[
- { required: true, message: 'Not null', trigger: 'blur' }
- ],
- },
- lampLoadtype:'',
- screenMap:'',
- amapWrapper:false,
- map:null,
- lampLongitude:0,
- lampLatitude:0,
- networkList:[],
- /*灯控历史*/
- // historicalNavList:[{model:'lamp_info_log',label:'路灯'},{model:'system_info_log',label:'系统'},{model:'battery_info_log',label:'蓄电池'},{model:'solar_info_log',label:'太阳能板'},{model:'3',label:'充放电量'}],
- historicalNavListEN:[
- {model:'lamp_info_log',label:'Lamp'},
- // {model:'system_info_log',label:'system'},
- {model:'battery_info_log',label:'Battery'},
- {model:'solar_info_log',label:'Solar panels'},
- {model:'3',label:'Capacity'}
- ],
- historicalTableData:[],
- historicalTableList:[],
- screenDateLS:'',
- historyDataInfo:{
- list:{}
- },
- historicalLampList:[],
- historicalLampId:'',
- dataLSType:'0',
- LSDataType:'0',
- currentPageLS:1,
- totalLS:0,
- historicalTableLoading:false,
- historicalDialog:false,
- historicalNavSelect:'lamp_info_log',
- batchDimmingVal:0,
- windowWidth:0,
- positionPicker:null,
- geocoder:null,
- mapDWIsTrue:false,
- mpaDWTimeOut:null,
- parameterLoadIsEdit:false,
- parameterBatteryIsEdit:false,
- batchModificationParameters:true,
- googleMapLocattion:true,
- lamp_info_logTableList:[{prop:'lighteness',label:'亮度',unit:'(%)'},{prop:'lampstatus',label:'状态'},{prop:'lampvoltage',label:'电压',unit:'(V)'},{prop:'lampcurrent',label:'电流',unit:'(A)'},{prop:'lamppower',label:'功率',unit:'(W)'},{prop:'daydischarmaxpow',label:'当天放电最大功率',unit:'(W)'},{prop:'daychargemincurrent',label:'当天亮灯时间'}],
- lamp_info_logTableListEN:[{prop:'lighteness',label:'Brightness(%)'},{prop:'lampstatus',label:'status'},{prop:'lampvoltage',label:'voltage(V)'},{prop:'lampcurrent',label:'current(A)'},{prop:'lamppower',label:'power(W)'},{prop:'daydischarmaxpow',label:'Discharging maximum power(w)'},{prop:'daychargemincurrent',label:'Turn-on duration'}],
- system_info_logTableList:[{prop:'sysvoltage',label:'系统电压',unit:'(V)'},{prop:'syscurrent',label:'系统电流',unit:'(A)'},{prop:'temper',label:'控制器温度',unit:'(℃)'}],
- system_info_logTableListEN:[{prop:'sysvoltage',label:'System voltage(V)'},{prop:'syscurrent',label:'System current(A)'},{prop:'temper',label:'Controller temperature(℃)'}],
- battery_info_logTableList:[{prop:'battstatus',label:'状态'},{prop:'chargestage',label:'充电阶段'},{prop:'battvoltage',label:'电压',unit:'(V)'},{prop:'voltagedaymin',label:'当天最低电压',unit:'(V)'},{prop:'voltagedaymax',label:'当天最高电压',unit:'(V)'},{prop:'batttemper',label:'蓄电池表面温度',unit:'(℃)'},{prop:'daybattmintemper',label:'当天最低温度',unit:'(℃)'},{prop:'daybattmaxtemper',label:'当天最高温度',unit:'(℃)'},{prop:'overtimes',label:'过放次数',unit:''}],
- battery_info_logTableListEN:[{prop:'battstatus',label:'status'},{prop:'chargestage',label:'Charging stage'},{prop:'battvoltage',label:'voltage(V)'},{prop:'voltagedaymin',label:'Minimum voltage(V)'},{prop:'voltagedaymax',label:'Highest voltage(V)'},{prop:'batttemper',label:'surface temperature(℃)'},{prop:'daybattmintemper',label:'minimum temperature(℃)'},{prop:'daybattmaxtemper',label:'highest temperature(℃)'},{prop:'overtimes',label:'Over Discharge times',unit:''}],
- solar_info_logTableList:[{prop:'solarvoltage',label:'电压',unit:'(V)'},{prop:'solarcurrent',label:'电流',unit:'(A)'},{prop:'solarpower',label:'功率',unit:'(W)'},{prop:'daychargemaxpow',label:'当天充电最大功率',unit:'(W)'},{prop:'daydischargemincurrent',label:'当天充电时间'}],
- solar_info_logTableListEN:[{prop:'solarvoltage',label:'voltage(V)'},{prop:'solarcurrent',label:'current(A)'},{prop:'solarpower',label:'power(W)'},{prop:'daychargemaxpow',label:'Charging maximum power(W)'},{prop:'daydischargemincurrent',label:'Charging duration(S)'}],
- /*路灯负载参数*/
- loadParametersData:{},
- loadParametersList:[],
- loadParametersDataOld:{
- workmode:'',
- worktimefirst:'',
- workpowerfirst:'',
- worktimesencond:'',
- workpowersencond:'',
- worktimethird:'',
- workpowerthird:'',
- worktimeforth:'',
- workpowerforth:'',
- voptically:'',
- delaytime:'',
- ledloadcurrent:'',
- powercmd:'',
- switchfeature:'',
- },
- loadParametersDataHC:{},
- loadParametersListOld:[
- {model:'workmode',label:'路灯负载模式',unit:'',type:'select',option:'workmodeList'},
- {model:'worktimefirst',label:'第一阶段工作时间',unit:'(H)',type:'input'},
- {model:'workpowerfirst',label:'第一阶段工作功率',unit:'(%)',type:'input'},
- {model:'worktimesencond',label:'第二阶段工作时间',unit:'(H)',type:'input'},
- {model:'workpowersencond',label:'第二阶段工作功率',unit:'(%)',type:'input'},
- {model:'worktimethird',label:'第三阶段工作时间',unit:'(H)',type:'input'},
- {model:'workpowerthird',label:'第三阶段工作功率',unit:'(%)',type:'input'},
- {model:'worktimeforth',label:'晨亮时间',unit:'(H)',type:'input'},
- {model:'workpowerforth',label:'晨亮功率',unit:'(%)',type:'input'},
- {model:'voptically',label:'光控电压',unit:'(V)',type:'input'},
- {model:'delaytime',label:'光控延时时间',unit:'(Min)',type:'select',option:'timeList'},
- {model:'ledloadcurrent',label:'LED负载电流',unit:'(mA)',type:'input'},
- {model:'powercmd',label:'智能功率控制',unit:'',type:'select',option:'onOff'},
- {model:'switchfeature',label:'每晚亮灯功能',unit:'',type:'select',option:'onOff'},
- ],
- catcherloadParametersListOld:[
- {model:'workmode',label:'杀虫灯负载模式',unit:'',type:'select',option:'workmodeList'},
- {model:'worktimefirst',label:'第一阶段工作时间',unit:'(H)',type:'input'},
- {model:'worktimesencond',label:'第二阶段工作时间',unit:'(H)',type:'input'},
- {model:'worktimethird',label:'第三阶段工作时间',unit:'(H)',type:'input'},
- {model:'worktimeforth',label:'晨亮时间',unit:'(H)',type:'input'},
- {model:'voptically',label:'光控电压',unit:'(V)',type:'input'},
- {model:'delaytime',label:'光控延时时间',unit:'(Min)',type:'select',option:'timeList'},
- {model:'ledloadcurrent',label:'LED负载电流',unit:'(mA)',type:'input'},
- {model:'powercmd',label:'智能功率控制',unit:'',type:'select',option:'onOff'},
- {model:'switchfeature',label:'每晚亮灯功能',unit:'',type:'select',option:'onOff'},
- ],
- catcherloadParametersListNew:[
- {model:'intell_power',label:'智能功率',unit:'',type:'select',option:'intell_power'},
- {model:'begin_voltage',label:'智能功率USER1起始电压',unit:'V',type:'select',option:'intell_powerV'},
- {model:'end_voltage',label:'智能功率USER1终止电压',unit:'V',type:'select',option:'intell_powerV'},
- {model:'end_current',label:'智能功率USER1终止电流 ',unit:'A',type:'select',option:'intell_powerC'},
- {model:'load_current',label:'负载电流',unit:'(A)',type:'select',option:'load_current'},
- {model:'light_delay',label:'光控延时',unit:'',type:'select',option:'light_delay'},
- {model:'induction_delay',label:'感应延时',unit:'(S)',type:'select',option:'induction_delay'},
- {model:'first_light_time',label:'第一段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'second_light_time',label:'第二段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'third_light_time',label:'第三段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'tenth_light_time',label:'晨亮时间',unit:'(HH:MM)',type:'timeSelect'},
- ],
- loadParametersDataNew:{
- light_voltage:'',
- intell_power:'',
- // load_current:'',
- // light_delay:'',
- // induction_delay:'',
- first_light_time:'',
- first_light_human_power:'',
- first_light_unman_power:'',
- second_light_time:'',
- second_light_human_power:'',
- second_light_unman_power:'',
- third_light_time:'',
- third_light_human_power:'',
- third_light_unman_power:'',
- fourth_light_time:'',
- fourth_light_human_power:'',
- fourth_light_unman_power:'',
- fifth_light_time:'',
- fifth_light_human_power:'',
- fifth_light_unman_power:'',
- sixth_light_time:'',
- sixth_light_human_power:'',
- sixth_light_unman_power:'',
- seventh_light_time:'',
- seventh_light_human_power:'',
- seventh_light_unman_power:'',
- // eighth_light_time:'',
- // eighth_light_human_power:'',
- // eighth_light_unman_power:'',
- // ninth_light_time:'',
- // ninth_light_human_power:'',
- // ninth_light_unman_power:'',
- tenth_light_time:'',
- tenth_light_human_power:'',
- tenth_light_unman_power:'',
- // begin_voltage:'',
- // end_voltage:'',
- // end_current:'',
- },
- loadParametersListNew:[
- {model:'intell_power',label:'智能功率',unit:'',type:'select',option:'intell_power'},
- {model:'begin_voltage',label:'智能功率USER1起始电压',unit:'V',type:'select',option:'intell_powerV'},
- {model:'end_voltage',label:'智能功率USER1终止电压',unit:'V',type:'select',option:'intell_powerV'},
- {model:'end_current',label:'智能功率USER1终止电流 ',unit:'A',type:'select',option:'intell_powerC'},
- {model:'load_current',label:'负载电流',unit:'(A)',type:'select',option:'load_current'},
- {model:'light_delay',label:'光控延时',unit:'',type:'select',option:'light_delay'},
- {model:'induction_delay',label:'感应延时',unit:'(S)',type:'select',option:'induction_delay'},
- {model:'first_light_time',label:'第一段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'first_light_human_power',label:'第一段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'first_light_unman_power',label:'第一段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'second_light_time',label:'第二段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'second_light_human_power',label:'第二段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'second_light_unman_power',label:'第二段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'third_light_time',label:'第三段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'third_light_human_power',label:'第三段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'third_light_unman_power',label:'第三段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'fourth_light_time',label:'第四段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'fourth_light_human_power',label:'第四段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'fourth_light_unman_power',label:'第四段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'fifth_light_time',label:'第五段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'fifth_light_human_power',label:'第五段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'fifth_light_unman_power',label:'第五段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'sixth_light_time',label:'第六段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'sixth_light_human_power',label:'第六段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'sixth_light_unman_power',label:'第六段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'seventh_light_time',label:'第七段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'seventh_light_human_power',label:'第七段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'seventh_light_unman_power',label:'第七段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'eighth_light_time',label:'第八段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'eighth_light_human_power',label:'第八段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'eighth_light_unman_power',label:'第八段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'ninth_light_time',label:'第九段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'ninth_light_human_power',label:'第九段有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'ninth_light_unman_power',label:'第九段无人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'tenth_light_time',label:'晨亮时间',unit:'(HH:MM)',type:'timeSelect'},
- {model:'tenth_light_human_power',label:'晨亮有人功率',unit:'(%)',type:'select',option:'light_power'},
- {model:'tenth_light_unman_power',label:'晨亮无人功率',unit:'(%)',type:'select',option:'light_power'},
- ],
- loadParametersListEN:[],
- loadParametersListENOld:[
- {model:'workmode',label:'Street light load mode',unit:'',type:'select',option:'workmodeList'},
- {model:'worktimefirst',label:'First phase working hours',unit:'(H)',type:'input'},
- {model:'workpowerfirst',label:'First stage operating power',unit:'(%)',type:'input'},
- {model:'worktimesencond',label:'Second phase working hours',unit:'(H)',type:'input'},
- {model:'workpowersencond',label:'Second stage operating power',unit:'(%)',type:'input'},
- {model:'worktimethird',label:'Third stage working hours',unit:'(H)',type:'input'},
- {model:'workpowerthird',label:'Third stage operating power',unit:'(%)',type:'input'},
- {model:'worktimeforth',label:'Morning light time',unit:'(H)',type:'input'},
- {model:'workpowerforth',label:'Morning light power',unit:'(%)',type:'input'},
- {model:'voptically',label:'Light control voltage',unit:'(V)',type:'input'},
- {model:'delaytime',label:'Light control delay time',unit:'(Min)',type:'select',option:'timeListEN'},
- {model:'ledloadcurrent',label:'LED load current',unit:'(mA)',type:'input'},
- {model:'powercmd',label:'Intelligent power control',unit:'',type:'select',option:'onOffEN'},
- {model:'switchfeature',label:'Nightly lighting function',unit:'',type:'select',option:'onOffEN'},
- ],
- catcherloadParametersListENOld:[
- {model:'workmode',label:'Load mode of insecticidal lamp',unit:'',type:'select',option:'workmodeList'},
- {model:'worktimefirst',label:'First phase working hours',unit:'(H)',type:'input'},
- {model:'worktimesencond',label:'Second phase working hours',unit:'(H)',type:'input'},
- {model:'worktimethird',label:'Third stage working hours',unit:'(H)',type:'input'},
- {model:'worktimeforth',label:'Morning light time',unit:'(H)',type:'input'},
- {model:'voptically',label:'Light control voltage',unit:'(V)',type:'input'},
- {model:'delaytime',label:'Light control delay time',unit:'(Min)',type:'select',option:'timeListEN'},
- {model:'ledloadcurrent',label:'LED load current',unit:'(mA)',type:'input'},
- {model:'powercmd',label:'Intelligent power control',unit:'',type:'select',option:'onOffEN'},
- {model:'switchfeature',label:'Nightly lighting function',unit:'',type:'select',option:'onOffEN'},
- ],
- loadParametersListENNew:[
- {model:'intell_power',label:'SpecialPowerCtrl',unit:'',type:'select',option:'intell_powerEN'},
- // {model:'begin_voltage',label:'AutoPowerStartUser1Volt',unit:'(V)',type:'select',option:'intell_powerV'},
- {model:'light_type',label:'Lamp control mode',unit:'(V)',type:'select',option:'light_type_en'},
- // {model:'end_voltage',label:'AutoPowerStopUser1Volt',unit:'(V)',type:'select',option:'intell_powerV'},
- // {model:'end_current',label:'AutoPowerStopUser1Power',unit:'(A)',type:'select',option:'intell_powerC'},
-
- // {model:'load_current',label:'LedCurrSet',unit:'(A)',type:'select',option:'load_current'},
- // {model:'light_delay',label:'LightCtrlDelayTimeS',unit:'',type:'select',option:'light_delay'},
- // {model:'induction_delay',label:'SensorDelayTime',unit:'(S)',type:'select',option:'induction_delay'},
- {model:'first_light_time',label:'LoadTime1',unit:'(HH:MM)',type:'timeSelect'},
- {model:'first_light_human_power',label:'LoadSensorOnPower1',unit:'(%)',type:'select',option:'light_power'},
- {model:'first_light_unman_power',label:'LoadSensorOffPower1',unit:'(%)',type:'select',option:'light_power'},
- {model:'second_light_time',label:'LoadTime2',unit:'(HH:MM)',type:'timeSelect'},
- {model:'second_light_human_power',label:'LoadSensorOnPower2',unit:'(%)',type:'select',option:'light_power'},
- {model:'second_light_unman_power',label:'LoadSensorOffPower2',unit:'(%)',type:'select',option:'light_power'},
- {model:'third_light_time',label:'LoadTime3',unit:'(HH:MM)',type:'timeSelect'},
- {model:'third_light_human_power',label:'LoadSensorOnPower3',unit:'%',type:'select',option:'light_power'},
- {model:'third_light_unman_power',label:'LoadSensorOffPower3',unit:'%',type:'select',option:'light_power'},
- {model:'fourth_light_time',label:'LoadTime4',unit:'(HH:MM)',type:'timeSelect'},
- {model:'fourth_light_human_power',label:'LoadSensorOnPower4',unit:'%',type:'select',option:'light_power'},
- {model:'fourth_light_unman_power',label:'LoadSensorOffPower4',unit:'%',type:'select',option:'light_power'},
- {model:'fifth_light_time',label:'LoadTime5',unit:'(HH:MM)',type:'timeSelect'},
- {model:'fifth_light_human_power',label:'LoadSensorOnPower5',unit:'%',type:'select',option:'light_power'},
- {model:'fifth_light_unman_power',label:'LoadSensorOffPower5',unit:'%',type:'select',option:'light_power'},
- {model:'sixth_light_time',label:'LoadTime6',unit:'(HH:MM)',type:'timeSelect'},
- {model:'sixth_light_human_power',label:'LoadSensorOnPower6',unit:'%',type:'select',option:'light_power'},
- {model:'sixth_light_unman_power',label:'LoadSensorOffPower6',unit:'%',type:'select',option:'light_power'},
- {model:'seventh_light_time',label:'LoadTime7',unit:'(HH:MM)',type:'timeSelect'},
- {model:'seventh_light_human_power',label:'LoadSensorOnPower7',unit:'%',type:'select',option:'light_power'},
- {model:'seventh_light_unman_power',label:'LoadSensorOffPower7',unit:'%',type:'select',option:'light_power'},
- // {model:'eighth_light_time',label:'LoadTime8',unit:'(HH:MM)',type:'timeSelect'},
- // {model:'eighth_light_human_power',label:'LoadSensorOnPower8',unit:'%',type:'select',option:'light_power'},
- // {model:'eighth_light_unman_power',label:'LoadSensorOffPower8',unit:'%',type:'select',option:'light_power'},
- // {model:'ninth_light_time',label:'LoadTime9',unit:'(HH:MM)',type:'timeSelect'},
- // {model:'ninth_light_human_power',label:'LoadSensorOnPower9',unit:'%',type:'select',option:'light_power'},
- // {model:'ninth_light_unman_power',label:'LoadSensorOffPower9',unit:'%',type:'select',option:'light_power'},
- {model:'tenth_light_time',label:'LoadMorningLightTime',unit:'(HH:MM)',type:'timeSelect'},
- {model:'tenth_light_human_power',label:'LoadMornLightSensorOnPower',unit:'%',type:'select',option:'light_power'},
- {model:'tenth_light_unman_power',label:'LoadMornLightSensorOffPower',unit:'%',type:'select',option:'light_power'},
- ],
- monitorDialog:false,
- projectLoadDialog:false,
- loadSettingIsTrue:false,
- batterySettingIsTrue:false,
- batteryParametersData:{
- light_voltage:'',
- batterytype:'',
- capacity:'',
- vovervoltage:'',
- vlimitedcharge:'',
- vbalancecharge:'',
- vpromotecharge:'',
- vfloatingcharge:'',
- vpromoterecover:'',
- voverdischargerecover:'',
- vundervoltagewarn:'',
- voverdischarge:'',
- balancechargetime:'',
- promotechargetime:'',
- balanceinterval:'',
- tempcompensation:'',
- tempcompmax:'',
- tempcompmin:'',
- turnfloatingcurrent:'',
- reduced_start_voltage:'',
- reduced_stop_voltage:'',
- // capacity:'',
- // vpromotecharge:'',
- // vpromoterecover:'',
- // voverdischargerecover:'',
- // voverdischarge:'',
- vsystem:'',
- minusnocharge:'',
- chargemode:'',
- battery_type:'',
- system_voltage:'',
- overvoltage:'',
- char_limit_voltage:'',
- equ_char_voltage:'',
- // li_battery_type:'',
- increa_char_voltage:'',
- float_char_voltage:'',
- increa_char_return_voltage:'',
- over_dischar_return_voltage:'',
- over_dischar_voltage:'',
- equ_char_time:'',
- increa_char_time:'',
- balan_char_interval:'',
- temper_compen_coeff:'',
- char_upper_limit_temper:'',
- char_lower_limit_temper:'',
- dischar_upper_limit_temper:'',
- dischar_lower_limit_temper:'',
- },
- batteryParametersDataHC:{},
- batteryParametersList0:[],
- batteryParametersListOld0:[
- {model:'capacity',label:'蓄电池容量',unit:'',type:'input'},
- {model:'vovervoltage',label:'超压电压',unit:'(V)',type:'input'},
- {model:'vlimitedcharge',label:'充电限制电压',unit:'(V)',type:'input'},
- {model:'vbalancecharge',label:'均衡充电电压',unit:'(V)',type:'input'},
- {model:'vpromotecharge',label:'提升充电电压',unit:'(V)',type:'input'},
- {model:'vfloatingcharge',label:'浮充充电电压',unit:'(V)',type:'input'},
- {model:'vpromoterecover',label:'提升充电恢复电压',unit:'(V)',type:'input'},
- {model:'voverdischargerecover',label:'过放恢复电压',unit:'(V)',type:'input'},
- {model:'vundervoltagewarn',label:'欠压警告电压',unit:'(V)',type:'input'},
- {model:'voverdischarge',label:'过放电压',unit:'',type:'input'},
- {model:'balancechargetime',label:'均衡充电时间',unit:'(H)',type:'select',option:'balancechargetime'},
- {model:'promotechargetime',label:'提升充电时间',unit:'(H)',type:'select',option:'balancechargetime'},
- {model:'balanceinterval',label:'均衡充电间隔',unit:'(天)',type:'input'},
- {model:'tempcompensation',label:'温度补偿系数',unit:'(mV℃/2V)',type:'input'},
- {model:'tempcompmax',label:'温度补偿最高温度',unit:'(℃)',type:'input'},
- {model:'tempcompmin',label:'温度补偿最低温度',unit:'(℃)',type:'input'},
- {model:'turnfloatingcurrent',label:'转浮充电流',unit:'(A)',type:'input'},
- ],
- batteryParametersListNew0:[
- {model:'light_voltage',label:'光控电压',unit:'(V)',type:'select',option:'light_voltage'},
- {model:'system_voltage',label:'系统电压',unit:'(V)',type:'select',option:'system_voltage0'},
- {model:'overvoltage',label:'超压电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'char_limit_voltage',label:'充电限制电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'equ_char_voltage',label:'均衡充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'increa_char_voltage',label:'提升充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'float_char_voltage',label:'浮充充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'increa_char_return_voltage',label:'提升充电返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_return_voltage',label:'过放返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_voltage',label:'过放电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'equ_char_time',label:'均衡充电时间',unit:'(min)',type:'select',option:'equ_char_time'},
- {model:'increa_char_time',label:'提升充电时间',unit:'(min)',type:'select',option:'equ_char_time'},
- {model:'balan_char_interval',label:'均衡充电间隔',unit:'(day)',type:'select',option:'balan_char_interval'},
- {model:'temper_compen_coeff',label:'温度补偿系数',unit:'(mV/℃/2V)',type:'select',option:'temper_compen_coeff'},
- {model:'char_upper_limit_temper',label:'充电上限温度',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'char_lower_limit_temper',label:'充电下限温度',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'dischar_upper_limit_temper',label:'放电上限温度',unit:'(A)',type:'select',option:'limit_temper'},
- {model:'dischar_lower_limit_temper',label:'放电下限温度',unit:'(A)',type:'select',option:'limit_temper'},
- ],
- batteryParametersListNew0EN:[
- {model:'light_voltage',label:'OpticallyControlledVoltage',unit:'(V)',type:'select',option:'light_voltage'},
- {model:'system_voltage',label:'BatRateVolt',unit:'(V)',type:'select',option:'system_voltage0'},
- {model:'overvoltage',label:'BatOverVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'char_limit_voltage',label:'BatChgLimitVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'equ_char_voltage',label:'BatConstChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'increa_char_voltage',label:'BatImprovChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'float_char_voltage',label:'BatFloatChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'increa_char_return_voltage',label:'BatImprovChgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_return_voltage',label:'BatOverDischgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_voltage',label:'BatOverDischgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'equ_char_time',label:'BatConstChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
- {model:'increa_char_time',label:'BatImprovChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
- {model:'balan_char_interval',label:'BatConstChgGapTime',unit:'(day)',type:'select',option:'balan_char_interval'},
- {model:'temper_compen_coeff',label:'CoeffTemperCompen',unit:'(mV/℃/2V)',type:'select',option:'temper_compen_coeff'},
- {model:'char_upper_limit_temper',label:'ChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'char_lower_limit_temper',label:'ChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'dischar_upper_limit_temper',label:'DisChgMaxTemper',unit:'(A)',type:'select',option:'limit_temper'},
- {model:'dischar_lower_limit_temper',label:'DisChgMinTemper',unit:'(A)',type:'select',option:'limit_temper'},
- ],
- batteryParametersList0EN:[],
- batteryParametersListOld0EN:[
- {model:'capacity',label:'Battery capacity',unit:'',type:'input'},
- {model:'vovervoltage',label:'Overvoltage voltage',unit:'(V)',type:'input'},
- {model:'vlimitedcharge',label:'Charge limit voltage',unit:'(V)',type:'input'},
- {model:'vbalancecharge',label:'Balanced charging voltage',unit:'(V)',type:'input'},
- {model:'vpromotecharge',label:'Increase charging voltage',unit:'(V)',type:'input'},
- {model:'vfloatingcharge',label:'Floating charge voltage',unit:'(V)',type:'input'},
- {model:'vpromoterecover',label:'Increase charge recovery voltage',unit:'(V)',type:'input'},
- {model:'voverdischargerecover',label:'Over-discharge recovery voltage',unit:'(V)',type:'input'},
- {model:'vundervoltagewarn',label:'Undervoltage warning voltage',unit:'(V)',type:'input'},
- {model:'voverdischarge',label:'Over discharge voltage',unit:'',type:'input'},
- {model:'balancechargetime',label:'Balanced charging time',unit:'(H)',type:'select',option:'balancechargetime'},
- {model:'promotechargetime',label:'Increase charging time',unit:'(H)',type:'select',option:'balancechargetime'},
- {model:'balanceinterval',label:'Balanced charge interval',unit:'(day)',type:'input'},
- {model:'tempcompensation',label:'Temperature compensation coefficient',unit:'(mV℃/2V)',type:'select',option:'tempcompensation'},
- {model:'tempcompmax',label:'max-temperature compensation',unit:'(℃)',type:'input'},
- {model:'tempcompmin',label:'min-temperature compensation',unit:'(℃)',type:'input'},
- {model:'turnfloatingcurrent',label:'To float flow',unit:'(A)',type:'input'},
- ],
- batteryParametersList1:[],
- batteryParametersListOld1:[
- {model:'capacity',label:'蓄电池容量',unit:'(AH)',type:'input'},
- {model:'vpromotecharge',label:'过充电压',unit:'(V)',type:'input'},
- {model:'vpromoterecover',label:'过充返回电压',unit:'(V)',type:'input'},
- {model:'voverdischargerecover',label:'过放恢复电压',unit:'(V)',type:'input'},
- {model:'voverdischarge',label:'过放电压',unit:'(V)',type:'input'},
- {model:'vsystem',label:'系统电压',unit:'(V)',type:'select',option:'vsystem'},
- {model:'minusnocharge',label:'零下禁充',unit:'',type:'select',option:'minusnocharge'},
- {model:'chargemode',label:'充电模式',unit:'',type:'select',option:'chargemode'},
- ],
- batteryParametersListNew1:[
- {model:'light_voltage',label:'光控电压',unit:'(V)',type:'select',option:'light_voltage'},
- {model:'system_voltage',label:'系统电压',unit:'(V)',type:'select',option:'system_voltage1'},
- {model:'li_battery_type',label:'锂电池类型',unit:'(V)',type:'select',option:'li_battery_type'},
- {model:'increa_char_voltage',label:'充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'float_char_voltage',label:'充电返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_return_voltage',label:'过放返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_voltage',label:'过放电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'char_upper_limit_temper',label:'充电上限温度',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'char_lower_limit_temper',label:'充电下限温度',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'dischar_upper_limit_temper',label:'放电上限温度',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'dischar_lower_limit_temper',label:'放电下限温度',unit:'(℃)',type:'select',option:'limit_temper'},
- ],
- batteryParametersListNew1EN:[
- {model:'light_voltage',label:'OpticallyControlledVoltage',unit:'(V)',type:'select',option:'light_voltage'},
- {model:'system_voltage',label:'BatRateVolt',unit:'(V)',type:'select',option:'system_voltage1'},
- {model:'li_battery_type',label:'lithiumBatteryType',unit:'(V)',type:'select',option:'li_battery_typeEN'},
- {model:'increa_char_voltage',label:'BatImprovChgVolt',unit:'(V)',type:'input'},
- {model:'float_char_voltage',label:'BatFloatChgVolt',unit:'(V)',type:'input'},
- {model:'over_dischar_return_voltage',label:'BatOverDischgBackVolt',unit:'(V)',type:'input'},
- {model:'over_dischar_voltage',label:'BatOverDischgVolt',unit:'(V)',type:'input'},
- {model:'char_upper_limit_temper',label:'ChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'char_lower_limit_temper',label:'ChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'dischar_upper_limit_temper',label:'DisChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'dischar_lower_limit_temper',label:'DisChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- ],
- batteryParametersList1EN:[
- {model:'battery_count',label:'Number of battery strings',unit:'(V)',type:'select',option:'battery_count'},
- {model:'light_voltage',label:'OpticallyControlledVoltage',unit:'(V)',type:'select',option:'light_voltage'},
- {model:'light_delay_time',label:'Optical control delay time',unit:'(V)',type:'select',option:'light_delay_time'},
- {model:'system_voltage',label:'BatRateVolt',unit:'(V)',type:'select',option:'system_voltage1'},
- {model:'overvoltage',label:'BatOverVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'char_limit_voltage',label:'BatChgLimitVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'equ_char_voltage',label:'BatConstChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'increa_char_voltage',label:'BatImprovChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'float_char_voltage',label:'BatFloatChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'increa_char_return_voltage',label:'BatImprovChgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_return_voltage',label:'BatOverDischgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'over_dischar_voltage',label:'BatOverDischgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
- {model:'equ_char_time',label:'BatConstChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
- {model:'increa_char_time',label:'BatImprovChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
- {model:'balan_char_interval',label:'BatConstChgGapTime',unit:'(day)',type:'select',option:'balan_char_interval'},
- {model:'temper_compen_coeff',label:'CoeffTemperCompen',unit:'(mV/℃/2V)',type:'select',option:'temper_compen_coeff'},
- {model:'char_upper_limit_temper',label:'ChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'char_lower_limit_temper',label:'ChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
- {model:'reduced_start_voltage',label:'Smart power starting voltage',unit:'(V)',type:'input'},
- {model:'reduced_stop_voltage',label:'Smart power end voltage',unit:'(V)',type:'input'},
- // {model:'dischar_upper_limit_temper',label:'DisChgMaxTemper',unit:'(A)',type:'select',option:'limit_temper'},
- // {model:'dischar_lower_limit_temper',label:'DisChgMinTemper',unit:'(A)',type:'select',option:'limit_temper'},
- // {model:'li_battery_type',label:'lithiumBatteryType',unit:'(V)',type:'select',option:'li_battery_typeEN'},
- ],
- batteryParametersListOld1EN:[
- {model:'capacity',label:'Battery capacity',unit:'(Ah)',type:'input'},
- {model:'vpromotecharge',label:'Overcharge voltage',unit:'(V)',type:'input'},
- {model:'vpromoterecover',label:'Overcharge return voltage',unit:'(V)',type:'input'},
- {model:'voverdischargerecover',label:'Over-discharge recovery voltage',unit:'(V)',type:'input'},
- {model:'voverdischarge',label:'Over discharge voltage',unit:'(V)',type:'input'},
- {model:'vsystem',label:'System voltage',unit:'(V)',type:'select',option:'vsystem'},
- {model:'minusnocharge',label:'Zero charge',unit:'',type:'select',option:'minusnochargeEN'},
- {model:'chargemode',label:'Charging mode',unit:'',type:'select',option:'chargemode'},
- ],
- option:{
- equ_char_time:[],
- temper_compen_coeff:[],
- limit_temper:[],
- increa_char_voltage0:[],
- increa_char_voltage3:[],
- increa_char_voltage6:[],
- light_voltage:[],
- light_delay_time:[],
- load_current:[],
- light_time:[],
- light_power:[],
- light_type:[
- {id:'0',name:'策略'},
- {id:'1',name:'灯控'},
- {id:'2',name:'手动'},
- ],
- light_type_en:[
- {id:'0',name:'strategy'},
- {id:'1',name:'Lamp control'},
- {id:'2',name:'Manual'},
- ],
- balan_char_interval:[],
- intell_powerV:[],
- intell_powerC:[],
- li_battery_type:[
- {id:'0',name:'磷酸铁锂'},
- {id:'1',name:'三元锂'},
- ],
- li_battery_typeEN:[
- {id:'0',name:'LiFePO4'},
- {id:'1',name:'NCM'},
- ],
- system_voltage0:[
- {id:'12',name:'12'},
- {id:'24',name:'24'},
- ],
- system_voltage1:[
- {id:'12',name:'12'},
- {id:'24',name:'24'},
- {id:'36',name:'36'},
- {id:'48',name:'48'},
- ],
- light_delay:[],
- induction_delay:[],
- workmodeList:[],
- intell_power:[
- {id:'0',name:'关'},
- {id:'1',name:'高'},
- {id:'2',name:'中'},
- {id:'3',name:'低'},
- {id:'4',name:'自动'},
- {id:'5',name:'USE'},
- ],
- intell_powerEN:[
- {id:'0',name:'Off'},
- {id:'1',name:'High'},
- {id:'2',name:'Centre'},
- {id:'3',name:'low'},
- {id:'4',name:'Automatic'},
- {id:'5',name:'USE'},
- ],
- chargemode:[
- {id:'0',name:'PWM/MPPT'},
- {id:'1',name:'ON/OFF'},
- ],
- minusnochargeEN:[
- {id:'0',name:'Can charge'},
- {id:'1',name:'Prohibited chargeing'},
- ],
- vsystem:[
- {id:'12',name:'12'},
- {id:'24',name:'24'},
- ],
- battery_count:[
- {id:'0',name:'0'},
- {id:'1',name:'1'},
- {id:'2',name:'2'},
- {id:'3',name:'3'},
- {id:'4',name:'4'},
- {id:'5',name:'5'},
- {id:'6',name:'6'},
- {id:'7',name:'7'},
- {id:'8',name:'8'},
- {id:'9',name:'9'},
- {id:'10',name:'10'},
- {id:'11',name:'11'},
- {id:'12',name:'12'},
- {id:'13',name:'13'},
- {id:'14',name:'14'},
- {id:'15',name:'15'},
- ],
- balancechargetime:[
- {id:'0',name:'0'},
- {id:'1',name:'1'},
- {id:'2',name:'2'},
- {id:'3',name:'3'},
- {id:'4',name:'4'},
- {id:'5',name:'5'},
- {id:'6',name:'6'},
- {id:'7',name:'7'},
- {id:'8',name:'8'},
- {id:'9',name:'9'},
- {id:'10',name:'10'},
- ],
- tempcompensation:[
- {id:'-2',name:'-2'},
- {id:'-3',name:'-3'},
- {id:'-4',name:'-4'},
- {id:'-5',name:'-5'},
- ],
- batteryListEN:[
- {id:'1',name:'Lead-acid batteries'},
- {id:'2',name:'lithium battery'},
- {id:'3',name:'Supercapacitor'},
- ],
- onOff:[
- {id:'1',name:'开启'},
- {id:'0',name:'关闭'},
- ],
- onOffEN:[
- {id:'1',name:'Open'},
- {id:'0',name:'shut down'},
- ],
- timeList:[
- {id:'1',name:'1分钟'},
- {id:'5',name:'5分钟'},
- {id:'10',name:'10分钟'},
- {id:'15',name:'15分钟'},
- {id:'20',name:'20分钟'},
- {id:'25',name:'25分钟'},
- {id:'30',name:'30分钟'},
- {id:'35',name:'35分钟'},
- {id:'40',name:'40分钟'},
- {id:'45',name:'45分钟'},
- {id:'50',name:'50分钟'},
- ],
- timeListEN:[
- {id:'1',name:'1 minutes'},
- {id:'5',name:'5 minutes'},
- {id:'10',name:'10 minutes'},
- {id:'15',name:'15 minutes'},
- {id:'20',name:'20 minutes'},
- {id:'25',name:'25 minutes'},
- {id:'30',name:'30 minutes'},
- {id:'35',name:'35 minutes'},
- {id:'40',name:'40 minutes'},
- {id:'45',name:'45 minutes'},
- {id:'50',name:'50 minutes'},
- ],
- },
- monitorType:'loadParameters',
- myChart2:'',
- currentTime:new Date(),
- currentPage:1,
- pageSize:0,
- total:0,
- pageSizeArr:[{id:10,name:'10/page'},{id:20,name:'20/page'},{id:50,name:'50/page'},{id:100,name:'100/page'}],
- loading:{
- deviceList:false,
- lampLightSlider:false,
- lampcontrolUpdate:false,
- setBatteryFun:false,
- exportTableLS:false,
- batchProcessingFun:false,
- }
- }
- },
- components:{sideBarIdcol},
- computed:{
- ...mapGetters({
- token:'token',
- client_key:'client_key',
- username:'username',
- version:'version',
- privilege:'privilege',
- role:'role',
- remRatio:'remRatio',
- sideBarCompanyType:'sideBarCompanyType',
- }),
- historicalNavListENFor(){
- let list = [];
- for(let item of this.historicalNavListEN){
- if(((item.model =='3'&&this.dataLSType=='0')||item.model !='3')&&((item.model =='system_info_log'&&this.dataLSType=='1')||item.model !='system_info_log')){
- list.push(item)
- }
- }
- return list
- },
- divisionName(){
- let name;
- for(let d of this.divisionNav){
- if(d.id == this.division){
- name = d.name;
- }
- }
- return name;
- },
- roadIdName(){
- let name;
- if(this.roadId == 0){
- return "All";
- }
- for(let d of this.tabNavList){
- if(d.id == this.roadId){
- name = d.name;
- }
- }
- return name;
- },
- pageSizeName(){
- let name;
- for(let d of this.pageSizeArr){
- if(d.id == this.pageSize){
- name = d.name;
- }
- }
- return name;
- },
- },
- mounted(){
- let this_ =this;
- this.option.light_delay = [];
- this.option.induction_delay = [];
- this.option.load_current = [];
- this.option.light_time = [];
- this.option.light_power = [];
- this.option.light_voltage = [];
- this.option.light_delay_time = [];
- this.option.increa_char_voltage0 = [];
- this.option.increa_char_voltage3 = [];
- this.option.increa_char_voltage6 = [];
- this.option.limit_temper = [];
- this.option.temper_compen_coeff = [];
- this.option.equ_char_time = [];
- this.option.intell_powerV = [];
- this.option.intell_powerC = [];
- let j = 0;
- for(let i = 0; i<=700;i++){
- if(i<=11){
- if(i==0){
- // this.option.light_delay.push({
- // id:i*5+'',
- // name:this.version=='0'?'无延时':'No delay',
- // });
- this.option.induction_delay.push({
- id:i*5+'',
- name:'Non-inductive function',
- });
- }else{
- this.option.induction_delay.push({
- id:i*5+'',
- name:'Delay'+i+'seconds',
- });
- this.option.light_delay.push({
- id:i*5+'',
- name:'Delay'+i+'seconds',
- });
- }
- }else if(i<72){
- j++;
- this.option.light_delay.push({
- id:j*60+'',
- name:this.version=='0'?'延时'+j+'分钟':'Delay'+j+'minutes',
- });
- this.option.induction_delay.push({
- id:j*60+'',
- name:this.version=='0'?'延时'+j+'分钟':'Delay'+j+'minutes',
- });
- }
- /*智能电压*/
- if(i<=145){
- let val = i/10+2.5;
- this.option.intell_powerV.push({
- id:val.toFixed(1),
- name:val.toFixed(1),
- })
- }
- /*智能电流*/
- if(i<=85){
- let val = i/100+0.15;
- this.option.intell_powerC.push({
- id:val.toFixed(2),
- name:val.toFixed(2),
- })
- }
- /*load_current 负载电流*/
- if(i<=695){
- let val = i/100+0.05;
- this.option.load_current.push({
- id:val.toFixed(2),
- name:val.toFixed(2),
- })
- }
- /*light_time 亮灯时间*/
- if(i<=30){
- let val = i/2;
- this.option.light_time.push({
- id:val.toFixed(1),
- name:val.toFixed(1),
- })
- }
- /*light_power 亮度*/
- if(i<=100){
- let val = (i)+'';
- this.option.light_power.push({
- id:val,
- name:val,
- })
- }
- /*light_voltage 光控电压*/
- if(i<=8){
- let val = (i+3)+'';
- this.option.light_voltage.push({
- id:val,
- name:val,
- })
- }
- /*light_voltage 光控电压延时*/
- if(i<=8){
- let val = (i+3)+'';
- this.option.light_delay_time.push({
- id:val,
- name:val,
- })
- }
-
- /*increa_char_voltage0 提升充电电压*/
- if(i<=95){
- let val = (i/10+7.5)+'';
- this.option.increa_char_voltage0.push({
- id:val,
- name:val,
- })
- }
- /*increa_char_voltage3 提升充电电压*/
- if(i<=17){
- let val = (i/10+2.5)+'';
- this.option.increa_char_voltage3.push({
- id:val,
- name:val,
- })
- }
- /*increa_char_voltage6 提升充电电压*/
- if(i<=34){
- let val = (i/10+5.0)+'';
- this.option.increa_char_voltage6.push({
- id:val,
- name:val,
- })
- }
- /*limit_temper 温度*/
- if(i<=160){
- let val = (i-40)+'';
- this.option.limit_temper.push({
- id:val,
- name:val,
- })
- }
- /*temper_compen_coeff 温度补偿系数*/
- if(i<=10){
- let val = i+'';
- this.option.temper_compen_coeff.push({
- id:val,
- name:val,
- })
- }
- /*equ_char_time 充电时间*/
- if(i<=60){
- let val = i*10+'';
- this.option.equ_char_time.push({
- id:val,
- name:val,
- })
- }
- }
- for(let i_1 = 0; i_1<52;i_1++){
- if(i_1==0){
- this.option.balan_char_interval.push({
- id:i_1,
- name:this.version == '0'?'禁止均衡功能':'Prohibited Equilibrium Function',
- });
- }else{
- this.option.balan_char_interval.push({
- id:i_1*5+'',
- name:i_1*5+'',
- });
- }
- }
- setInterval(function(){
- this_.currentTime = new Date();
- },1000)
- for(let key in this.lightControlListEN){
- if((this.role == 2||this.role == 4)&&this.lightControlListEN[key].model == 'poName'){
- this.lightControlListEN.splice(key,1)
- }
- if((this.role == 2)&&this.lightControlListEN[key].model == 'supplierName'){
- this.lightControlListEN.splice(key,1)
- }
- }
- this.lightControlListEN_for = JSON.parse(JSON.stringify(this.lightControlListEN))
- this.rightDate = '0';
- this.division = '0';
- this.roadId = 0;
- this.pageSize = 10;
- this.getCountry();
- // console.log(this.lightControlListEN)
- },
- methods:{
- commandHide(val){
- this.$nextTick(function(){
- if($('.'+val)&&$('.'+val+' >.select').offset()){
- $('.'+val).animate({scrollTop: $('.'+val).scrollTop() + $('.'+val+' >.select').offset().top - $('.'+val).offset().top - 100})
- }
- })
- },
- commandDropdown(obj){
- this.$set(this,obj.key,obj.id)
- if(obj.key == 'pageSize'||obj.key == 'roadId'){
- this.getLightList();
- }
- },
- /*设备列表*/
- getLightListKeyUp(e){
- if(e.key == 'Enter'){
- this.getLightList();
- }
- },
- /*获取表格数据*/
- getLightList(value,callback,download){
- let downloadVal = 0;
- if(download){
- downloadVal = download;
- }else{
- this.loading.deviceList = true;
- }
- baseApi.ajax_post(
- allUrl.project.lampcontrolGet,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- fields:this.tableConfig.prop1.join(','),
- field1:this.tableConfig.prop.join(','),
- project_id:this.projectId,
- keyword:this.keywords,
- status:this.status,
- alarmtype:this.alarmtype,
- page:value,
- count:this.pageSize,
- offline:this.offline,
- online:this.online,
- download:downloadVal,
- section:this.roadId,
- type:this.sideBarCompanyType,
- company:this.companyId,
- },
- {},
- data =>{
- if(callback){
- callback(data)
- }
- if(downloadVal == 0){
- this.deviceTotalData = data.data.total_data;
- this.deviceList = data.data.lamps;
- let i = (this.currentPage - 1)*this.pageSize+1;
- for(let d of this.deviceList){
- d.lighteness = parseInt(d.lighteness);
- let hh1 = '',mm1 = '',hh2 = '',mm2 = '';
- hh1 = parseInt(d.daychargemincurrent/3600);
- mm1 = parseInt((d.daychargemincurrent%3600)/60);
- hh2 = parseInt(d.daydischargemincurrent/3600);
- mm2 = parseInt((d.daydischargemincurrent%3600)/60);
- if(hh1<10){
- hh1 = '0'+hh1;
- }
- if(hh2<10){
- hh2 = '0'+hh2;
- }
- if(mm1<10){
- mm1 = '0'+mm1;
- }
- if(mm2<10){
- mm2 = '0'+mm2;
- }
- d.daychargemincurrent = hh1+':'+mm1;
- d.daydischargemincurrent = hh2+':'+mm2;
- d.webIndex = i;
- i++;
- }
- this.total = Number(data.data.total);
- this.count = data.data.count;
- this.fault = data.data.fault;
- this.loading.deviceList = false;
- this.$refs.deviceList.doLayout();
- }
- },
- this,
- () => {
- if(!download){
- this.loading.deviceList = false;
- }
- }
- )
- },
- /*项目详情*/
- getProjectDetail(id,callback){
- baseApi.ajax_post(
- allUrl.project.projectDetail,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- project_id:id,
- },
- {},
- data =>{
- if(callback){
- callback(data)
- }
- },
- this)
- },
- getProjectData(id){
- this.projectId = id;
- baseApi.ajax_post(
- allUrl.project.projectData,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- project_id:id,
- type:this.sideBarCompanyType,
- company:this.companyId,
- },
- {},
- data =>{
- this.detailData = data.data;
- if(this.weatherList.length>0){
- this.weatherList = data.data.weatherList;
- }
- this.networkSectionList();
- },
- this)
- },
- networkSectionList(){
- baseApi.ajax_post(
- allUrl.alarm.networkSectionList,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- project_id:this.projectId,
- },
- {},
- data =>{
- this.tabNavList = data.data.networks;
- },
- this)
- },
- networkGet(){
- baseApi.ajax_post(
- allUrl.alarm.networkGet,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- project_id:this.projectId,
- },
- {},
- data =>{
- this.networkList = data.data.networks;
- // console.log(data,'组网下拉')
- },
- this)
- },
- /*侧栏列表*/
- sideBarCompanyList(val,type,init){
- baseApi.ajax_post(
- allUrl.project.projectNav,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- type:type,
- keyword:val,
- },
- {},
- data =>{
- // console.log(data,'公司列表')
- console.log(init)
- let storage = window.localStorage;
- let companyId = storage.getItem("companyId");
- let projectId = storage.getItem("projectId")
- if(type == 0){
- if(data.data.length>0){
- if(projectId){
- this.projectId = projectId;
- }else{
- this.projectId = data.data[0].id;
- }
- this.getProjectData(this.projectId)
- this.getFields();
- this.networkGet();
- for(let key in data.data){
- this.$set(data.data[key],'isOpen',false)
- if(data.data[key].id == this.projectId){
- this.$set(data.data[key],'isOpen',true)
- }
- }
- }
- }else{
- if(data.data.length>0){
- if(companyId){
- this.companyId = companyId;
- if(data.data[0].projectList.length>0){
- if(projectId){
- this.projectId = projectId;
- }else{
- this.projectId = data.data[0].projectList[0].id;
- }
- // this.$set(data.data[0].projectList[0],'isOpen',true)
- this.getProjectData(this.projectId)
- this.getFields();
- this.networkGet();
- }else{
- this.projectId = null;
- this.deviceTotalData = {
- light_num:0,
- online_num:0,
- fault_count:0,
- network_num:0
- };
- this.deviceList = [];
- this.total = 0;
- this.count = 0;
- this.fault = 0;
- }
- }else{
- this.companyId = data.data[0].cId;
- if(data.data[0].projectList.length>0){
- this.projectId = data.data[0].projectList[0].id;
- // this.$set(data.data[0].projectList[0],'isOpen',true)
- this.getProjectData(this.projectId)
- this.getFields();
- this.networkGet();
- }else{
- this.projectId = null;
- this.deviceTotalData = {
- light_num:0,
- online_num:0,
- fault_count:0,
- network_num:0
- };
- this.deviceList = [];
- this.total = 0;
- this.count = 0;
- this.fault = 0;
- }
- }
- for(let key in data.data){
- this.$set(data.data[key],'isOpen',false)
- if(data.data[key].cId == this.companyId){
- this.$set(data.data[key],'isOpen',true)
- }
- if(data.data[0].projectList.length>0){
- for(let d of data.data[0].projectList){
- this.$set(d,'isOpen',true)
- if(d.id == this.projectId){
- this.$set(d,'isOpen',true)
- }
- }
- }
- }
- }else{
- this.companyId = null
- this.projectId = null;
- this.deviceTotalData = {
- light_num:0,
- online_num:0,
- fault_count:0,
- network_num:0
- };
- this.deviceList = [];
- this.total = 0;
- this.count = 0;
- this.fault = 0;
- }
- }
- // console.log(this.companyId)
- this.projectNav = data.data;
- },
- this)
- },
- /*侧边栏打开关闭*/
- sideBarIsOn(){
- if(this.sideBarType == 'on'){
- this.sideBarType = 'off';
- }else{
- this.sideBarType = 'on';
- }
- },
- /*侧边栏里展开收起*/
- sideBarListIsOpen(data){
- if(data.isOpen){
- data.isOpen = false;
- }else{
- data.isOpen = true;
- }
- },
- projectSelectFun(type,data,d){
- var storage = window.localStorage;
- if(!data.isOpen||this.projectId != data.id){
- this.$set(data,'isOpen',true)
- }else{
- this.$set(data,'isOpen',false)
- }
- console.log(type,data,d)
- storage.setItem('projectId',data.id);
- if(type != 0){
- if(d.cId != this.companyId){
- this.companyId = d.cId;
- storage.setItem('companyId',d.cId);
- }
- }
- this.projectId = data.id;
- this.roadId = '';
- this.getLightList(this.currentPage);
- this.getProjectData(this.projectId)
- },
- roadSelectFun(data,obj,d){
- var storage = window.localStorage;
- if(this.sideBarCompanyType == 0){
- if(data.id != this.projectId){
- storage.setItem('projectId',data.id);
- this.projectId = data.id;
- }
- this.roadId = obj.name;
- }else{
- if(data.cId != this.companyId){
- this.companyId = data.cId;
- storage.setItem('companyId',data.cId);
- }
- if(obj.id != this.projectId){
- storage.setItem('projectId',obj.id);
- this.projectId = obj.id;
- }
- this.roadId = d.name;
- }
- this.getLightList(this.currentPage);
- this.getProjectData(this.projectId)
- },
- /*批量处理*/
- batchOperation(val){
- console.log(val,this.multipleSelection.length)
- if(this.multipleSelection.length <= '0'){
- this.$message({
- showClose: true,
- message:'Please select the light control',
- type: 'warning'
- });
- }else{
- this.lampcontrolOperationType = val
- if(val == 'strategy'){
- baseApi.ajax_post(
- allUrl.strategy.policy_nav,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- client_type:'0',
- },
- {},
- data =>{
- this.policyList = data.data.list;
- },
- this)
- }
- }
- },
- batchProcessingFun(type){
- if(this.loading.batchProcessingFun){
- return
- }
- let lampIds = '';
- if(type == 'on'){
- this.lampcontrolOperationType = '-1';
- this.batchProcessing = type;
- this.batchDimmingVal = 0;
- }else if(type == 'cancel'){
- this.batchProcessing = 'off';
- }else{
- if(this.lampcontrolOperationType == '参数'){
- if(this.multipleSelection.length == 0){
- this.$message({
- showClose: true,
- message:'Please select the light control first',
- type: 'warning'
- });
- }else{
- let oldBoolean = false;
- let newBoolean = false;
- let lampBoolean = false;
- let catcherBoolean = false;
- for(let d of this.multipleSelection){
- if(d.lampProtocoltype == '0'){
- oldBoolean = true;
- }else if(d.lampProtocoltype == '1'){
- newBoolean = true;
- }
- if(d.loadtype == '0'){
- lampBoolean = true;
- }else if(d.loadtype == '1'){
- catcherBoolean = true;
- }
- }
- console.log(newBoolean,oldBoolean,lampBoolean,catcherBoolean)
- if(newBoolean && oldBoolean){
- this.$message({
- showClose: true,
- message:'Cannot modify both old and new controller parameters at the same time',
- type: 'warning'
- });
- }else if(lampBoolean && catcherBoolean){
- this.$message({
- showClose: true,
- message:'Unable to modify street lamp and insect trap parameters at the same time.',
- type: 'warning'
- });
- }else{
- this.monitorType = 'loadParameters';
- this.monitorDialog = true;
- this.parameterLoadIsEdit = false;
- this.parameterBatteryIsEdit = false;
- this.batchModificationParameters = false;
- this.loadSettingIsTrue = false;
- this.loading.loadSetting = true;
- this.batterySettingIsTrue = false;
- this.loading.batterySetting = true;
- this.lampProtocoltype = '1';
- this.loadtype = '0';
- this.loadParametersData = this.loadParametersDataNew;
- this.loadParametersListEN = this.loadParametersListENNew
- for(let key in this.loadParametersData){
- this.loadParametersData[key] = '';
- }
- this.lampcontrolGetData(1,data=>{
- data.data.first_light_time = new Date('2018-08-06 '+data.data.first_light_time);
- data.data.second_light_time = new Date('2018-08-06 '+data.data.second_light_time);
- data.data.third_light_time = new Date('2018-08-06 '+data.data.third_light_time);
- data.data.fourth_light_time = new Date('2018-08-06 '+data.data.fourth_light_time);
- data.data.fifth_light_time = new Date('2018-08-06 '+data.data.fifth_light_time);
- data.data.sixth_light_time = new Date('2018-08-06 '+data.data.sixth_light_time);
- data.data.seventh_light_time = new Date('2018-08-06 '+data.data.seventh_light_time);
- data.data.eighth_light_time = new Date('2018-08-06 '+data.data.eighth_light_time);
- data.data.ninth_light_time = new Date('2018-08-06 '+data.data.ninth_light_time);
- data.data.tenth_light_time = new Date('2018-08-06 '+data.data.tenth_light_time);
- for(let key in data.data){
- this.loadParametersData[key] = data.data[key]
- }
- this.loadParametersDataHC = Object.assign({},this.loadParametersData);
- this.loadSettingIsTrue = true;
- this.loading.loadSetting = false;
- })
- this.lampcontrolGetData(2,data=>{
- console.log(data)
- for(let key in data.data){
- this.batteryParametersData[key] = data.data[key]
- }
- this.batteryParametersDataHC = Object.assign({},this.batteryParametersData)
- this.batteryParametersDataHC.type = '默认';
- this.batterySettingIsTrue = true;
- this.loading.batterySetting = false;
- })
- }
- }
- }else if(this.lampcontrolOperationType == '调光'){
- if(this.multipleSelection.length == 0){
- this.$message({
- showClose: true,
- message:'Please select the light control',
- type: 'warning'
- });
- }else{
- /*灯控调光*/
- let this_ = this;
- let i = 0;
- // let key = 0;
- this.giveCommandDialog = true;
- this.giveCommandZS = this.multipleSelection.length;
- this.giveCommandCG = 0;
- this.giveCommandJD = 0;
- this.giveCommandJournal = [];
- let ids = '';
- let ids_length = this.multipleSelection.length;
- for(let d of this.multipleSelection){
- if(ids == ''){
- ids = d.id;
- }else{
- ids+=','+d.id;
- }
- }
- this_.loading.batchProcessingFun = true;
- baseApi.websocket1(allUrl.websocket.wss,data=>{
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.gisMap.lampcontrolDimming,
- {
- username:this_.username,
- client_key:this_.client_key,
- token:this_.token,
- lamp_id:ids,
- type:'1',
- lightness:this_.batchDimmingVal,
- mode:'0',
- clientid:data.data.clientid,
- },
- this_,
- )
- }
- if(data.data.status == '2'){
- if(data.data.code == '0000'){
- console.log(1,'--')
- this_.$notify({
- title: 'Successful operation',
- message: 'lamp '+data.data.data.number,
- type: 'success'
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.data.msg,
- number:data.data.data.number,
- type:true
- })
- i++;
- this_.giveCommandCG ++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }else{
- this_.$notify.error({
- title: 'Operation failed',
- message: 'Lamp '+data.data.data.number+':'+data.data.msg
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.data.msg,
- number:data.data.data.number,
- type:false
- })
- i++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }
- }
- },() => {
- this_.loading.batchProcessingFun = false;
- },this_)
- }
- }else if(this.lampcontrolOperationType == '3'){
- if(this.multipleSelection.length == 0){
- this.$message({
- showClose: true,
- message:'Please select the light control',
- type: 'warning'
- });
- }else{
- for(let d of this.multipleSelection){
- if(lampIds == ''){
- lampIds = d.id;
- }else{
- lampIds += ',' + d.id;
- }
- }
- this.$confirm('This operation will permanently delete the lamp control, will it continue?','Prompt', {
- confirmButtonText: 'confirm',
- cancelButtonText: 'cancel',
- type: 'warning'
- }).then(() => {
- this.loading.batchProcessingFun = true;
- baseApi.ajax_post(
- allUrl.project.lampcontrolDel,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_ids:lampIds,
- },
- {},
- data =>{
- // console.log(data,'灯控删除回调')
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.batchProcessing = type;
- this.getLightList(this.currentPage);
- this.networkSectionList();
- this.loading.batchProcessingFun = false;
- let storage = window.localStorage;
- let searchType = storage.getItem("searchType");
- this.sideBarCompanyList('',searchType)
- },
- this)
- }).catch(() => {
- this.$message({
- type: 'info',
- message: 'Undeleted'
- });
- });
- }
- }else if(this.lampcontrolOperationType == '-1'){
- if(this.version == 0){
- this.$message({
- showClose: true,
- message:'Please select the modified type first',
- type: 'warning'
- });
- }else{
- this.$message({
- showClose: true,
- message:'Please select the modification type',
- type: 'warning'
- });
- }
- }else if(this.lampcontrolOperationType == 'strategy'){
- if(this.multipleSelection.length == 0){
- this.$message({
- showClose: true,
- message:'Please select the light control first',
- type: 'warning'
- });
- }else{
- for(let d of this.multipleSelection){
- if(lampIds == ''){
- lampIds = d.id;
- }else{
- lampIds += ',' + d.id;
- }
- }
- baseApi.ajax_post(
- allUrl.strategy.set_policy,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- policyid:this.policyId,
- lampid:lampIds,
- },
- {},
- data =>{
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.policyName = 'policy'
- this.batchProcessing = type;
- this.getLightList(this.currentPage);
- this.loading.batchProcessingFun = false;
- },
- this)
- }
- }else{
- // console.log(this.multipleSelection)
- if(this.multipleSelection.length == 0){
- this.$message({
- showClose: true,
- message:'Please select the light control first',
- type: 'warning'
- });
- }else{
- let this_ = this;
- let i = 0;
- this.giveCommandDialog = true;
- this.giveCommandZS = this.multipleSelection.length;
- this.giveCommandCG = 0;
- this.giveCommandJD = 0;
- this.giveCommandJournal = [];
- let ids = '';
- let ids_length = this.multipleSelection.length;
- for(let d of this.multipleSelection){
- if(ids == ''){
- ids = d.id;
- }else{
- ids+=','+d.id;
- }
- }
- baseApi.websocket1(allUrl.websocket.wss,(data,websocket)=>{
- this_.loading.batchProcessingFun = true;
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.project.lampcontrolTurnonoff,
- {
- username:this_.username,
- client_key:this_.client_key,
- token:this_.token,
- lamp_id:ids,
- type:this_.lampcontrolOperationType,
- mode:0,
- clientid:data.data.clientid,
- },
- this_
- )
- }else if(data.status == '2'){
- if(data.code == '0000'){
- this_.$notify({
- title: 'Successful operation',
- message: 'lamp '+data.data.number,
- type: 'success'
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.msg,
- number:data.data.number,
- type:true
- })
- i++;
- this_.giveCommandCG ++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }else{
- this_.$notify.error({
- title: 'operation failed',
- message: 'Lamp'+data.data.number+':'+data.msg
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.msg,
- number:data.data.number,
- type:false
- })
- i++;
- this_.giveCommandJD = i;
- console.log(i >= ids_length)
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }
- }
- },() => {
- this_.loading.batchProcessingFun = false;
- },this_)
- }
- }
- }
- },
- GMTToZero2(time){
- let now = new Date(time);
- let hour = now.getHours();//得到小时
- let minu = now.getMinutes();//得到分钟
- let sec = now.getSeconds();//得到秒
- if (hour < 10) hour = "0" + hour;
- if (minu < 10) minu = "0" + minu;
- if (sec < 10) sec = "0" + sec;
- let times = "";
- times = hour + ":" + minu + ":" + sec;
- return times
- },
- /*获取表格字段*/
- getFields(){
- baseApi.ajax_post(
- allUrl.project.homeFields,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- },
- {},
- data =>{
- // console.log(data,'字段列表')
- this.fieldList = data.data.list;
- this.fieldKeep();
- },
- this)
- },
- /*字段管理*/
- fieldManagement(){
- baseApi.ajax_post(
- allUrl.project.homeFields,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- },
- {},
- data =>{
- this.fieldList = data.data.list;
- },
- this)
- this.fieldDialog = true;
- },
- /*字段选择*/
- fieldSelect(data){
- if(data.select == '1'){
- if(data.fields1 == 'number' || data.fields1 == 'address' || data.fields1 == 'networkname' || data.fields1 == 'section'){
- this.$message({
- showClose: true,
- message:'This field cannot be undisplayed',
- type: 'warning'
- });
- }else{
- data.select = '0'
- }
- }else{
- data.select = '1'
- }
- },
- /*字段*/
- fieldKeep(){
- this.tableConfig.label = [];
- this.tableConfig.prop = [];
- this.tableConfig.prop1 = [];
- this.tableConfig.width = [];
- for(var d of this.fieldList){
- if(d.select == '1'){
- this.$set(this.tableConfig.label,this.tableConfig.label.length,d.enname);
- this.$set(this.tableConfig.prop1,this.tableConfig.prop1.length,d.field);
- this.$set(this.tableConfig.prop,this.tableConfig.prop.length,d.fields1);
- if(d.fields1 == 'updatetime'){
- this.$set(this.tableConfig.width,this.tableConfig.width.length,160);
- }else if(d.fields1 == 'isfaulted'){
- this.$set(this.tableConfig.width,this.tableConfig.width.length,160);
- }else{
- this.$set(this.tableConfig.width,this.tableConfig.width.length,(d.enname.length+1)*8+20);
- }
- }
- }
- let i = 0;
- this.deviceArr = [];
- for(let d of this.tableConfig.prop){
- this.deviceArr.push({prop:d,label:this.tableConfig.label[i],minWidth:this.tableConfig.width[i],sortable:this.tableConfig.sortable[i]})
- i++;
- }
- console.log(this.deviceArr)
- this.currentPage = 1;
- this.loading.fieldKeep = true;
- this.getLightList(this.currentPage,() => {
- let this_ = this;
- setTimeout(function(){
- this_.fieldDialog = false;
- this_.loading.fieldKeep = false;
- },100)
- });
- },
- /*获取国家列表*/
- getCountry(){
- baseApi.ajax_post(
- allUrl.common.get_country,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- },
- {},
- data =>{
- this.countryList = data.data.list;
- },
- this)
- },
- /*获取省份下拉*/
- getProvince(value){
- baseApi.ajax_post(
- allUrl.common.get_province,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- countryId:value,
- },
- {},
- data =>{
- this.provinceList = data.data.list;
- },
- this)
- },
- /*获取市级下拉*/
- getCity(value){
- baseApi.ajax_post(
- allUrl.common.get_city,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- provinceId:value,
- },
- {},
- data =>{
- this.cityList = data.data.list;
- },
- this)
- },
- /*获取区级下拉*/
- getArea(value){
- baseApi.ajax_post(
- allUrl.common.get_area,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- cityId:value,
- },
- {},
- data =>{
- this.areaList = data.data.list;
- },
- this)
- },
- /*公司下拉列表*/
- getCompanyNav(type){
- console.log(this.sideBarCompanyType)
- baseApi.ajax_post(
- allUrl.user.company_nav,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- type:type,
- },
- {},
- data =>{
- if(type == 3){
- this.companyNavSupplier = data.data.list;
- }
- if(type == 4){
- this.companyNavPO = data.data.list;
- }
- },
- this)
- },
-
- /*添加项目*/
- addItemFun(){
- this.projectTitle = 'Add Project';
- this.projectButton = 'Create it now';
-
- this.addItemDialog = true;
- // let this_ = this;
- this.provinceList = [];
- this.cityList = [];
- this.areaList = [];
- this.$nextTick(function(){
- this.$refs['addItemData'].resetFields();
- // this.addItemData.company = this.companyId;
- this.addItemData.patrolinterval = '60';
- this.addItemData.countryId = '';
- this.addItemData.provinceId = '';
- this.addItemData.cityId = '';
- this.addItemData.areaId = '';
- })
- },
- /*编辑项目*/
- editProject(){
- // console.log(this.detail)
- this.addItemDialog = true;
- this.projectTitle = 'Edit Project';
- this.projectButton = 'Save';
- this.$nextTick(function(){
- this.$refs['addItemData'].resetFields();
- this.getProjectDetail(this.projectId,data=>{
- this.addItemData.projectName = data.data.project_name;
- this.addItemData.projectNo = data.data.project_no;
- this.addItemData.timezone = data.data.timezone;
- this.getProvince(data.data.countryId)
- this.getCity(data.data.provinceId);
- this.getArea(data.data.cityId);
- this.addItemData.countryId = data.data.countryId=='0'?'':data.data.countryId;
- this.addItemData.provinceId = data.data.provinceId=='0'?'':data.data.provinceId;
- this.addItemData.cityId = data.data.cityId=='0'?'':data.data.cityId;
- this.addItemData.areaId = data.data.areaId=='0'?'':data.data.areaId;
- this.addItemData.address = data.data.address;
- // this.addItemData.company = this.companyId;
- this.addItemData.patrolinterval = data.data.patrolinterval;
- })
- })
- },
- countryType(val){
- this.getProvince(val)
- this.addItemData.provinceId = '';
- this.provinceList = [];
- this.addItemData.cityId = '';
- this.cityList = [];
- this.addItemData.areaId = '';
- this.areaList = [];
- },
- provinceType(val){
- this.getCity(val);
- this.addItemData.cityId = '';
- this.cityList = [];
- this.addItemData.areaId = '';
- this.areaList = [];
- },
- cityType(val){
- this.getArea(val);
- this.addItemData.areaId = '';
- this.areaList = [];
- },
- /*数据更新*/
- lampcontrolUpdate(){
- let lampIds = '';
- for(let d of this.multipleSelection){
- if(lampIds == ''){
- lampIds = d.id;
- }else{
- lampIds += ',' + d.id;
- }
- }
- if(lampIds == ''){
- this.$message({
- showClose: true,
- message:'Please select the light control',
- type: 'warning'
- });
- }else{
- this.loading.lampcontrolUpdate = true;
- baseApi.ajax_post(
- allUrl.project.lampcontrolUpdate,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:lampIds,
- },
- {},
- data =>{
- // console.log(data)
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.getLightList(this.currentPage);
- let this_ = this;
- setTimeout(function(){
- this_.loading.lampcontrolUpdate = false;
- },100)
- },
- this,
- () => {
- this.getLightList(this.currentPage);
- this.loading.lampcontrolUpdate = false;
- }
- )
- }
- },
- handleSelectionChange(val) {
- this.multipleSelection = val;
- this.popoverCLShow = false;
- for(let d of this.multipleSelection){
- if(d.loadtype == '1'){
- this.popoverCLShow = true;
- }
- }
- },
- statusTypeFun(value,type,offline,online){
- if(this.status != value || this.alarmtype != type || this.offline != offline || this.online != online){
- this.status = value;
- this.alarmtype = type;
- this.currentPage = 1;
- this.offline = offline;
- this.online = online;
- this.getLightList(this.currentPage);
- }
- },
- brightnessAdjustment(e,data){
- console.log(e,'--------',data)
- this.lampLightSliderShow = true;
- let clientWidth = 0,clientHeight = 0,offsetX = 0,offsetY = 0,pageX = 0,pageY = 0;
- clientWidth = e.target.clientWidth;
- clientHeight = e.target.clientHeight;
- offsetX = e.offsetX;
- offsetY = e.offsetY;
- pageX = e.pageX;
- pageY = e.pageY;
- console.log(pageY,$('#app > .scrollbar_style.padding')[0].scrollTop,clientHeight - offsetY);
- this.lampLightSliderPageX = pageX - offsetX + clientWidth + 15;
- this.lampLightSliderPageY = pageY + $('#app > .scrollbar_style.padding')[0].scrollTop - (this.remRatio*(4.1+1.5/2)+71/2+6) + clientHeight - offsetY;
- this.lampLightSlider = parseInt(data.lighteness);
- this.lampId = data.id;
- },
- lampLightSliderClose(){
- this.lampLightSliderShow = false;
- this.lampLightSlider = 0;
- },
- lampLightSliderSave(){
- let this_ = this;
- this.loading.lampLightSlider = true;
- console.log(allUrl.websocket.wss)
- baseApi.websocket1(allUrl.websocket.wss,data=>{
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.gisMap.lampcontrolDimming,
- {
- username:this_.username,
- client_key:this_.client_key,
- token:this_.token,
- lamp_id:this_.lampId,
- type:'1',
- lightness:this_.lampLightSlider,
- mode:'0',
- clientid:data.data.clientid,
- },
- this_,
- )
- }
- if(data.status == '2'){
- if(data.code == '0000'){
- this_.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this_.loading.lampLightSlider = false;
- this_.getLightList(this_.currentPage);
- this_.lampLightSliderShow = false;
- }else{
- this_.$message({
- showClose: true,
- message:data.msg,
- type: 'warning'
- });
- this_.loading.lampLightSlider = false;
- }
- }
- },() => {
- this_.loading.lampLightSlider = false;
- },this_)
- },
- handleCurrentChange(val){
- console.log(`current page: ${val}`);
- this.currentPage = val;
- this.getLightList(this.currentPage);
- },
- handleCurrentChangeLS(val) {
- this.lampcontrolHistorylist(val);
- },
- seeFun(data){
- this.detailsDialog = true;
- this.detailsFieldList = [];
- this.lampId = data.id;
- this.lampLoadtype = data.loadtype;
- if(data.loadtype == '1'){
- this.detailsNavList[0].label ='Insect trap';
- }else{
- this.detailsNavList[0].label ='lamp';
- }
- this.detailsNavSelect = 'lamp_info_log';
- this.lampcontrolViewloglist('lamp_info_log',data => {
- // console.log(data,this.streetlightDetails)
- let fieldList = Object.assign([],this.fieldList)
- for(var key in data.data){
- for(var d of this.streetlightDetails){
- let obj = {};
- for(let dd of fieldList){
- console.log(dd.fields1,d.model)
- if(dd.fields1 == 'number'){
- dd.fields1 = 'lamp_no'
- }
- if(dd.fields1 == 'networkname'){
- dd.fields1 = 'network_no'
- }
- if(dd.fields1 == 'projectname'){
- dd.fields1 = 'project_name'
- }
- if(dd.fields1 == d.model){
- obj.key = dd.enname
- }
- }
- if(this.lampLoadtype == '1'){
- if(d.model == 'lampstatus'){
- obj.key = 'Insect trap status'
- }
- if(d.model == 'lampvoltage'){
- obj.key = 'Insect trap voltage'
- }
- if(d.model == 'lampcurrent'){
- obj.key = 'Insect trap current'
- }
- if(d.model == 'lamppower'){
- obj.key = 'Insect trap power'
- }
-
- }
- if(d.model == 'monthly_can_usage'){
- obj.key = '套餐总量'
- }
- if(d.model == 'monthly_already_usage'){
- obj.key = '套餐使用量'
- }
- if(d.model == 'iccid'){
- obj.key = 'ICCID'
- }
- if(d.model == key){
- if(d.model != 'devicetype'){
- obj.value = data.data[key];
- obj.model = d.model;
- obj.unit = '';
- console.log(obj.key,obj)
- this.detailsFieldList.push(obj)
- }
- }
- }
- }
- })
- },
- detailsNavSelectFun(data){
- this.detailsNavSelect = data.model;
- this.detailsFieldList = [];
- this.lampcontrolViewloglist(data.model,data => {
- // console.log(data,this.streetlightDetails)
- let fieldList = Object.assign([],this.fieldList)
- for(var key in data.data){
- for(var d of this.streetlightDetails){
- let obj = {};
- for(let dd of fieldList){
- if(dd.fields1 == 'number'){
- dd.fields1 = 'lamp_no'
- }
- if(dd.fields1 == 'networkname'){
- dd.fields1 = 'network_no'
- }
- if(dd.fields1 == 'projectname'){
- dd.fields1 = 'project_name'
- }
- if(dd.fields1 == d.model){
- obj.key = dd.enname
- }
- }
- if(this.lampLoadtype == '1'){
- if(d.model == 'lampstatus'){
- obj.key = 'Insect trap status'
- }
- if(d.model == 'lampvoltage'){
- obj.key = 'Insect trap voltage'
- }
- if(d.model == 'lampcurrent'){
- obj.key = 'Insect trap current'
- }
- if(d.model == 'lamppower'){
- obj.key = 'Insect trap power'
- }
- if(d.model == 'lamp_no'){
- obj.key = 'Insect trap number'
- }
- }
- if(d.model == 'monthly_can_usage'){
- obj.key = '套餐总量'
- }
- if(d.model == 'monthly_already_usage'){
- obj.key = '套餐使用量'
- }
- if(d.model == 'iccid'){
- obj.key = 'ICCID'
- }
- if(d.model == key){
- if(d.model != 'devicetype'){
- obj.value = data.data[key];
- obj.model = d.model;
- obj.unit = '';
- console.log(obj.key,obj)
- this.detailsFieldList.push(obj)
- }
- }
- }
- }
- })
- },
- projectSaveDel(){
- this.$confirm('This operation will permanently delete the project, will it continue?', 'Prompt', {
- confirmButtonText: 'confirm',
- cancelButtonText: 'cancel',
- type: 'warning'
- }).then(() => {
- baseApi.ajax_post(
- allUrl.project.projectDel,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- project_id:this.projectId,
- },
- {},
- data =>{
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- var storage = window.localStorage;
- storage.setItem('projectId',false);
- storage.setItem('companyId',false);
- this.projectId = '';
- // this.getProjectNav('del',this.companyId);
- // var storage = window.localStorage;
- let searchType = storage.getItem("searchType");
- this.sideBarCompanyList('',searchType)
- this.addItemDialog = false;
- },
- this)
- }).catch(() => {
- this.$message({
- type: 'info',
- message: 'Undeleted'
- });
- });
- },
- projectKeydown(e){
- if(e.key == 'Enter'){
- this.projectSaveFun();
- }
- },
- projectSaveFun(){
- var projectId;
- if(this.projectTitle == 'Edit Project'){
- projectId = this.projectId;
- }else{
- projectId = 0;
- }
- let pid = '';
- if(this.addItemData.areaId){
- pid = this.addItemData.areaId;
- }else{
- if(this.addItemData.cityId){
- pid = this.addItemData.cityId;
- }else{
- if(this.addItemData.provinceId){
- pid = this.addItemData.provinceId;
- }else{
- if(this.addItemData.countryId){
- pid = this.addItemData.countryId;
- }
- }
- }
- }
- this.$refs['addItemData'].validate((valid) => {
- if(valid){
- this.projectSaveLoading = true;
- baseApi.ajax_post(
- allUrl.project.projectSave,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- project_name:this.addItemData.projectName,
- project_no:this.addItemData.projectNo,
- pid:pid,
- project_id:projectId,
- address:this.addItemData.address,
- // company:this.addItemData.company,
- patrolinterval:this.addItemData.patrolinterval,
- },
- {},
- data =>{
- // console.log(data)
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- let searchType = storage.getItem("searchType");
- this.sideBarCompanyList('',searchType)
- this.addItemDialog = false;
- this.projectSaveLoading = false;
- },
- this,() =>{
- this.projectSaveLoading = false;
- })
- }
- })
- },
- /*灯控详细数据*/
- lampcontrolViewloglist(value,callback){
- this.loading.detailsFieldList = true;
- baseApi.ajax_post(
- allUrl.project.lampcontrolViewloglist,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:this.lampId,
- datatype:value,
- },
- {},
- data =>{
- this.loading.detailsFieldList = false;
- if(callback){
- callback(data)
- }
- this.lampcontrolListHC = data.data;
- },
- this,()=>{
- this.loading.detailsFieldList = false;
- })
- },
- /*添加灯控*/
- addLightControlFun(){
- this.getCompanyNav(3);
- this.getCompanyNav(4);
- this.lightControlTitle = 'Add Lamp';
- this.lightControlButton = 'Create it now';
-
- this.addLightControlDialog = true;
- this.$nextTick(function(){
- this.$refs['lightControlData'].resetFields();
- this.lightControlData.longitude = this.detailData.longitude;
- this.lightControlData.latitude = this.detailData.latitude;
- })
- },
- /*编辑灯控*/
- editFun(data){
- this.getCompanyNav(3);
- this.getCompanyNav(4);
- this.lampId = data.id;
- this.lampLoadtype = data.loadtype;
- if(this.lampLoadtype == '1'){
- // this.lightControlList[0].label = '捕虫器编号';
- // this.lightControlList[11].label = '捕虫器类型';
- this.lightControlListEN[0].label = 'Insect trap number';
- this.lightControlListEN[11].label = 'Insect trap Type';
- }else{
- // this.lightControlList[0].label = '路灯编号';
- // this.lightControlList[11].label = '路灯类型';
- this.lightControlListEN[0].label = 'Lamp number';
- this.lightControlListEN[11].label = 'Lamp type';
- }
- if(this.lampLoadtype == '1'){
- this.lightControlTitle = 'Edit Insect trap';
- }else{
- this.lightControlTitle = 'Edit Lamp';
- }
- this.lightControlButton = 'Save';
-
- this.addLightControlDialog = true;
- this.lampcontrolViewloglist('lampinfo',data=>{
- // console.log(data)
- this.$nextTick(function(){
- this.$refs['lightControlData'].resetFields();
- for(let key in this.lightControlData){
- this.lightControlData[key] = data.data[key];
- }
- this.lightControlData.poName = data.data.po+'';
- this.lightControlData.supplierName = data.data.supplier+'';
- })
- })
- },
- lampKeydown(e){
- if(e.key == 'Enter'){
- this.lightControlFun();
- }
- },
- lightControlFun(){
- // console.log(this.lightControlData)
- let lamp_id;
- if(this.lightControlTitle == 'Add Lamp'){
- lamp_id = 0;
- }else if(this.lightControlTitle == 'Edit Lamp' ||this.lightControlTitle == 'Edit Insect trap'){
- lamp_id = this.lampId;
- }
- this.lightControlData.PO = this.lightControlData.poName;
- this.lightControlData.supplier = this.lightControlData.supplierName;
- this.$refs['lightControlData'].validate((valid) => {
- if(valid){
- baseApi.ajax_post(
- allUrl.project.lampcontrolSave,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:lamp_id,
- network_id:this.networkId,
- project_id:this.projectId,
- ...this.lightControlData
- },
- {},
- data =>{
- // console.log(data,'灯控回调')
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.getLightList(this.currentPage);
- this.addLightControlDialog = false;
- let storage = window.localStorage;
- let searchType = storage.getItem("searchType");
- this.sideBarCompanyList('',searchType)
- // this.networkSectionList();
- },
- this)
- }
- })
- },
- amapWrapperFun(){
- this.lampLongitude = Number(this.lightControlData.longitude);
- this.lampLatitude = Number(this.lightControlData.latitude);
- if(isNaN(this.lampLongitude) || isNaN(this.lampLatitude) || this.lampLongitude>180||this.lampLongitude<-180||this.lampLatitude>90||this.lampLatitude<-90){
- this.$message({
- showClose: true,
- message: 'Please enter the correct latitude and longitude',
- type: 'warning'
- });
- }else{
- let this_ = this;
- this.amapWrapper = true;
- this.$nextTick(function(){
- $('#lampAmapWrapper').css('height',$(window).height()*0.6+'px')
- // console.log(this.lightControlData)
- let JDstr = '';
- let WDstr = '';
- JDstr = 'longitude';
- WDstr = 'latitude';
-
- let lat = 0;
- let lng = 0;
- if(!isNaN(this.lampLongitude) && !isNaN(this.lampLatitude) &&!(this.lampLongitude ==0 &&this.lampLongitude ==0)){
- let bd_decrypt = this.bd_decrypt(this.lampLongitude,this.lampLatitude)
- this.lampLatitude = Number(bd_decrypt.lat.toFixed(8));
- this.lampLongitude = Number(bd_decrypt.lng.toFixed(8));
- console.log(this.lampLatitude,this.lampLongitude,'----s')
- lat = bd_decrypt.lat;
- lng = bd_decrypt.lng;
- this_.mapDWIsTrue = false;
- this.map = new google.maps.Map(document.getElementById('lampAmapWrapper'), {
- center:{lat: this.lampLatitude, lng: this.lampLongitude},
- zoom: 16,
- gestureHandling: 'greedy',
- streetViewControl:false,
- mapTypeControlOptions:{
- style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,
- position:google.maps.ControlPosition.RIGHT_TOP
- },
- mapTypeId:google.maps.MapTypeId.ROADMAP,
- });
- // console.log('---------1',lat,lng)
- }else{
- this_.mapDWIsTrue = true;
- this.map = new google.maps.Map(document.getElementById('lampAmapWrapper'), {
- center:{lat: 0, lng: 0},
- zoom: 16,
- gestureHandling: 'greedy',
- streetViewControl:false,
- mapTypeControlOptions:{
- style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,
- position:google.maps.ControlPosition.RIGHT_TOP
- },
- mapTypeId:google.maps.MapTypeId.ROADMAP,
- });
- }
- // console.log(Number(lat),Number(lng))
- this.geocoder = new google.maps.Geocoder();
- let bgColor = 'linear-gradient(#fc8440, #fe7121)';
- let borderColor = 'rgba(253, 122, 48, 0.18)';
- this_.positionPicker = new RichMarker({
- position:new google.maps.LatLng(Number(lat),Number(lng)),
- map: this_.map,
- draggable: true,
- content:'<div class="lm_img_mover" style="text-align:center;border:11px solid '+borderColor+'; border-radius:50%;cursor:pointer;"><div style="text-align:center;background:'+bgColor+';background-clip: padding-box;border:2px solid #fff; height: 16px; width: 16px; border-radius:50%;"></div></div>'
- })
- var controlDiv = document.createElement('DIV');
- controlDiv.className = "google_Location_box"
- var controlUI = document.createElement('DIV');
- controlUI.className = "google_Location"
- controlDiv.appendChild(controlUI);
- var svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
- svg.setAttribute('viewBox','25 25 50 50');
- svg.setAttribute('class','circular');
- svg.setAttribute('styel','display:none');
- var circle = document.createElementNS('http://www.w3.org/2000/svg','circle');
- circle.setAttribute('cx','50');
- circle.setAttribute('cy','50');
- circle.setAttribute('r','20');
- circle.setAttribute('fill','none');
- circle.setAttribute('class','path');
- svg.appendChild(circle);
- controlDiv.appendChild(svg);
-
- google.maps.event.addDomListener(controlDiv, 'click', function() {
- if (navigator.geolocation && this_.googleMapLocattion) {
- this_.googleMapLocattion = false;
- $('.google_Location').css('display','none');
- $('.google_Location_box .circular').css('display','inline-block');
- let options ={
- enableHighAccuracy:false,
- timeout:3000,
- maximumAge:3000
- }
- navigator.geolocation.getCurrentPosition(successHandler,errorHandler,options)
- }
- });
- function successHandler(position){
- this_.map.setCenter(new google.maps.LatLng(position.coords.latitude,position.coords.longitude));
- lat = position.coords.latitude;
- lng = position.coords.longitude;
- this_.positionPicker.setPosition(new google.maps.LatLng(position.coords.latitude,position.coords.longitude))
- this_.googleMapLocattion = true;
- $('.google_Location').css('display','inline-block');
- $('.google_Location_box .circular').css('display','none');
- console.log('---------1--------',position)
- }
- function errorHandler(error){
- console.log('------2-----------',error)
- this_.googleMapLocattion = true;
- $('.google_Location').css('display','inline-block');
- $('.google_Location_box .circular').css('display','none');
- this_.$message({
- showClose: true,
- message:'seek failed',
- type: 'warning'
- });
- }
- this_.map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(controlDiv);
- if(this_.screenMap && this_.mapDWIsTrue){
- this_.geocoder.geocode({address:this_.screenMap},function(status, result){
- // console.log(status, result)
- if(result === 'OK'){
- this_.mapDWIsTrue = false;
- lng = status[0].geometry.location.lng();
- lat = status[0].geometry.location.lat();
- // console.log(lng,lat)
- this_.positionPicker.setPosition(new google.maps.LatLng(lat,lng))
- this_.map.setCenter(new google.maps.LatLng(lat,lng));
- }else{
- this_.mapDWIsTrue = true;
- this_.$message({
- showClose: true,
- message: 'Unrecognized, please change the search content',
- type: 'warning'
- });
- }
- function_navigator(this_,lat,lng);
- })
- }else{
- function_navigator(this_,lat,lng);
- }
- // console.log(navigator.geolocation , this_.mapDWIsTrue)
- function function_navigator(this_) {
- if (navigator.geolocation && this_.mapDWIsTrue && this_.googleMapLocattion) {
- this_.googleMapLocattion = false;
- let time1 = setInterval(function(){
- if($('.google_Location').length>0 && $('.google_Location_box .circular').length>0){
- $('.google_Location').css('display','none');
- $('.google_Location_box .circular').css('display','inline-block');
- clearInterval(time1);
- }
- },1)
- let options ={
- enableHighAccuracy:false,
- timeout:3000,
- maximumAge:3000
- }
- navigator.geolocation.getCurrentPosition(successHandler_,errorHandler_,options)
- }
- }
- function successHandler_(position){
- this_.map.setCenter(new google.maps.LatLng(position.coords.latitude,position.coords.longitude));
- lat = position.coords.latitude;
- lng = position.coords.longitude;
- this_.positionPicker.setPosition(new google.maps.LatLng(position.coords.latitude,position.coords.longitude))
- this_.googleMapLocattion = true;
- let time2 = setInterval(function(){
- if($('.google_Location').length>0 && $('.google_Location_box .circular').length>0){
- $('.google_Location').css('display','inline-block');
- $('.google_Location_box .circular').css('display','none');
- clearInterval(time1);
- clearInterval(time2);
- }
- },1)
- // console.log('---------1--------')
- }
- function errorHandler_(){
- // console.log('------2-----------')
- this_.googleMapLocattion = true;
- let time3 = setInterval(function(){
- if($('.google_Location').length>0 && $('.google_Location_box .circular').length>0){
- $('.google_Location').css('display','inline-block');
- $('.google_Location_box .circular').css('display','none');
- clearInterval(time1);
- clearInterval(time3);
- }
- },1)
- this_.$message({
- showClose: true,
- message:'seek failed',
- type: 'warning'
- });
- }
- google.maps.event.addListener(this_.positionPicker,"position_changed",function(){
- $('.lampLongitude'+this_.lampId).text(this.getPosition().lng().toFixed(8));
- $('.lampLatitude'+this_.lampId).html(this.getPosition().lat().toFixed(8));
- let bd_encrypt = this_.bd_encrypt(this.getPosition().lng().toFixed(8),this.getPosition().lat().toFixed(8))
- this_.lampLongitude = bd_encrypt.bd_lng;
- this_.lampLatitude = bd_encrypt.bd_lat;
- })
- let time = setInterval(function(){
- if($('.lm_img_mover').length >0){
- let div = $('<div class="lamp_coordinate_en lamp_coordinate_'+this_.lampId+'"><span><span>'+ JDstr +' : <span class="lampLongitude'+this_.lampId+'">'+this_.lampLongitude+'</span></span><span>'+ WDstr +' : <span class="lampLatitude'+this_.lampId+'">'+this_.lampLatitude+'</span></span></span><i class="determine_l"></i><i class="cancel_l"></i></div>')
- $('.lm_img_mover').parent().append(div);
-
- $('.lamp_coordinate_'+this_.lampId).children('i').mouseup(function(e){
- let className = e.target.className.split(' ');
- if(className[0] == 'determine_l'){
- this_.lightControlData.longitude = this_.lampLongitude;
- this_.lightControlData.latitude = this_.lampLatitude;
- $('.lamp_coordinate_'+this_.lampId).css('display','none');
- $('.lamp_'+this_.lampId).unbind("mousedown");
- this_.amapWrapper = false;
- }else if(className[0] == 'cancel_l'){
- this_.amapWrapper = false;
- }
- })
- clearInterval(time)
- }
- },1)
-
- })
- }
- },
- devicetypeChange(){
- this.lightControlData['protocoltype'] = '';
- this.lightControlData['network_id'] = '';
- },
- screenMapKeyUp(e){
- if(e.key == 'Enter'){
- this.screenMapChange(this.screenMap);
- }
- },
- screenMapChange(val){
- let this_ = this;
- // console.log(val)
- //地理编码,返回地理编码结果
- this_.geocoder.geocode({address:val},function(status, result){
- // console.log(status, result)
- let lng = 0;
- let lat = 0;
- if(result === 'OK'){
- lng = status[0].geometry.location.lng();
- lat = status[0].geometry.location.lat();
- console.log(lng,lat)
- this_.positionPicker.setPosition(new google.maps.LatLng(lat,lng))
- this_.map.setCenter(new google.maps.LatLng(lat,lng));
- this_.mapDWIsTrue = false;
- }else{
- this_.$message({
- showClose: true,
- message:'Unrecognized, please change the search content',
- type: 'warning'
- });
- this_.mapDWIsTrue = true;
- }
- })
- },
- gisFun(obj,type){
- this.lampId = obj.id;
- let isImplement = false;
- for(let val of this.privilege){
- if(val == '2'){
- isImplement = true;
- }
- }
- console.log(this.role)
- if(this.role == '1'){
- isImplement = true;
- }
- if(isImplement){
- this.lampcontrolViewloglist('lampinfo',data=>{
- window.open('#/'+type+'?longitude='+data.data.longitude+'&latitude='+data.data.latitude+'&id='+obj.id);
- })
- }else{
- this.$message({
- showClose: true,
- message:'No view permissions',
- type: 'warning'
- });
- }
- },
- /*历史*/
- historicalFun(data){
- // console.log(data)
- this.lampId = data.id;
- this.historicalLampId = data.id;
- this.lampLoadtype = data.loadtype;
- let time = new Date();
- console.log(time.getFullYear().toString()+'-'+(time.getMonth() + 1)+'-'+(time.getDate()-1))
- this.screenDateLS = [time.getFullYear().toString()+'-'+(time.getMonth() + 1)+'-'+(time.getDate()-1),new Date().format('YY-mm-dd')];
- this.historicalDialog = true;
- this.currentPageLS = 1;
- this.historicalNavSelect = 'lamp_info_log';
- if(data.loadtype == '1'){
- this.historicalNavListEN[0].label = 'Insect trap';
- }else{
- this.historicalNavListEN[0].label = 'lamp';
- }
- this.historicalTableList = JSON.parse(JSON.stringify(this[this.historicalNavSelect+'TableListEN']));
-
- this.lampcontrolHistorylist(1);
- this.lampHistoryData();
- this.getLampList();
- },
- historicalLampClick(id){
- this.historicalLampId = id;
- this.lampId = id;
- if(this.dataLSType == '1'){
- this.lampcontrolHistorylist(1);
- }else{
- this.lampHistoryData();
- }
- },
- getLampList(){
- this.loading.getLampList = true;
- baseApi.ajax_post(
- allUrl.common.lamp_list,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- client_type:'0',
- projectid:this.projectId,
- },
- {},
- data =>{
- this.historicalLampList = data.data;
- this.loading.getLampList = false;
- console.log($('.history_box .main_list .lamp_list .select'))
- let isTrue = true;
- let time = setInterval(function(){
- if($('.history_box .main_list .lamp_list .select')){
- $('.history_box .main_list .lamp_list').animate({scrollTop: $('.history_box .main_list .lamp_list .select').offset().top - 250 + $('.history_box .main_list .lamp_list').scrollTop()});
- clearInterval(time);
- }
- if(isTrue){
- setTimeout(function(){
- clearInterval(time);
- },3000)
- }
- isTrue = false;
- },100)
- },
- this,()=>{
- this.loading.getLampList = false;
- })
- },
- exportTableLS(){
- this.lampcontrolHistorylist(1,1);
- },
- screenDateFun(){
- this.LSDataType = '4';
- console.log(this.screenDateLS);
- if(this.dataLSType == '0'){
- this.lampHistoryData();
- }else{
- this.currentPageLS = 1;
- this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
- this.lampcontrolHistorylist(1);
- }
- },
- LSDataTypeFun(val){
- this.LSDataType = val;
- this.lampHistoryData();
- },
- dataLSTypeFun(val){
- let historicalNavSelect = this.historicalNavSelect;
- this.dataLSType = val;
- if(val == '0'){
- if(historicalNavSelect == 'system_info_log'){
- this.historicalNavSelect = 'lamp_info_log';
- }
- this.lampHistoryData();
- }else{
-
- this.LSDataType = '4';
- // console.log(this.screenDateLS);
- // if(this.dataLSType == '0'){
- // this.lampHistoryData();
- // }else{
- // this.currentPageLS = 1;
- // this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
- // this.lampcontrolHistorylist(1);
- // }
- if(historicalNavSelect == '3'){
- this.historicalNavSelect = 'lamp_info_log';
- }
- this.currentPageLS = 1;
- this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
- this.lampcontrolHistorylist(1,0);
- }
- },
- lampHistoryData(){
- let type = this.historicalNavSelect,date = this.screenDateLS[0]+'/'+this.screenDateLS[1];
- if(this.historicalNavSelect == 'lamp_info_log'){
- type = '0';
- }
- if(this.historicalNavSelect == 'battery_info_log'){
- type = '1';
- }
- if(this.historicalNavSelect == 'solar_info_log'){
- type = '2';
- }
- console.log(type,date)
- this.loading.historyEcharts = true;
- baseApi.ajax_post(
- allUrl.project.lampHistoryData,
- {
- username:this.username,
- client_key:this.client_key,
- client_type:'0',
- token:this.token,
- lampid:this.lampId,
- type:type,
- dateType:this.LSDataType,
- date:date,
- },
- {},
- data =>{
- this.loading.historyEcharts = false;
- this.historyDataInfo = data.data;
- if(data.data.list.updatetime){
- this.historyEcharts(data.data.list,type);
- }
- },
- this,()=>{
- this.loading.historyEcharts = false;
- for(let key in this.historyDataInfo){
- this.historyDataInfo[key] = '';
- }
- })
- },
- historyEcharts(data,type){
- let this_ = this,series = [],dataListMax = 3,gridLeft,legendData = [],legendSelected = {};
- if(type == '0'){
- series = [
- {
- name:'Voltage',
- id:'V_0',
- data:data.lampvoltage,
- type: 'line',
- smooth: true,
- color:'#15CA56',
- showSymbol:false,
- },{
- name:'Current',
- id:'A_1',
- data:data.lampcurrent,
- type: 'line',
- smooth: true,
- color:'#F3BC12',
- showSymbol:false,
- },{
- name:'power',
- id:'W_2',
- data:data.lamppower,
- type: 'line',
- smooth: true,
- color:'#3898F8',
- showSymbol:false,
- },{
- name:'brightness',
- id:'%_3',
- data:data.lighteness,
- type: 'line',
- smooth: true,
- color:'#F05904',
- showSymbol:false,
- },
- ];
- legendData = [
- {name:'Voltage',icon:'circle'},
- {name:'Current',icon:'circle'},
- {name:'power',icon:'circle'},
- // {name:'brightness',icon:'circle',select:false}
- ];
- legendSelected['Voltage'] = true;
- legendSelected['Current'] = true;
- legendSelected['power'] = true;
- // legendSelected['brightness'] = false;
- for(let d of data.lamppower){
- d = parseInt(d);
- if(d > dataListMax){
- dataListMax = d;
- }
- }
- dataListMax = dataListMax +'00'
- gridLeft = dataListMax.length*10;
- }
- if(type == '1'){
- series = [
- {
- name:'Voltage',
- id:'V_0',
- data:data.battvoltage,
- type: 'line',
- smooth: true,
- color:'#15CA56',
- showSymbol:false,
- },{
- name:'Current',
- id:'A_1',
- data:data.batterycurrent,
- type: 'line',
- smooth: true,
- color:'#F3BC12',
- showSymbol:false,
- },{
- name:'power',
- id:'W_2',
- data:data.batterypower,
- type: 'line',
- smooth: true,
- color:'#3898F8',
- showSymbol:false,
- }
- ];
- legendData = [
- {name:'Voltage',icon:'circle'},
- {name:'Current',icon:'circle'},
- {name:'power',icon:'circle'},
- ];
- legendSelected['Voltage'] = true;
- legendSelected['Current'] = true;
- legendSelected['power'] = true;
- for(let d of data.batterypower){
- d = parseInt(d);
- if(d > dataListMax){
- dataListMax = d;
- }
- }
- dataListMax = dataListMax +'00'
- gridLeft = dataListMax.length*10;
- }
- if(type == '2'){
- series = [
- {
- name:'Voltage',
- id:'V_0',
- data:data.solarvoltage,
- type: 'line',
- smooth: true,
- color:'#15CA56',
- showSymbol:false,
- },{
- name:'Current',
- id:'A_1',
- data:data.solarcurrent,
- type: 'line',
- smooth: true,
- color:'#F3BC12',
- showSymbol:false,
- },{
- name:'power',
- id:'W_2',
- data:data.solarpower,
- type: 'line',
- smooth: true,
- color:'#3898F8',
- showSymbol:false,
- },
- ];
- legendData = [
- {name:'Voltage',icon:'circle'},
- {name:'Current',icon:'circle'},
- {name:'power',icon:'circle'},
- ];
- legendSelected['Voltage'] = true;
- legendSelected['Current'] = true;
- legendSelected['power'] = true;
- for(let d of data.solarpower){
- d = parseInt(d);
- if(d > dataListMax){
- dataListMax = d;
- }
- }
- dataListMax = dataListMax +'00'
- gridLeft = dataListMax.length*10;
- }
- if(type == '3'){
- series = [
- {
- name:'Charge',
- id:'AH_0',
- data:data.daychargeah,
- type: 'line',
- smooth: true,
- color:'#15CA56',
- showSymbol:false,
- },{
- name:'Discharge',
- id:'AH_1',
- data:data.daydischarah,
- type: 'line',
- smooth: true,
- color:'#F3BC12',
- showSymbol:false,
- }
- ];
- legendData = [
- {name:'Charge',icon:'circle'},
- {name:'Discharge',icon:'circle'},
- ];
- legendSelected['Charge'] = true;
- legendSelected['Discharge'] = true;
- for(let d of data.daychargeah){
- d = parseInt(d);
- if(d > dataListMax){
- dataListMax = d;
- }
- }
- for(let d of data.daydischarah){
- d = parseInt(d);
- if(d > dataListMax){
- dataListMax = d;
- }
- }
- dataListMax = dataListMax +'00'
- gridLeft = dataListMax.length*10;
- }
-
- let legendOrient = 'horizontal';
- if(document.body.offsetWidth <1500){
- this_.legendWidth = '180px';
- if(type == '3'){
- legendOrient = 'vertical';
- }
- }else{
- this_.legendWidth = 'auto';
- legendOrient = 'horizontal';
- }
- console.log(data,'------',document.body.offsetWidth,legendData,legendSelected,legendOrient)
- this.$nextTick(function(){
- if(document.getElementsByClassName('history_echarts')[0]){
- const myChart = this.$echarts.init(document.getElementsByClassName('history_echarts')[0]);
- let arry = [],hh,month,dd,mm;
- for(let d of data.updatetime){
- d = new Date(d);month = d.getMonth()+1;dd = d.getDate();
- hh = d.getHours()<10?'0'+d.getHours():d.getHours();
- mm = d.getMinutes()<10?'0'+d.getMinutes():d.getMinutes();
- arry.push(month+'-'+dd+' '+hh+':'+mm)
- }
- let option = {
- tooltip:{
- trigger:'axis',
- axisPointer:{
- snap:true,
- lineStyle:{
- width:2,
- color:'rgba(252, 130, 61, 0.19)',
- type:'dashed',
- }
- },
- padding:0,
- backgroundColor:'rgba(0,0,0,0.6)',
- formatter: function (params) {
- var tls,p='';
- for(let key in params){
- // console.log('sapn_'+params[key].seriesId.split('_')[1])
- p=p+'<p><span class="span_'+params[key].seriesId.split('_')[1]+'"></span>'+params[key].seriesName+': '+params[key].data+' '+params[key].seriesId.split('_')[0]+'</p>'
- }
- tls = '<div class="history_echarts_tooltip"><p>'+data.updatetime[params[0].dataIndex]+'</p>'+p+'</div>'
- return tls;
- },
- },
- grid:{
- top:60,
- left:gridLeft,
- bottom:20,
- right:40,
- },
- legend: {
- data:legendData,
- selected:legendSelected,
- orient:legendOrient,
- type: 'scroll',
- left: '20px',
- top: '0px',
- width:this_.legendWidth,
- itemWidth: 12,
- itemHeight: 12,
- textStyle:{
- color:'rgba(102,102,102,1)',
- fontSize:14,
- fontWeight:500,
- },
- },
- xAxis: {
- data: arry,
- type: 'category',
- boundaryGap: false,
- axisLabel:{
- color:'rgba(136, 136, 136, 1)',
- fontSize:'12',
- },
- axisTick:{
- show:false
- },
- axisLine:{
- show:false
- },
- },
- yAxis: {
- type: 'value',
- nameGap:6,
- // interval:6,
- // max:
- axisLabel:{
- color:'rgba(136, 136, 136, 1)',
- fontSize:'12',
- },
- axisTick:{
- show:false
- },
- axisLine:{
- show:false
- },
- splitNumber:4,
- splitLine:{
- lineStyle:{
- color:'rgba(240, 240, 240, 1)',
- }
- },
- },
- series: series,
- };
- myChart.setOption(option,true);
- window.onresize = function(){
- if(document.body.offsetWidth <1500){
- this_.legendWidth = '180px';
- }else{
- this_.legendWidth = 'auto';
- }
- myChart.setOption(option,true);
- myChart.resize();
- }
- }
- })
- },
- historicalNavSelectFun(obj){
- this.historicalNavSelect = obj.model;
- if(this.dataLSType == '0'){
- this.lampHistoryData();
- }else{
- this.currentPageLS = 1;
- this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
- this.lampcontrolHistorylist(1,0);
- }
- // console.log(this.historicalTableList)
- },
- lampcontrolHistorylist(val,download,callback,error){
- let isDownload;
- if(!download){
- isDownload = 0;
- this.historicalTableLoading = true;
- }else{
- this.loading.exportTableLS = true;
- isDownload = download;
- }
- let date = this.screenDateLS[0]+'/'+this.screenDateLS[1];
- console.log(isDownload,callback,error,date)
- baseApi.ajax_post(
- allUrl.project.lampcontrolHistorylist,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:this.lampId,
- page:val,
- count:this.zCount,
- datatype:this.historicalNavSelect,
- download:isDownload,
- date:date,
- },
- {},
- data =>{
- // console.log(data,'表格历史数据')
- if(callback){
- callback()
- }
- if(download){
- // var $eleBtn2 = $("#btn2");
- var $eleForm = $("<form method='get'></form>");
- $eleForm.attr("action",data.data.path);
- $(document.body).append($eleForm);
- //提交表单,实现下载
- $eleForm.submit();
- this.loading.exportTableLS = false;
- }else{
- this.historicalTableLoading = false;
- if(data.data.list){
- this.historicalTableData = data.data.list;
- this.totalLS = data.data.total*16;
- let i = (this.currentPageLS - 1)*16+1;
- for(let d of this.historicalTableData){
- let hh1 = '',mm1 = '',hh2 = '',mm2 = '';
- hh1 = parseInt(d.daychargemincurrent/3600);
- mm1 = parseInt((d.daychargemincurrent%3600)/60);
- hh2 = parseInt(d.daydischargemincurrent/3600);
- mm2 = parseInt((d.daydischargemincurrent%3600)/60);
- if(hh1<10){
- hh1 = '0'+hh1;
- }
- if(hh2<10){
- hh2 = '0'+hh2;
- }
- if(mm1<10){
- mm1 = '0'+mm1;
- }
- if(mm2<10){
- mm2 = '0'+mm2;
- }
- d.daychargemincurrent = hh1+':'+mm1;
- d.daydischargemincurrent = hh2+':'+mm2;
- d.LSLD_index = i;
- i++;
- }
- }else{
- this.historicalTableData = [];
- this.totalLS = 0;
- }
- }
- },
- this,()=>{
- if(error){
- error()
- }
- if(download){
- this.loading.exportTableLS = false;
- }else{
- this.historicalTableData = [];
- this.totalLS = 0;
- this.historicalTableLoading = false;
- }
- }
- )
- },
- /*参数弹框*/
- monitorFun(data){
- console.log(data,'-------')
- this.lampId = data.id;
- this.lampProtocoltype = data.lampProtocoltype;
- this.loadtype = data.loadtype;
- this.monitorType = 'loadParameters';
- this.monitorDialog = true;
- this.parameterLoadIsEdit = false;
- this.parameterBatteryIsEdit = false;
- this.loadParametersData = this.loadParametersDataNew;
- this.loadParametersListEN = this.loadParametersListENNew
- for(let key in this.loadParametersData){
- this.loadParametersData[key] = '';
- }
-
- this.loadSetting();
-
- for(let key in this.batteryParametersData){
- this.batteryParametersData[key] = '';
- }
- this.batterySetting();
- },
- loadNoEditFun(){
- this.loadParametersData = Object.assign({},this.loadParametersDataHC);
- this.parameterLoadIsEdit = false;
- },
- batteryNoEditFun(){
- this.batteryParametersData = Object.assign({},this.batteryParametersDataHC)
- this.parameterBatteryIsEdit = false;
- },
- setLoadFun(){
- // console.log(this.batchModificationParameters,'------1')
- let loadParametersData = JSON.parse(JSON.stringify(this.loadParametersData));
- loadParametersData.first_light_time = this.datezhuanhuan(loadParametersData.first_light_time);
- loadParametersData.second_light_time = this.datezhuanhuan(loadParametersData.second_light_time);
- loadParametersData.third_light_time = this.datezhuanhuan(loadParametersData.third_light_time);
- loadParametersData.fourth_light_time = this.datezhuanhuan(loadParametersData.fourth_light_time);
- loadParametersData.fifth_light_time = this.datezhuanhuan(loadParametersData.fifth_light_time);
- loadParametersData.sixth_light_time = this.datezhuanhuan(loadParametersData.sixth_light_time);
- loadParametersData.seventh_light_time = this.datezhuanhuan(loadParametersData.seventh_light_time);
- loadParametersData.eighth_light_time = this.datezhuanhuan(loadParametersData.eighth_light_time);
- loadParametersData.ninth_light_time = this.datezhuanhuan(loadParametersData.ninth_light_time);
- loadParametersData.tenth_light_time = this.datezhuanhuan(loadParametersData.tenth_light_time);
- if(this.batchModificationParameters){
- this.loading.setLoadFun = true;
- baseApi.websocket1(allUrl.websocket.wss,data=>{
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.project.setLoad,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:this.lampId,
- clientid:data.data.clientid,
- ...loadParametersData,
- },
- this,
- )
- }
- if(data.data.status == '2'){
- if(data.code == '0000'){
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.loading.setLoadFun = false;
- this.parameterLoadIsEdit = false;
- }else{
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'warning'
- });
- this.loading.setLoadFun = false;
- this.parameterLoadIsEdit = false;
- }
- }
- },() => {
- this.loading.setLoadFun = false;
- },this)
- }else{
- let this_ = this;
- let i = 0;
- let type = 'off';
- this.loading.setLoadFun = false;
- this.parameterLoadIsEdit = false;
- this.monitorDialog = false;
- this.giveCommandDialog = true;
- this.giveCommandZS = this.multipleSelection.length;
- this.giveCommandCG = 0;
- this.giveCommandJD = 0;
- this.giveCommandJournal = [];
- console.log(this.multipleSelection)
- let ids = '';
- let ids_length = this.multipleSelection.length;
- for(let d of this.multipleSelection){
- if(ids == ''){
- ids = d.id;
- }else{
- ids+=','+d.id;
- }
- }
- baseApi.websocket1(allUrl.websocket.wss,(data,websocket)=>{
- this_.loading.batchProcessingFun = true;
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.project.setLoad,
- {
- username:this_.username,
- client_key:this_.client_key,
- token:this_.token,
- lamp_id:ids,
- clientid:data.data.clientid,
- ...loadParametersData,
- },
- this,
- )
- }
- if(data.data.status == '2'){
- if(data.code == '0000'){
- this_.$notify({
- title: 'Successful operation',
- message: 'Lamp '+data.data.number,
- type: 'success'
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.msg,
- number:data.data.number,
- type:true
- })
- i++;
- this_.giveCommandCG ++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }else{
- this_.$notify.error({
- title: 'Operation failed',
- message: 'Lamp '+data.data.number+':'+data.msg
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.msg,
- number:data.data.number,
- type:false
- })
- i++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }
- }
- },() => {
- this_.loading.batchProcessingFun = false;
- },this_)
- }
- },
- setProjectLoadFun(){
- this.loading.setProjectLoadFun = true;
- baseApi.ajax_post(
- allUrl.project.projectSetPramData,
- {
- // controlType:this.lampProtocoltype,
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- projectid:this.projectId,
- ...this.loadParametersData,
- },
- {},
- data => {
- if(data.data.code == '0000'){
- console.log(data)
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.loading.setProjectLoadFun = false;
- this.parameterLoadIsEdit = false;
- }else{
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'warning'
- });
- this.loading.setProjectLoadFun = false;
- this.parameterLoadIsEdit = false;
- }
- },
- this,
- () => {
- this.loading.setProjectLoadFun = false;
- },
- )
- },
- setBatteryFun(){
- console.log(this.batchModificationParameters,'-----2-------')
- if(this.batchModificationParameters){
- this.loading.setBatteryFun = true;
- let parameter = {};
- let obj = [];
- let objData = {};
- obj = this.batteryParametersList1EN
- for(let d of obj){
- console.log(d.model)
- parameter[d.model] = this.batteryParametersData[d.model]
- }
- objData = {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:this.lampId,
- batterytype:this.batteryParametersData.batterytype,
- ...parameter,
- }
- // console.log(data)
- baseApi.websocket1(allUrl.websocket.wss,data=>{
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.project.setBattery,
- {
- clientid:data.data.clientid,
- ...objData
- },
- this,
- )
- }
- if(data.data.status == '2'){
- if(data.code == '0000'){
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'success'
- });
- this.loading.setBatteryFun = false;
- this.parameterBatteryIsEdit = false;
- }else{
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'warning'
- });
- this.loading.setBatteryFun = false;
- this.parameterBatteryIsEdit = false;
- }
- }
- },() => {
- this.loading.setBatteryFun = false;
- },this)
- }else{
- let this_ = this;
- let i = 0;
- let type = 'off';
- this.loading.setBatteryFun = false;
- this.parameterBatteryIsEdit = false;
- this.monitorDialog = false;
- this.giveCommandDialog = true;
- this.giveCommandZS = this.multipleSelection.length;
- this.giveCommandCG = 0;
- this.giveCommandJD = 0;
- this.giveCommandJournal = [];
- console.log(this.multipleSelection)
- let ids = '';
- let ids_length = this.multipleSelection.length;
- for(let d of this.multipleSelection){
- if(ids == ''){
- ids = d.id;
- }else{
- ids+=','+d.id;
- }
- }
- baseApi.websocket1(allUrl.websocket.wss,(data,websocket)=>{
- this_.loading.batchProcessingFun = true;
- if(data.data.status == '1'){
- baseApi.ajax_post_ws(
- allUrl.project.setBattery,
- {
- username:this_.username,
- client_key:this_.client_key,
- token:this_.token,
- lamp_id:ids,
- clientid:data.data.clientid,
- ...this_.batteryParametersData,
- },
- this_,
- )
- }
- if(data.data.status == '2'){
- if(data.code == '0000'){
- this_.$notify({
- title: 'Successful operation',
- message: 'Lamp '+data.data.number,
- type: 'success'
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.msg,
- number:data.data.number,
- type:true
- })
- i++;
- this_.giveCommandCG ++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }else{
- this_.$notify.error({
- title: 'Operation failed',
- message: 'Lamp '+data.data.number+':'+data.msg
- });
- this_.giveCommandJournal.push({
- time:this_.GMTToZero2(new Date()),
- text:data.msg,
- number:data.data.number,
- type:false
- })
- i++;
- this_.giveCommandJD = i;
- if(i >= ids_length){
- this_.loading.batchProcessingFun = false;
- this_.batchProcessing = type;
- this_.getLightList(this_.currentPage);
- websocket.close();
- }
- }
- }
- },() => {
- this_.loading.batchProcessingFun = false;
- },this_)
- }
- },
- loadSettingFun(){
- for(let key in this.loadParametersData){
- this.loadParametersData[key] = '';
- }
- this.loadSetting();
- },
- loadSetting(callback,error){
- this.loadSettingIsTrue = false;
- this.loading.loadSetting = true;
- this.batchModificationParameters = true;
- baseApi.ajax_post(
- allUrl.project.loadSetting,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:this.lampId,
- },
- {},
- data =>{
- let arr = Object.keys(data);
- if(arr.length != 0){
- if(callback){
- callback(data)
- }
- this.$message({
- showClose: true,
- message:'Get load parameters successfully',
- type: 'success'
- });
- data.data.first_light_time = new Date('2018-08-06 '+data.data.first_light_time);
- data.data.second_light_time = new Date('2018-08-06 '+data.data.second_light_time);
- data.data.third_light_time = new Date('2018-08-06 '+data.data.third_light_time);
- data.data.fourth_light_time = new Date('2018-08-06 '+data.data.fourth_light_time);
- data.data.fifth_light_time = new Date('2018-08-06 '+data.data.fifth_light_time);
- data.data.sixth_light_time = new Date('2018-08-06 '+data.data.sixth_light_time);
- data.data.seventh_light_time = new Date('2018-08-06 '+data.data.seventh_light_time);
- data.data.eighth_light_time = new Date('2018-08-06 '+data.data.eighth_light_time);
- data.data.ninth_light_time = new Date('2018-08-06 '+data.data.ninth_light_time);
- data.data.tenth_light_time = new Date('2018-08-06 '+data.data.tenth_light_time);
- this.loadParametersDataHC = Object.assign({},data.data)
- for(let key in data.data){
- this.loadParametersData[key] = data.data[key]
- }
- // this.loadParametersDataHC = Object.assign({},this.loadParametersData);
- this.loadSettingIsTrue = true;
- this.loading.loadSetting = false;
-
- // console.log(data,'获取负载参数成功')
- }
- },
- this,
- data =>{
- if(error){
- error(data)
- }
- if(data.status == '0006'){
- this.loadSettingIsTrue = true;
- this.loading.loadSetting = false;
- }else{
- this.loadSettingIsTrue = false;//555
- this.loading.loadSetting = false;
- }
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'warning'
- });
- }
- )
- },
- batterySettingFun(){
- for(let key in this.batteryParametersData){
- this.batteryParametersData[key] = '';
- }
- this.batterySetting();
- },
- batterySetting(callback,error){
- this.batterySettingIsTrue = false;
- this.loading.batterySetting = true;
- this.batchModificationParameters = true;
- baseApi.ajax_post(
- allUrl.project.batterySetting,
- {
- username:this.username,
- client_key:this.client_key,
- token:this.token,
- lamp_id:this.lampId,
- },
- {},
- data =>{
- if(callback){
- callback(data)
- }
- this.$message({
- showClose: true,
- message:'Get battery parameters successfully',
- type: 'success'
- });
- this.batteryParametersDataHC = Object.assign({},data.data)
- for(let key in data.data){
- this.batteryParametersData[key] = data.data[key]
- // console.log(key,'------')
- }
- // this.batteryParametersData.batterytype = data.data.batterytype;
- console.log(this.batteryParametersData,data.data,'------------')
- this.batterySettingIsTrue = true;
- this.loading.batterySetting = false;
- // console.log(data,'获取蓄电池参数成功')
- },
- this,
- data =>{
- if(error){
- error(data)
- }
- if(data.status == '0006'){
- this.batterySettingIsTrue = true;
- this.loading.batterySetting = false;
- }else{
- this.batterySettingIsTrue = false;//555
- this.loading.batterySetting = false;
- }
- this.$message({
- showClose: true,
- message:data.msg,
- type: 'warning'
- });
- }
- )
- },
- /*参数切换*/
- monitorSwitchFun(type){
- this.monitorType = type;
- },
- datezhuanhuan(date){
- date = new Date(date)
- // console.log(date,'----s-------s------s')
- let h = '',m = '';
- if(date.getHours()<10){
- h = '0'+date.getHours();
- }else{
- h = date.getHours();
- }
- if(date.getMinutes()<10){
- m = '0'+date.getMinutes();
- }else{
- m = date.getMinutes();
- }
- return h+':'+m;
- },
- //百度坐标转高德(传入经度、纬度)
- bd_decrypt(bd_lng, bd_lat) {
- var X_PI = Math.PI * 3000.0 / 180.0;
- var x = bd_lng - 0.0065;
- var y = bd_lat - 0.006;
- var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * X_PI);
- var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * X_PI);
- var gg_lng = z * Math.cos(theta);
- var gg_lat = z * Math.sin(theta);
- return {lng: gg_lng, lat: gg_lat}
- },
- //高德坐标转百度(传入经度、纬度)
- bd_encrypt(gg_lng, gg_lat) {
- var X_PI = Math.PI * 3000.0 / 180.0;
- var x = gg_lng, y = gg_lat;
- var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * X_PI);
- var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * X_PI);
- var bd_lng = z * Math.cos(theta) + 0.0065;
- var bd_lat = z * Math.sin(theta) + 0.006;
- return {
- bd_lat: bd_lat,
- bd_lng: bd_lng
- };
- }
- },
- watch:{
- "lightControlData.devicetype":function (){
- let list = JSON.parse(JSON.stringify(this.lightControlListEN))
- for(let key in list){
- if((list[key].model == 'network_id' && this.lightControlData.devicetype == '1')||(list[key].model == 'protocoltype' && this.lightControlData.devicetype == '0')){
- list.splice(key,1)
- }
- if((this.role == 2||this.role == 4)&&list[key].model == 'poName'){
- list.splice(key,1)
- }
- if((this.role == 2)&&list[key].model == 'supplierName'){
- list.splice(key,1)
- }
- }
- this.$set(this,'lightControlListEN_for',list)
- },
- 'batteryParametersData.li_battery_type':function(curVal){
- if(curVal == '0'){
- if(this.batteryParametersData.system_voltage == '3'){
- this.batteryParametersData.increa_char_voltage = '3.6';
- this.batteryParametersData.float_char_voltage = '3.4';
- this.batteryParametersData.over_dischar_return_voltage = '3.2';
- this.batteryParametersData.over_dischar_voltage = '2.5';
- }
- if(this.batteryParametersData.system_voltage == '6'){
- this.batteryParametersData.increa_char_voltage = '7.2';
- this.batteryParametersData.float_char_voltage = '6.8';
- this.batteryParametersData.over_dischar_return_voltage = '6.4';
- this.batteryParametersData.over_dischar_voltage = '5.0';
- }
- if(this.batteryParametersData.system_voltage == '12'||this.batteryParametersData.system_voltage == '24'){
- this.batteryParametersData.increa_char_voltage = '14.4';
- this.batteryParametersData.float_char_voltage = '13.6';
- this.batteryParametersData.over_dischar_return_voltage = '12.0';
- this.batteryParametersData.over_dischar_voltage = '10.2';
- }
- }else{
- if(this.batteryParametersData.system_voltage == '3'){
- this.batteryParametersData.increa_char_voltage = '4.2';
- this.batteryParametersData.float_char_voltage = '4.0';
- this.batteryParametersData.over_dischar_return_voltage = '3.6';
- this.batteryParametersData.over_dischar_voltage = '3.0';
- }
- if(this.batteryParametersData.system_voltage == '6'){
- this.batteryParametersData.increa_char_voltage = '8.4';
- this.batteryParametersData.float_char_voltage = '8.0';
- this.batteryParametersData.over_dischar_return_voltage = '7.2';
- this.batteryParametersData.over_dischar_voltage = '6.0';
- }
- if(this.batteryParametersData.system_voltage == '12'||this.batteryParametersData.system_voltage == '24'){
- this.batteryParametersData.increa_char_voltage = '12.5';
- this.batteryParametersData.float_char_voltage = '12.0';
- this.batteryParametersData.over_dischar_return_voltage = '10.2';
- this.batteryParametersData.over_dischar_voltage = '9.2';
- }
- }
- },
- 'batteryParametersData.system_voltage':function(curVal,oldVal){
- console.log(curVal,oldVal,this.batteryParametersData.batterytype,'-------')
- if(this.batteryParametersData.batterytype == '1'||this.batteryParametersData.battery_type == '1'||this.batteryParametersData.batterytype == '2'||this.batteryParametersData.battery_type == '2'){
- if(curVal == '3'){
- for(let d of this.batteryParametersList1){
- if(d.model == 'increa_char_voltage'){
- d.option = 'increa_char_voltage3'
- }
- if(d.model == 'float_char_voltage'){
- d.option = 'increa_char_voltage3'
- }
- if(d.model == 'over_dischar_return_voltage'){
- d.option = 'increa_char_voltage3'
- }
- if(d.model == 'over_dischar_voltage'){
- d.option = 'increa_char_voltage3'
- }
- }
- for(let d of this.batteryParametersList1EN){
- if(d.model == 'increa_char_voltage'){
- d.option = 'increa_char_voltage3'
- }
- if(d.model == 'float_char_voltage'){
- d.option = 'increa_char_voltage3'
- }
- if(d.model == 'over_dischar_return_voltage'){
- d.option = 'increa_char_voltage3'
- }
- if(d.model == 'over_dischar_voltage'){
- d.option = 'increa_char_voltage3'
- }
- }
- if(this.batteryParametersData.li_battery_type == '0'){
- this.batteryParametersData.increa_char_voltage = '3.6';
- this.batteryParametersData.float_char_voltage = '3.4';
- this.batteryParametersData.over_dischar_return_voltage = '3.2';
- this.batteryParametersData.over_dischar_voltage = '2.5';
- }else{
- this.batteryParametersData.increa_char_voltage = '4.2';
- this.batteryParametersData.float_char_voltage = '4.0';
- this.batteryParametersData.over_dischar_return_voltage = '3.6';
- this.batteryParametersData.over_dischar_voltage = '3.0';
- }
- }else if(curVal == '6'){
- for(let d of this.batteryParametersList1){
- if(d.model == 'increa_char_voltage'){
- d.option = 'increa_char_voltage6'
- }
- if(d.model == 'float_char_voltage'){
- d.option = 'increa_char_voltage6'
- }
- if(d.model == 'over_dischar_return_voltage'){
- d.option = 'increa_char_voltage6'
- }
- if(d.model == 'over_dischar_voltage'){
- d.option = 'increa_char_voltage6'
- }
- }
- for(let d of this.batteryParametersList1EN){
- if(d.model == 'increa_char_voltage'){
- d.option = 'increa_char_voltage6'
- }
- if(d.model == 'float_char_voltage'){
- d.option = 'increa_char_voltage6'
- }
- if(d.model == 'over_dischar_return_voltage'){
- d.option = 'increa_char_voltage6'
- }
- if(d.model == 'over_dischar_voltage'){
- d.option = 'increa_char_voltage6'
- }
- }
- if(this.batteryParametersData.li_battery_type == '0'){
- this.batteryParametersData.increa_char_voltage = '7.2';
- this.batteryParametersData.float_char_voltage = '6.8';
- this.batteryParametersData.over_dischar_return_voltage = '6.4';
- this.batteryParametersData.over_dischar_voltage = '5.0';
- }else{
- this.batteryParametersData.increa_char_voltage = '8.4';
- this.batteryParametersData.float_char_voltage = '8.0';
- this.batteryParametersData.over_dischar_return_voltage = '7.2';
- this.batteryParametersData.over_dischar_voltage = '6.0';
- }
- }else{
- for(let d of this.batteryParametersList1){
- if(d.model == 'increa_char_voltage'){
- d.option = 'increa_char_voltage0'
- }
- if(d.model == 'float_char_voltage'){
- d.option = 'increa_char_voltage0'
- }
- if(d.model == 'over_dischar_return_voltage'){
- d.option = 'increa_char_voltage0'
- }
- if(d.model == 'over_dischar_voltage'){
- d.option = 'increa_char_voltage0'
- }
- }
- for(let d of this.batteryParametersList1EN){
- if(d.model == 'increa_char_voltage'){
- d.option = 'increa_char_voltage0'
- }
- if(d.model == 'float_char_voltage'){
- d.option = 'increa_char_voltage0'
- }
- if(d.model == 'over_dischar_return_voltage'){
- d.option = 'increa_char_voltage0'
- }
- if(d.model == 'over_dischar_voltage'){
- d.option = 'increa_char_voltage0'
- }
- }
- if(this.batteryParametersData.li_battery_type == '0'){
- if(curVal == '12'){
- this.batteryParametersData.increa_char_voltage = '14.4';
- this.batteryParametersData.float_char_voltage = '13.6';
- this.batteryParametersData.over_dischar_return_voltage = '12.0';
- this.batteryParametersData.over_dischar_voltage = '10.2';
- }
- if(curVal == '24'){
- this.batteryParametersData.increa_char_voltage = '14.4';
- this.batteryParametersData.float_char_voltage = '13.6';
- this.batteryParametersData.over_dischar_return_voltage = '12.0';
- this.batteryParametersData.over_dischar_voltage = '10.2';
- }
- }else{
- if(curVal == '12'){
- this.batteryParametersData.increa_char_voltage = '12.5';
- this.batteryParametersData.float_char_voltage = '12.0';
- this.batteryParametersData.over_dischar_return_voltage = '10.2';
- this.batteryParametersData.over_dischar_voltage = '9.2';
- }
- if(curVal == '24'){
- this.batteryParametersData.increa_char_voltage = '12.5';
- this.batteryParametersData.float_char_voltage = '12.0';
- this.batteryParametersData.over_dischar_return_voltage = '10.2';
- this.batteryParametersData.over_dischar_voltage = '9.2';
- }
- }
- }
- }
- },
- 'batteryParametersData.battery_type':function(val) {
- console.log(val)
- this.batteryParametersData = Object.assign({},this.batteryParametersDataHC)
- this.batteryParametersData.battery_type = val;
- if (this.batteryParametersDataHC.type == '默认' && val == 0) {
- this.batteryParametersData.overvoltage = '16';
- this.batteryParametersData.char_limit_voltage = '15.5';
- this.batteryParametersData.equ_char_time = '240';
- this.batteryParametersData.increa_char_time = '240';
- this.batteryParametersData.char_upper_limit_temper = '65';
- this.batteryParametersData.dischar_upper_limit_temper = '65';
- this.batteryParametersData.char_lower_limit_temper = '-35';
- this.batteryParametersData.dischar_lower_limit_temper = '-35';
- }
- this.batteryParametersDataHC.type = '默认';
- if(val == '2'){
- val = '1';
- }
- // this['batteryParametersList'+val+'EN'] = this['batteryParametersListNew'+val+'EN'];
-
- this.batteryParametersDataHC = Object.assign({},this.batteryParametersData)
- },
- // 'batteryParametersData.batterytype':function(val) {
- // // console.log(val,'========================',this.batteryParametersData)
- // this.batteryParametersData = Object.assign({},this.batteryParametersDataHC)
- // this.batteryParametersData.batterytype = val;
- // if(val == '2'){
- // val = '1';
- // }
- // this['batteryParametersList'+val+'EN'] = this['batteryParametersListOld'+val+'EN'];
- // if(this.batteryParametersData['capacity'+val]){
- // this.batteryParametersData.capacity = this.batteryParametersData['capacity'+val];
- // }
- // if(this.batteryParametersData['voverdischarge'+val]){
- // this.batteryParametersData.voverdischarge = this.batteryParametersData['voverdischarge'+val];
- // }
- // if(this.batteryParametersData['voverdischargerecover'+val]){
- // this.batteryParametersData.voverdischargerecover = this.batteryParametersData['voverdischargerecover'+val];
- // }
- // if(this.batteryParametersData['vpromotecharge'+val]){
- // this.batteryParametersData.vpromotecharge = this.batteryParametersData['vpromotecharge'+val];
- // }
- // if(this.batteryParametersData['vpromoterecover'+val]){
- // this.batteryParametersData.vpromoterecover = this.batteryParametersData['vpromoterecover'+val];
- // }
- // this.batteryParametersDataHC = Object.assign({},this.batteryParametersData)
- // },
- "role":function (){
- for(let key in this.lightControlListEN){
- if((this.role == 2||this.role == 4)&&this.lightControlListEN[key].model == 'poName'){
- this.lightControlListEN.splice(key,1)
- }
- if((this.role == 2)&&this.lightControlListEN[key].model == 'supplierName'){
- this.lightControlListEN.splice(key,1)
- }
- }
- this.lightControlListEN_for = JSON.parse(JSON.stringify(this.lightControlListEN))
- }
- }
- }
- </script>
- <style type="text/css" lang="less">
- .projectManagement_template{
- width: 100%;
- height: 100%;
- // height: 105rem;
- min-height: 50rem;
- // min-width: 120rem;
- margin: 0 auto;
- overflow: hidden;
- position: relative;
- .nav_top{
- display: flex;
- justify-content: space-between;
- width:100%;
- height:3.3rem;line-height: 3.3rem;
- background:rgba(255,255,255,1);
- border:0.1rem solid rgba(240,240,240,1);
- .left_title{
- display: flex;
- align-items: center;
- img{
- display: inline-block;
- // width: 1.2rem;
- height: 1rem;
- margin: 0 0.6rem;
- }
- .span{
- font-size:1rem;
- font-family:HiraginoSansGB-W3,HiraginoSansGB;
- font-weight:normal;
- color:rgba(101,112,133,1);
- }
- }
- .right_operation{
- display: flex;
- align-items: center;
- padding-right: 1.6rem;
- .el-dropdown{
- width: 10rem;
- height: 2rem;line-height: 2rem;
- background:rgba(246,248,250,1);
- border-radius: 0.2rem;
- margin-right: 0.8rem;
- .el-dropdown-link{
- cursor: pointer;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 0.8rem;
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(101,112,133,1);
- }
- }
- .el-input{
- width: 16.5rem;
- height: 2rem;line-height: 2rem;
- .el-input__inner{
- height: 2rem;line-height: 2rem;
- background:rgba(246,248,250,1);
- border: none;
- }
- .el-input__icon{
- width: 1.8rem;
- height: 2rem;line-height: 2rem;
- border-top-right-radius: 0.2rem;
- border-bottom-right-radius: 0.2rem;
- background:#FC8440;
- color: #fff;
- font-size: 1rem;
- cursor: pointer;
- position: absolute;
- top: 0;
- right: 0;
- }
- }
- .btn{
- margin-left: 0.6rem;
- display: flex;
- align-items: center;
- padding: 0.5rem 1rem;
- height:2rem;line-height: 2rem;
- background:rgba(255,255,255,1);
- border-radius:0.2rem 0.1rem 0.1rem 0.2rem;
- border:0.1rem solid rgba(240,240,240,1);
- cursor: pointer;
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(51,51,51,1);
- img{
- height: 1.2rem;
- margin-right: 0.5rem;
- }
- }
- }
- }
- .projectManagement_main{
- background:rgba(246,248,250,1);
- padding: 0.8rem 1.5rem 1.5rem;
- height: calc(100% - 3.3rem);
- position: relative;
- .side_bar_left{
- position: absolute;
- left:0rem;
- height: calc(100% - 2.2rem);
- }
- .main_top{
- // margin-top: 0.8rem;
- display: flex;
- .main_top_left{
- width:82.5rem;
- height:11.6rem;
- padding: 0rem 0 0 19rem;
- // background:linear-gradient(134deg,rgba(252,169,64,1) 0%,rgba(252,132,64,1) 100%);
- background-image: url(../img/project_box1_bg.png);
- background-position: center;
- background-size: 100% 100%;
- border-radius:0.3rem;
- display: flex;
- .main_top_left_left{
- flex: 1;
- .title{
- margin-top: 1.8rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 1.6rem;
- .l_text{
- .span1{
- font-size:1.33rem;
- font-family:PingFangSC-Medium,PingFang SC;
- font-weight:500;
- color:rgba(255,255,255,1);
- }
- .span2{
- margin-left: 1rem;
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(255,255,255,1);
- }
- }
- .r_btn{
- margin-right: 3rem;
- width:1.6rem;
- height:1.6rem;line-height: 1.6rem;
- text-align: center;
- background:rgba(255,255,255,0.1);
- border-radius:0.2rem;
- cursor: pointer;
- i{
- font-size: 1rem;
- color:rgba(255, 255, 255, 0.8);
- }
- }
- }
- .p{
- margin-top: 0.6rem;
- display: flex;
- align-items: center;
- i{
- font-size: 1rem;
- color: #fff;
- }
- span{
- margin-left: 0.3rem;
- font-size:1rem;
- font-family:PingFangSC-Medium,PingFang SC;
- font-weight:500;
- color:rgba(255,255,255,0.6);
- }
- }
- .data_bpx{
- margin-top: 1.2rem;
- display: flex;
- height:3.8rem;
- border:0.05rem solid rgba(253,195,148,1);
- margin-right: 3rem;
- .li{
- flex: 1;
- text-align:center;
- border-right:0.05rem solid rgba(253,195,148,1);;
- .p1{
- margin-top: 0.5rem;
- font-size:1.3rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(255,255,255,1);
- .span2{
- margin-left: 0.3rem;
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(255,255,255,0.5);
- }
- }
- .p2{
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(255,255,255,0.7);
- }
- }
- }
- }
- .main_top_left_right{
- width: 18.8rem;
- border-left: 0.1rem dotted #fff;
- padding-top: 0.8rem;
- padding-left: 0.8rem;
- .box{
- margin-bottom: 0.6rem;
- .p1{
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(255,255,255,1);
- position: relative;
- i{
- position: absolute;
- display: inline-block;
- top: 0.3rem;
- left: -1.2rem;
- width:0.5rem;
- height:0.5rem;
- background:rgba(252,134,64,1);
- border:0.1rem solid rgba(255,201,54,1);
- border-radius: 50%;
- }
- }
- .p2{
- margin-top: 0.2rem;
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(255,255,255,0.6);
- }
- }
- }
- }
- .main_top_right{
- margin-left: 0.8rem;
- flex: 1;
- height:11.8rem;
- background:rgba(255,255,255,1);
- border-radius:0.3rem;
- border:0.1rem solid rgba(240,240,240,1);
- .weather_top{
- display: flex;
- justify-content: space-between;
- padding: 1.4rem 1.6rem 0 1.6rem;
- .weather_top_l{
- display: flex;
- height: 2.8rem;
- .box1{
- img{
- height: 2.8rem;
- }
- }
- .box2{
- margin-left: 0.5rem;
- }
- .p1{
- font-size:1.2rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(51,51,51,1);
- }
- }
- .p2{
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(101,112,133,1);
- }
- .weather_top_r{
- display: flex;
- .box1,.box2{
- text-align:center;
- img{
- height: 1.6rem;
- }
- }
- .box2{
- margin-left: 2.2rem;
- }
- .box3{
- font-size:2rem;
- font-family:PingFang-SC-Regular,PingFang-SC;
- font-weight:400;
- color:rgba(34,34,34,1);
- span{
- position: relative;
- margin-left: 1.2rem;
- padding-left: 0.8rem;
- top: 0.2rem;
- border-left: 0.1rem dotted rgba(198, 205, 213, 1);
- }
- }
- }
- }
- .weather_top_bottom{
- display: flex;
- margin-top: 0.7rem;
- padding: 0 1.6rem;
- .li{
- flex: 1;
- height:5.8rem;
- margin-right: 1rem;
- background:rgba(251,252,253,1);
- border-radius:0.42rem;
- border:0.08rem solid rgba(235,239,242,1);
- text-align:center;
- &:last-child{
- margin-right: 0;
- }
- .p1{
- font-size:1rem;
- font-family:AlibabaPuHuiTiR;
- color:rgba(101,112,133,1);
- }
- img{
- margin: 0.2rem 0 0.2rem;
- height: 1.8rem;
- }
- .p2{
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(51,51,51,1);
- }
- }
- }
- }
- }
- .main_table{
- height: calc(100% - 12.4rem);
- margin-top: 0.8rem;
- background-color: #fff;
- border:0.08rem solid rgba(240,240,240,1);
- padding: 0 1.6rem;
- .table_top{
- padding: 1.3rem 0 0.8rem;
- display: flex;
- justify-content: space-between;
- background-color: #fff;
- .table_top_l{
- display: flex;
- .el-dropdown{
- width: 10rem;
- height: 2rem;line-height: 2rem;
- background:rgba(246,248,250,1);
- border-radius: 0.2rem;
- margin-right: 0.8rem;
- .el-dropdown-link{
- cursor: pointer;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 0.8rem;
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(101,112,133,1);
- }
- }
- .nav_box{
- height:2rem;line-height: 2rem;
- background:rgba(246,248,250,1);
- border-radius:0.2rem;
- display: flex;
- .li{
- padding: 0 1rem;
- font-size:1rem;
- font-family:PingFangSC-Regular,PingFang SC;
- font-weight:400;
- color:rgba(101,112,133,1);
- cursor: pointer;
- &.select{
- background:rgba(252,132,64,1);
- box-shadow:0rem 0.17rem 0.5rem 0rem rgba(252,132,64,0.3);
- border-radius:0.2rem;
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(255,255,255,1);
- }
- }
- }
- .left_button{
- display: flex;
- >span{
- height:2rem;line-height:2rem;
- font-size: 1rem;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color:rgba(101,112,133,1);
- }
- >div{
- margin-left: 1rem;
- padding: 0 0.5rem;
- height:2rem;line-height:2rem;
- border: 1px solid #E8E8E8;
- cursor:pointer;
- >span{
- font-size: 1rem;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color:rgba(101,112,133,1);
- }
- }
- .lampcontrol_type_select{
- >span{
- color: #FC8440;
- }
- }
- .dimming_slider_box{
- display: flex;
- // width: 15rem;
- .el-slider{
- position: relative;
- top: 0;
- width: 5rem;
- .el-slider__runway{
- margin: 0.7rem 0 0.7rem 1rem;
- height: 0.6rem;
- .el-slider__bar{
- background-color: #fc8440;
- height: 0.6rem;
- }
- .el-slider__button-wrapper{
- top: -0.5rem;
- width: 1.2rem;height: 1.2rem;
- .el-slider__button{
- width:100%;height: 100%;
- background:url(../img/GIS/Lamp_icon-pre.png);
- background-size: 100% 100%;
- border:0px;
- }
- }
- }
- }
- .span_last{
- float: right;
- color: #FC8440;
- margin-left: 27px;
- }
- }
- >:nth-child(6){
- border: 0px;
- color: #FE7325;
- margin-left: 0px;
- span{
- color: #FC8440;
- text-decoration:underline;
- cursor:pointer;
- }
- }
- >div:nth-child(7){
- border: 0px;
- color: #FE7325;
- padding: 0px;
- span{
- color: #888888;
- text-decoration:underline;
- cursor:pointer;
- }
- }
- .wxzzt{
- span{
- color: #666666;
- }
- }
- .el-loading-spinner{
- height: 100%;
- top: 0;
- margin-top: 0;
- .circular{
- height: 100%;
- width: 100%;
- }
- }
- }
- }
- .table_top_r{
- display: flex;
- .btn{
- padding: 0 0.5rem;
- img{
- height: 1.2rem;
- }
- }
- }
- .btn{
- margin-left: 0.6rem;
- display: flex;
- align-items: center;
- padding: 0.5rem 1rem;
- height:2rem;line-height: 2rem;
- background:rgba(255,255,255,1);
- border-radius:0.2rem 0.1rem 0.1rem 0.2rem;
- border:0.1rem solid rgba(240,240,240,1);
- cursor: pointer;
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(51,51,51,1);
- i{
- font-size: 1.2rem;
- color: rgba(252, 137, 64, 1);
- }
- span{
- margin-left: 0.5rem;
- }
- .el-loading-spinner{
- height: 100%;
- top: 0;
- margin-top: 0;
- .circular{
- height: 100%;
- width: 100%;
- }
- }
- }
- }
- .el-table{
- width: 100%;
- th,td{
- padding: 0;
- >.cell{
- padding: 0 0.5rem;
- }
- }
- th{
- height: 3.33rem;line-height: 3.33rem;
- background:rgba(246,248,250,1);
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(102,102,102,1);
- }
- td{
- height: 4.2rem;line-height: 4.2rem;
- font-size:1rem;
- font-family:PingFangSC-Medium,PingFang SC;
- font-weight:500;
- color:rgba(51,51,51,1);
- }
- // tr:hover>td{
- // background: rgba(246, 248, 250, 1);
- // >.cell{
- // font-family:PingFangSC-Semibold,PingFang SC;
- // font-weight:600;
- // }
- // }
- .btn{
- padding: 0.5rem 0.5rem;
- cursor: pointer;
- .iconfont{
- font-size: 1rem;
- color: rgba(163, 175, 187, 1);
- }
- }
- .status{
- display: flex;align-items: center;justify-content: center;
- img{
- width: 1.3rem;
- }
- }
- .Brightness{
- padding: 0 1rem;
- .progress_outer{
- height:1.5rem;
- position: relative;
- cursor: pointer;
- border-radius:0.75rem;
- overflow: hidden;
- .progress_inner{
- height:1.5rem;;line-height:1.5rem;
- background:linear-gradient(134deg,rgba(252,169,64,1) 0%,rgba(252,132,64,1) 100%);
- }
- .text{
- background:rgba(252,132,64,0.1);
- position: absolute;
- top: 0;left:0;
- width: 100%;height: 1.5rem;line-height: 1.5rem;
- text-align: center;
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:#BC4502;
- &.light50{
- color: #FFFFFF;
- }
- &.light0{
- color: #657085;
- background-color:#EBEFF2;
- }
- }
- }
- }
- }
- .pagination_box{
- height: 2.3rem;line-height: 2.3rem;
- margin-top: 1.6rem;
- margin-bottom: 1.6rem;
- display: flex;
- .left{
- margin-left: auto;
- display: flex;
- align-items: center;
- background:rgba(246,248,250,1);
- border-radius:1.2rem;
- padding: 0 1.2rem;
- .totle{
- font-size:1rem;
- font-family:AlibabaPuHuiTiR;
- color:rgba(51,51,51,1);
- .span2{
- margin-left: 0.2rem;
- color: rgba(252, 132, 64, 1);
- }
- }
- .line{
- margin: 0 0.7rem;
- width:0.08rem;
- height:1rem;
- background-color: rgba(235, 239, 242, 1);
- }
- .el-dropdown-link{
- font-size:1rem;
- font-family:AlibabaPuHuiTiR;
- color:rgba(51,51,51,1);
- cursor: pointer;
- }
- }
- .el-pagination{
- margin: 0 auto 0 0.8rem;
- // border-radius:1.2rem;
- padding: 0;
- .btn-next,.btn-prev{
- height: 2.3rem;line-height: 2.3rem;
- background:rgba(246,248,250,1);
- &:hover{
- background:rgba(252,132,64,1);
- font-family:AlibabaPuHuiTiM;
- color:rgba(255,255,255,1);
- }
- &.active{
- font-family:AlibabaPuHuiTiM;
- color:rgba(255,255,255,1);
- cursor: default;
- background:rgba(252,132,64,1);
- }
- }
- // button{
- // &:disabled{
- // background-color: initial;
- // }
- // }
- .btn-prev{
- border-top-left-radius: 1.2rem;
- border-bottom-left-radius: 1.2rem;
- }
- .btn-next{
- border-top-right-radius: 1.2rem;
- border-bottom-right-radius: 1.2rem;
- }
- .el-pager{
- background:rgba(246,248,250,1);
- li{
- height: 2.3rem;line-height: 2.3rem;
- background-color: initial;
- font-size:1rem;
- font-family:AlibabaPuHuiTiR;
- color:rgba(51,51,51,1);
- border-radius:0.25rem;
- &:hover{
- background:rgba(252,132,64,1);
- font-family:AlibabaPuHuiTiM;
- color:rgba(255,255,255,1);
- }
- &.active{
- font-family:AlibabaPuHuiTiM;
- color:rgba(255,255,255,1);
- cursor: default;
- background:rgba(252,132,64,1);
- }
- }
- }
- .el-pagination__jump{
- margin-left: 0.8rem;
- height:2.3rem;line-height: 2.3rem;
- background:rgba(246,248,250,1);
- border-radius:1.2rem;
- padding: 0 1.2rem;
- font-size:1rem;
- font-family:AlibabaPuHuiTiR;
- color:rgba(51,51,51,1);
- .el-input{
- height:2.3rem;line-height: 2.3rem;
- .el-input__inner{
- height:2.3rem;line-height: 2.3rem;
- border: none;
- background-color: #f6f8fa;
- }
- }
- }
- }
- }
- }
- }
- /*添加编辑项目*/
- .addItem_box{
- .box{
- padding: 0 40px 0 20px;
- .left_box{
- .el-input{
- width: 90%;
- }
- }
- .el-select{
- width:100%;
- }
- }
- .project_del{
- color: #fc8440;
- margin-left: 30px;
- cursor: pointer;
- text-decoration: underline;
- }
- .project_upgrade{
- color: #409EFF;
- margin-left: 30px;
- cursor: pointer;
- text-decoration: underline;
- }
- }
- /*字段管理*/
- .field_box{
- .fielf_box{
- >div{
- width: 25%;
- font-size:12px;
- }
- }
- .field_list{
- float:left;
- width: 20%;
- margin-bottom:20px;
- div{
- margin-right: 20px;
- height:40px;
- line-height: 40px;
- text-align: center;
- border-radius: 6px;
- color: #888888;
- border: 1px solid #DCDCDC;
- cursor: pointer;
- position: relative;
- img{
- position: absolute;
- top: 15px;
- left: 10px;
- }
- }
- }
- .field_select{
- div{
- background:#3A96FF;
- color: #FFFFFF;
- border: 1px solid #3A96FF;
- }
- }
- }
- /*灯控详情*/
- .details_box{
- .wrap{
- .table_box{
- text-align: center;
- th{
- text-align: center;
- color: #444444;
- }
- }
- .el-table--enable-row-hover .el-table__body tr:hover>td{
- // background: inherit;
- }
- .row_bg{
- background: #F6F6F9;
- }
- position: relative;
- // height: 50px;
- .nav{
- position: absolute;
- width:428px;
- height:50px;
- line-height: 50px;
- left: 50%;
- margin-left: -214px;
- background:rgba(255,255,255,1);
- border-radius: 100px;
- border:1px solid #E8E8E8;
- .nav_list{
- float: left;
- width: 19%;
- text-align: center;
- cursor: pointer;
- span{
- font-size:14px;
- font-family:PingFangSC-Medium;
- color:#888888;
- }
- }
- .details_nav_select{
- background:linear-gradient(-90deg,rgba(54,130,251,1),rgba(56,161,246,1));
- border-radius: 100px;
- width: 24%;
- span{
- color: #ffffff;
- }
- }
- }
- .historicalnav{
- position: absolute;
- width:428px;
- height:50px;
- line-height: 50px;
- left: 50%;
- margin-left: -214px;
- background:rgba(255,255,255,1);
- border-radius: 100px;
- border:1px solid #E8E8E8;
- .nav_list{
- float: left;
- width: 24%;
- text-align: center;
- cursor: pointer;
- span{
- font-size:14px;
- font-family:PingFangSC-Medium;
- color:#888888;
- }
- }
- .details_nav_select{
- background:linear-gradient(-90deg,rgba(54,130,251,1),rgba(56,161,246,1));
- border-radius: 100px;
- width: 28%;
- span{
- color: #ffffff;
- }
- }
- }
- .details_list_box{
- padding-top: 126px;
- display: flex;
- // justify-content: space-between;
- flex-direction: row;
- flex-wrap: wrap;
- .details_list{
- // float: left;
- width: 25%;
- position: relative;
- margin-bottom: 30px;
- span{
- display: inline-block;
- font-size:16px;
- font-family:PingFangSC-Medium;
- color:#222222;
- line-height:16px;
- height:44px;
- line-height: 44px;
- // white-space: nowrap;
- // overflow: hidden;
- // text-overflow: ellipsis;
- }
- span:first-child{
- position: absolute;
- width: 180px;
- padding-right:20px;
- text-align: right;
- }
- span:last-child{
- padding: 0 20px;
- margin-left: 190px;
- width:calc(100% - 242px);
- background:#F8F9FC;
- border-radius: 2px ;
- border: 1px solid #E8E8E8;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- .details_list_box_EN{
- .details_list_min{
- width: 33.3%;
- }
- .details_list{
- span:first-child{
- width: 255px;
- // line-height: 22px;
- }
- span:last-child{
- margin-left: 260px;
- width:calc(100% - 300px);
- }
- }
- }
- }
- }
- /*添加编辑灯控*/
- .addLightControl_box{
- .list_box{
- width: 20%;
- float: left;
- height: 40px;
- }
- .list_box_min{
- width: 25%;
- }
- .project_del{
- color: #fc8440;
- margin-left: 30px;
- cursor: pointer;
- text-decoration: underline;
- }
- .el-input-number{
- width:100%;
- .el-input__inner{
- text-align: left;
- }
- }
- .el-select{
- width: 100%;
- }
- }
- .monitor_box{
- .el-date-editor.el-input, .el-date-editor.el-input__inner{
- width: 100%;
- }
- .el-dialog__header{
- border-bottom: 0px;
- height: 25px;
- }
- .el-dialog{
- margin-top: 60px !important;
- }
- .el-dialog__body{
- // padding: 30px 0px 0 60px;
- .dialog_foot .el-button{
- width: 160px;
- }
- }
- .el-input-number{
- width: 100%;
- input{
- text-align: left;
- }
- }
- .el-select{
- width: 100%;
- }
- .wrap{
- position: relative;
- padding-top: 80px;
- .button{
- position: absolute;
- top: -10px;right: 0px;
- .el-button{
- background: linear-gradient(140.3deg, #fc8440, #fe7121);
- color: #fff;
- border: 0px;
- }
- }
- .nav{
- position: absolute;
- top: -10px;
- left: 50%;
- margin-left: -209px;
- width:418px;
- height:50px;
- background:rgba(232,232,232,1);
- border-radius: 100px;
- div{
- float: left;
- text-align: center;
- width:209px;
- height:50px;
- line-height: 50px;
- border-radius: 100px ;
- cursor: pointer;
- span{
- font-size:14px;
- font-family:PingFangSC-Medium;
- }
- }
- .monitor_type{
- background:rgba(55,59,68,1);
- span{
- color:rgba(255,255,255,1);
- }
- }
- }
- .box{
- // overflow: auto;
- // padding-right: 75px;
- .el-form{
- display: flex;
- flex-wrap: wrap;//换行
- align-content: flex-start;//display flex 布局换行后行间距清空。
- }
- .list_box{
- width: 25%;
- height: 40px;
- }
- .list_boxEN{
- width: 33.33%;
- float: left;
- height: 40px;
- }
-
- }
- .box_padding{
- padding-right: 0px;
- }
- }
- }
- /*历史弹框*/
- .history_box{
- .el-dialog__body{
- padding:0px;
- }
- .wrap{
- position: relative;
- height: 50rem;
- display: flex;
- .main_list{
- width: 16rem;
- height: 100%;
- // display: flex;
- box-sizing: border-box;
- border-right: 2px solid rgba(240, 240, 240, 1);
- .main_list_title{
- height: 4rem;
- line-height: 4rem;
- font-size:1.2rem;
- font-family:PingFangSC-Semibold;
- font-weight:600;
- color:rgba(34,34,34,1);
- padding-left:2rem;
- border-bottom: 1px solid rgba(240, 240, 240, 1);
- }
- .main_list_box{
- height: calc(100% - 4rem);
- display: flex;
- &.EN{
- .nav_list{
- padding-left: 1rem;
- span{
- display: inline-block;
- max-width: 100%;
- line-height: 1.2rem;
- vertical-align: middle; // 行内垂直平行
- }
- }
- }
- }
- .lamp_list{
- text-align: center;
- height: calc(100%);
- overflow: auto;
- box-sizing: border-box;
- width: 10rem;
- border-right: 2px solid rgba(240, 240, 240, 1);
- .li{
- height:3.5rem;
- line-height: 3.5rem;
- font-size:1rem;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(102,102,102,1);
- cursor: pointer;
- &.select{
- font-family:PingFangSC-Semibold;
- font-weight:600;
- color:rgba(254,119,43,1);
- background:rgba(253,124,51,0.1);
- }
- }
- }
- .historicalnav{
- box-sizing: border-box;
- background-color:rgba(248, 248, 248, 1);
- width: 10rem;
- }
- .nav_list{
- padding-left: 2rem;
- height: 4rem;
- line-height: 4rem;
- font-size: 1rem;
- border-bottom: 1px solid rgba(240, 240, 240, 1);
- // background-color:rgba(255, 255, 255, 1);
- cursor: pointer;
- span{
- display: inline-block;
- max-width: 8rem;
- // white-space: nowrap;
- // overflow: hidden;
- // text-overflow: ellipsis;
- }
- }
- .details_nav_select{
- color: rgba(255, 117, 39, 1);
- }
- }
- .main_box{
- width: calc(100% - 16rem);
- padding: 2rem 1rem 0 1rem;
- height: 100%;
- .screen_box{
- height: 3.2rem;
- line-height: 3.2rem;
- margin-bottom: 2.4rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- >div{
- display: flex;
- align-items: center;
- }
- .el-pager{
- padding-top: 0.5rem;
- li{
- height: 2.2rem;
- line-height: 2.2rem;
- &.active {
- color: #fff;
- background: #fc8440;
- border-radius: 2rem;
- }
- }
- }
- .el-pagination{
- font-weight: normal;
- }
- .el-select .el-input.is-focus .el-input__inner{
- border-color: #fc8440;
- }
- .el-input.is-active .el-input__inner, .el-input__inner:focus{
- border-color: #fc8440;
- }
- .el-pagination button, .el-pagination span:not([class*=suffix]){
- height: 3.2rem;
- line-height: 3.2rem;
- }
- .el-pagination__editor{
- height: 3.2rem;
- line-height: 3.2rem;
- }
- .el-pagination__editor.el-input .el-input__inner{
- height: 2.2rem;
- }
- .el-pager .more::before{
- line-height: 2.2rem;
- }
- }
- .screen_date{
- border-radius: 2rem;
- border:1px solid #DCDFE6;
- overflow: hidden;
- margin-right: 2rem;
- // height: 2.5rem;line-height: 2.5rem;
- .el-date-editor{
- width: 14rem;
- height: 2.5rem;line-height: 2.5rem;
- padding:0;
- border:none;
- }
- .el-range-editor--small .el-range-separator{
- height: 2.5rem;line-height: 2.5rem;
- }
- .el-button--small{
- height: 2.5rem;line-height: 2.5rem;
- padding:0 1rem;
- }
- .el-button{
- border: none;
- border-left: 1px solid #DCDFE6;
- .el-icon-arrow-right{
- margin: 0 0 0 1.8rem;
- }
- }
- }
- .el-table{
- th,td{
- padding: 0;
- >.cell{
- padding: 0 0.5rem;
- }
- }
- th{
- height: 3.33rem;line-height: 3.33rem;
- background:rgba(246,248,250,1);
- font-size:1rem;
- font-family:PingFang-SC-Medium,PingFang-SC;
- font-weight:500;
- color:rgba(102,102,102,1);
- }
- td{
- height: 4.2rem;line-height: 4.2rem;
- font-size:1rem;
- font-family:PingFangSC-Medium,PingFang SC;
- font-weight:500;
- color:rgba(51,51,51,1);
- }
- }
- .data_type_nav{
- display: flex;
- width: 15rem;
- height: 2.5rem;line-height: 2.5rem;
- border: 1px solid rgba(232, 232, 232, 1);
- border-radius: 1.6rem;
- overflow: hidden;
- text-align: center;
- margin-top: 1rem;
- position: relative;
- margin-left: -12rem;
- left: 50%;
- .li{
- flex: 1;
- cursor: pointer;
- }
- .select{
- color: #fff;
- height:2.5rem;
- background:linear-gradient(270deg,rgba(54,130,251,1) 0%,rgba(56,161,246,1) 100%);
- border-radius:10rem;
- }
- }
- .LS_echarts{
- display: flex;
- height: 100%;
- .left_echarts{
- width: 76%;
- height: 100%;
- position: relative;
- .echarts_top{
- position: absolute;
- top: 0rem;
- z-index: 1;
- right: 0px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- >div{
- display: flex;
- }
- }
- .screen_date_select{
- margin-right: 2rem;
- width: 20rem;
- height: 2.5rem;line-height: 2.5rem;
- border: 1px solid #DCDFE6;
- border-radius: 2.5em;
- overflow: hidden;
- text-align: center;
- display: flex;
- cursor: pointer;
- .li{
- flex:1;
- border-right: 1px solid #DCDFE6;
- font-size: 1rem;
- &:last-child{
- border-right: none;
- }
- }
- .select{
- color: rgba(253, 125, 52, 1);
- }
- }
- .history_echarts{
- width: 100%;
- height: calc(100% - 6rem);
- .history_echarts_tooltip{
- background-color:#fff;
- color: rgba(102, 102, 102, 1);
- padding:14px;
- border: 1px solid rgba(211, 181, 164, 1);
- p{
- position:relative;
- span{
- display: inline-block;
- width: 5px;height: 5px;
- position: relative;
- top: -2px;
- margin-right: 10px;
- }
- .span_0{
- background-color: #15CA56;
- }
- .span_1{
- background-color: #F3BC12;
- }
- .span_2{
- background-color: #3898F8;
- }
- .span_3{
- background-color: #F05904;
- }
- margin-bottom: 12px;
- &:last-child{
- margin: 0;
- }
- }
- }
- }
- .history_echarts_noData{
- width: 100%;
- height: calc(100% - 6rem);
- h3{
- padding-top: 3rem;
- text-align: center;
- }
- }
- }
- .left_data{
- width: 24%;
- height: 100%;
- background:rgba(255,249,245,1);
- border-radius:2px;
- border:1px solid rgba(238,238,238,1);
- padding: 0 1rem;
- p{
- text-align: center;
- font-size:1.2rem;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(51,51,51,1);
- margin: 1.9rem 0 2.3rem 0;
- img{
- position:relative;
- top: 0.2rem;
- margin-right: 1rem;
- }
- }
- .ul{
- .li{
- height:3rem;
- line-height: 3rem;
- background:rgba(249,240,233,1);
- border-radius:0.4rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 1rem;
- .span1{
- font-size:0.8rem;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(102,102,102,1);
- margin-left: 1.3rem;
- }
- .span_r{
- display: flex;
- height: 3rem;
- align-items: center;
- flex: 1;
- justify-content: flex-end;
- }
- .span2{
- font-size:1.9rem;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(51,51,51,1);
- margin-right: 0.5rem;
- display: inline-block;
- text-align: right;
- // max-width: 38px;
- width: calc(100% - 4rem);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .span3{
- margin-right: 1rem;
- font-size:1.2rem;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(153,153,153,1);
- // margin-right: 7px;
- // @media (max-width: 1500px){
- // display: inline-block;
- // line-height: 40px;
- // position: relative;
- // top: -7px;
- // }
- }
- }
- &.EN{
- .li{
- .span1{
- display: inline-block;
- max-width: calc(100% - 9rem);
- line-height: 1.2rem;
- }
- }
- }
- }
- }
- }
- .echarts_bottom{
- position: relative;
- display: flex;
- .echarts_bottom_text{
- margin-top: 1rem;
- height: 3.2rem;
- line-height: 3.2rem;
- font-size:1rem;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(102,102,102,1);
- }
- &.echarts_line{
- .data_type_nav{
- margin-left: -22rem;
- left: 61.49%;
- }
- }
- }
- }
- .table_box{
- text-align: center;
- th{
- text-align: center;
- color: #444444;
- }
- }
- .el-table--enable-row-hover .el-table__body tr:hover>td{
- // background: inherit;
- }
- .row_bg{
- background: #F6F6F9;
- }
- }
- }
- }
- .lampAmapWrapper_box{
- position: relative;
- .screenMap{
- position: absolute;
- top: 20px;left:40px;
- width:250px;
- z-index: 1;
- line-height: 50px;
- i{
- font-size: 20px;
- cursor: pointer;
- }
- }
- }
- #lampAmapWrapper{
- width: 100%;
- min-height: 400px;
- .google_Location_box{
- width: 40px;
- height: 40px;
- background: #fff;
- right: 10px !important;
- bottom: 120px !important;
- .google_Location{
- display:none;
- background: #fff url(http://webapi.amap.com/theme/v1.3/markers/b/loc_gray.png) 50% 50% no-repeat;
- width: 38px;
- height: 38px;
- border: 1px solid #ccc;
- cursor: pointer;
- }
- .circular{
- height: 40px;
- width: 40px;
- animation: loading-rotate 2s linear infinite;
- .path{
- animation: loading-dash 1.5s ease-in-out infinite;
- stroke-dasharray: 90,150;
- stroke-dashoffset: 0;
- stroke-width: 2;
- stroke: #409eff;
- stroke-linecap: round;
- }
- }
- }
- .lamp_coordinate_en{
- .determine_l{
- background: url(../img/GIS/determine-icon.png);
- display:inline-block;
- width: 38px;height: 38px;
- }
- .cancel_l{
- background: url(../img/GIS/cancel-icon.png);
- display:inline-block;
- width: 38px;height: 38px;
- margin-left: 10px;
- }
-
- }
- .lamp_coordinate_en{
- // width: 200px
- // display: none;
- position: absolute;
- line-height: 40px;
- width: 600px;
- top: -6px;
- left: 50px;
- display: flex;
- align-items: center;
- >span{
- display: inline-block;
- padding: 0 20px;
- margin-right: 20px;
- font-size: 14px;
- color: #888888;
- background: #fff;
- span{
- span{
- color:#fc8440;
- }
- }
- >:first-child{
- margin-right: 10px;
- }
- }
- >i{
- font-size:30px;
- z-index: 1;
- cursor: pointer;
- }
- }
- .lamp_coordinate{
- // width: 200px
- // display: none;
- position: absolute;
- line-height: 40px;
- width: 450px;
- top: 0px;
- left: 78px;
- >span{
- display: inline-block;
- padding: 0 20px;
- margin-right: 20px;
- font-size: 14px;
- color: #888888;
- background: #fff;
- span{
- span{
- color:#fc8440;
- }
- }
- >:first-child{
- margin-right: 10px;
- }
- }
- >i{
- font-size:30px;
- z-index: 1;
- cursor: pointer;
- }
- }
- }
- .lamp_light_slider{
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- .bg{
- position:absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- }
- .box{
- position:absolute;
- width: 342px;
- padding: 5px 0 15px 0;
- background-color: #fff;
- box-shadow:0px 2px 24px 0px rgba(90,90,90,0.12);
- border-radius:2px;
- }
- .div1{
- position: absolute;
- top: 40px;
- left: -15px;
- display: flex;
- width: 25px;
- span{
- display: inline-block;
- width:15px;
- height:1px;
- border-top:1px solid rgba(252, 132, 64, 1);
- }
- i{
- position: relative;
- top: -3px;
- display: inline-block;
- width:7px;
- height:7px;
- border-radius: 7px;
- background:rgba(252,132,64,1);
- }
- }
- .div2{
- padding: 0 16px 0 18px;
- >div:nth-child(1){
- height:25px;
- line-height:25px;
- span:nth-child(1){
- font-size:12px;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(102,102,102,1);
- }
- span:nth-child(2){
- padding: 0px 10px;
- font-size:14px;
- font-family:PingFang-SC-Medium;
- font-weight:500;
- color:rgba(252,129,58,1);
- float: right;
- cursor: pointer;
- }
- }
- .el-slider__bar{
- background-color:rgba(252, 132, 64, 1);
- }
- .el-slider__button{
- position: relative;
- top: 15px;
- border:none;
- background-image: url(../img/projectManagement/slider_button.png);
- background-size: 100% 100%;
- }
- .el-slider__runway{
- margin: 10px 0;
- }
- }
- }
- </style>
|