projectManagement.vue 348 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861
  1. <template>
  2. <div class="projectManagement_template">
  3. <div class="nav_top">
  4. <div class="left_title">
  5. <img src="../img/iconfont/notice.png"><span class="span">Please pay attention to the updated content at any time.</span>
  6. </div>
  7. <div class="right_operation">
  8. <el-dropdown @command="commandDropdown" trigger="click" @visible-change="commandHide('dropdown_projectManagement_division')">
  9. <span class="el-dropdown-link">
  10. <span>{{divisionName}}</span><i class="el-icon-caret-bottom el-icon--right"></i>
  11. </span>
  12. <el-dropdown-menu slot="dropdown" class="scrollbar_style dropdown_projectManagement_division">
  13. <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>
  14. </el-dropdown-menu>
  15. </el-dropdown>
  16. <el-input placeholder="search..." v-model="keywords" @keyup.native="getLightListKeyUp($event)" class="input-with-select">
  17. <i slot="suffix" class="el-input__icon el-icon-search" @click="getLightList()"></i>
  18. </el-input>
  19. <div class="btn" @click="addItemFun()"><img src="../img/iconfont/add.png"><span>New project</span></div>
  20. </div>
  21. </div>
  22. <div class="projectManagement_main">
  23. <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>
  24. <div class="main_top">
  25. <div class="main_top_left">
  26. <div class="main_top_left_left">
  27. <div class="title">
  28. <div class="l_text">
  29. <span class="span1">{{detailData.projectname}}</span>
  30. <span class="span2">Number:{{detailData.number}}</span>
  31. </div>
  32. <div class="r_btn" @click="editProject()"><i class="iconfont icon-bianji"></i></div>
  33. </div>
  34. <p class="p"><i class="iconfont icon-dizhi"></i><span class="span2">{{detailData.location}}</span></p>
  35. <div class="data_bpx">
  36. <div class="li">
  37. <p class="p1">{{Number(deviceTotalData.light_num).formatNumberRgx()}}</p>
  38. <p class="p2">Lights</p>
  39. </div>
  40. <div class="li">
  41. <p class="p1"><span class="span1">{{Number(deviceTotalData.online_num).formatNumberRgx()}}</span><span class="span2">{{deviceTotalData.online_rate}}</span></p>
  42. <p class="p2">On-line</p>
  43. </div>
  44. <div class="li">
  45. <p class="p1"><span class="span1">{{Number(deviceTotalData.light_num).formatNumberRgx()}}</span><span class="span2">{{deviceTotalData.light_rate}}</span></p>
  46. <p class="p2">Light-up</p>
  47. </div>
  48. <div class="li">
  49. <p class="p1"><span class="span1">{{Number(deviceTotalData.fault_count).formatNumberRgx()}}</span><span class="span2">{{deviceTotalData.fault_rate}}</span></p>
  50. <p class="p2">Flaut</p>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="main_top_left_right">
  55. <div class="box box1">
  56. <p class="p1"><i></i><span>Time zone</span></p>
  57. <p class="p2">{{detailData.timezone}}</p>
  58. </div>
  59. <div class="box box2">
  60. <p class="p1"><i></i><span>Creation time</span></p>
  61. <p class="p2">{{detailData.create_time}}</p>
  62. </div>
  63. <div class="box box3">
  64. <p class="p1"><i></i><span>Region</span></p>
  65. <p class="p2">{{detailData.address}}</p>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="main_top_right">
  70. <template v-if="weatherList.length>0">
  71. <div class="weather_top">
  72. <div class="weather_top_l">
  73. <div class="box1">
  74. <img src="../img/weather/304.png">
  75. </div>
  76. <div class="box2">
  77. <p class="p1">Today</p>
  78. <p class="p2">{{weatherList[0].Thundershower}}</p>
  79. </div>
  80. </div>
  81. <div class="weather_top_r">
  82. <div class="box1">
  83. <img src="../img/sunrise.png">
  84. <p class="p2">{{weatherList[0].sr}}</p>
  85. </div>
  86. <div class="box2">
  87. <img src="../img/sunset.png">
  88. <p class="p2">{{weatherList[0].ss}}</p>
  89. </div>
  90. <div class="box3"><span>{{(currentTime.format('HH:MM'))}}</span></div>
  91. </div>
  92. </div>
  93. <div class="weather_top_bottom" v-if="weatherList.length>1">
  94. <div class="li">
  95. <p class="p1">{{weatherList[1].dateStr}}</p>
  96. <img :src="require('../img/weather/'+weatherList[1].code+'.png')">
  97. <p class="p2">{{weatherList[1].maxTmp+'/'+weatherList[1].minTmp}}</p>
  98. </div>
  99. <div class="li">
  100. <p class="p1">{{weatherList[2].dateStr}}</p>
  101. <img :src="require('../img/weather/'+weatherList[2].code+'.png')">
  102. <p class="p2">{{weatherList[2].maxTmp+'/'+weatherList[2].minTmp}}</p>
  103. </div>
  104. <div class="li">
  105. <p class="p1">{{weatherList[3].dateStr}}</p>
  106. <img :src="require('../img/weather/'+weatherList[3].code+'.png')">
  107. <p class="p2">{{weatherList[3].maxTmp+'/'+weatherList[3].minTmp}}</p>
  108. </div>
  109. <div class="li">
  110. <p class="p1">{{weatherList[4].dateStr}}</p>
  111. <img :src="require('../img/weather/'+weatherList[4].code+'.png')">
  112. <p class="p2">{{weatherList[4].maxTmp+'/'+weatherList[4].minTmp}}</p>
  113. </div>
  114. <div class="li">
  115. <p class="p1">{{weatherList[5].dateStr}}</p>
  116. <img :src="require('../img/weather/'+weatherList[2].code+'.png')">
  117. <p class="p2">{{weatherList[5].maxTmp+'/'+weatherList[5].minTmp}}</p>
  118. </div>
  119. <div class="li">
  120. <p class="p1">{{weatherList[6].dateStr}}</p>
  121. <img :src="require('../img/weather/'+weatherList[6].code+'.png')">
  122. <p class="p2">{{weatherList[6].maxTmp+'/'+weatherList[6].minTmp}}</p>
  123. </div>
  124. </div>
  125. </template>
  126. </div>
  127. </div>
  128. <div class="main_table">
  129. <div class="table_top">
  130. <div class="table_top_l">
  131. <el-dropdown @command="commandDropdown" trigger="click" @visible-change="commandHide('dropdown_projectManagement_roadId')">
  132. <span class="el-dropdown-link">
  133. <span>{{roadIdName}}</span><i class="el-icon-caret-bottom el-icon--right"></i>
  134. </span>
  135. <el-dropdown-menu slot="dropdown" class="scrollbar_style dropdown_projectManagement_roadId">
  136. <el-dropdown-item :class="{'select':roadId== 0}" :command="{'key':'roadId','id':0}" :key="0">All</el-dropdown-item>
  137. <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>
  138. </el-dropdown-menu>
  139. </el-dropdown>
  140. <div class="nav_box">
  141. <div class="li" :class="{'select':status=='0' && alarmtype == '0' && offline == '0' && online == '0'}" @click="statusTypeFun('0','0','0','0')"><span>All</span></div>
  142. <div class="li" :class="{'select':alarmtype == '1'}" @click="statusTypeFun('0','1','0','0')"><span>Overdischarge</span></div>
  143. <div class="li" :class="{'select':alarmtype == '2'}" @click="statusTypeFun('0','2','0','0')"><span>Overpressure</span></div>
  144. <div class="li" :class="{'select':offline == '1'}" @click="statusTypeFun('0','0','1','0')"><span>Offline</span></div>
  145. <div class="li" :class="{'select':online == '1'}" @click="statusTypeFun('0','0','0','1')"><span>Online</span></div>
  146. <div class="li" :class="{'select':status == '1'}" @click="statusTypeFun('1','0','0','0')"><span>Warning</span></div>
  147. </div>
  148. <div class="btn" @click="batchProcessingFun('on')" v-if="batchProcessing=='off'"><i class="iconfont icon-piliangcaozuo"></i><span>Batch management</span></div>
  149. <div class="left_button" v-if="batchProcessing=='on'">
  150. <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='1'}" @click="batchOperation('1')"><span>Turn-on</span></div>
  151. <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='0'}" @click="batchOperation('0')"><span>Turn-off</span></div>
  152. <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='参数'}" @click="batchOperation('参数')"><span>Parameter</span></div>
  153. <div class="dimming_slider_box" :class="{'lampcontrol_type_select':lampcontrolOperationType=='调光'}" @click="batchOperation('调光')">
  154. <span>Dimming</span>
  155. <el-slider v-model="batchDimmingVal" v-if="lampcontrolOperationType=='调光'"></el-slider>
  156. <span class="span_last" v-if="lampcontrolOperationType=='调光'">{{batchDimmingVal}}%</span>
  157. </div>
  158. <div :class="{'lampcontrol_type_select':lampcontrolOperationType=='3'}" @click="batchOperation('3')"><span class="del">Delete</span></div>
  159. <div :class="{'wxzzt':lampcontrolOperationType == '-1'}"><span @click="batchProcessingFun('off')" v-loading="loading.batchProcessingFun">{{lampcontrolOperationType=='参数'?'modify':'Save'}}</span></div>
  160. <div @click="batchProcessingFun('cancel')"><span>Cancel</span></div>
  161. </div>
  162. <div class="btn" @click="lampcontrolUpdate()" v-loading="loading.lampcontrolUpdate">Update</div>
  163. </div>
  164. <div class="table_top_r">
  165. <div class="btn" @click="getLightList()">
  166. <i class="iconfont icon-shuaxin"></i>
  167. </div>
  168. <div class="btn" @click="fieldManagement()">
  169. <i class="iconfont icon-ziduan"></i><span>Field</span>
  170. </div>
  171. <div class="btn" @click="addLightControlFun()">
  172. <img src="../img/iconfont/add.png"><span>New Light</span>
  173. </div>
  174. </div>
  175. </div>
  176. <el-table
  177. ref="deviceList"
  178. v-loading="loading.deviceList"
  179. element-loading-background="rgba(255, 255, 255, 0.5)"
  180. height="calc(100% - 9.6rem)"
  181. @selection-change="handleSelectionChange"
  182. :data="deviceList">
  183. <el-table-column
  184. fixed
  185. type="selection"
  186. width="50">
  187. </el-table-column>
  188. <el-table-column
  189. label="Num"
  190. prop="webIndex"
  191. align="center"
  192. header-align="center"
  193. width="60">
  194. </el-table-column>
  195. <el-table-column
  196. v-for="(item) in deviceArr"
  197. :key="'table_'+item.prop"
  198. :prop="item.prop"
  199. :label="item.label"
  200. :align="item.align?item.align:'center'"
  201. :width="item.width"
  202. :show-overflow-tooltip="true"
  203. :min-width="item.minWidth">
  204. <template slot-scope="scope">
  205. <span v-if="item.prop != 'status'&&item.prop != 'lighteness'">{{scope.row[item.prop]}}{{item.unit?item.unit:''}}</span>
  206. <div v-if="item.prop == 'status'" class="status">
  207. <img src="../img/projectManagement/Online.png" v-if="scope.row[item.prop] == '1'">
  208. <img src="../img/projectManagement/Offline.png" v-if="scope.row[item.prop] == '0'" >
  209. </div>
  210. <div v-if="item.prop == 'lighteness'" class="Brightness">
  211. <div class="progress_outer" @click="brightnessAdjustment($event,scope.row)">
  212. <div class="progress_inner" :style="{'width':scope.row['lighteness']+'%'}">
  213. </div>
  214. <div class="text" :class="{'light50':scope.row['lighteness'] >55,'light0':scope.row['lighteness'] ==0}">{{scope.row['lighteness'] != 0 ? scope.row['lighteness']+'%':'off'}}</div>
  215. </div>
  216. <!-- <div style="position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;" ></div> -->
  217. </div>
  218. </template>
  219. </el-table-column>
  220. <el-table-column
  221. fixed="right"
  222. align="center"
  223. :width="12*remRatio"
  224. :label="'operation'">
  225. <template slot-scope="scope">
  226. <span class="btn" @click="seeFun(scope.row)" title="See">
  227. <i class="iconfont icon-chakanxiangqing"></i>
  228. </span>
  229. <span class="btn" @click="editFun(scope.row)" title="Edit">
  230. <i class="iconfont icon-bianji"></i>
  231. </span>
  232. <span class="btn" @click="historicalFun(scope.row)" title="Historical">
  233. <i class="iconfont icon-lishi"></i>
  234. </span>
  235. <span class="btn" @click="gisFun(scope.row,'GIS')" title="GIS">
  236. <i class="iconfont icon-GIS"></i>
  237. </span>
  238. <span class="btn" @click="monitorFun(scope.row)" title="Weather">
  239. <i class="iconfont icon-canshu"></i>
  240. </span>
  241. </template>
  242. </el-table-column>
  243. </el-table>
  244. <div class="pagination_box">
  245. <div class="left">
  246. <div class="totle">
  247. <span class="span1">Total</span>
  248. <span class="span2">{{total}}</span>
  249. </div>
  250. <div class="line"></div>
  251. <el-dropdown @command="commandDropdown" trigger="click" @visible-change="commandHide('dropdown_projectManagement_division')">
  252. <span class="el-dropdown-link">
  253. <span>{{pageSizeName}}</span><i class="el-icon-caret-bottom el-icon--right"></i>
  254. </span>
  255. <el-dropdown-menu slot="dropdown" class="scrollbar_style dropdown_projectManagement_pageSize">
  256. <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>
  257. </el-dropdown-menu>
  258. </el-dropdown>
  259. </div>
  260. <el-pagination
  261. @current-change="handleCurrentChange"
  262. :current-page="currentPage"
  263. :page-sizes="pageSizeArr"
  264. :page-size="pageSize"
  265. layout="prev, pager, next, jumper"
  266. :total="total">
  267. </el-pagination>
  268. </div>
  269. </div>
  270. </div>
  271. <div class="lamp_light_slider" v-show="lampLightSliderShow">
  272. <div class="bg" @click="lampLightSliderClose()"></div>
  273. <div class="box" :style="{'top':lampLightSliderPageY+'px','left':lampLightSliderPageX+'px'}">
  274. <div class="div1">
  275. <span></span><i></i>
  276. </div>
  277. <div class="div2">
  278. <div>
  279. <span>{{'brightness'}}: {{lampLightSlider}}%</span>
  280. <span @click="lampLightSliderSave()" v-loading="loading.lampLightSlider">{{'save'}}</span>
  281. </div>
  282. <div>
  283. <el-slider v-model="lampLightSlider"></el-slider>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. <!-- 添加/编辑项目弹框 -->
  289. <el-dialog
  290. :title="projectTitle"
  291. :visible.sync="addItemDialog"
  292. :close-on-click-modal="false"
  293. class="addItem_box"
  294. width="60%">
  295. <el-form ref="addItemData" label-width="120px" :model="addItemData" label-position="right" class="box">
  296. <el-row>
  297. <el-col :span="12" class="left_box">
  298. <el-form-item label="Project name:" prop="projectName" :rules="{required: true, message: 'Can not be empty', trigger: 'blur'}">
  299. <el-input v-model="addItemData.projectName" @keyup.native="projectKeydown($event)"></el-input>
  300. </el-form-item>
  301. <el-form-item label="Country:" prop="countryId" :rules="{required: true, message: 'Not null', trigger: 'change'}">
  302. <el-select v-model="addItemData.countryId" @change = "countryType" @keyup.native="projectKeydown($event)">
  303. <el-option
  304. v-for="item in countryList"
  305. :key="item.id"
  306. :label="item.name"
  307. :value="item.id">
  308. </el-option>
  309. </el-select>
  310. </el-form-item>
  311. <el-form-item label="City:" prop="cityId" :rules="{required: true, message: 'Not null', trigger: 'change'}" v-if="cityList.length > 0">
  312. <el-select v-model="addItemData.cityId" @change = "cityType" @keyup.native="projectKeydown($event)">
  313. <el-option
  314. v-for="item in cityList"
  315. :key="item.id"
  316. :label="item.name"
  317. :value="item.id">
  318. </el-option>
  319. </el-select>
  320. </el-form-item>
  321. <el-form-item label="City:" v-if="cityList.length == 0">
  322. <el-input v-model="addItemData.cityId" :disabled="true"></el-input>
  323. </el-form-item>
  324. </el-col>
  325. <el-col :span="12">
  326. <el-form-item label="Number:" prop="projectNo" :rules="{required: true, message: 'Can not be empty', trigger: 'blur'}">
  327. <el-input v-model="addItemData.projectNo" @keyup.native="projectKeydown($event)"></el-input>
  328. </el-form-item>
  329. <el-form-item label="Province:" prop="provinceId" :rules="{required: true, message:'Not null', trigger: 'change'}" v-if="provinceList.length > 0">
  330. <el-select v-model="addItemData.provinceId" @change = "provinceType" @keyup.native="projectKeydown($event)">
  331. <el-option
  332. v-for="item in provinceList"
  333. :key="item.id"
  334. :label="item.name"
  335. :value="item.id">
  336. </el-option>
  337. </el-select>
  338. </el-form-item>
  339. <el-form-item label="Province:" v-if="provinceList.length == 0">
  340. <el-input v-model="addItemData.provinceId" :disabled="true"></el-input>
  341. </el-form-item>
  342. <el-form-item label="Area:" prop="areaId" :rules="{required: true, message:'Not null', trigger: 'change'}" v-if="areaList.length > 0">
  343. <el-select v-model="addItemData.areaId" @keyup.native="projectKeydown($event)">
  344. <el-option
  345. v-for="item in areaList"
  346. :key="item.id"
  347. :label="item.name"
  348. :value="item.id">
  349. </el-option>
  350. </el-select>
  351. </el-form-item>
  352. <el-form-item label="Area:" v-if="areaList.length == 0">
  353. <el-input v-model="addItemData.areaId" :disabled="true"></el-input>
  354. </el-form-item>
  355. </el-col>
  356. </el-row>
  357. <el-form-item label="Inspection time:" prop="patrolinterval">
  358. <el-select v-model="addItemData.patrolinterval" style="width:100%" @keyup.native="projectKeydown($event)">
  359. <el-option key="0" value="0" :label="'Close inspection'"></el-option>
  360. <el-option key="5" value="5" :label="'5min'"></el-option>
  361. <el-option key="10" value="10" :label="'10min'"></el-option>
  362. <el-option key="30" value="30" :label="'30min'"></el-option>
  363. <el-option key="60" value="60" :label="'1h'"></el-option>
  364. <el-option key="120" value="120" :label="'2h'"></el-option>
  365. <el-option key="360" value="360" :label="'6h'"></el-option>
  366. <el-option key="720" value="720" :label="'12h'"></el-option>
  367. <el-option key="1440" value="1440" :label="'24h'"></el-option>
  368. </el-select>
  369. </el-form-item>
  370. <el-form-item label="Address:" prop="address">
  371. <el-input v-model="addItemData.address" type="textarea" @keyup.native="projectKeydown($event)"></el-input>
  372. </el-form-item>
  373. </el-form>
  374. <div class="dialog_foot">
  375. <el-button type="primary" @click="projectSaveFun()" v-loading="projectSaveLoading">{{projectButton}}</el-button>
  376. <span class="project_del" v-if="projectTitle == 'Edit Project'" @click="projectSaveDel()">{{'Delete Project'}}</span>
  377. </div>
  378. </el-dialog>
  379. <!-- 字段管理弹框 -->
  380. <el-dialog
  381. :title="'Field Management'"
  382. :visible.sync="fieldDialog"
  383. :close-on-click-modal="false"
  384. class="field_box"
  385. width="95%">
  386. <div class="clearfix" :class="{'fielf_box':(windowWidth < 1600 && version == 0)}">
  387. <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'">
  388. <div @click="fieldSelect(item)">
  389. <img src="../img/projectManagement/select.png" height="12" width="12" v-if="item.select=='1'">
  390. <span>{{item.enname}}</span>
  391. </div>
  392. </div>
  393. </div>
  394. <div class="dialog_foot">
  395. <el-button type="primary" @click="fieldKeep()" v-loading="loading.fieldKeep">{{'Save'}}</el-button>
  396. </div>
  397. </el-dialog>
  398. <!-- 表格详情弹框 -->
  399. <el-dialog
  400. title="Lamp Details"
  401. :visible.sync="detailsDialog"
  402. :close-on-click-modal="false"
  403. class="solar_dialig details_box"
  404. width="95%">
  405. <div class="wrap">
  406. <div class="nav clearfix" style="width: 550px;margin-left: -275px;">
  407. <div class="nav_list"
  408. :class="{'details_nav_select':detailsNavSelect==item.model}"
  409. v-for="item in detailsNavListEN"
  410. :key="item.label"
  411. @click="detailsNavSelectFun(item)"><span>{{item.label}}</span></div>
  412. </div>
  413. <div class="details_list_box clearfix" :class="{'details_list_box_EN':version == 0}" v-loading="loading.detailsFieldList">
  414. <div class="details_list" :class="{'details_list_min':(windowWidth < 1600 && version == 0)}" v-for="item in detailsFieldList" :key="item.key">
  415. <template v-if="!(lampcontrolListHC['devicetype'] == '1')&&!(item.model =='lighteness'&&lampLoadtype=='1')">
  416. <span v-if="item.unit">{{item.key+'('+item.unit+'):'}}</span>
  417. <span v-if="!item.unit">{{item.key+':'}}</span>
  418. <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>
  419. <span v-if="item.model && item.model=='lampstatus' && item.value == '0'" :title="'Off'">{{'Off'}}</span>
  420. <span v-if="item.model && item.model=='lampstatus' && item.value == '1'" :title="'On'">{{'On'}}</span>
  421. <span v-if="item.model && item.model=='status' && item.value == '0'" :title="'Not online'">{{'Not online'}}</span>
  422. <span v-if="item.model && item.model=='status' && item.value == '1'" :title="'Online'">{{'Online'}}</span>
  423. <span v-if="item.model && item.model=='battstatus' && item.value == '0'" :title="'idle'">{{'idle'}}</span>
  424. <span v-if="item.model && item.model=='battstatus' && item.value == '1'" :title="'Discharging'">{{'Discharging'}}</span>
  425. <span v-if="item.model && item.model=='battstatus' && item.value == '2'" :title="'Charging'">{{'Charging'}}</span>
  426. <span v-if="item.model && item.model=='battstatus' && item.value == '3'" :title="'Discharge while charging'">{{'Discharge while charging'}}</span>
  427. <span v-if="item.model && item.model=='chargestage' && (item.value == ''||item.value == null)" :title="'Unknown state'">{{'Unknown state'}}</span>
  428. <span v-if="item.model && item.model=='chargestage' && item.value == '0'" :title="'Uncharged'">{{'Uncharged'}}</span>
  429. <span v-if="item.model && item.model=='chargestage' && item.value == '1'" :title="'Start charging'">{{'Uncharged'}}</span>
  430. <span v-if="item.model && item.model=='chargestage' && item.value == '6'" :title="'Current limiting'">{{'Uncharged'}}</span>
  431. <span v-if="item.model && item.model=='chargestage' && item.value == '7'" :title="'Full'">{{'Uncharged'}}</span>
  432. <span v-if="item.model && item.model=='chargestage' && item.value == '16'" :title="'MPPT charging'">{{'MPPT charging'}}</span>
  433. <span v-if="item.model && item.model=='chargestage' && item.value == '32'" :title="'Balanced charge'">{{'Balanced charge'}}</span>
  434. <span v-if="item.model && item.model=='chargestage' && item.value == '48'" :title="'Increase charging'">{{'Increase charging'}}</span>
  435. <span v-if="item.model && item.model=='chargestage' && item.value == '64'" :title="'Floating charge'">{{'Floating charge'}}</span>
  436. <span v-if="!(item.value)">{{item.value}}</span>
  437. </template>
  438. </div>
  439. <div v-if="detailsFieldList.length == 0 && !loading.detailsFieldList" style="text-align:center;">
  440. {{'No relevant data was queried'}}
  441. </div>
  442. </div>
  443. </div>
  444. </el-dialog>
  445. <!-- 灯控添加编辑 -->
  446. <el-dialog
  447. :title="lightControlTitle"
  448. :visible.sync="addLightControlDialog"
  449. :close-on-click-modal="false"
  450. class="solar_dialig addLightControl_box"
  451. width="95%">
  452. <el-dialog
  453. width="80%"
  454. :title="'Lamp positioning'"
  455. :visible.sync="amapWrapper"
  456. :close-on-click-modal="false"
  457. append-to-body>
  458. <div class="lampAmapWrapper_box">
  459. <el-input class="screenMap" v-model="screenMap" @keyup.native="screenMapKeyUp($event)" :placeholder="'Please enter the keyword search'" clearable>
  460. <i slot="prefix" class="scree-icon el-icon-search" @click="screenMapChange(screenMap)"></i>
  461. </el-input>
  462. <div id="lampAmapWrapper">
  463. </div>
  464. </div>
  465. </el-dialog>
  466. <el-form label-width="200px" ref="lightControlData" :model="lightControlData" :rules="lightControlDataRulesEN" label-position="right" class="clearfix">
  467. <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">
  468. <el-input v-model="lightControlData[item.model]" v-if="item.type != 'select'&&item.type != 'select_filterable'&&item.model !='lamp_no'"
  469. @keyup.native="lampKeydown($event)"></el-input>
  470. <el-input-number v-model="lightControlData[item.model]" controls-position="right" :min="0" :max="999999" v-if="item.type != 'select'&&item.model =='lamp_no'"
  471. @keyup.native="lampKeydown($event)"></el-input-number>
  472. <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'protocoltype'" @keyup.native="lampKeydown($event)">
  473. <el-option :key="0" label="mqtt" :value="0"></el-option>
  474. </el-select>
  475. <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'poName'" @keyup.native="lampKeydown($event)">
  476. <el-option :key="item.id" :label="item.name" :value="item.id" v-for="item in companyNavPO"></el-option>
  477. </el-select>
  478. <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'supplierName'" @keyup.native="lampKeydown($event)">
  479. <el-option :key="item.id" :label="item.name" :value="item.id" v-for="item in companyNavSupplier"></el-option>
  480. </el-select>
  481. <el-select v-model="lightControlData[item.model]" placeholder="please choose" v-if="item.type == 'select' && item.model == 'loadtype'" @keyup.native="lampKeydown($event)">
  482. <el-option key="0" label="LED" value="0"></el-option>
  483. <el-option key="1" label="Insecticidal lamp" value="1"></el-option>
  484. </el-select>
  485. <el-select
  486. v-model="lightControlData[item.model]"
  487. placeholder="please choose"
  488. @keyup.native="lampKeydown($event)"
  489. v-if="item.type == 'select_filterable' && item.model == 'polematerial'">
  490. <el-option key="Cold galvanizing" label="Cold galvanizing" value="Cold galvanizing"></el-option>
  491. <el-option key="Hot galvanizing" label="Hot galvanizing" value="Hot galvanizing"></el-option>
  492. <el-option key="Stainless steel" label="Stainless steel" value="Stainless steel"></el-option>
  493. </el-select>
  494. <el-select
  495. v-model="lightControlData[item.model]"
  496. placeholder="please choose"
  497. @keyup.native="lampKeydown($event)"
  498. v-if="item.type == 'select_filterable' && item.model == 'lighttype'">
  499. <el-option key="LED lamp" label="LED lamp" value="LED lamp"></el-option>
  500. <el-option key="Sodium lamp" label="Sodium lamp" value="Sodium lamp"></el-option>
  501. <el-option key="Energy saving light" label="Energy saving light" value="Energy saving light"></el-option>
  502. </el-select>
  503. <el-select
  504. v-model="lightControlData[item.model]"
  505. placeholder="please choose"
  506. @keyup.native="lampKeydown($event)"
  507. v-if="item.type == 'select_filterable' && item.model == 'lamptype'">
  508. <el-option key="Solar street lamp" label="Solar street lamp" value="Solar street lamp" v-if="lampLoadtype == '0'"></el-option>
  509. <el-option key="Solar street lamp" label="Solar street lamp" value="Solar street lamp" v-if="lampLoadtype == '1'"></el-option>
  510. <el-option key="Landscape Insect trap" label="Landscape Insect trap" value="Landscape Insect trap"></el-option>
  511. <el-option key="Garden light" label="Garden light" value="Garden light"></el-option>
  512. </el-select>
  513. <el-select
  514. v-model="lightControlData[item.model]"
  515. placeholder="please choose"
  516. @keyup.native="lampKeydown($event)"
  517. v-if="item.type == 'select_filterable' && item.model == 'boardtype'">
  518. <el-option key="Single crystal plate" label="Single crystal plate" value="Single crystal plate"></el-option>
  519. <el-option key="Polycrystalline plate" label="Polycrystalline plate" value="Polycrystalline plate"></el-option>
  520. <el-option key="Amorphous plate" label="Amorphous plate" value="Amorphous plate"></el-option>
  521. </el-select>
  522. <el-select
  523. v-model="lightControlData[item.model]"
  524. placeholder="please choose"
  525. @keyup.native="lampKeydown($event)"
  526. v-if="item.type == 'select_filterable' && item.model == 'batterytype'">
  527. <el-option key="Lead acid battery" label="Lead acid battery" value="Lead acid battery"></el-option>
  528. <el-option key="Lithium battery" label="Lithium battery" value="Lithium battery"></el-option>
  529. <el-option key="Supercapacitor" label="Supercapacitor" value="Supercapacitor"></el-option>
  530. </el-select>
  531. </el-form-item>
  532. <img src="../img/projectManagement/location.png" width="40" height="40" style="margin-left: 20px;cursor: pointer;" @click="amapWrapperFun()">
  533. </el-form>
  534. <div class="dialog_foot">
  535. <el-button type="primary" @click="lightControlFun()">{{lightControlButton}}</el-button>
  536. </div>
  537. </el-dialog>
  538. <!-- 表格历史弹框 -->
  539. <el-dialog
  540. title="Historical Data"
  541. :visible.sync="historicalDialog"
  542. :close-on-click-modal="false"
  543. class="solar_dialig history_box"
  544. width="95%">
  545. <div class="wrap">
  546. <div class="main_list">
  547. <div class="main_list_title">
  548. <p>{{'Lamp number'}}</p>
  549. </div>
  550. <div class="main_list_box" :class="{'EN':version == '0'}">
  551. <div class="lamp_list scroll_show_all">
  552. <div class="li" :class="{'select':item.id==historicalLampId}" v-for="item in historicalLampList" @click="historicalLampClick(item.id)" :key="item.id">
  553. {{item.number}}
  554. </div>
  555. </div>
  556. <div class="historicalnav clearfix">
  557. <div class="nav_list"
  558. :class="{'details_nav_select':historicalNavSelect==item.model}"
  559. v-for="item in historicalNavListENFor" :key="item.id"
  560. @click="historicalNavSelectFun(item)"><span :title="item.label">{{item.label}}</span>
  561. </div>
  562. </div>
  563. </div>
  564. </div>
  565. <div class="main_box">
  566. <div class="screen_box" v-if="dataLSType == '1'">
  567. <el-pagination
  568. @current-change="handleCurrentChangeLS"
  569. :current-page.sync="currentPageLS"
  570. :page-size="16"
  571. layout="prev, pager, next, jumper"
  572. :total="totalLS">
  573. </el-pagination>
  574. <div>
  575. <div class="screen_date">
  576. <el-date-picker
  577. v-model="screenDateLS"
  578. format="MM-dd"
  579. value-format="yyyy-MM-dd"
  580. size="small"
  581. :clearable="false"
  582. prefix-icon=" "
  583. type="daterange"
  584. range-separator="-"
  585. start-placeholder=""
  586. end-placeholder="">
  587. </el-date-picker>
  588. <el-button size="small" @click="screenDateFun()">{{'Determine'}}<i class="el-icon-arrow-right"></i></el-button>
  589. </div>
  590. <el-button round size="small" @click="exportTableLS()" v-loading="loading.exportTableLS">{{'Export'}}</el-button>
  591. </div>
  592. </div>
  593. <el-table
  594. v-if="dataLSType == '1'"
  595. ref="multipleTable"
  596. v-loading="historicalTableLoading"
  597. :data="historicalTableData"
  598. border
  599. align="center"
  600. style="width: 100%;"
  601. height="calc(100% - 11.5rem)">
  602. <el-table-column
  603. label="Number"
  604. prop="LSLD_index"
  605. align="center"
  606. :show-overflow-tooltip="true"
  607. width="82">
  608. </el-table-column>
  609. <template>
  610. <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">
  611. <template slot-scope="scope">
  612. <span v-if="item.prop !='lampstatus' && item.prop !='battstatus' && item.prop !='chargestage'">{{scope.row[item.prop]}}</span>
  613. <span v-if="item.prop=='lampstatus'&&scope.row[item.prop]=='1'">on</span>
  614. <span v-if="item.prop=='lampstatus'&&scope.row[item.prop]=='0'">off</span>
  615. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='0'">free</span>
  616. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='1'">discharge</span>
  617. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='2'">Charge</span>
  618. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='3'">Discharge while charging</span>
  619. <template>
  620. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='0'">No charge</span>
  621. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='1'">Start charging</span>
  622. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='6'">Current limiting</span>
  623. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='7'">Full</span>
  624. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='16'">MPPT charging</span>
  625. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='32'">Equalizing charging</span>
  626. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='48'">Boost charging</span>
  627. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='64'">floating charge</span>
  628. </template>
  629. </template>
  630. </el-table-column>
  631. </template>
  632. <!-- <el-table-column :show-overflow-tooltip="true" header-align="center" prop="updatetime" label="更新时间" width="160px" v-if="version == 0">
  633. </el-table-column> -->
  634. <el-table-column :show-overflow-tooltip="true" header-align="center" prop="updatetime" label="Update time" width="160px">
  635. </el-table-column>
  636. </el-table>
  637. <div v-if="dataLSType == '0'" class="LS_echarts">
  638. <div class="left_echarts">
  639. <div class="echarts_top">
  640. <div></div>
  641. <div>
  642. <div class="screen_date_select">
  643. <div class="li" :class="{'select':LSDataType == '0'}" @click="LSDataTypeFun('0',1)">1{{'Day'}}</div>
  644. <div class="li" :class="{'select':LSDataType == '1'}" @click="LSDataTypeFun('1',3)">3{{'Day'}}</div>
  645. <div class="li" :class="{'select':LSDataType == '2'}" @click="LSDataTypeFun('2',7)">7{{'Day'}}</div>
  646. <div class="li" :class="{'select':LSDataType == '3'}" @click="LSDataTypeFun('3',14)">14{{'Day'}}</div>
  647. </div>
  648. <div class="screen_date">
  649. <el-date-picker
  650. v-model="screenDateLS"
  651. format="MM-dd"
  652. value-format="yyyy-MM-dd"
  653. size="small"
  654. :clearable="false"
  655. prefix-icon=" "
  656. type="daterange"
  657. range-separator="-"
  658. start-placeholder=""
  659. end-placeholder="">
  660. </el-date-picker>
  661. <el-button size="small" @click="screenDateFun()">{{'Determine'}}<i class="el-icon-arrow-right"></i></el-button>
  662. </div>
  663. </div>
  664. </div>
  665. <div class="history_echarts" v-loading="loading.historyEcharts" v-show="historyDataInfo.list.updatetime"></div>
  666. <div class="history_echarts_noData" v-show="!historyDataInfo.list.updatetime">
  667. <h3>{{'No data can be queried'}}</h3>
  668. </div>
  669. <div class="echarts_bottom echarts_line">
  670. <div class="echarts_bottom_text">{{'sampling period'}}: {{historyDataInfo.patrolinterval}}{{'minutes'}}</div>
  671. <div class="data_type_nav">
  672. <div class="li" :class="{'select':dataLSType == '0'}" @click="dataLSTypeFun('0')">{{'Diagram'}}</div>
  673. <div class="li" :class="{'select':dataLSType == '1'}" @click="dataLSTypeFun('1')">{{'list'}}</div>
  674. </div>
  675. </div>
  676. </div>
  677. <div class="left_data">
  678. <p><img src="../img/projectManagement/data.png">{{'Statistical extremum'}}</p>
  679. <div class="ul" :class="{'EN':version == '0'}">
  680. <div class="li" v-if="historicalNavSelect != '3'">
  681. <span class="span1">{{'Maximum voltage'}}</span>
  682. <span class="span_r">
  683. <span class="span2" :title="historyDataInfo.maxvoltage">{{historyDataInfo.maxvoltage}}</span>
  684. <span class="span3">V</span>
  685. </span>
  686. </div>
  687. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  688. <span class="span1">{{'Minimum voltage'}}</span>
  689. <span class="span_r">
  690. <span class="span2" :title="historyDataInfo.minvoltage">{{historyDataInfo.minvoltage}}</span>
  691. <span class="span3">V</span>
  692. </span>
  693. </div>
  694. <div class="li" v-if="historicalNavSelect != '3'&&historicalNavSelect != 'battery_info_log'">
  695. <span class="span1">{{'Maximum current'}}</span>
  696. <span class="span_r">
  697. <span class="span2" :title="historyDataInfo.maxcurrent">{{historyDataInfo.maxcurrent}}</span>
  698. <span class="span3">A</span>
  699. </span>
  700. </div>
  701. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  702. <span class="span1">{{'Max charging current'}}</span>
  703. <span class="span_r">
  704. <span class="span2" :title="historyDataInfo.maxcurrent">{{historyDataInfo.maxcurrent}}</span>
  705. <span class="span3">A</span>
  706. </span>
  707. </div>
  708. <div class="li" v-if="historicalNavSelect =='battery_info_log'">
  709. <span class="span1">{{'Max discharge current'}}</span>
  710. <span class="span_r">
  711. <span class="span2" :title="historyDataInfo.mincurrent">{{historyDataInfo.mincurrent}}</span>
  712. <span class="span3">A</span>
  713. </span>
  714. </div>
  715. <div class="li" v-if="historicalNavSelect =='battery_info_log'">
  716. <span class="span1">{{'Max charging power'}}</span>
  717. <span class="span_r">
  718. <span class="span2" :title="historyDataInfo.maxpower">{{historyDataInfo.maxpower}}</span>
  719. <span class="span3">W</span>
  720. </span>
  721. </div>
  722. <div class="li" v-if="historicalNavSelect != '3'&&historicalNavSelect != 'battery_info_log'">
  723. <span class="span1">{{'maximum power'}}</span>
  724. <span class="span_r">
  725. <span class="span2" :title="historyDataInfo.maxpower">{{historyDataInfo.maxpower}}</span>
  726. <span class="span3">W</span>
  727. </span>
  728. </div>
  729. <div class="li" v-if="historicalNavSelect =='battery_info_log'">
  730. <span class="span1">{{'Max discharge power'}}</span>
  731. <span class="span_r">
  732. <span class="span2" :title="historyDataInfo.minpower">{{historyDataInfo.minpower}}</span>
  733. <span class="span3">W</span>
  734. </span>
  735. </div>
  736. <div class="li" v-if="historicalNavSelect == 'lamp_info_log'">
  737. <span class="span1">{{'Maximum brightness'}}</span>
  738. <span class="span_r">
  739. <span class="span2" :title="historyDataInfo.maxlighteness">{{historyDataInfo.maxlighteness}}</span>
  740. <span class="span3">%</span>
  741. </span>
  742. </div>
  743. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  744. <span class="span1">{{'Max temperature'}}</span>
  745. <span class="span_r">
  746. <span class="span2" :title="historyDataInfo.maxbatttemper">{{historyDataInfo.maxbatttemper}}</span>
  747. <span class="span3">℃</span>
  748. </span>
  749. </div>
  750. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  751. <span class="span1">{{'Min temperature'}}</span>
  752. <span class="span_r">
  753. <span class="span2" :title="historyDataInfo.minbatttemper">{{historyDataInfo.minbatttemper}}</span>
  754. <span class="span3">℃</span>
  755. </span>
  756. </div>
  757. <div class="li" v-if="historicalNavSelect == 'solar_info_log'">
  758. <span class="span1">{{'Charging time'}}</span>
  759. <span class="span_r">
  760. <span class="span2">{{historyDataInfo.maxdaydischargemincurrent}}</span>
  761. <!-- <span class="span3"></span> -->
  762. </span>
  763. </div>
  764. <div class="li" v-if="historicalNavSelect == 'lamp_info_log'">
  765. <span class="span1">{{'Lights on time'}}</span>
  766. <span class="span_r">
  767. <span class="span2">{{historyDataInfo.maxdaychargemincurrent}}</span>
  768. <!-- <span class="span3">%</span> -->
  769. </span>
  770. </div>
  771. <div class="li" v-if="historicalNavSelect == '3'">
  772. <span class="span1">{{'Max charge ampere hours'}}</span>
  773. <span class="span_r">
  774. <span class="span2" :title="historyDataInfo.maxdaychargeah">{{historyDataInfo.maxdaychargeah}}</span>
  775. <span class="span3">AH</span>
  776. </span>
  777. </div>
  778. <div class="li" v-if="historicalNavSelect == '3'">
  779. <span class="span1">{{'Min charge ampere hours'}}</span>
  780. <span class="span_r">
  781. <span class="span2" :title="historyDataInfo.mindaychargeah">{{historyDataInfo.mindaychargeah}}</span>
  782. <span class="span3">AH</span>
  783. </span>
  784. </div>
  785. <div class="li" v-if="historicalNavSelect == '3'">
  786. <span class="span1">{{'Max discharge amperes'}}</span>
  787. <span class="span_r">
  788. <span class="span2" :title="historyDataInfo.maxdaydischarah">{{historyDataInfo.maxdaydischarah}}</span>
  789. <span class="span3">AH</span>
  790. </span>
  791. </div>
  792. <div class="li" v-if="historicalNavSelect == '3'">
  793. <span class="span1">{{'Min discharge amperes'}}</span>
  794. <span class="span_r">
  795. <span class="span2" :title="historyDataInfo.mindaydischarah">{{historyDataInfo.mindaydischarah}}</span>
  796. <span class="span3">AH</span>
  797. </span>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. <div class="echarts_bottom" v-if="dataLSType == '1'">
  803. <div class="data_type_nav">
  804. <div class="li" :class="{'select':dataLSType == '0'}" @click="dataLSTypeFun('0')">{{'Diagram'}}</div>
  805. <div class="li" :class="{'select':dataLSType == '1'}" @click="dataLSTypeFun('1')">{{'list'}}</div>
  806. </div>
  807. </div>
  808. </div>
  809. </div>
  810. </el-dialog>
  811. <!-- 参数弹框 -->
  812. <el-dialog
  813. :visible.sync="monitorDialog"
  814. :close-on-click-modal="false"
  815. :close-on-press-escape="!loading.loadSetting&&!loading.batterySetting"
  816. :show-close="!loading.loadSetting&&!loading.batterySetting"
  817. class="monitor_box"
  818. width="95%">
  819. <div class="wrap">
  820. <div class="nav clearfix">
  821. <div @click="monitorSwitchFun('loadParameters')" class="parameter_nav" :class="{'monitor_type':monitorType=='loadParameters'}"><span>{{'Load parameter'}}</span></div>
  822. <div @click="monitorSwitchFun('batteryParameters')" class="parameter_nav" :class="{'monitor_type':monitorType=='batteryParameters'}"><span>{{'Battery parameters'}}</span></div>
  823. </div>
  824. <div class="button" v-if="monitorType=='loadParameters'">
  825. <el-button round icon="el-icon-refresh" v-if="!loading.loadSetting&&batchModificationParameters" @click="loadSettingFun()">Get parameters</el-button>
  826. <el-button round icon="el-icon-refresh" v-if="loading.loadSetting&&batchModificationParameters" v-loading="loading.loadSetting">Getting parameters</el-button>
  827. </div>
  828. <div class="button" v-if="monitorType=='batteryParameters'">
  829. <el-button round icon="el-icon-refresh" v-if="!loading.batterySetting" @click="batterySettingFun()">Get parameters</el-button>
  830. <el-button round icon="el-icon-refresh" v-if="loading.batterySetting" v-loading="loading.batterySetting">Getting parameters</el-button>
  831. </div>
  832. <div class="box clearfix">
  833. <el-form label-width="260px" ref="loadParametersData" :model="loadParametersData" label-position="right" class="clearfix" v-if="monitorType=='loadParameters'">
  834. <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':''"
  835. :style="{'visibility':
  836. ((item.model=='begin_voltage'||item.model=='end_voltage'||item.model=='end_current')&&loadParametersData['intell_power']!='5')
  837. ||
  838. ((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')))
  839. ?'hidden':'',
  840. 'width':
  841. (item.model!='intell_power'&&item.model!='light_type')?'33.33%':'50%'}">
  842. <el-input v-model="loadParametersData[item.model]" v-if="item.type == 'input'" :disabled="!loadSettingIsTrue||!parameterLoadIsEdit"></el-input>
  843. <el-select v-model="loadParametersData[item.model]" v-if="item.type == 'select'" :disabled="!loadSettingIsTrue||!parameterLoadIsEdit">
  844. <el-option
  845. v-for="item in option[item.option]"
  846. :key="item.id"
  847. :label="item.name"
  848. :value="item.id">
  849. </el-option>
  850. </el-select>
  851. <!-- :controls="false" -->
  852. <el-input-number
  853. v-if="item.type == 'number'"
  854. controls-position="right"
  855. :disabled="!loadSettingIsTrue||!parameterLoadIsEdit"
  856. :max="item.max" :min="item.min" :precision="item.precision" :step="item.step"
  857. v-model="loadParametersData[item.model]">
  858. </el-input-number>
  859. <el-time-picker
  860. v-if="item.type == 'timeSelect'"
  861. v-model="loadParametersData[item.model]"
  862. :disabled="!loadSettingIsTrue||!parameterLoadIsEdit"
  863. :picker-options="{
  864. selectableRange: '00:00:00 - 15:00:00'
  865. }"
  866. format="HH:mm">
  867. </el-time-picker>
  868. </el-form-item>
  869. </el-form>
  870. <el-form label-width="260px" ref="batteryParametersData" :model="batteryParametersData" label-position="right" class="clearfix" v-if="monitorType=='batteryParameters'">
  871. <!-- {model:'',label:'',unit:'',type:'select',option:'batteryListEN'}, -->
  872. <el-form-item label="Battery type:" class="list_boxEN" prop="batterytype">
  873. <el-select v-model="batteryParametersData['battery_type']" :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit">
  874. <el-option
  875. v-for="item in option['batteryListEN']"
  876. :key="item.id"
  877. :label="item.name"
  878. :value="item.id">
  879. </el-option>
  880. </el-select>
  881. </el-form-item>
  882. <template>
  883. <el-form-item v-for="(item) in batteryParametersList1EN" :label="item.label+item.unit+':'" :key="item.id" class="list_boxEN" :prop="item.model">
  884. <el-input v-model="batteryParametersData[item.model]" v-if="item.type == 'input'" :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit"></el-input>
  885. <el-select v-model="batteryParametersData[item.model]" v-if="item.type == 'select'" :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit">
  886. <el-option
  887. v-for="item in option[item.option]"
  888. :key="item.id"
  889. :label="item.name"
  890. :value="item.id">
  891. </el-option>
  892. </el-select>
  893. <!-- :controls="false" -->
  894. <el-input-number
  895. v-if="item.type == 'number'"
  896. controls-position="right"
  897. :disabled="!batterySettingIsTrue||!parameterBatteryIsEdit"
  898. :max="item.max" :min="item.min" :precision="item.precision" :step="item.step"
  899. v-model="batteryParametersData[item.model]">
  900. </el-input-number>
  901. </el-form-item>
  902. </template>
  903. </el-form>
  904. </div>
  905. </div>
  906. <div class="dialog_foot" v-if="monitorType=='loadParameters'">
  907. <el-button type="primary" :disabled="!loadSettingIsTrue" v-if="!parameterLoadIsEdit" @click="parameterLoadIsEdit = true">Modify</el-button>
  908. <el-button type="text" :disabled="!loadSettingIsTrue" v-if="!parameterLoadIsEdit" @click="monitorDialog = false">Close</el-button>
  909. <el-button type="primary" :disabled="!loadSettingIsTrue" v-if="parameterLoadIsEdit&&!loading.setLoadFun" @click="setLoadFun()">Save</el-button>
  910. <el-button type="text" :disabled="!loadSettingIsTrue" v-if="parameterLoadIsEdit&&!loading.setLoadFun" @click="loadNoEditFun()">Cancel save</el-button>
  911. <el-button type="primary" v-if="loading.setLoadFun&&parameterLoadIsEdit" v-loading="loading.setLoadFun">Setting parameters</el-button>
  912. </div>
  913. <div class="dialog_foot" v-if="monitorType=='batteryParameters'">
  914. <el-button type="primary" :disabled="!batterySettingIsTrue" v-if="!parameterBatteryIsEdit" @click="parameterBatteryIsEdit = true">Modify</el-button>
  915. <el-button type="text" :disabled="!batterySettingIsTrue||!loadSettingIsTrue" v-if="!parameterBatteryIsEdit" @click="monitorDialog = false">Close</el-button>
  916. <el-button type="primary" :disabled="!batterySettingIsTrue" v-if="parameterBatteryIsEdit&&!loading.setBatteryFun" @click="setBatteryFun()">Save</el-button>
  917. <el-button type="text" :disabled="!batterySettingIsTrue" v-if="parameterBatteryIsEdit&&!loading.setBatteryFun" @click="batteryNoEditFun()">Cancel save</el-button>
  918. <el-button type="primary" v-if="loading.setBatteryFun&&parameterBatteryIsEdit" v-loading="loading.setBatteryFun">Setting parameters</el-button>
  919. </div>
  920. </el-dialog>
  921. </div>
  922. </template>
  923. <script type="text/javascript">
  924. import allUrl from '../api/allUel.js'
  925. import baseApi from '../api/base.js'
  926. import { mapGetters } from 'vuex'
  927. import sideBarIdcol from '../components/sideBar_idcol.vue'
  928. export default {
  929. name:'projectManagement',
  930. data(){
  931. return{
  932. keywords:'',
  933. division:'',
  934. networkId:'0',
  935. lamptype:1,
  936. legendWidth:'',
  937. divisionNav:[{id:'0',name:'All'}],
  938. rightDate:'',
  939. rightDateNav:[{id:'0',name:'Today'}],
  940. myChart1:'',
  941. lampLightSlider:0,
  942. lampLightSliderShow:false,
  943. lampLightSliderPageX:0,
  944. lampLightSliderPageY:0,
  945. roadId:null,
  946. projectId:0,
  947. companyId:'',
  948. detailData:{},
  949. weatherList:[{
  950. code: null,
  951. date: null,
  952. dateStr: null,
  953. sr: null,
  954. ss: null,
  955. tmp: 28
  956. }],
  957. /*表格*/
  958. tabNavList:[],
  959. deviceList:[],
  960. multipleSelection:[],
  961. lampcontrolOperationType:'-1',
  962. deviceArr:[],
  963. tableConfig:{
  964. label:[],
  965. prop:[],
  966. prop1:[],
  967. width:[],
  968. sortable:[],
  969. },
  970. offline:0,
  971. online:0,
  972. alarmtype:0,
  973. status:0,
  974. deviceTotalData:{
  975. light_num:0,
  976. online_num:0,
  977. fault_count:0,
  978. network_num:0,
  979. },
  980. /*侧边栏*/
  981. projectNav:[{id: "17247",name: "0--0",number:7,isOpen:false,project_list: [{id: "17582", projectname: "太阳能路灯", lampcount: "2"}]}],
  982. sideBarType:'off',
  983. /*项目弹框*/
  984. projectSaveLoading:false,
  985. projectTitle:'新建项目',
  986. projectButton:'立 刻 创 建',
  987. projectList:[],
  988. provinceList:[],
  989. countryList:[],
  990. cityList:[],
  991. areaList:[],
  992. batchProcessing:'off',
  993. fieldDialog:false,
  994. fieldList:[],
  995. /*参数弹框*/
  996. companyNavPO:[],
  997. companyNavSupplier:[],
  998. detailsDialog:false,
  999. detailsNavSelect:'lamp_info_log',
  1000. detailsNavList:[{model:'lamp_info_log',label:'路灯'},{model:'lampinfo',label:'配置'},{model:'system_info_log',label:'系统'},{model:'solar_info_log',label:'太阳能板'},{model:'battery_info_log',label:'蓄电池'}],
  1001. 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'}],
  1002. detailsFieldList:[],
  1003. addItemDialog:false,
  1004. addItemData:{
  1005. projectName:'',
  1006. projectNo:'',
  1007. customer:'',
  1008. countryId:'',
  1009. provinceId:'',
  1010. cityId:'',
  1011. areaId:'',
  1012. zoneId:'',
  1013. address:'',
  1014. company:'',
  1015. timezone:'',
  1016. patrolinterval:'',
  1017. },
  1018. addLightControlDialog:false,
  1019. lightControlData:{
  1020. lamp_no:'',
  1021. status:'',
  1022. section:'',
  1023. address:'',
  1024. poleheight:'',
  1025. polediameter:'',
  1026. polematerial:'',
  1027. lighttype:'',
  1028. lamptype:'',
  1029. boardtype:'',
  1030. batterytype:'',
  1031. boardpower:'',
  1032. batteryah:'',
  1033. loadpower:'',
  1034. longitude:'',
  1035. latitude:'',
  1036. poName:'',
  1037. supplierName:'',
  1038. protocoltype:'',
  1039. loadtype:'0',
  1040. },
  1041. lightControlListEN:[
  1042. {model:'lamp_no',label:'Lamp number',unit:''},
  1043. {model:'poName',label:'PO name',type:'select',unit:''},
  1044. {model:'supplierName',label:'Supplier name',type:'select',unit:''},
  1045. {model:'protocoltype',label:'Network protocol type',type:"select",unit:''},{model:'section',label:'Road',unit:''},{model:'address',label:'Wireless module address',unit:''},
  1046. // {model:'poleheight',label:'Lamp-post length',unit:'(m)'},
  1047. // {model:'polediameter',label:'Lamp-post diameter',unit:'(mm)'},
  1048. // {model:'polematerial',label:'Lamp-post materials',type:"select_filterable",unit:''},
  1049. // {model:'lighttype',label:'Light type',type:"select_filterable",unit:''},
  1050. {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)'},
  1051. {model:'loadtype',label:'Load type',unit:'',type:"select"},
  1052. {model:'longitude',label:'Longitude',unit:''},
  1053. {model:'latitude',label:'Latitude',unit:''}
  1054. ],
  1055. lightControlListEN_for:[
  1056. {model:'lamp_no',label:'Lamp number',unit:''},
  1057. {model:'poName',label:'PO name',type:'select',unit:''},
  1058. {model:'supplierName',label:'Supplier name',type:'select',unit:''},
  1059. {model:'protocoltype',label:'Network protocol type',type:"select",unit:''},{model:'section',label:'Road',unit:''},{model:'address',label:'Wireless module address',unit:''},
  1060. // {model:'poleheight',label:'Lamp-post length',unit:'(m)'},
  1061. // {model:'polediameter',label:'Lamp-post diameter',unit:'(mm)'},
  1062. // {model:'polematerial',label:'Lamp-post materials',type:"select_filterable",unit:''},
  1063. // {model:'lighttype',label:'Light type',type:"select_filterable",unit:''},
  1064. {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)'},
  1065. {model:'loadtype',label:'Load type',unit:'',type:"select"},
  1066. {model:'longitude',label:'Longitude',unit:''},
  1067. {model:'latitude',label:'Latitude',unit:''}
  1068. ],
  1069. 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:''}],
  1070. /*添加编辑灯控*/
  1071. lightControlTitle:'创建灯控',
  1072. lightControlButton:'立 刻 创 建',
  1073. lampcontrolListHC:{},
  1074. lightControlDataRules:{
  1075. lamp_no: [
  1076. { required: true, message: '不能为空'},
  1077. ],
  1078. address: [
  1079. { required: true, message: '不能为空', trigger: 'blur' }
  1080. ],
  1081. protocoltype: [
  1082. { required: true, message: '不能为空', trigger: 'blur' }
  1083. ],
  1084. section:[
  1085. { required: true, message: '不能为空', trigger: 'blur' }
  1086. ],
  1087. },
  1088. lightControlDataRulesEN:{
  1089. lamp_no: [
  1090. { required: true, message: 'Not null'},
  1091. ],
  1092. address: [
  1093. { required: true, message: 'Not null', trigger: 'blur' }
  1094. ],
  1095. protocoltype: [
  1096. { required: true, message: 'Not null', trigger: 'blur' }
  1097. ],
  1098. section:[
  1099. { required: true, message: 'Not null', trigger: 'blur' }
  1100. ],
  1101. },
  1102. lampLoadtype:'',
  1103. screenMap:'',
  1104. amapWrapper:false,
  1105. map:null,
  1106. lampLongitude:0,
  1107. lampLatitude:0,
  1108. networkList:[],
  1109. /*灯控历史*/
  1110. // historicalNavList:[{model:'lamp_info_log',label:'路灯'},{model:'system_info_log',label:'系统'},{model:'battery_info_log',label:'蓄电池'},{model:'solar_info_log',label:'太阳能板'},{model:'3',label:'充放电量'}],
  1111. historicalNavListEN:[
  1112. {model:'lamp_info_log',label:'Lamp'},
  1113. // {model:'system_info_log',label:'system'},
  1114. {model:'battery_info_log',label:'Battery'},
  1115. {model:'solar_info_log',label:'Solar panels'},
  1116. {model:'3',label:'Capacity'}
  1117. ],
  1118. historicalTableData:[],
  1119. historicalTableList:[],
  1120. screenDateLS:'',
  1121. historyDataInfo:{
  1122. list:{}
  1123. },
  1124. historicalLampList:[],
  1125. historicalLampId:'',
  1126. dataLSType:'0',
  1127. LSDataType:'0',
  1128. currentPageLS:1,
  1129. totalLS:0,
  1130. historicalTableLoading:false,
  1131. historicalDialog:false,
  1132. historicalNavSelect:'lamp_info_log',
  1133. batchDimmingVal:0,
  1134. windowWidth:0,
  1135. positionPicker:null,
  1136. geocoder:null,
  1137. mapDWIsTrue:false,
  1138. mpaDWTimeOut:null,
  1139. parameterLoadIsEdit:false,
  1140. parameterBatteryIsEdit:false,
  1141. batchModificationParameters:true,
  1142. googleMapLocattion:true,
  1143. 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:'当天亮灯时间'}],
  1144. 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'}],
  1145. system_info_logTableList:[{prop:'sysvoltage',label:'系统电压',unit:'(V)'},{prop:'syscurrent',label:'系统电流',unit:'(A)'},{prop:'temper',label:'控制器温度',unit:'(℃)'}],
  1146. system_info_logTableListEN:[{prop:'sysvoltage',label:'System voltage(V)'},{prop:'syscurrent',label:'System current(A)'},{prop:'temper',label:'Controller temperature(℃)'}],
  1147. 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:''}],
  1148. 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:''}],
  1149. 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:'当天充电时间'}],
  1150. 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)'}],
  1151. /*路灯负载参数*/
  1152. loadParametersData:{},
  1153. loadParametersList:[],
  1154. loadParametersDataOld:{
  1155. workmode:'',
  1156. worktimefirst:'',
  1157. workpowerfirst:'',
  1158. worktimesencond:'',
  1159. workpowersencond:'',
  1160. worktimethird:'',
  1161. workpowerthird:'',
  1162. worktimeforth:'',
  1163. workpowerforth:'',
  1164. voptically:'',
  1165. delaytime:'',
  1166. ledloadcurrent:'',
  1167. powercmd:'',
  1168. switchfeature:'',
  1169. },
  1170. loadParametersDataHC:{},
  1171. loadParametersListOld:[
  1172. {model:'workmode',label:'路灯负载模式',unit:'',type:'select',option:'workmodeList'},
  1173. {model:'worktimefirst',label:'第一阶段工作时间',unit:'(H)',type:'input'},
  1174. {model:'workpowerfirst',label:'第一阶段工作功率',unit:'(%)',type:'input'},
  1175. {model:'worktimesencond',label:'第二阶段工作时间',unit:'(H)',type:'input'},
  1176. {model:'workpowersencond',label:'第二阶段工作功率',unit:'(%)',type:'input'},
  1177. {model:'worktimethird',label:'第三阶段工作时间',unit:'(H)',type:'input'},
  1178. {model:'workpowerthird',label:'第三阶段工作功率',unit:'(%)',type:'input'},
  1179. {model:'worktimeforth',label:'晨亮时间',unit:'(H)',type:'input'},
  1180. {model:'workpowerforth',label:'晨亮功率',unit:'(%)',type:'input'},
  1181. {model:'voptically',label:'光控电压',unit:'(V)',type:'input'},
  1182. {model:'delaytime',label:'光控延时时间',unit:'(Min)',type:'select',option:'timeList'},
  1183. {model:'ledloadcurrent',label:'LED负载电流',unit:'(mA)',type:'input'},
  1184. {model:'powercmd',label:'智能功率控制',unit:'',type:'select',option:'onOff'},
  1185. {model:'switchfeature',label:'每晚亮灯功能',unit:'',type:'select',option:'onOff'},
  1186. ],
  1187. catcherloadParametersListOld:[
  1188. {model:'workmode',label:'杀虫灯负载模式',unit:'',type:'select',option:'workmodeList'},
  1189. {model:'worktimefirst',label:'第一阶段工作时间',unit:'(H)',type:'input'},
  1190. {model:'worktimesencond',label:'第二阶段工作时间',unit:'(H)',type:'input'},
  1191. {model:'worktimethird',label:'第三阶段工作时间',unit:'(H)',type:'input'},
  1192. {model:'worktimeforth',label:'晨亮时间',unit:'(H)',type:'input'},
  1193. {model:'voptically',label:'光控电压',unit:'(V)',type:'input'},
  1194. {model:'delaytime',label:'光控延时时间',unit:'(Min)',type:'select',option:'timeList'},
  1195. {model:'ledloadcurrent',label:'LED负载电流',unit:'(mA)',type:'input'},
  1196. {model:'powercmd',label:'智能功率控制',unit:'',type:'select',option:'onOff'},
  1197. {model:'switchfeature',label:'每晚亮灯功能',unit:'',type:'select',option:'onOff'},
  1198. ],
  1199. catcherloadParametersListNew:[
  1200. {model:'intell_power',label:'智能功率',unit:'',type:'select',option:'intell_power'},
  1201. {model:'begin_voltage',label:'智能功率USER1起始电压',unit:'V',type:'select',option:'intell_powerV'},
  1202. {model:'end_voltage',label:'智能功率USER1终止电压',unit:'V',type:'select',option:'intell_powerV'},
  1203. {model:'end_current',label:'智能功率USER1终止电流 ',unit:'A',type:'select',option:'intell_powerC'},
  1204. {model:'load_current',label:'负载电流',unit:'(A)',type:'select',option:'load_current'},
  1205. {model:'light_delay',label:'光控延时',unit:'',type:'select',option:'light_delay'},
  1206. {model:'induction_delay',label:'感应延时',unit:'(S)',type:'select',option:'induction_delay'},
  1207. {model:'first_light_time',label:'第一段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1208. {model:'second_light_time',label:'第二段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1209. {model:'third_light_time',label:'第三段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1210. {model:'tenth_light_time',label:'晨亮时间',unit:'(HH:MM)',type:'timeSelect'},
  1211. ],
  1212. loadParametersDataNew:{
  1213. light_voltage:'',
  1214. intell_power:'',
  1215. // load_current:'',
  1216. // light_delay:'',
  1217. // induction_delay:'',
  1218. first_light_time:'',
  1219. first_light_human_power:'',
  1220. first_light_unman_power:'',
  1221. second_light_time:'',
  1222. second_light_human_power:'',
  1223. second_light_unman_power:'',
  1224. third_light_time:'',
  1225. third_light_human_power:'',
  1226. third_light_unman_power:'',
  1227. fourth_light_time:'',
  1228. fourth_light_human_power:'',
  1229. fourth_light_unman_power:'',
  1230. fifth_light_time:'',
  1231. fifth_light_human_power:'',
  1232. fifth_light_unman_power:'',
  1233. sixth_light_time:'',
  1234. sixth_light_human_power:'',
  1235. sixth_light_unman_power:'',
  1236. seventh_light_time:'',
  1237. seventh_light_human_power:'',
  1238. seventh_light_unman_power:'',
  1239. // eighth_light_time:'',
  1240. // eighth_light_human_power:'',
  1241. // eighth_light_unman_power:'',
  1242. // ninth_light_time:'',
  1243. // ninth_light_human_power:'',
  1244. // ninth_light_unman_power:'',
  1245. tenth_light_time:'',
  1246. tenth_light_human_power:'',
  1247. tenth_light_unman_power:'',
  1248. // begin_voltage:'',
  1249. // end_voltage:'',
  1250. // end_current:'',
  1251. },
  1252. loadParametersListNew:[
  1253. {model:'intell_power',label:'智能功率',unit:'',type:'select',option:'intell_power'},
  1254. {model:'begin_voltage',label:'智能功率USER1起始电压',unit:'V',type:'select',option:'intell_powerV'},
  1255. {model:'end_voltage',label:'智能功率USER1终止电压',unit:'V',type:'select',option:'intell_powerV'},
  1256. {model:'end_current',label:'智能功率USER1终止电流 ',unit:'A',type:'select',option:'intell_powerC'},
  1257. {model:'load_current',label:'负载电流',unit:'(A)',type:'select',option:'load_current'},
  1258. {model:'light_delay',label:'光控延时',unit:'',type:'select',option:'light_delay'},
  1259. {model:'induction_delay',label:'感应延时',unit:'(S)',type:'select',option:'induction_delay'},
  1260. {model:'first_light_time',label:'第一段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1261. {model:'first_light_human_power',label:'第一段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1262. {model:'first_light_unman_power',label:'第一段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1263. {model:'second_light_time',label:'第二段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1264. {model:'second_light_human_power',label:'第二段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1265. {model:'second_light_unman_power',label:'第二段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1266. {model:'third_light_time',label:'第三段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1267. {model:'third_light_human_power',label:'第三段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1268. {model:'third_light_unman_power',label:'第三段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1269. {model:'fourth_light_time',label:'第四段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1270. {model:'fourth_light_human_power',label:'第四段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1271. {model:'fourth_light_unman_power',label:'第四段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1272. {model:'fifth_light_time',label:'第五段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1273. {model:'fifth_light_human_power',label:'第五段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1274. {model:'fifth_light_unman_power',label:'第五段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1275. {model:'sixth_light_time',label:'第六段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1276. {model:'sixth_light_human_power',label:'第六段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1277. {model:'sixth_light_unman_power',label:'第六段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1278. {model:'seventh_light_time',label:'第七段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1279. {model:'seventh_light_human_power',label:'第七段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1280. {model:'seventh_light_unman_power',label:'第七段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1281. {model:'eighth_light_time',label:'第八段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1282. {model:'eighth_light_human_power',label:'第八段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1283. {model:'eighth_light_unman_power',label:'第八段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1284. {model:'ninth_light_time',label:'第九段亮灯时间',unit:'(HH:MM)',type:'timeSelect'},
  1285. {model:'ninth_light_human_power',label:'第九段有人功率',unit:'(%)',type:'select',option:'light_power'},
  1286. {model:'ninth_light_unman_power',label:'第九段无人功率',unit:'(%)',type:'select',option:'light_power'},
  1287. {model:'tenth_light_time',label:'晨亮时间',unit:'(HH:MM)',type:'timeSelect'},
  1288. {model:'tenth_light_human_power',label:'晨亮有人功率',unit:'(%)',type:'select',option:'light_power'},
  1289. {model:'tenth_light_unman_power',label:'晨亮无人功率',unit:'(%)',type:'select',option:'light_power'},
  1290. ],
  1291. loadParametersListEN:[],
  1292. loadParametersListENOld:[
  1293. {model:'workmode',label:'Street light load mode',unit:'',type:'select',option:'workmodeList'},
  1294. {model:'worktimefirst',label:'First phase working hours',unit:'(H)',type:'input'},
  1295. {model:'workpowerfirst',label:'First stage operating power',unit:'(%)',type:'input'},
  1296. {model:'worktimesencond',label:'Second phase working hours',unit:'(H)',type:'input'},
  1297. {model:'workpowersencond',label:'Second stage operating power',unit:'(%)',type:'input'},
  1298. {model:'worktimethird',label:'Third stage working hours',unit:'(H)',type:'input'},
  1299. {model:'workpowerthird',label:'Third stage operating power',unit:'(%)',type:'input'},
  1300. {model:'worktimeforth',label:'Morning light time',unit:'(H)',type:'input'},
  1301. {model:'workpowerforth',label:'Morning light power',unit:'(%)',type:'input'},
  1302. {model:'voptically',label:'Light control voltage',unit:'(V)',type:'input'},
  1303. {model:'delaytime',label:'Light control delay time',unit:'(Min)',type:'select',option:'timeListEN'},
  1304. {model:'ledloadcurrent',label:'LED load current',unit:'(mA)',type:'input'},
  1305. {model:'powercmd',label:'Intelligent power control',unit:'',type:'select',option:'onOffEN'},
  1306. {model:'switchfeature',label:'Nightly lighting function',unit:'',type:'select',option:'onOffEN'},
  1307. ],
  1308. catcherloadParametersListENOld:[
  1309. {model:'workmode',label:'Load mode of insecticidal lamp',unit:'',type:'select',option:'workmodeList'},
  1310. {model:'worktimefirst',label:'First phase working hours',unit:'(H)',type:'input'},
  1311. {model:'worktimesencond',label:'Second phase working hours',unit:'(H)',type:'input'},
  1312. {model:'worktimethird',label:'Third stage working hours',unit:'(H)',type:'input'},
  1313. {model:'worktimeforth',label:'Morning light time',unit:'(H)',type:'input'},
  1314. {model:'voptically',label:'Light control voltage',unit:'(V)',type:'input'},
  1315. {model:'delaytime',label:'Light control delay time',unit:'(Min)',type:'select',option:'timeListEN'},
  1316. {model:'ledloadcurrent',label:'LED load current',unit:'(mA)',type:'input'},
  1317. {model:'powercmd',label:'Intelligent power control',unit:'',type:'select',option:'onOffEN'},
  1318. {model:'switchfeature',label:'Nightly lighting function',unit:'',type:'select',option:'onOffEN'},
  1319. ],
  1320. loadParametersListENNew:[
  1321. {model:'intell_power',label:'SpecialPowerCtrl',unit:'',type:'select',option:'intell_powerEN'},
  1322. // {model:'begin_voltage',label:'AutoPowerStartUser1Volt',unit:'(V)',type:'select',option:'intell_powerV'},
  1323. {model:'light_type',label:'Lamp control mode',unit:'(V)',type:'select',option:'light_type_en'},
  1324. // {model:'end_voltage',label:'AutoPowerStopUser1Volt',unit:'(V)',type:'select',option:'intell_powerV'},
  1325. // {model:'end_current',label:'AutoPowerStopUser1Power',unit:'(A)',type:'select',option:'intell_powerC'},
  1326. // {model:'load_current',label:'LedCurrSet',unit:'(A)',type:'select',option:'load_current'},
  1327. // {model:'light_delay',label:'LightCtrlDelayTimeS',unit:'',type:'select',option:'light_delay'},
  1328. // {model:'induction_delay',label:'SensorDelayTime',unit:'(S)',type:'select',option:'induction_delay'},
  1329. {model:'first_light_time',label:'LoadTime1',unit:'(HH:MM)',type:'timeSelect'},
  1330. {model:'first_light_human_power',label:'LoadSensorOnPower1',unit:'(%)',type:'select',option:'light_power'},
  1331. {model:'first_light_unman_power',label:'LoadSensorOffPower1',unit:'(%)',type:'select',option:'light_power'},
  1332. {model:'second_light_time',label:'LoadTime2',unit:'(HH:MM)',type:'timeSelect'},
  1333. {model:'second_light_human_power',label:'LoadSensorOnPower2',unit:'(%)',type:'select',option:'light_power'},
  1334. {model:'second_light_unman_power',label:'LoadSensorOffPower2',unit:'(%)',type:'select',option:'light_power'},
  1335. {model:'third_light_time',label:'LoadTime3',unit:'(HH:MM)',type:'timeSelect'},
  1336. {model:'third_light_human_power',label:'LoadSensorOnPower3',unit:'%',type:'select',option:'light_power'},
  1337. {model:'third_light_unman_power',label:'LoadSensorOffPower3',unit:'%',type:'select',option:'light_power'},
  1338. {model:'fourth_light_time',label:'LoadTime4',unit:'(HH:MM)',type:'timeSelect'},
  1339. {model:'fourth_light_human_power',label:'LoadSensorOnPower4',unit:'%',type:'select',option:'light_power'},
  1340. {model:'fourth_light_unman_power',label:'LoadSensorOffPower4',unit:'%',type:'select',option:'light_power'},
  1341. {model:'fifth_light_time',label:'LoadTime5',unit:'(HH:MM)',type:'timeSelect'},
  1342. {model:'fifth_light_human_power',label:'LoadSensorOnPower5',unit:'%',type:'select',option:'light_power'},
  1343. {model:'fifth_light_unman_power',label:'LoadSensorOffPower5',unit:'%',type:'select',option:'light_power'},
  1344. {model:'sixth_light_time',label:'LoadTime6',unit:'(HH:MM)',type:'timeSelect'},
  1345. {model:'sixth_light_human_power',label:'LoadSensorOnPower6',unit:'%',type:'select',option:'light_power'},
  1346. {model:'sixth_light_unman_power',label:'LoadSensorOffPower6',unit:'%',type:'select',option:'light_power'},
  1347. {model:'seventh_light_time',label:'LoadTime7',unit:'(HH:MM)',type:'timeSelect'},
  1348. {model:'seventh_light_human_power',label:'LoadSensorOnPower7',unit:'%',type:'select',option:'light_power'},
  1349. {model:'seventh_light_unman_power',label:'LoadSensorOffPower7',unit:'%',type:'select',option:'light_power'},
  1350. // {model:'eighth_light_time',label:'LoadTime8',unit:'(HH:MM)',type:'timeSelect'},
  1351. // {model:'eighth_light_human_power',label:'LoadSensorOnPower8',unit:'%',type:'select',option:'light_power'},
  1352. // {model:'eighth_light_unman_power',label:'LoadSensorOffPower8',unit:'%',type:'select',option:'light_power'},
  1353. // {model:'ninth_light_time',label:'LoadTime9',unit:'(HH:MM)',type:'timeSelect'},
  1354. // {model:'ninth_light_human_power',label:'LoadSensorOnPower9',unit:'%',type:'select',option:'light_power'},
  1355. // {model:'ninth_light_unman_power',label:'LoadSensorOffPower9',unit:'%',type:'select',option:'light_power'},
  1356. {model:'tenth_light_time',label:'LoadMorningLightTime',unit:'(HH:MM)',type:'timeSelect'},
  1357. {model:'tenth_light_human_power',label:'LoadMornLightSensorOnPower',unit:'%',type:'select',option:'light_power'},
  1358. {model:'tenth_light_unman_power',label:'LoadMornLightSensorOffPower',unit:'%',type:'select',option:'light_power'},
  1359. ],
  1360. monitorDialog:false,
  1361. projectLoadDialog:false,
  1362. loadSettingIsTrue:false,
  1363. batterySettingIsTrue:false,
  1364. batteryParametersData:{
  1365. light_voltage:'',
  1366. batterytype:'',
  1367. capacity:'',
  1368. vovervoltage:'',
  1369. vlimitedcharge:'',
  1370. vbalancecharge:'',
  1371. vpromotecharge:'',
  1372. vfloatingcharge:'',
  1373. vpromoterecover:'',
  1374. voverdischargerecover:'',
  1375. vundervoltagewarn:'',
  1376. voverdischarge:'',
  1377. balancechargetime:'',
  1378. promotechargetime:'',
  1379. balanceinterval:'',
  1380. tempcompensation:'',
  1381. tempcompmax:'',
  1382. tempcompmin:'',
  1383. turnfloatingcurrent:'',
  1384. reduced_start_voltage:'',
  1385. reduced_stop_voltage:'',
  1386. // capacity:'',
  1387. // vpromotecharge:'',
  1388. // vpromoterecover:'',
  1389. // voverdischargerecover:'',
  1390. // voverdischarge:'',
  1391. vsystem:'',
  1392. minusnocharge:'',
  1393. chargemode:'',
  1394. battery_type:'',
  1395. system_voltage:'',
  1396. overvoltage:'',
  1397. char_limit_voltage:'',
  1398. equ_char_voltage:'',
  1399. // li_battery_type:'',
  1400. increa_char_voltage:'',
  1401. float_char_voltage:'',
  1402. increa_char_return_voltage:'',
  1403. over_dischar_return_voltage:'',
  1404. over_dischar_voltage:'',
  1405. equ_char_time:'',
  1406. increa_char_time:'',
  1407. balan_char_interval:'',
  1408. temper_compen_coeff:'',
  1409. char_upper_limit_temper:'',
  1410. char_lower_limit_temper:'',
  1411. dischar_upper_limit_temper:'',
  1412. dischar_lower_limit_temper:'',
  1413. },
  1414. batteryParametersDataHC:{},
  1415. batteryParametersList0:[],
  1416. batteryParametersListOld0:[
  1417. {model:'capacity',label:'蓄电池容量',unit:'',type:'input'},
  1418. {model:'vovervoltage',label:'超压电压',unit:'(V)',type:'input'},
  1419. {model:'vlimitedcharge',label:'充电限制电压',unit:'(V)',type:'input'},
  1420. {model:'vbalancecharge',label:'均衡充电电压',unit:'(V)',type:'input'},
  1421. {model:'vpromotecharge',label:'提升充电电压',unit:'(V)',type:'input'},
  1422. {model:'vfloatingcharge',label:'浮充充电电压',unit:'(V)',type:'input'},
  1423. {model:'vpromoterecover',label:'提升充电恢复电压',unit:'(V)',type:'input'},
  1424. {model:'voverdischargerecover',label:'过放恢复电压',unit:'(V)',type:'input'},
  1425. {model:'vundervoltagewarn',label:'欠压警告电压',unit:'(V)',type:'input'},
  1426. {model:'voverdischarge',label:'过放电压',unit:'',type:'input'},
  1427. {model:'balancechargetime',label:'均衡充电时间',unit:'(H)',type:'select',option:'balancechargetime'},
  1428. {model:'promotechargetime',label:'提升充电时间',unit:'(H)',type:'select',option:'balancechargetime'},
  1429. {model:'balanceinterval',label:'均衡充电间隔',unit:'(天)',type:'input'},
  1430. {model:'tempcompensation',label:'温度补偿系数',unit:'(mV℃/2V)',type:'input'},
  1431. {model:'tempcompmax',label:'温度补偿最高温度',unit:'(℃)',type:'input'},
  1432. {model:'tempcompmin',label:'温度补偿最低温度',unit:'(℃)',type:'input'},
  1433. {model:'turnfloatingcurrent',label:'转浮充电流',unit:'(A)',type:'input'},
  1434. ],
  1435. batteryParametersListNew0:[
  1436. {model:'light_voltage',label:'光控电压',unit:'(V)',type:'select',option:'light_voltage'},
  1437. {model:'system_voltage',label:'系统电压',unit:'(V)',type:'select',option:'system_voltage0'},
  1438. {model:'overvoltage',label:'超压电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1439. {model:'char_limit_voltage',label:'充电限制电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1440. {model:'equ_char_voltage',label:'均衡充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1441. {model:'increa_char_voltage',label:'提升充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1442. {model:'float_char_voltage',label:'浮充充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1443. {model:'increa_char_return_voltage',label:'提升充电返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1444. {model:'over_dischar_return_voltage',label:'过放返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1445. {model:'over_dischar_voltage',label:'过放电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1446. {model:'equ_char_time',label:'均衡充电时间',unit:'(min)',type:'select',option:'equ_char_time'},
  1447. {model:'increa_char_time',label:'提升充电时间',unit:'(min)',type:'select',option:'equ_char_time'},
  1448. {model:'balan_char_interval',label:'均衡充电间隔',unit:'(day)',type:'select',option:'balan_char_interval'},
  1449. {model:'temper_compen_coeff',label:'温度补偿系数',unit:'(mV/℃/2V)',type:'select',option:'temper_compen_coeff'},
  1450. {model:'char_upper_limit_temper',label:'充电上限温度',unit:'(℃)',type:'select',option:'limit_temper'},
  1451. {model:'char_lower_limit_temper',label:'充电下限温度',unit:'(℃)',type:'select',option:'limit_temper'},
  1452. {model:'dischar_upper_limit_temper',label:'放电上限温度',unit:'(A)',type:'select',option:'limit_temper'},
  1453. {model:'dischar_lower_limit_temper',label:'放电下限温度',unit:'(A)',type:'select',option:'limit_temper'},
  1454. ],
  1455. batteryParametersListNew0EN:[
  1456. {model:'light_voltage',label:'OpticallyControlledVoltage',unit:'(V)',type:'select',option:'light_voltage'},
  1457. {model:'system_voltage',label:'BatRateVolt',unit:'(V)',type:'select',option:'system_voltage0'},
  1458. {model:'overvoltage',label:'BatOverVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1459. {model:'char_limit_voltage',label:'BatChgLimitVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1460. {model:'equ_char_voltage',label:'BatConstChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1461. {model:'increa_char_voltage',label:'BatImprovChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1462. {model:'float_char_voltage',label:'BatFloatChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1463. {model:'increa_char_return_voltage',label:'BatImprovChgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1464. {model:'over_dischar_return_voltage',label:'BatOverDischgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1465. {model:'over_dischar_voltage',label:'BatOverDischgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1466. {model:'equ_char_time',label:'BatConstChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
  1467. {model:'increa_char_time',label:'BatImprovChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
  1468. {model:'balan_char_interval',label:'BatConstChgGapTime',unit:'(day)',type:'select',option:'balan_char_interval'},
  1469. {model:'temper_compen_coeff',label:'CoeffTemperCompen',unit:'(mV/℃/2V)',type:'select',option:'temper_compen_coeff'},
  1470. {model:'char_upper_limit_temper',label:'ChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1471. {model:'char_lower_limit_temper',label:'ChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1472. {model:'dischar_upper_limit_temper',label:'DisChgMaxTemper',unit:'(A)',type:'select',option:'limit_temper'},
  1473. {model:'dischar_lower_limit_temper',label:'DisChgMinTemper',unit:'(A)',type:'select',option:'limit_temper'},
  1474. ],
  1475. batteryParametersList0EN:[],
  1476. batteryParametersListOld0EN:[
  1477. {model:'capacity',label:'Battery capacity',unit:'',type:'input'},
  1478. {model:'vovervoltage',label:'Overvoltage voltage',unit:'(V)',type:'input'},
  1479. {model:'vlimitedcharge',label:'Charge limit voltage',unit:'(V)',type:'input'},
  1480. {model:'vbalancecharge',label:'Balanced charging voltage',unit:'(V)',type:'input'},
  1481. {model:'vpromotecharge',label:'Increase charging voltage',unit:'(V)',type:'input'},
  1482. {model:'vfloatingcharge',label:'Floating charge voltage',unit:'(V)',type:'input'},
  1483. {model:'vpromoterecover',label:'Increase charge recovery voltage',unit:'(V)',type:'input'},
  1484. {model:'voverdischargerecover',label:'Over-discharge recovery voltage',unit:'(V)',type:'input'},
  1485. {model:'vundervoltagewarn',label:'Undervoltage warning voltage',unit:'(V)',type:'input'},
  1486. {model:'voverdischarge',label:'Over discharge voltage',unit:'',type:'input'},
  1487. {model:'balancechargetime',label:'Balanced charging time',unit:'(H)',type:'select',option:'balancechargetime'},
  1488. {model:'promotechargetime',label:'Increase charging time',unit:'(H)',type:'select',option:'balancechargetime'},
  1489. {model:'balanceinterval',label:'Balanced charge interval',unit:'(day)',type:'input'},
  1490. {model:'tempcompensation',label:'Temperature compensation coefficient',unit:'(mV℃/2V)',type:'select',option:'tempcompensation'},
  1491. {model:'tempcompmax',label:'max-temperature compensation',unit:'(℃)',type:'input'},
  1492. {model:'tempcompmin',label:'min-temperature compensation',unit:'(℃)',type:'input'},
  1493. {model:'turnfloatingcurrent',label:'To float flow',unit:'(A)',type:'input'},
  1494. ],
  1495. batteryParametersList1:[],
  1496. batteryParametersListOld1:[
  1497. {model:'capacity',label:'蓄电池容量',unit:'(AH)',type:'input'},
  1498. {model:'vpromotecharge',label:'过充电压',unit:'(V)',type:'input'},
  1499. {model:'vpromoterecover',label:'过充返回电压',unit:'(V)',type:'input'},
  1500. {model:'voverdischargerecover',label:'过放恢复电压',unit:'(V)',type:'input'},
  1501. {model:'voverdischarge',label:'过放电压',unit:'(V)',type:'input'},
  1502. {model:'vsystem',label:'系统电压',unit:'(V)',type:'select',option:'vsystem'},
  1503. {model:'minusnocharge',label:'零下禁充',unit:'',type:'select',option:'minusnocharge'},
  1504. {model:'chargemode',label:'充电模式',unit:'',type:'select',option:'chargemode'},
  1505. ],
  1506. batteryParametersListNew1:[
  1507. {model:'light_voltage',label:'光控电压',unit:'(V)',type:'select',option:'light_voltage'},
  1508. {model:'system_voltage',label:'系统电压',unit:'(V)',type:'select',option:'system_voltage1'},
  1509. {model:'li_battery_type',label:'锂电池类型',unit:'(V)',type:'select',option:'li_battery_type'},
  1510. {model:'increa_char_voltage',label:'充电电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1511. {model:'float_char_voltage',label:'充电返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1512. {model:'over_dischar_return_voltage',label:'过放返回电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1513. {model:'over_dischar_voltage',label:'过放电压',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1514. {model:'char_upper_limit_temper',label:'充电上限温度',unit:'(℃)',type:'select',option:'limit_temper'},
  1515. {model:'char_lower_limit_temper',label:'充电下限温度',unit:'(℃)',type:'select',option:'limit_temper'},
  1516. {model:'dischar_upper_limit_temper',label:'放电上限温度',unit:'(℃)',type:'select',option:'limit_temper'},
  1517. {model:'dischar_lower_limit_temper',label:'放电下限温度',unit:'(℃)',type:'select',option:'limit_temper'},
  1518. ],
  1519. batteryParametersListNew1EN:[
  1520. {model:'light_voltage',label:'OpticallyControlledVoltage',unit:'(V)',type:'select',option:'light_voltage'},
  1521. {model:'system_voltage',label:'BatRateVolt',unit:'(V)',type:'select',option:'system_voltage1'},
  1522. {model:'li_battery_type',label:'lithiumBatteryType',unit:'(V)',type:'select',option:'li_battery_typeEN'},
  1523. {model:'increa_char_voltage',label:'BatImprovChgVolt',unit:'(V)',type:'input'},
  1524. {model:'float_char_voltage',label:'BatFloatChgVolt',unit:'(V)',type:'input'},
  1525. {model:'over_dischar_return_voltage',label:'BatOverDischgBackVolt',unit:'(V)',type:'input'},
  1526. {model:'over_dischar_voltage',label:'BatOverDischgVolt',unit:'(V)',type:'input'},
  1527. {model:'char_upper_limit_temper',label:'ChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1528. {model:'char_lower_limit_temper',label:'ChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1529. {model:'dischar_upper_limit_temper',label:'DisChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1530. {model:'dischar_lower_limit_temper',label:'DisChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1531. ],
  1532. batteryParametersList1EN:[
  1533. {model:'battery_count',label:'Number of battery strings',unit:'(V)',type:'select',option:'battery_count'},
  1534. {model:'light_voltage',label:'OpticallyControlledVoltage',unit:'(V)',type:'select',option:'light_voltage'},
  1535. {model:'light_delay_time',label:'Optical control delay time',unit:'(V)',type:'select',option:'light_delay_time'},
  1536. {model:'system_voltage',label:'BatRateVolt',unit:'(V)',type:'select',option:'system_voltage1'},
  1537. {model:'overvoltage',label:'BatOverVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1538. {model:'char_limit_voltage',label:'BatChgLimitVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1539. {model:'equ_char_voltage',label:'BatConstChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1540. {model:'increa_char_voltage',label:'BatImprovChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1541. {model:'float_char_voltage',label:'BatFloatChgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1542. {model:'increa_char_return_voltage',label:'BatImprovChgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1543. {model:'over_dischar_return_voltage',label:'BatOverDischgBackVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1544. {model:'over_dischar_voltage',label:'BatOverDischgVolt',unit:'(V)',type:'select',option:'increa_char_voltage0'},
  1545. {model:'equ_char_time',label:'BatConstChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
  1546. {model:'increa_char_time',label:'BatImprovChgTime',unit:'(min)',type:'select',option:'equ_char_time'},
  1547. {model:'balan_char_interval',label:'BatConstChgGapTime',unit:'(day)',type:'select',option:'balan_char_interval'},
  1548. {model:'temper_compen_coeff',label:'CoeffTemperCompen',unit:'(mV/℃/2V)',type:'select',option:'temper_compen_coeff'},
  1549. {model:'char_upper_limit_temper',label:'ChgMaxTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1550. {model:'char_lower_limit_temper',label:'ChgMinTemper',unit:'(℃)',type:'select',option:'limit_temper'},
  1551. {model:'reduced_start_voltage',label:'Smart power starting voltage',unit:'(V)',type:'input'},
  1552. {model:'reduced_stop_voltage',label:'Smart power end voltage',unit:'(V)',type:'input'},
  1553. // {model:'dischar_upper_limit_temper',label:'DisChgMaxTemper',unit:'(A)',type:'select',option:'limit_temper'},
  1554. // {model:'dischar_lower_limit_temper',label:'DisChgMinTemper',unit:'(A)',type:'select',option:'limit_temper'},
  1555. // {model:'li_battery_type',label:'lithiumBatteryType',unit:'(V)',type:'select',option:'li_battery_typeEN'},
  1556. ],
  1557. batteryParametersListOld1EN:[
  1558. {model:'capacity',label:'Battery capacity',unit:'(Ah)',type:'input'},
  1559. {model:'vpromotecharge',label:'Overcharge voltage',unit:'(V)',type:'input'},
  1560. {model:'vpromoterecover',label:'Overcharge return voltage',unit:'(V)',type:'input'},
  1561. {model:'voverdischargerecover',label:'Over-discharge recovery voltage',unit:'(V)',type:'input'},
  1562. {model:'voverdischarge',label:'Over discharge voltage',unit:'(V)',type:'input'},
  1563. {model:'vsystem',label:'System voltage',unit:'(V)',type:'select',option:'vsystem'},
  1564. {model:'minusnocharge',label:'Zero charge',unit:'',type:'select',option:'minusnochargeEN'},
  1565. {model:'chargemode',label:'Charging mode',unit:'',type:'select',option:'chargemode'},
  1566. ],
  1567. option:{
  1568. equ_char_time:[],
  1569. temper_compen_coeff:[],
  1570. limit_temper:[],
  1571. increa_char_voltage0:[],
  1572. increa_char_voltage3:[],
  1573. increa_char_voltage6:[],
  1574. light_voltage:[],
  1575. light_delay_time:[],
  1576. load_current:[],
  1577. light_time:[],
  1578. light_power:[],
  1579. light_type:[
  1580. {id:'0',name:'策略'},
  1581. {id:'1',name:'灯控'},
  1582. {id:'2',name:'手动'},
  1583. ],
  1584. light_type_en:[
  1585. {id:'0',name:'strategy'},
  1586. {id:'1',name:'Lamp control'},
  1587. {id:'2',name:'Manual'},
  1588. ],
  1589. balan_char_interval:[],
  1590. intell_powerV:[],
  1591. intell_powerC:[],
  1592. li_battery_type:[
  1593. {id:'0',name:'磷酸铁锂'},
  1594. {id:'1',name:'三元锂'},
  1595. ],
  1596. li_battery_typeEN:[
  1597. {id:'0',name:'LiFePO4'},
  1598. {id:'1',name:'NCM'},
  1599. ],
  1600. system_voltage0:[
  1601. {id:'12',name:'12'},
  1602. {id:'24',name:'24'},
  1603. ],
  1604. system_voltage1:[
  1605. {id:'12',name:'12'},
  1606. {id:'24',name:'24'},
  1607. {id:'36',name:'36'},
  1608. {id:'48',name:'48'},
  1609. ],
  1610. light_delay:[],
  1611. induction_delay:[],
  1612. workmodeList:[],
  1613. intell_power:[
  1614. {id:'0',name:'关'},
  1615. {id:'1',name:'高'},
  1616. {id:'2',name:'中'},
  1617. {id:'3',name:'低'},
  1618. {id:'4',name:'自动'},
  1619. {id:'5',name:'USE'},
  1620. ],
  1621. intell_powerEN:[
  1622. {id:'0',name:'Off'},
  1623. {id:'1',name:'High'},
  1624. {id:'2',name:'Centre'},
  1625. {id:'3',name:'low'},
  1626. {id:'4',name:'Automatic'},
  1627. {id:'5',name:'USE'},
  1628. ],
  1629. chargemode:[
  1630. {id:'0',name:'PWM/MPPT'},
  1631. {id:'1',name:'ON/OFF'},
  1632. ],
  1633. minusnochargeEN:[
  1634. {id:'0',name:'Can charge'},
  1635. {id:'1',name:'Prohibited chargeing'},
  1636. ],
  1637. vsystem:[
  1638. {id:'12',name:'12'},
  1639. {id:'24',name:'24'},
  1640. ],
  1641. battery_count:[
  1642. {id:'0',name:'0'},
  1643. {id:'1',name:'1'},
  1644. {id:'2',name:'2'},
  1645. {id:'3',name:'3'},
  1646. {id:'4',name:'4'},
  1647. {id:'5',name:'5'},
  1648. {id:'6',name:'6'},
  1649. {id:'7',name:'7'},
  1650. {id:'8',name:'8'},
  1651. {id:'9',name:'9'},
  1652. {id:'10',name:'10'},
  1653. {id:'11',name:'11'},
  1654. {id:'12',name:'12'},
  1655. {id:'13',name:'13'},
  1656. {id:'14',name:'14'},
  1657. {id:'15',name:'15'},
  1658. ],
  1659. balancechargetime:[
  1660. {id:'0',name:'0'},
  1661. {id:'1',name:'1'},
  1662. {id:'2',name:'2'},
  1663. {id:'3',name:'3'},
  1664. {id:'4',name:'4'},
  1665. {id:'5',name:'5'},
  1666. {id:'6',name:'6'},
  1667. {id:'7',name:'7'},
  1668. {id:'8',name:'8'},
  1669. {id:'9',name:'9'},
  1670. {id:'10',name:'10'},
  1671. ],
  1672. tempcompensation:[
  1673. {id:'-2',name:'-2'},
  1674. {id:'-3',name:'-3'},
  1675. {id:'-4',name:'-4'},
  1676. {id:'-5',name:'-5'},
  1677. ],
  1678. batteryListEN:[
  1679. {id:'1',name:'Lead-acid batteries'},
  1680. {id:'2',name:'lithium battery'},
  1681. {id:'3',name:'Supercapacitor'},
  1682. ],
  1683. onOff:[
  1684. {id:'1',name:'开启'},
  1685. {id:'0',name:'关闭'},
  1686. ],
  1687. onOffEN:[
  1688. {id:'1',name:'Open'},
  1689. {id:'0',name:'shut down'},
  1690. ],
  1691. timeList:[
  1692. {id:'1',name:'1分钟'},
  1693. {id:'5',name:'5分钟'},
  1694. {id:'10',name:'10分钟'},
  1695. {id:'15',name:'15分钟'},
  1696. {id:'20',name:'20分钟'},
  1697. {id:'25',name:'25分钟'},
  1698. {id:'30',name:'30分钟'},
  1699. {id:'35',name:'35分钟'},
  1700. {id:'40',name:'40分钟'},
  1701. {id:'45',name:'45分钟'},
  1702. {id:'50',name:'50分钟'},
  1703. ],
  1704. timeListEN:[
  1705. {id:'1',name:'1 minutes'},
  1706. {id:'5',name:'5 minutes'},
  1707. {id:'10',name:'10 minutes'},
  1708. {id:'15',name:'15 minutes'},
  1709. {id:'20',name:'20 minutes'},
  1710. {id:'25',name:'25 minutes'},
  1711. {id:'30',name:'30 minutes'},
  1712. {id:'35',name:'35 minutes'},
  1713. {id:'40',name:'40 minutes'},
  1714. {id:'45',name:'45 minutes'},
  1715. {id:'50',name:'50 minutes'},
  1716. ],
  1717. },
  1718. monitorType:'loadParameters',
  1719. myChart2:'',
  1720. currentTime:new Date(),
  1721. currentPage:1,
  1722. pageSize:0,
  1723. total:0,
  1724. pageSizeArr:[{id:10,name:'10/page'},{id:20,name:'20/page'},{id:50,name:'50/page'},{id:100,name:'100/page'}],
  1725. loading:{
  1726. deviceList:false,
  1727. lampLightSlider:false,
  1728. lampcontrolUpdate:false,
  1729. setBatteryFun:false,
  1730. exportTableLS:false,
  1731. batchProcessingFun:false,
  1732. }
  1733. }
  1734. },
  1735. components:{sideBarIdcol},
  1736. computed:{
  1737. ...mapGetters({
  1738. token:'token',
  1739. client_key:'client_key',
  1740. username:'username',
  1741. version:'version',
  1742. privilege:'privilege',
  1743. role:'role',
  1744. remRatio:'remRatio',
  1745. sideBarCompanyType:'sideBarCompanyType',
  1746. }),
  1747. historicalNavListENFor(){
  1748. let list = [];
  1749. for(let item of this.historicalNavListEN){
  1750. if(((item.model =='3'&&this.dataLSType=='0')||item.model !='3')&&((item.model =='system_info_log'&&this.dataLSType=='1')||item.model !='system_info_log')){
  1751. list.push(item)
  1752. }
  1753. }
  1754. return list
  1755. },
  1756. divisionName(){
  1757. let name;
  1758. for(let d of this.divisionNav){
  1759. if(d.id == this.division){
  1760. name = d.name;
  1761. }
  1762. }
  1763. return name;
  1764. },
  1765. roadIdName(){
  1766. let name;
  1767. if(this.roadId == 0){
  1768. return "All";
  1769. }
  1770. for(let d of this.tabNavList){
  1771. if(d.id == this.roadId){
  1772. name = d.name;
  1773. }
  1774. }
  1775. return name;
  1776. },
  1777. pageSizeName(){
  1778. let name;
  1779. for(let d of this.pageSizeArr){
  1780. if(d.id == this.pageSize){
  1781. name = d.name;
  1782. }
  1783. }
  1784. return name;
  1785. },
  1786. },
  1787. mounted(){
  1788. let this_ =this;
  1789. this.option.light_delay = [];
  1790. this.option.induction_delay = [];
  1791. this.option.load_current = [];
  1792. this.option.light_time = [];
  1793. this.option.light_power = [];
  1794. this.option.light_voltage = [];
  1795. this.option.light_delay_time = [];
  1796. this.option.increa_char_voltage0 = [];
  1797. this.option.increa_char_voltage3 = [];
  1798. this.option.increa_char_voltage6 = [];
  1799. this.option.limit_temper = [];
  1800. this.option.temper_compen_coeff = [];
  1801. this.option.equ_char_time = [];
  1802. this.option.intell_powerV = [];
  1803. this.option.intell_powerC = [];
  1804. let j = 0;
  1805. for(let i = 0; i<=700;i++){
  1806. if(i<=11){
  1807. if(i==0){
  1808. // this.option.light_delay.push({
  1809. // id:i*5+'',
  1810. // name:this.version=='0'?'无延时':'No delay',
  1811. // });
  1812. this.option.induction_delay.push({
  1813. id:i*5+'',
  1814. name:'Non-inductive function',
  1815. });
  1816. }else{
  1817. this.option.induction_delay.push({
  1818. id:i*5+'',
  1819. name:'Delay'+i+'seconds',
  1820. });
  1821. this.option.light_delay.push({
  1822. id:i*5+'',
  1823. name:'Delay'+i+'seconds',
  1824. });
  1825. }
  1826. }else if(i<72){
  1827. j++;
  1828. this.option.light_delay.push({
  1829. id:j*60+'',
  1830. name:this.version=='0'?'延时'+j+'分钟':'Delay'+j+'minutes',
  1831. });
  1832. this.option.induction_delay.push({
  1833. id:j*60+'',
  1834. name:this.version=='0'?'延时'+j+'分钟':'Delay'+j+'minutes',
  1835. });
  1836. }
  1837. /*智能电压*/
  1838. if(i<=145){
  1839. let val = i/10+2.5;
  1840. this.option.intell_powerV.push({
  1841. id:val.toFixed(1),
  1842. name:val.toFixed(1),
  1843. })
  1844. }
  1845. /*智能电流*/
  1846. if(i<=85){
  1847. let val = i/100+0.15;
  1848. this.option.intell_powerC.push({
  1849. id:val.toFixed(2),
  1850. name:val.toFixed(2),
  1851. })
  1852. }
  1853. /*load_current 负载电流*/
  1854. if(i<=695){
  1855. let val = i/100+0.05;
  1856. this.option.load_current.push({
  1857. id:val.toFixed(2),
  1858. name:val.toFixed(2),
  1859. })
  1860. }
  1861. /*light_time 亮灯时间*/
  1862. if(i<=30){
  1863. let val = i/2;
  1864. this.option.light_time.push({
  1865. id:val.toFixed(1),
  1866. name:val.toFixed(1),
  1867. })
  1868. }
  1869. /*light_power 亮度*/
  1870. if(i<=100){
  1871. let val = (i)+'';
  1872. this.option.light_power.push({
  1873. id:val,
  1874. name:val,
  1875. })
  1876. }
  1877. /*light_voltage 光控电压*/
  1878. if(i<=8){
  1879. let val = (i+3)+'';
  1880. this.option.light_voltage.push({
  1881. id:val,
  1882. name:val,
  1883. })
  1884. }
  1885. /*light_voltage 光控电压延时*/
  1886. if(i<=8){
  1887. let val = (i+3)+'';
  1888. this.option.light_delay_time.push({
  1889. id:val,
  1890. name:val,
  1891. })
  1892. }
  1893. /*increa_char_voltage0 提升充电电压*/
  1894. if(i<=95){
  1895. let val = (i/10+7.5)+'';
  1896. this.option.increa_char_voltage0.push({
  1897. id:val,
  1898. name:val,
  1899. })
  1900. }
  1901. /*increa_char_voltage3 提升充电电压*/
  1902. if(i<=17){
  1903. let val = (i/10+2.5)+'';
  1904. this.option.increa_char_voltage3.push({
  1905. id:val,
  1906. name:val,
  1907. })
  1908. }
  1909. /*increa_char_voltage6 提升充电电压*/
  1910. if(i<=34){
  1911. let val = (i/10+5.0)+'';
  1912. this.option.increa_char_voltage6.push({
  1913. id:val,
  1914. name:val,
  1915. })
  1916. }
  1917. /*limit_temper 温度*/
  1918. if(i<=160){
  1919. let val = (i-40)+'';
  1920. this.option.limit_temper.push({
  1921. id:val,
  1922. name:val,
  1923. })
  1924. }
  1925. /*temper_compen_coeff 温度补偿系数*/
  1926. if(i<=10){
  1927. let val = i+'';
  1928. this.option.temper_compen_coeff.push({
  1929. id:val,
  1930. name:val,
  1931. })
  1932. }
  1933. /*equ_char_time 充电时间*/
  1934. if(i<=60){
  1935. let val = i*10+'';
  1936. this.option.equ_char_time.push({
  1937. id:val,
  1938. name:val,
  1939. })
  1940. }
  1941. }
  1942. for(let i_1 = 0; i_1<52;i_1++){
  1943. if(i_1==0){
  1944. this.option.balan_char_interval.push({
  1945. id:i_1,
  1946. name:this.version == '0'?'禁止均衡功能':'Prohibited Equilibrium Function',
  1947. });
  1948. }else{
  1949. this.option.balan_char_interval.push({
  1950. id:i_1*5+'',
  1951. name:i_1*5+'',
  1952. });
  1953. }
  1954. }
  1955. setInterval(function(){
  1956. this_.currentTime = new Date();
  1957. },1000)
  1958. for(let key in this.lightControlListEN){
  1959. if((this.role == 2||this.role == 4)&&this.lightControlListEN[key].model == 'poName'){
  1960. this.lightControlListEN.splice(key,1)
  1961. }
  1962. if((this.role == 2)&&this.lightControlListEN[key].model == 'supplierName'){
  1963. this.lightControlListEN.splice(key,1)
  1964. }
  1965. }
  1966. this.lightControlListEN_for = JSON.parse(JSON.stringify(this.lightControlListEN))
  1967. this.rightDate = '0';
  1968. this.division = '0';
  1969. this.roadId = 0;
  1970. this.pageSize = 10;
  1971. this.getCountry();
  1972. // console.log(this.lightControlListEN)
  1973. },
  1974. methods:{
  1975. commandHide(val){
  1976. this.$nextTick(function(){
  1977. if($('.'+val)&&$('.'+val+' >.select').offset()){
  1978. $('.'+val).animate({scrollTop: $('.'+val).scrollTop() + $('.'+val+' >.select').offset().top - $('.'+val).offset().top - 100})
  1979. }
  1980. })
  1981. },
  1982. commandDropdown(obj){
  1983. this.$set(this,obj.key,obj.id)
  1984. if(obj.key == 'pageSize'||obj.key == 'roadId'){
  1985. this.getLightList();
  1986. }
  1987. },
  1988. /*设备列表*/
  1989. getLightListKeyUp(e){
  1990. if(e.key == 'Enter'){
  1991. this.getLightList();
  1992. }
  1993. },
  1994. /*获取表格数据*/
  1995. getLightList(value,callback,download){
  1996. let downloadVal = 0;
  1997. if(download){
  1998. downloadVal = download;
  1999. }else{
  2000. this.loading.deviceList = true;
  2001. }
  2002. baseApi.ajax_post(
  2003. allUrl.project.lampcontrolGet,
  2004. {
  2005. username:this.username,
  2006. client_key:this.client_key,
  2007. token:this.token,
  2008. fields:this.tableConfig.prop1.join(','),
  2009. field1:this.tableConfig.prop.join(','),
  2010. project_id:this.projectId,
  2011. keyword:this.keywords,
  2012. status:this.status,
  2013. alarmtype:this.alarmtype,
  2014. page:value,
  2015. count:this.pageSize,
  2016. offline:this.offline,
  2017. online:this.online,
  2018. download:downloadVal,
  2019. section:this.roadId,
  2020. type:this.sideBarCompanyType,
  2021. company:this.companyId,
  2022. },
  2023. {},
  2024. data =>{
  2025. if(callback){
  2026. callback(data)
  2027. }
  2028. if(downloadVal == 0){
  2029. this.deviceTotalData = data.data.total_data;
  2030. this.deviceList = data.data.lamps;
  2031. let i = (this.currentPage - 1)*this.pageSize+1;
  2032. for(let d of this.deviceList){
  2033. d.lighteness = parseInt(d.lighteness);
  2034. let hh1 = '',mm1 = '',hh2 = '',mm2 = '';
  2035. hh1 = parseInt(d.daychargemincurrent/3600);
  2036. mm1 = parseInt((d.daychargemincurrent%3600)/60);
  2037. hh2 = parseInt(d.daydischargemincurrent/3600);
  2038. mm2 = parseInt((d.daydischargemincurrent%3600)/60);
  2039. if(hh1<10){
  2040. hh1 = '0'+hh1;
  2041. }
  2042. if(hh2<10){
  2043. hh2 = '0'+hh2;
  2044. }
  2045. if(mm1<10){
  2046. mm1 = '0'+mm1;
  2047. }
  2048. if(mm2<10){
  2049. mm2 = '0'+mm2;
  2050. }
  2051. d.daychargemincurrent = hh1+':'+mm1;
  2052. d.daydischargemincurrent = hh2+':'+mm2;
  2053. d.webIndex = i;
  2054. i++;
  2055. }
  2056. this.total = Number(data.data.total);
  2057. this.count = data.data.count;
  2058. this.fault = data.data.fault;
  2059. this.loading.deviceList = false;
  2060. this.$refs.deviceList.doLayout();
  2061. }
  2062. },
  2063. this,
  2064. () => {
  2065. if(!download){
  2066. this.loading.deviceList = false;
  2067. }
  2068. }
  2069. )
  2070. },
  2071. /*项目详情*/
  2072. getProjectDetail(id,callback){
  2073. baseApi.ajax_post(
  2074. allUrl.project.projectDetail,
  2075. {
  2076. username:this.username,
  2077. client_key:this.client_key,
  2078. token:this.token,
  2079. project_id:id,
  2080. },
  2081. {},
  2082. data =>{
  2083. if(callback){
  2084. callback(data)
  2085. }
  2086. },
  2087. this)
  2088. },
  2089. getProjectData(id){
  2090. this.projectId = id;
  2091. baseApi.ajax_post(
  2092. allUrl.project.projectData,
  2093. {
  2094. username:this.username,
  2095. client_key:this.client_key,
  2096. token:this.token,
  2097. project_id:id,
  2098. type:this.sideBarCompanyType,
  2099. company:this.companyId,
  2100. },
  2101. {},
  2102. data =>{
  2103. this.detailData = data.data;
  2104. if(this.weatherList.length>0){
  2105. this.weatherList = data.data.weatherList;
  2106. }
  2107. this.networkSectionList();
  2108. },
  2109. this)
  2110. },
  2111. networkSectionList(){
  2112. baseApi.ajax_post(
  2113. allUrl.alarm.networkSectionList,
  2114. {
  2115. username:this.username,
  2116. client_key:this.client_key,
  2117. token:this.token,
  2118. project_id:this.projectId,
  2119. },
  2120. {},
  2121. data =>{
  2122. this.tabNavList = data.data.networks;
  2123. },
  2124. this)
  2125. },
  2126. networkGet(){
  2127. baseApi.ajax_post(
  2128. allUrl.alarm.networkGet,
  2129. {
  2130. username:this.username,
  2131. client_key:this.client_key,
  2132. token:this.token,
  2133. project_id:this.projectId,
  2134. },
  2135. {},
  2136. data =>{
  2137. this.networkList = data.data.networks;
  2138. // console.log(data,'组网下拉')
  2139. },
  2140. this)
  2141. },
  2142. /*侧栏列表*/
  2143. sideBarCompanyList(val,type,init){
  2144. baseApi.ajax_post(
  2145. allUrl.project.projectNav,
  2146. {
  2147. username:this.username,
  2148. client_key:this.client_key,
  2149. token:this.token,
  2150. type:type,
  2151. keyword:val,
  2152. },
  2153. {},
  2154. data =>{
  2155. // console.log(data,'公司列表')
  2156. console.log(init)
  2157. let storage = window.localStorage;
  2158. let companyId = storage.getItem("companyId");
  2159. let projectId = storage.getItem("projectId")
  2160. if(type == 0){
  2161. if(data.data.length>0){
  2162. if(projectId){
  2163. this.projectId = projectId;
  2164. }else{
  2165. this.projectId = data.data[0].id;
  2166. }
  2167. this.getProjectData(this.projectId)
  2168. this.getFields();
  2169. this.networkGet();
  2170. for(let key in data.data){
  2171. this.$set(data.data[key],'isOpen',false)
  2172. if(data.data[key].id == this.projectId){
  2173. this.$set(data.data[key],'isOpen',true)
  2174. }
  2175. }
  2176. }
  2177. }else{
  2178. if(data.data.length>0){
  2179. if(companyId){
  2180. this.companyId = companyId;
  2181. if(data.data[0].projectList.length>0){
  2182. if(projectId){
  2183. this.projectId = projectId;
  2184. }else{
  2185. this.projectId = data.data[0].projectList[0].id;
  2186. }
  2187. // this.$set(data.data[0].projectList[0],'isOpen',true)
  2188. this.getProjectData(this.projectId)
  2189. this.getFields();
  2190. this.networkGet();
  2191. }else{
  2192. this.projectId = null;
  2193. this.deviceTotalData = {
  2194. light_num:0,
  2195. online_num:0,
  2196. fault_count:0,
  2197. network_num:0
  2198. };
  2199. this.deviceList = [];
  2200. this.total = 0;
  2201. this.count = 0;
  2202. this.fault = 0;
  2203. }
  2204. }else{
  2205. this.companyId = data.data[0].cId;
  2206. if(data.data[0].projectList.length>0){
  2207. this.projectId = data.data[0].projectList[0].id;
  2208. // this.$set(data.data[0].projectList[0],'isOpen',true)
  2209. this.getProjectData(this.projectId)
  2210. this.getFields();
  2211. this.networkGet();
  2212. }else{
  2213. this.projectId = null;
  2214. this.deviceTotalData = {
  2215. light_num:0,
  2216. online_num:0,
  2217. fault_count:0,
  2218. network_num:0
  2219. };
  2220. this.deviceList = [];
  2221. this.total = 0;
  2222. this.count = 0;
  2223. this.fault = 0;
  2224. }
  2225. }
  2226. for(let key in data.data){
  2227. this.$set(data.data[key],'isOpen',false)
  2228. if(data.data[key].cId == this.companyId){
  2229. this.$set(data.data[key],'isOpen',true)
  2230. }
  2231. if(data.data[0].projectList.length>0){
  2232. for(let d of data.data[0].projectList){
  2233. this.$set(d,'isOpen',true)
  2234. if(d.id == this.projectId){
  2235. this.$set(d,'isOpen',true)
  2236. }
  2237. }
  2238. }
  2239. }
  2240. }else{
  2241. this.companyId = null
  2242. this.projectId = null;
  2243. this.deviceTotalData = {
  2244. light_num:0,
  2245. online_num:0,
  2246. fault_count:0,
  2247. network_num:0
  2248. };
  2249. this.deviceList = [];
  2250. this.total = 0;
  2251. this.count = 0;
  2252. this.fault = 0;
  2253. }
  2254. }
  2255. // console.log(this.companyId)
  2256. this.projectNav = data.data;
  2257. },
  2258. this)
  2259. },
  2260. /*侧边栏打开关闭*/
  2261. sideBarIsOn(){
  2262. if(this.sideBarType == 'on'){
  2263. this.sideBarType = 'off';
  2264. }else{
  2265. this.sideBarType = 'on';
  2266. }
  2267. },
  2268. /*侧边栏里展开收起*/
  2269. sideBarListIsOpen(data){
  2270. if(data.isOpen){
  2271. data.isOpen = false;
  2272. }else{
  2273. data.isOpen = true;
  2274. }
  2275. },
  2276. projectSelectFun(type,data,d){
  2277. var storage = window.localStorage;
  2278. if(!data.isOpen||this.projectId != data.id){
  2279. this.$set(data,'isOpen',true)
  2280. }else{
  2281. this.$set(data,'isOpen',false)
  2282. }
  2283. console.log(type,data,d)
  2284. storage.setItem('projectId',data.id);
  2285. if(type != 0){
  2286. if(d.cId != this.companyId){
  2287. this.companyId = d.cId;
  2288. storage.setItem('companyId',d.cId);
  2289. }
  2290. }
  2291. this.projectId = data.id;
  2292. this.roadId = '';
  2293. this.getLightList(this.currentPage);
  2294. this.getProjectData(this.projectId)
  2295. },
  2296. roadSelectFun(data,obj,d){
  2297. var storage = window.localStorage;
  2298. if(this.sideBarCompanyType == 0){
  2299. if(data.id != this.projectId){
  2300. storage.setItem('projectId',data.id);
  2301. this.projectId = data.id;
  2302. }
  2303. this.roadId = obj.name;
  2304. }else{
  2305. if(data.cId != this.companyId){
  2306. this.companyId = data.cId;
  2307. storage.setItem('companyId',data.cId);
  2308. }
  2309. if(obj.id != this.projectId){
  2310. storage.setItem('projectId',obj.id);
  2311. this.projectId = obj.id;
  2312. }
  2313. this.roadId = d.name;
  2314. }
  2315. this.getLightList(this.currentPage);
  2316. this.getProjectData(this.projectId)
  2317. },
  2318. /*批量处理*/
  2319. batchOperation(val){
  2320. console.log(val,this.multipleSelection.length)
  2321. if(this.multipleSelection.length <= '0'){
  2322. this.$message({
  2323. showClose: true,
  2324. message:'Please select the light control',
  2325. type: 'warning'
  2326. });
  2327. }else{
  2328. this.lampcontrolOperationType = val
  2329. if(val == 'strategy'){
  2330. baseApi.ajax_post(
  2331. allUrl.strategy.policy_nav,
  2332. {
  2333. username:this.username,
  2334. client_key:this.client_key,
  2335. token:this.token,
  2336. client_type:'0',
  2337. },
  2338. {},
  2339. data =>{
  2340. this.policyList = data.data.list;
  2341. },
  2342. this)
  2343. }
  2344. }
  2345. },
  2346. batchProcessingFun(type){
  2347. if(this.loading.batchProcessingFun){
  2348. return
  2349. }
  2350. let lampIds = '';
  2351. if(type == 'on'){
  2352. this.lampcontrolOperationType = '-1';
  2353. this.batchProcessing = type;
  2354. this.batchDimmingVal = 0;
  2355. }else if(type == 'cancel'){
  2356. this.batchProcessing = 'off';
  2357. }else{
  2358. if(this.lampcontrolOperationType == '参数'){
  2359. if(this.multipleSelection.length == 0){
  2360. this.$message({
  2361. showClose: true,
  2362. message:'Please select the light control first',
  2363. type: 'warning'
  2364. });
  2365. }else{
  2366. let oldBoolean = false;
  2367. let newBoolean = false;
  2368. let lampBoolean = false;
  2369. let catcherBoolean = false;
  2370. for(let d of this.multipleSelection){
  2371. if(d.lampProtocoltype == '0'){
  2372. oldBoolean = true;
  2373. }else if(d.lampProtocoltype == '1'){
  2374. newBoolean = true;
  2375. }
  2376. if(d.loadtype == '0'){
  2377. lampBoolean = true;
  2378. }else if(d.loadtype == '1'){
  2379. catcherBoolean = true;
  2380. }
  2381. }
  2382. console.log(newBoolean,oldBoolean,lampBoolean,catcherBoolean)
  2383. if(newBoolean && oldBoolean){
  2384. this.$message({
  2385. showClose: true,
  2386. message:'Cannot modify both old and new controller parameters at the same time',
  2387. type: 'warning'
  2388. });
  2389. }else if(lampBoolean && catcherBoolean){
  2390. this.$message({
  2391. showClose: true,
  2392. message:'Unable to modify street lamp and insect trap parameters at the same time.',
  2393. type: 'warning'
  2394. });
  2395. }else{
  2396. this.monitorType = 'loadParameters';
  2397. this.monitorDialog = true;
  2398. this.parameterLoadIsEdit = false;
  2399. this.parameterBatteryIsEdit = false;
  2400. this.batchModificationParameters = false;
  2401. this.loadSettingIsTrue = false;
  2402. this.loading.loadSetting = true;
  2403. this.batterySettingIsTrue = false;
  2404. this.loading.batterySetting = true;
  2405. this.lampProtocoltype = '1';
  2406. this.loadtype = '0';
  2407. this.loadParametersData = this.loadParametersDataNew;
  2408. this.loadParametersListEN = this.loadParametersListENNew
  2409. for(let key in this.loadParametersData){
  2410. this.loadParametersData[key] = '';
  2411. }
  2412. this.lampcontrolGetData(1,data=>{
  2413. data.data.first_light_time = new Date('2018-08-06 '+data.data.first_light_time);
  2414. data.data.second_light_time = new Date('2018-08-06 '+data.data.second_light_time);
  2415. data.data.third_light_time = new Date('2018-08-06 '+data.data.third_light_time);
  2416. data.data.fourth_light_time = new Date('2018-08-06 '+data.data.fourth_light_time);
  2417. data.data.fifth_light_time = new Date('2018-08-06 '+data.data.fifth_light_time);
  2418. data.data.sixth_light_time = new Date('2018-08-06 '+data.data.sixth_light_time);
  2419. data.data.seventh_light_time = new Date('2018-08-06 '+data.data.seventh_light_time);
  2420. data.data.eighth_light_time = new Date('2018-08-06 '+data.data.eighth_light_time);
  2421. data.data.ninth_light_time = new Date('2018-08-06 '+data.data.ninth_light_time);
  2422. data.data.tenth_light_time = new Date('2018-08-06 '+data.data.tenth_light_time);
  2423. for(let key in data.data){
  2424. this.loadParametersData[key] = data.data[key]
  2425. }
  2426. this.loadParametersDataHC = Object.assign({},this.loadParametersData);
  2427. this.loadSettingIsTrue = true;
  2428. this.loading.loadSetting = false;
  2429. })
  2430. this.lampcontrolGetData(2,data=>{
  2431. console.log(data)
  2432. for(let key in data.data){
  2433. this.batteryParametersData[key] = data.data[key]
  2434. }
  2435. this.batteryParametersDataHC = Object.assign({},this.batteryParametersData)
  2436. this.batteryParametersDataHC.type = '默认';
  2437. this.batterySettingIsTrue = true;
  2438. this.loading.batterySetting = false;
  2439. })
  2440. }
  2441. }
  2442. }else if(this.lampcontrolOperationType == '调光'){
  2443. if(this.multipleSelection.length == 0){
  2444. this.$message({
  2445. showClose: true,
  2446. message:'Please select the light control',
  2447. type: 'warning'
  2448. });
  2449. }else{
  2450. /*灯控调光*/
  2451. let this_ = this;
  2452. let i = 0;
  2453. // let key = 0;
  2454. this.giveCommandDialog = true;
  2455. this.giveCommandZS = this.multipleSelection.length;
  2456. this.giveCommandCG = 0;
  2457. this.giveCommandJD = 0;
  2458. this.giveCommandJournal = [];
  2459. let ids = '';
  2460. let ids_length = this.multipleSelection.length;
  2461. for(let d of this.multipleSelection){
  2462. if(ids == ''){
  2463. ids = d.id;
  2464. }else{
  2465. ids+=','+d.id;
  2466. }
  2467. }
  2468. this_.loading.batchProcessingFun = true;
  2469. baseApi.websocket1(allUrl.websocket.wss,data=>{
  2470. if(data.data.status == '1'){
  2471. baseApi.ajax_post_ws(
  2472. allUrl.gisMap.lampcontrolDimming,
  2473. {
  2474. username:this_.username,
  2475. client_key:this_.client_key,
  2476. token:this_.token,
  2477. lamp_id:ids,
  2478. type:'1',
  2479. lightness:this_.batchDimmingVal,
  2480. mode:'0',
  2481. clientid:data.data.clientid,
  2482. },
  2483. this_,
  2484. )
  2485. }
  2486. if(data.data.status == '2'){
  2487. if(data.data.code == '0000'){
  2488. console.log(1,'--')
  2489. this_.$notify({
  2490. title: 'Successful operation',
  2491. message: 'lamp '+data.data.data.number,
  2492. type: 'success'
  2493. });
  2494. this_.giveCommandJournal.push({
  2495. time:this_.GMTToZero2(new Date()),
  2496. text:data.data.msg,
  2497. number:data.data.data.number,
  2498. type:true
  2499. })
  2500. i++;
  2501. this_.giveCommandCG ++;
  2502. this_.giveCommandJD = i;
  2503. if(i >= ids_length){
  2504. this_.loading.batchProcessingFun = false;
  2505. this_.batchProcessing = type;
  2506. this_.getLightList(this_.currentPage);
  2507. websocket.close();
  2508. }
  2509. }else{
  2510. this_.$notify.error({
  2511. title: 'Operation failed',
  2512. message: 'Lamp '+data.data.data.number+':'+data.data.msg
  2513. });
  2514. this_.giveCommandJournal.push({
  2515. time:this_.GMTToZero2(new Date()),
  2516. text:data.data.msg,
  2517. number:data.data.data.number,
  2518. type:false
  2519. })
  2520. i++;
  2521. this_.giveCommandJD = i;
  2522. if(i >= ids_length){
  2523. this_.loading.batchProcessingFun = false;
  2524. this_.batchProcessing = type;
  2525. this_.getLightList(this_.currentPage);
  2526. websocket.close();
  2527. }
  2528. }
  2529. }
  2530. },() => {
  2531. this_.loading.batchProcessingFun = false;
  2532. },this_)
  2533. }
  2534. }else if(this.lampcontrolOperationType == '3'){
  2535. if(this.multipleSelection.length == 0){
  2536. this.$message({
  2537. showClose: true,
  2538. message:'Please select the light control',
  2539. type: 'warning'
  2540. });
  2541. }else{
  2542. for(let d of this.multipleSelection){
  2543. if(lampIds == ''){
  2544. lampIds = d.id;
  2545. }else{
  2546. lampIds += ',' + d.id;
  2547. }
  2548. }
  2549. this.$confirm('This operation will permanently delete the lamp control, will it continue?','Prompt', {
  2550. confirmButtonText: 'confirm',
  2551. cancelButtonText: 'cancel',
  2552. type: 'warning'
  2553. }).then(() => {
  2554. this.loading.batchProcessingFun = true;
  2555. baseApi.ajax_post(
  2556. allUrl.project.lampcontrolDel,
  2557. {
  2558. username:this.username,
  2559. client_key:this.client_key,
  2560. token:this.token,
  2561. lamp_ids:lampIds,
  2562. },
  2563. {},
  2564. data =>{
  2565. // console.log(data,'灯控删除回调')
  2566. this.$message({
  2567. showClose: true,
  2568. message:data.msg,
  2569. type: 'success'
  2570. });
  2571. this.batchProcessing = type;
  2572. this.getLightList(this.currentPage);
  2573. this.networkSectionList();
  2574. this.loading.batchProcessingFun = false;
  2575. let storage = window.localStorage;
  2576. let searchType = storage.getItem("searchType");
  2577. this.sideBarCompanyList('',searchType)
  2578. },
  2579. this)
  2580. }).catch(() => {
  2581. this.$message({
  2582. type: 'info',
  2583. message: 'Undeleted'
  2584. });
  2585. });
  2586. }
  2587. }else if(this.lampcontrolOperationType == '-1'){
  2588. if(this.version == 0){
  2589. this.$message({
  2590. showClose: true,
  2591. message:'Please select the modified type first',
  2592. type: 'warning'
  2593. });
  2594. }else{
  2595. this.$message({
  2596. showClose: true,
  2597. message:'Please select the modification type',
  2598. type: 'warning'
  2599. });
  2600. }
  2601. }else if(this.lampcontrolOperationType == 'strategy'){
  2602. if(this.multipleSelection.length == 0){
  2603. this.$message({
  2604. showClose: true,
  2605. message:'Please select the light control first',
  2606. type: 'warning'
  2607. });
  2608. }else{
  2609. for(let d of this.multipleSelection){
  2610. if(lampIds == ''){
  2611. lampIds = d.id;
  2612. }else{
  2613. lampIds += ',' + d.id;
  2614. }
  2615. }
  2616. baseApi.ajax_post(
  2617. allUrl.strategy.set_policy,
  2618. {
  2619. username:this.username,
  2620. client_key:this.client_key,
  2621. token:this.token,
  2622. policyid:this.policyId,
  2623. lampid:lampIds,
  2624. },
  2625. {},
  2626. data =>{
  2627. this.$message({
  2628. showClose: true,
  2629. message:data.msg,
  2630. type: 'success'
  2631. });
  2632. this.policyName = 'policy'
  2633. this.batchProcessing = type;
  2634. this.getLightList(this.currentPage);
  2635. this.loading.batchProcessingFun = false;
  2636. },
  2637. this)
  2638. }
  2639. }else{
  2640. // console.log(this.multipleSelection)
  2641. if(this.multipleSelection.length == 0){
  2642. this.$message({
  2643. showClose: true,
  2644. message:'Please select the light control first',
  2645. type: 'warning'
  2646. });
  2647. }else{
  2648. let this_ = this;
  2649. let i = 0;
  2650. this.giveCommandDialog = true;
  2651. this.giveCommandZS = this.multipleSelection.length;
  2652. this.giveCommandCG = 0;
  2653. this.giveCommandJD = 0;
  2654. this.giveCommandJournal = [];
  2655. let ids = '';
  2656. let ids_length = this.multipleSelection.length;
  2657. for(let d of this.multipleSelection){
  2658. if(ids == ''){
  2659. ids = d.id;
  2660. }else{
  2661. ids+=','+d.id;
  2662. }
  2663. }
  2664. baseApi.websocket1(allUrl.websocket.wss,(data,websocket)=>{
  2665. this_.loading.batchProcessingFun = true;
  2666. if(data.data.status == '1'){
  2667. baseApi.ajax_post_ws(
  2668. allUrl.project.lampcontrolTurnonoff,
  2669. {
  2670. username:this_.username,
  2671. client_key:this_.client_key,
  2672. token:this_.token,
  2673. lamp_id:ids,
  2674. type:this_.lampcontrolOperationType,
  2675. mode:0,
  2676. clientid:data.data.clientid,
  2677. },
  2678. this_
  2679. )
  2680. }else if(data.status == '2'){
  2681. if(data.code == '0000'){
  2682. this_.$notify({
  2683. title: 'Successful operation',
  2684. message: 'lamp '+data.data.number,
  2685. type: 'success'
  2686. });
  2687. this_.giveCommandJournal.push({
  2688. time:this_.GMTToZero2(new Date()),
  2689. text:data.msg,
  2690. number:data.data.number,
  2691. type:true
  2692. })
  2693. i++;
  2694. this_.giveCommandCG ++;
  2695. this_.giveCommandJD = i;
  2696. if(i >= ids_length){
  2697. this_.loading.batchProcessingFun = false;
  2698. this_.batchProcessing = type;
  2699. this_.getLightList(this_.currentPage);
  2700. websocket.close();
  2701. }
  2702. }else{
  2703. this_.$notify.error({
  2704. title: 'operation failed',
  2705. message: 'Lamp'+data.data.number+':'+data.msg
  2706. });
  2707. this_.giveCommandJournal.push({
  2708. time:this_.GMTToZero2(new Date()),
  2709. text:data.msg,
  2710. number:data.data.number,
  2711. type:false
  2712. })
  2713. i++;
  2714. this_.giveCommandJD = i;
  2715. console.log(i >= ids_length)
  2716. if(i >= ids_length){
  2717. this_.loading.batchProcessingFun = false;
  2718. this_.batchProcessing = type;
  2719. this_.getLightList(this_.currentPage);
  2720. websocket.close();
  2721. }
  2722. }
  2723. }
  2724. },() => {
  2725. this_.loading.batchProcessingFun = false;
  2726. },this_)
  2727. }
  2728. }
  2729. }
  2730. },
  2731. GMTToZero2(time){
  2732. let now = new Date(time);
  2733. let hour = now.getHours();//得到小时
  2734. let minu = now.getMinutes();//得到分钟
  2735. let sec = now.getSeconds();//得到秒
  2736. if (hour < 10) hour = "0" + hour;
  2737. if (minu < 10) minu = "0" + minu;
  2738. if (sec < 10) sec = "0" + sec;
  2739. let times = "";
  2740. times = hour + ":" + minu + ":" + sec;
  2741. return times
  2742. },
  2743. /*获取表格字段*/
  2744. getFields(){
  2745. baseApi.ajax_post(
  2746. allUrl.project.homeFields,
  2747. {
  2748. username:this.username,
  2749. client_key:this.client_key,
  2750. token:this.token,
  2751. },
  2752. {},
  2753. data =>{
  2754. // console.log(data,'字段列表')
  2755. this.fieldList = data.data.list;
  2756. this.fieldKeep();
  2757. },
  2758. this)
  2759. },
  2760. /*字段管理*/
  2761. fieldManagement(){
  2762. baseApi.ajax_post(
  2763. allUrl.project.homeFields,
  2764. {
  2765. username:this.username,
  2766. client_key:this.client_key,
  2767. token:this.token,
  2768. },
  2769. {},
  2770. data =>{
  2771. this.fieldList = data.data.list;
  2772. },
  2773. this)
  2774. this.fieldDialog = true;
  2775. },
  2776. /*字段选择*/
  2777. fieldSelect(data){
  2778. if(data.select == '1'){
  2779. if(data.fields1 == 'number' || data.fields1 == 'address' || data.fields1 == 'networkname' || data.fields1 == 'section'){
  2780. this.$message({
  2781. showClose: true,
  2782. message:'This field cannot be undisplayed',
  2783. type: 'warning'
  2784. });
  2785. }else{
  2786. data.select = '0'
  2787. }
  2788. }else{
  2789. data.select = '1'
  2790. }
  2791. },
  2792. /*字段*/
  2793. fieldKeep(){
  2794. this.tableConfig.label = [];
  2795. this.tableConfig.prop = [];
  2796. this.tableConfig.prop1 = [];
  2797. this.tableConfig.width = [];
  2798. for(var d of this.fieldList){
  2799. if(d.select == '1'){
  2800. this.$set(this.tableConfig.label,this.tableConfig.label.length,d.enname);
  2801. this.$set(this.tableConfig.prop1,this.tableConfig.prop1.length,d.field);
  2802. this.$set(this.tableConfig.prop,this.tableConfig.prop.length,d.fields1);
  2803. if(d.fields1 == 'updatetime'){
  2804. this.$set(this.tableConfig.width,this.tableConfig.width.length,160);
  2805. }else if(d.fields1 == 'isfaulted'){
  2806. this.$set(this.tableConfig.width,this.tableConfig.width.length,160);
  2807. }else{
  2808. this.$set(this.tableConfig.width,this.tableConfig.width.length,(d.enname.length+1)*8+20);
  2809. }
  2810. }
  2811. }
  2812. let i = 0;
  2813. this.deviceArr = [];
  2814. for(let d of this.tableConfig.prop){
  2815. this.deviceArr.push({prop:d,label:this.tableConfig.label[i],minWidth:this.tableConfig.width[i],sortable:this.tableConfig.sortable[i]})
  2816. i++;
  2817. }
  2818. console.log(this.deviceArr)
  2819. this.currentPage = 1;
  2820. this.loading.fieldKeep = true;
  2821. this.getLightList(this.currentPage,() => {
  2822. let this_ = this;
  2823. setTimeout(function(){
  2824. this_.fieldDialog = false;
  2825. this_.loading.fieldKeep = false;
  2826. },100)
  2827. });
  2828. },
  2829. /*获取国家列表*/
  2830. getCountry(){
  2831. baseApi.ajax_post(
  2832. allUrl.common.get_country,
  2833. {
  2834. username:this.username,
  2835. client_key:this.client_key,
  2836. token:this.token,
  2837. },
  2838. {},
  2839. data =>{
  2840. this.countryList = data.data.list;
  2841. },
  2842. this)
  2843. },
  2844. /*获取省份下拉*/
  2845. getProvince(value){
  2846. baseApi.ajax_post(
  2847. allUrl.common.get_province,
  2848. {
  2849. username:this.username,
  2850. client_key:this.client_key,
  2851. token:this.token,
  2852. countryId:value,
  2853. },
  2854. {},
  2855. data =>{
  2856. this.provinceList = data.data.list;
  2857. },
  2858. this)
  2859. },
  2860. /*获取市级下拉*/
  2861. getCity(value){
  2862. baseApi.ajax_post(
  2863. allUrl.common.get_city,
  2864. {
  2865. username:this.username,
  2866. client_key:this.client_key,
  2867. token:this.token,
  2868. provinceId:value,
  2869. },
  2870. {},
  2871. data =>{
  2872. this.cityList = data.data.list;
  2873. },
  2874. this)
  2875. },
  2876. /*获取区级下拉*/
  2877. getArea(value){
  2878. baseApi.ajax_post(
  2879. allUrl.common.get_area,
  2880. {
  2881. username:this.username,
  2882. client_key:this.client_key,
  2883. token:this.token,
  2884. cityId:value,
  2885. },
  2886. {},
  2887. data =>{
  2888. this.areaList = data.data.list;
  2889. },
  2890. this)
  2891. },
  2892. /*公司下拉列表*/
  2893. getCompanyNav(type){
  2894. console.log(this.sideBarCompanyType)
  2895. baseApi.ajax_post(
  2896. allUrl.user.company_nav,
  2897. {
  2898. username:this.username,
  2899. client_key:this.client_key,
  2900. token:this.token,
  2901. type:type,
  2902. },
  2903. {},
  2904. data =>{
  2905. if(type == 3){
  2906. this.companyNavSupplier = data.data.list;
  2907. }
  2908. if(type == 4){
  2909. this.companyNavPO = data.data.list;
  2910. }
  2911. },
  2912. this)
  2913. },
  2914. /*添加项目*/
  2915. addItemFun(){
  2916. this.projectTitle = 'Add Project';
  2917. this.projectButton = 'Create it now';
  2918. this.addItemDialog = true;
  2919. // let this_ = this;
  2920. this.provinceList = [];
  2921. this.cityList = [];
  2922. this.areaList = [];
  2923. this.$nextTick(function(){
  2924. this.$refs['addItemData'].resetFields();
  2925. // this.addItemData.company = this.companyId;
  2926. this.addItemData.patrolinterval = '60';
  2927. this.addItemData.countryId = '';
  2928. this.addItemData.provinceId = '';
  2929. this.addItemData.cityId = '';
  2930. this.addItemData.areaId = '';
  2931. })
  2932. },
  2933. /*编辑项目*/
  2934. editProject(){
  2935. // console.log(this.detail)
  2936. this.addItemDialog = true;
  2937. this.projectTitle = 'Edit Project';
  2938. this.projectButton = 'Save';
  2939. this.$nextTick(function(){
  2940. this.$refs['addItemData'].resetFields();
  2941. this.getProjectDetail(this.projectId,data=>{
  2942. this.addItemData.projectName = data.data.project_name;
  2943. this.addItemData.projectNo = data.data.project_no;
  2944. this.addItemData.timezone = data.data.timezone;
  2945. this.getProvince(data.data.countryId)
  2946. this.getCity(data.data.provinceId);
  2947. this.getArea(data.data.cityId);
  2948. this.addItemData.countryId = data.data.countryId=='0'?'':data.data.countryId;
  2949. this.addItemData.provinceId = data.data.provinceId=='0'?'':data.data.provinceId;
  2950. this.addItemData.cityId = data.data.cityId=='0'?'':data.data.cityId;
  2951. this.addItemData.areaId = data.data.areaId=='0'?'':data.data.areaId;
  2952. this.addItemData.address = data.data.address;
  2953. // this.addItemData.company = this.companyId;
  2954. this.addItemData.patrolinterval = data.data.patrolinterval;
  2955. })
  2956. })
  2957. },
  2958. countryType(val){
  2959. this.getProvince(val)
  2960. this.addItemData.provinceId = '';
  2961. this.provinceList = [];
  2962. this.addItemData.cityId = '';
  2963. this.cityList = [];
  2964. this.addItemData.areaId = '';
  2965. this.areaList = [];
  2966. },
  2967. provinceType(val){
  2968. this.getCity(val);
  2969. this.addItemData.cityId = '';
  2970. this.cityList = [];
  2971. this.addItemData.areaId = '';
  2972. this.areaList = [];
  2973. },
  2974. cityType(val){
  2975. this.getArea(val);
  2976. this.addItemData.areaId = '';
  2977. this.areaList = [];
  2978. },
  2979. /*数据更新*/
  2980. lampcontrolUpdate(){
  2981. let lampIds = '';
  2982. for(let d of this.multipleSelection){
  2983. if(lampIds == ''){
  2984. lampIds = d.id;
  2985. }else{
  2986. lampIds += ',' + d.id;
  2987. }
  2988. }
  2989. if(lampIds == ''){
  2990. this.$message({
  2991. showClose: true,
  2992. message:'Please select the light control',
  2993. type: 'warning'
  2994. });
  2995. }else{
  2996. this.loading.lampcontrolUpdate = true;
  2997. baseApi.ajax_post(
  2998. allUrl.project.lampcontrolUpdate,
  2999. {
  3000. username:this.username,
  3001. client_key:this.client_key,
  3002. token:this.token,
  3003. lamp_id:lampIds,
  3004. },
  3005. {},
  3006. data =>{
  3007. // console.log(data)
  3008. this.$message({
  3009. showClose: true,
  3010. message:data.msg,
  3011. type: 'success'
  3012. });
  3013. this.getLightList(this.currentPage);
  3014. let this_ = this;
  3015. setTimeout(function(){
  3016. this_.loading.lampcontrolUpdate = false;
  3017. },100)
  3018. },
  3019. this,
  3020. () => {
  3021. this.getLightList(this.currentPage);
  3022. this.loading.lampcontrolUpdate = false;
  3023. }
  3024. )
  3025. }
  3026. },
  3027. handleSelectionChange(val) {
  3028. this.multipleSelection = val;
  3029. this.popoverCLShow = false;
  3030. for(let d of this.multipleSelection){
  3031. if(d.loadtype == '1'){
  3032. this.popoverCLShow = true;
  3033. }
  3034. }
  3035. },
  3036. statusTypeFun(value,type,offline,online){
  3037. if(this.status != value || this.alarmtype != type || this.offline != offline || this.online != online){
  3038. this.status = value;
  3039. this.alarmtype = type;
  3040. this.currentPage = 1;
  3041. this.offline = offline;
  3042. this.online = online;
  3043. this.getLightList(this.currentPage);
  3044. }
  3045. },
  3046. brightnessAdjustment(e,data){
  3047. console.log(e,'--------',data)
  3048. this.lampLightSliderShow = true;
  3049. let clientWidth = 0,clientHeight = 0,offsetX = 0,offsetY = 0,pageX = 0,pageY = 0;
  3050. clientWidth = e.target.clientWidth;
  3051. clientHeight = e.target.clientHeight;
  3052. offsetX = e.offsetX;
  3053. offsetY = e.offsetY;
  3054. pageX = e.pageX;
  3055. pageY = e.pageY;
  3056. console.log(pageY,$('#app > .scrollbar_style.padding')[0].scrollTop,clientHeight - offsetY);
  3057. this.lampLightSliderPageX = pageX - offsetX + clientWidth + 15;
  3058. this.lampLightSliderPageY = pageY + $('#app > .scrollbar_style.padding')[0].scrollTop - (this.remRatio*(4.1+1.5/2)+71/2+6) + clientHeight - offsetY;
  3059. this.lampLightSlider = parseInt(data.lighteness);
  3060. this.lampId = data.id;
  3061. },
  3062. lampLightSliderClose(){
  3063. this.lampLightSliderShow = false;
  3064. this.lampLightSlider = 0;
  3065. },
  3066. lampLightSliderSave(){
  3067. let this_ = this;
  3068. this.loading.lampLightSlider = true;
  3069. console.log(allUrl.websocket.wss)
  3070. baseApi.websocket1(allUrl.websocket.wss,data=>{
  3071. if(data.data.status == '1'){
  3072. baseApi.ajax_post_ws(
  3073. allUrl.gisMap.lampcontrolDimming,
  3074. {
  3075. username:this_.username,
  3076. client_key:this_.client_key,
  3077. token:this_.token,
  3078. lamp_id:this_.lampId,
  3079. type:'1',
  3080. lightness:this_.lampLightSlider,
  3081. mode:'0',
  3082. clientid:data.data.clientid,
  3083. },
  3084. this_,
  3085. )
  3086. }
  3087. if(data.status == '2'){
  3088. if(data.code == '0000'){
  3089. this_.$message({
  3090. showClose: true,
  3091. message:data.msg,
  3092. type: 'success'
  3093. });
  3094. this_.loading.lampLightSlider = false;
  3095. this_.getLightList(this_.currentPage);
  3096. this_.lampLightSliderShow = false;
  3097. }else{
  3098. this_.$message({
  3099. showClose: true,
  3100. message:data.msg,
  3101. type: 'warning'
  3102. });
  3103. this_.loading.lampLightSlider = false;
  3104. }
  3105. }
  3106. },() => {
  3107. this_.loading.lampLightSlider = false;
  3108. },this_)
  3109. },
  3110. handleCurrentChange(val){
  3111. console.log(`current page: ${val}`);
  3112. this.currentPage = val;
  3113. this.getLightList(this.currentPage);
  3114. },
  3115. handleCurrentChangeLS(val) {
  3116. this.lampcontrolHistorylist(val);
  3117. },
  3118. seeFun(data){
  3119. this.detailsDialog = true;
  3120. this.detailsFieldList = [];
  3121. this.lampId = data.id;
  3122. this.lampLoadtype = data.loadtype;
  3123. if(data.loadtype == '1'){
  3124. this.detailsNavList[0].label ='Insect trap';
  3125. }else{
  3126. this.detailsNavList[0].label ='lamp';
  3127. }
  3128. this.detailsNavSelect = 'lamp_info_log';
  3129. this.lampcontrolViewloglist('lamp_info_log',data => {
  3130. // console.log(data,this.streetlightDetails)
  3131. let fieldList = Object.assign([],this.fieldList)
  3132. for(var key in data.data){
  3133. for(var d of this.streetlightDetails){
  3134. let obj = {};
  3135. for(let dd of fieldList){
  3136. console.log(dd.fields1,d.model)
  3137. if(dd.fields1 == 'number'){
  3138. dd.fields1 = 'lamp_no'
  3139. }
  3140. if(dd.fields1 == 'networkname'){
  3141. dd.fields1 = 'network_no'
  3142. }
  3143. if(dd.fields1 == 'projectname'){
  3144. dd.fields1 = 'project_name'
  3145. }
  3146. if(dd.fields1 == d.model){
  3147. obj.key = dd.enname
  3148. }
  3149. }
  3150. if(this.lampLoadtype == '1'){
  3151. if(d.model == 'lampstatus'){
  3152. obj.key = 'Insect trap status'
  3153. }
  3154. if(d.model == 'lampvoltage'){
  3155. obj.key = 'Insect trap voltage'
  3156. }
  3157. if(d.model == 'lampcurrent'){
  3158. obj.key = 'Insect trap current'
  3159. }
  3160. if(d.model == 'lamppower'){
  3161. obj.key = 'Insect trap power'
  3162. }
  3163. }
  3164. if(d.model == 'monthly_can_usage'){
  3165. obj.key = '套餐总量'
  3166. }
  3167. if(d.model == 'monthly_already_usage'){
  3168. obj.key = '套餐使用量'
  3169. }
  3170. if(d.model == 'iccid'){
  3171. obj.key = 'ICCID'
  3172. }
  3173. if(d.model == key){
  3174. if(d.model != 'devicetype'){
  3175. obj.value = data.data[key];
  3176. obj.model = d.model;
  3177. obj.unit = '';
  3178. console.log(obj.key,obj)
  3179. this.detailsFieldList.push(obj)
  3180. }
  3181. }
  3182. }
  3183. }
  3184. })
  3185. },
  3186. detailsNavSelectFun(data){
  3187. this.detailsNavSelect = data.model;
  3188. this.detailsFieldList = [];
  3189. this.lampcontrolViewloglist(data.model,data => {
  3190. // console.log(data,this.streetlightDetails)
  3191. let fieldList = Object.assign([],this.fieldList)
  3192. for(var key in data.data){
  3193. for(var d of this.streetlightDetails){
  3194. let obj = {};
  3195. for(let dd of fieldList){
  3196. if(dd.fields1 == 'number'){
  3197. dd.fields1 = 'lamp_no'
  3198. }
  3199. if(dd.fields1 == 'networkname'){
  3200. dd.fields1 = 'network_no'
  3201. }
  3202. if(dd.fields1 == 'projectname'){
  3203. dd.fields1 = 'project_name'
  3204. }
  3205. if(dd.fields1 == d.model){
  3206. obj.key = dd.enname
  3207. }
  3208. }
  3209. if(this.lampLoadtype == '1'){
  3210. if(d.model == 'lampstatus'){
  3211. obj.key = 'Insect trap status'
  3212. }
  3213. if(d.model == 'lampvoltage'){
  3214. obj.key = 'Insect trap voltage'
  3215. }
  3216. if(d.model == 'lampcurrent'){
  3217. obj.key = 'Insect trap current'
  3218. }
  3219. if(d.model == 'lamppower'){
  3220. obj.key = 'Insect trap power'
  3221. }
  3222. if(d.model == 'lamp_no'){
  3223. obj.key = 'Insect trap number'
  3224. }
  3225. }
  3226. if(d.model == 'monthly_can_usage'){
  3227. obj.key = '套餐总量'
  3228. }
  3229. if(d.model == 'monthly_already_usage'){
  3230. obj.key = '套餐使用量'
  3231. }
  3232. if(d.model == 'iccid'){
  3233. obj.key = 'ICCID'
  3234. }
  3235. if(d.model == key){
  3236. if(d.model != 'devicetype'){
  3237. obj.value = data.data[key];
  3238. obj.model = d.model;
  3239. obj.unit = '';
  3240. console.log(obj.key,obj)
  3241. this.detailsFieldList.push(obj)
  3242. }
  3243. }
  3244. }
  3245. }
  3246. })
  3247. },
  3248. projectSaveDel(){
  3249. this.$confirm('This operation will permanently delete the project, will it continue?', 'Prompt', {
  3250. confirmButtonText: 'confirm',
  3251. cancelButtonText: 'cancel',
  3252. type: 'warning'
  3253. }).then(() => {
  3254. baseApi.ajax_post(
  3255. allUrl.project.projectDel,
  3256. {
  3257. username:this.username,
  3258. client_key:this.client_key,
  3259. token:this.token,
  3260. project_id:this.projectId,
  3261. },
  3262. {},
  3263. data =>{
  3264. this.$message({
  3265. showClose: true,
  3266. message:data.msg,
  3267. type: 'success'
  3268. });
  3269. var storage = window.localStorage;
  3270. storage.setItem('projectId',false);
  3271. storage.setItem('companyId',false);
  3272. this.projectId = '';
  3273. // this.getProjectNav('del',this.companyId);
  3274. // var storage = window.localStorage;
  3275. let searchType = storage.getItem("searchType");
  3276. this.sideBarCompanyList('',searchType)
  3277. this.addItemDialog = false;
  3278. },
  3279. this)
  3280. }).catch(() => {
  3281. this.$message({
  3282. type: 'info',
  3283. message: 'Undeleted'
  3284. });
  3285. });
  3286. },
  3287. projectKeydown(e){
  3288. if(e.key == 'Enter'){
  3289. this.projectSaveFun();
  3290. }
  3291. },
  3292. projectSaveFun(){
  3293. var projectId;
  3294. if(this.projectTitle == 'Edit Project'){
  3295. projectId = this.projectId;
  3296. }else{
  3297. projectId = 0;
  3298. }
  3299. let pid = '';
  3300. if(this.addItemData.areaId){
  3301. pid = this.addItemData.areaId;
  3302. }else{
  3303. if(this.addItemData.cityId){
  3304. pid = this.addItemData.cityId;
  3305. }else{
  3306. if(this.addItemData.provinceId){
  3307. pid = this.addItemData.provinceId;
  3308. }else{
  3309. if(this.addItemData.countryId){
  3310. pid = this.addItemData.countryId;
  3311. }
  3312. }
  3313. }
  3314. }
  3315. this.$refs['addItemData'].validate((valid) => {
  3316. if(valid){
  3317. this.projectSaveLoading = true;
  3318. baseApi.ajax_post(
  3319. allUrl.project.projectSave,
  3320. {
  3321. username:this.username,
  3322. client_key:this.client_key,
  3323. token:this.token,
  3324. project_name:this.addItemData.projectName,
  3325. project_no:this.addItemData.projectNo,
  3326. pid:pid,
  3327. project_id:projectId,
  3328. address:this.addItemData.address,
  3329. // company:this.addItemData.company,
  3330. patrolinterval:this.addItemData.patrolinterval,
  3331. },
  3332. {},
  3333. data =>{
  3334. // console.log(data)
  3335. this.$message({
  3336. showClose: true,
  3337. message:data.msg,
  3338. type: 'success'
  3339. });
  3340. let searchType = storage.getItem("searchType");
  3341. this.sideBarCompanyList('',searchType)
  3342. this.addItemDialog = false;
  3343. this.projectSaveLoading = false;
  3344. },
  3345. this,() =>{
  3346. this.projectSaveLoading = false;
  3347. })
  3348. }
  3349. })
  3350. },
  3351. /*灯控详细数据*/
  3352. lampcontrolViewloglist(value,callback){
  3353. this.loading.detailsFieldList = true;
  3354. baseApi.ajax_post(
  3355. allUrl.project.lampcontrolViewloglist,
  3356. {
  3357. username:this.username,
  3358. client_key:this.client_key,
  3359. token:this.token,
  3360. lamp_id:this.lampId,
  3361. datatype:value,
  3362. },
  3363. {},
  3364. data =>{
  3365. this.loading.detailsFieldList = false;
  3366. if(callback){
  3367. callback(data)
  3368. }
  3369. this.lampcontrolListHC = data.data;
  3370. },
  3371. this,()=>{
  3372. this.loading.detailsFieldList = false;
  3373. })
  3374. },
  3375. /*添加灯控*/
  3376. addLightControlFun(){
  3377. this.getCompanyNav(3);
  3378. this.getCompanyNav(4);
  3379. this.lightControlTitle = 'Add Lamp';
  3380. this.lightControlButton = 'Create it now';
  3381. this.addLightControlDialog = true;
  3382. this.$nextTick(function(){
  3383. this.$refs['lightControlData'].resetFields();
  3384. this.lightControlData.longitude = this.detailData.longitude;
  3385. this.lightControlData.latitude = this.detailData.latitude;
  3386. })
  3387. },
  3388. /*编辑灯控*/
  3389. editFun(data){
  3390. this.getCompanyNav(3);
  3391. this.getCompanyNav(4);
  3392. this.lampId = data.id;
  3393. this.lampLoadtype = data.loadtype;
  3394. if(this.lampLoadtype == '1'){
  3395. // this.lightControlList[0].label = '捕虫器编号';
  3396. // this.lightControlList[11].label = '捕虫器类型';
  3397. this.lightControlListEN[0].label = 'Insect trap number';
  3398. this.lightControlListEN[11].label = 'Insect trap Type';
  3399. }else{
  3400. // this.lightControlList[0].label = '路灯编号';
  3401. // this.lightControlList[11].label = '路灯类型';
  3402. this.lightControlListEN[0].label = 'Lamp number';
  3403. this.lightControlListEN[11].label = 'Lamp type';
  3404. }
  3405. if(this.lampLoadtype == '1'){
  3406. this.lightControlTitle = 'Edit Insect trap';
  3407. }else{
  3408. this.lightControlTitle = 'Edit Lamp';
  3409. }
  3410. this.lightControlButton = 'Save';
  3411. this.addLightControlDialog = true;
  3412. this.lampcontrolViewloglist('lampinfo',data=>{
  3413. // console.log(data)
  3414. this.$nextTick(function(){
  3415. this.$refs['lightControlData'].resetFields();
  3416. for(let key in this.lightControlData){
  3417. this.lightControlData[key] = data.data[key];
  3418. }
  3419. this.lightControlData.poName = data.data.po+'';
  3420. this.lightControlData.supplierName = data.data.supplier+'';
  3421. })
  3422. })
  3423. },
  3424. lampKeydown(e){
  3425. if(e.key == 'Enter'){
  3426. this.lightControlFun();
  3427. }
  3428. },
  3429. lightControlFun(){
  3430. // console.log(this.lightControlData)
  3431. let lamp_id;
  3432. if(this.lightControlTitle == 'Add Lamp'){
  3433. lamp_id = 0;
  3434. }else if(this.lightControlTitle == 'Edit Lamp' ||this.lightControlTitle == 'Edit Insect trap'){
  3435. lamp_id = this.lampId;
  3436. }
  3437. this.lightControlData.PO = this.lightControlData.poName;
  3438. this.lightControlData.supplier = this.lightControlData.supplierName;
  3439. this.$refs['lightControlData'].validate((valid) => {
  3440. if(valid){
  3441. baseApi.ajax_post(
  3442. allUrl.project.lampcontrolSave,
  3443. {
  3444. username:this.username,
  3445. client_key:this.client_key,
  3446. token:this.token,
  3447. lamp_id:lamp_id,
  3448. network_id:this.networkId,
  3449. project_id:this.projectId,
  3450. ...this.lightControlData
  3451. },
  3452. {},
  3453. data =>{
  3454. // console.log(data,'灯控回调')
  3455. this.$message({
  3456. showClose: true,
  3457. message:data.msg,
  3458. type: 'success'
  3459. });
  3460. this.getLightList(this.currentPage);
  3461. this.addLightControlDialog = false;
  3462. let storage = window.localStorage;
  3463. let searchType = storage.getItem("searchType");
  3464. this.sideBarCompanyList('',searchType)
  3465. // this.networkSectionList();
  3466. },
  3467. this)
  3468. }
  3469. })
  3470. },
  3471. amapWrapperFun(){
  3472. this.lampLongitude = Number(this.lightControlData.longitude);
  3473. this.lampLatitude = Number(this.lightControlData.latitude);
  3474. if(isNaN(this.lampLongitude) || isNaN(this.lampLatitude) || this.lampLongitude>180||this.lampLongitude<-180||this.lampLatitude>90||this.lampLatitude<-90){
  3475. this.$message({
  3476. showClose: true,
  3477. message: 'Please enter the correct latitude and longitude',
  3478. type: 'warning'
  3479. });
  3480. }else{
  3481. let this_ = this;
  3482. this.amapWrapper = true;
  3483. this.$nextTick(function(){
  3484. $('#lampAmapWrapper').css('height',$(window).height()*0.6+'px')
  3485. // console.log(this.lightControlData)
  3486. let JDstr = '';
  3487. let WDstr = '';
  3488. JDstr = 'longitude';
  3489. WDstr = 'latitude';
  3490. let lat = 0;
  3491. let lng = 0;
  3492. if(!isNaN(this.lampLongitude) && !isNaN(this.lampLatitude) &&!(this.lampLongitude ==0 &&this.lampLongitude ==0)){
  3493. let bd_decrypt = this.bd_decrypt(this.lampLongitude,this.lampLatitude)
  3494. this.lampLatitude = Number(bd_decrypt.lat.toFixed(8));
  3495. this.lampLongitude = Number(bd_decrypt.lng.toFixed(8));
  3496. console.log(this.lampLatitude,this.lampLongitude,'----s')
  3497. lat = bd_decrypt.lat;
  3498. lng = bd_decrypt.lng;
  3499. this_.mapDWIsTrue = false;
  3500. this.map = new google.maps.Map(document.getElementById('lampAmapWrapper'), {
  3501. center:{lat: this.lampLatitude, lng: this.lampLongitude},
  3502. zoom: 16,
  3503. gestureHandling: 'greedy',
  3504. streetViewControl:false,
  3505. mapTypeControlOptions:{
  3506. style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,
  3507. position:google.maps.ControlPosition.RIGHT_TOP
  3508. },
  3509. mapTypeId:google.maps.MapTypeId.ROADMAP,
  3510. });
  3511. // console.log('---------1',lat,lng)
  3512. }else{
  3513. this_.mapDWIsTrue = true;
  3514. this.map = new google.maps.Map(document.getElementById('lampAmapWrapper'), {
  3515. center:{lat: 0, lng: 0},
  3516. zoom: 16,
  3517. gestureHandling: 'greedy',
  3518. streetViewControl:false,
  3519. mapTypeControlOptions:{
  3520. style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,
  3521. position:google.maps.ControlPosition.RIGHT_TOP
  3522. },
  3523. mapTypeId:google.maps.MapTypeId.ROADMAP,
  3524. });
  3525. }
  3526. // console.log(Number(lat),Number(lng))
  3527. this.geocoder = new google.maps.Geocoder();
  3528. let bgColor = 'linear-gradient(#fc8440, #fe7121)';
  3529. let borderColor = 'rgba(253, 122, 48, 0.18)';
  3530. this_.positionPicker = new RichMarker({
  3531. position:new google.maps.LatLng(Number(lat),Number(lng)),
  3532. map: this_.map,
  3533. draggable: true,
  3534. 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>'
  3535. })
  3536. var controlDiv = document.createElement('DIV');
  3537. controlDiv.className = "google_Location_box"
  3538. var controlUI = document.createElement('DIV');
  3539. controlUI.className = "google_Location"
  3540. controlDiv.appendChild(controlUI);
  3541. var svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
  3542. svg.setAttribute('viewBox','25 25 50 50');
  3543. svg.setAttribute('class','circular');
  3544. svg.setAttribute('styel','display:none');
  3545. var circle = document.createElementNS('http://www.w3.org/2000/svg','circle');
  3546. circle.setAttribute('cx','50');
  3547. circle.setAttribute('cy','50');
  3548. circle.setAttribute('r','20');
  3549. circle.setAttribute('fill','none');
  3550. circle.setAttribute('class','path');
  3551. svg.appendChild(circle);
  3552. controlDiv.appendChild(svg);
  3553. google.maps.event.addDomListener(controlDiv, 'click', function() {
  3554. if (navigator.geolocation && this_.googleMapLocattion) {
  3555. this_.googleMapLocattion = false;
  3556. $('.google_Location').css('display','none');
  3557. $('.google_Location_box .circular').css('display','inline-block');
  3558. let options ={
  3559. enableHighAccuracy:false,
  3560. timeout:3000,
  3561. maximumAge:3000
  3562. }
  3563. navigator.geolocation.getCurrentPosition(successHandler,errorHandler,options)
  3564. }
  3565. });
  3566. function successHandler(position){
  3567. this_.map.setCenter(new google.maps.LatLng(position.coords.latitude,position.coords.longitude));
  3568. lat = position.coords.latitude;
  3569. lng = position.coords.longitude;
  3570. this_.positionPicker.setPosition(new google.maps.LatLng(position.coords.latitude,position.coords.longitude))
  3571. this_.googleMapLocattion = true;
  3572. $('.google_Location').css('display','inline-block');
  3573. $('.google_Location_box .circular').css('display','none');
  3574. console.log('---------1--------',position)
  3575. }
  3576. function errorHandler(error){
  3577. console.log('------2-----------',error)
  3578. this_.googleMapLocattion = true;
  3579. $('.google_Location').css('display','inline-block');
  3580. $('.google_Location_box .circular').css('display','none');
  3581. this_.$message({
  3582. showClose: true,
  3583. message:'seek failed',
  3584. type: 'warning'
  3585. });
  3586. }
  3587. this_.map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(controlDiv);
  3588. if(this_.screenMap && this_.mapDWIsTrue){
  3589. this_.geocoder.geocode({address:this_.screenMap},function(status, result){
  3590. // console.log(status, result)
  3591. if(result === 'OK'){
  3592. this_.mapDWIsTrue = false;
  3593. lng = status[0].geometry.location.lng();
  3594. lat = status[0].geometry.location.lat();
  3595. // console.log(lng,lat)
  3596. this_.positionPicker.setPosition(new google.maps.LatLng(lat,lng))
  3597. this_.map.setCenter(new google.maps.LatLng(lat,lng));
  3598. }else{
  3599. this_.mapDWIsTrue = true;
  3600. this_.$message({
  3601. showClose: true,
  3602. message: 'Unrecognized, please change the search content',
  3603. type: 'warning'
  3604. });
  3605. }
  3606. function_navigator(this_,lat,lng);
  3607. })
  3608. }else{
  3609. function_navigator(this_,lat,lng);
  3610. }
  3611. // console.log(navigator.geolocation , this_.mapDWIsTrue)
  3612. function function_navigator(this_) {
  3613. if (navigator.geolocation && this_.mapDWIsTrue && this_.googleMapLocattion) {
  3614. this_.googleMapLocattion = false;
  3615. let time1 = setInterval(function(){
  3616. if($('.google_Location').length>0 && $('.google_Location_box .circular').length>0){
  3617. $('.google_Location').css('display','none');
  3618. $('.google_Location_box .circular').css('display','inline-block');
  3619. clearInterval(time1);
  3620. }
  3621. },1)
  3622. let options ={
  3623. enableHighAccuracy:false,
  3624. timeout:3000,
  3625. maximumAge:3000
  3626. }
  3627. navigator.geolocation.getCurrentPosition(successHandler_,errorHandler_,options)
  3628. }
  3629. }
  3630. function successHandler_(position){
  3631. this_.map.setCenter(new google.maps.LatLng(position.coords.latitude,position.coords.longitude));
  3632. lat = position.coords.latitude;
  3633. lng = position.coords.longitude;
  3634. this_.positionPicker.setPosition(new google.maps.LatLng(position.coords.latitude,position.coords.longitude))
  3635. this_.googleMapLocattion = true;
  3636. let time2 = setInterval(function(){
  3637. if($('.google_Location').length>0 && $('.google_Location_box .circular').length>0){
  3638. $('.google_Location').css('display','inline-block');
  3639. $('.google_Location_box .circular').css('display','none');
  3640. clearInterval(time1);
  3641. clearInterval(time2);
  3642. }
  3643. },1)
  3644. // console.log('---------1--------')
  3645. }
  3646. function errorHandler_(){
  3647. // console.log('------2-----------')
  3648. this_.googleMapLocattion = true;
  3649. let time3 = setInterval(function(){
  3650. if($('.google_Location').length>0 && $('.google_Location_box .circular').length>0){
  3651. $('.google_Location').css('display','inline-block');
  3652. $('.google_Location_box .circular').css('display','none');
  3653. clearInterval(time1);
  3654. clearInterval(time3);
  3655. }
  3656. },1)
  3657. this_.$message({
  3658. showClose: true,
  3659. message:'seek failed',
  3660. type: 'warning'
  3661. });
  3662. }
  3663. google.maps.event.addListener(this_.positionPicker,"position_changed",function(){
  3664. $('.lampLongitude'+this_.lampId).text(this.getPosition().lng().toFixed(8));
  3665. $('.lampLatitude'+this_.lampId).html(this.getPosition().lat().toFixed(8));
  3666. let bd_encrypt = this_.bd_encrypt(this.getPosition().lng().toFixed(8),this.getPosition().lat().toFixed(8))
  3667. this_.lampLongitude = bd_encrypt.bd_lng;
  3668. this_.lampLatitude = bd_encrypt.bd_lat;
  3669. })
  3670. let time = setInterval(function(){
  3671. if($('.lm_img_mover').length >0){
  3672. 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>')
  3673. $('.lm_img_mover').parent().append(div);
  3674. $('.lamp_coordinate_'+this_.lampId).children('i').mouseup(function(e){
  3675. let className = e.target.className.split(' ');
  3676. if(className[0] == 'determine_l'){
  3677. this_.lightControlData.longitude = this_.lampLongitude;
  3678. this_.lightControlData.latitude = this_.lampLatitude;
  3679. $('.lamp_coordinate_'+this_.lampId).css('display','none');
  3680. $('.lamp_'+this_.lampId).unbind("mousedown");
  3681. this_.amapWrapper = false;
  3682. }else if(className[0] == 'cancel_l'){
  3683. this_.amapWrapper = false;
  3684. }
  3685. })
  3686. clearInterval(time)
  3687. }
  3688. },1)
  3689. })
  3690. }
  3691. },
  3692. devicetypeChange(){
  3693. this.lightControlData['protocoltype'] = '';
  3694. this.lightControlData['network_id'] = '';
  3695. },
  3696. screenMapKeyUp(e){
  3697. if(e.key == 'Enter'){
  3698. this.screenMapChange(this.screenMap);
  3699. }
  3700. },
  3701. screenMapChange(val){
  3702. let this_ = this;
  3703. // console.log(val)
  3704. //地理编码,返回地理编码结果
  3705. this_.geocoder.geocode({address:val},function(status, result){
  3706. // console.log(status, result)
  3707. let lng = 0;
  3708. let lat = 0;
  3709. if(result === 'OK'){
  3710. lng = status[0].geometry.location.lng();
  3711. lat = status[0].geometry.location.lat();
  3712. console.log(lng,lat)
  3713. this_.positionPicker.setPosition(new google.maps.LatLng(lat,lng))
  3714. this_.map.setCenter(new google.maps.LatLng(lat,lng));
  3715. this_.mapDWIsTrue = false;
  3716. }else{
  3717. this_.$message({
  3718. showClose: true,
  3719. message:'Unrecognized, please change the search content',
  3720. type: 'warning'
  3721. });
  3722. this_.mapDWIsTrue = true;
  3723. }
  3724. })
  3725. },
  3726. gisFun(obj,type){
  3727. this.lampId = obj.id;
  3728. let isImplement = false;
  3729. for(let val of this.privilege){
  3730. if(val == '2'){
  3731. isImplement = true;
  3732. }
  3733. }
  3734. console.log(this.role)
  3735. if(this.role == '1'){
  3736. isImplement = true;
  3737. }
  3738. if(isImplement){
  3739. this.lampcontrolViewloglist('lampinfo',data=>{
  3740. window.open('#/'+type+'?longitude='+data.data.longitude+'&latitude='+data.data.latitude+'&id='+obj.id);
  3741. })
  3742. }else{
  3743. this.$message({
  3744. showClose: true,
  3745. message:'No view permissions',
  3746. type: 'warning'
  3747. });
  3748. }
  3749. },
  3750. /*历史*/
  3751. historicalFun(data){
  3752. // console.log(data)
  3753. this.lampId = data.id;
  3754. this.historicalLampId = data.id;
  3755. this.lampLoadtype = data.loadtype;
  3756. let time = new Date();
  3757. console.log(time.getFullYear().toString()+'-'+(time.getMonth() + 1)+'-'+(time.getDate()-1))
  3758. this.screenDateLS = [time.getFullYear().toString()+'-'+(time.getMonth() + 1)+'-'+(time.getDate()-1),new Date().format('YY-mm-dd')];
  3759. this.historicalDialog = true;
  3760. this.currentPageLS = 1;
  3761. this.historicalNavSelect = 'lamp_info_log';
  3762. if(data.loadtype == '1'){
  3763. this.historicalNavListEN[0].label = 'Insect trap';
  3764. }else{
  3765. this.historicalNavListEN[0].label = 'lamp';
  3766. }
  3767. this.historicalTableList = JSON.parse(JSON.stringify(this[this.historicalNavSelect+'TableListEN']));
  3768. this.lampcontrolHistorylist(1);
  3769. this.lampHistoryData();
  3770. this.getLampList();
  3771. },
  3772. historicalLampClick(id){
  3773. this.historicalLampId = id;
  3774. this.lampId = id;
  3775. if(this.dataLSType == '1'){
  3776. this.lampcontrolHistorylist(1);
  3777. }else{
  3778. this.lampHistoryData();
  3779. }
  3780. },
  3781. getLampList(){
  3782. this.loading.getLampList = true;
  3783. baseApi.ajax_post(
  3784. allUrl.common.lamp_list,
  3785. {
  3786. username:this.username,
  3787. client_key:this.client_key,
  3788. token:this.token,
  3789. client_type:'0',
  3790. projectid:this.projectId,
  3791. },
  3792. {},
  3793. data =>{
  3794. this.historicalLampList = data.data;
  3795. this.loading.getLampList = false;
  3796. console.log($('.history_box .main_list .lamp_list .select'))
  3797. let isTrue = true;
  3798. let time = setInterval(function(){
  3799. if($('.history_box .main_list .lamp_list .select')){
  3800. $('.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()});
  3801. clearInterval(time);
  3802. }
  3803. if(isTrue){
  3804. setTimeout(function(){
  3805. clearInterval(time);
  3806. },3000)
  3807. }
  3808. isTrue = false;
  3809. },100)
  3810. },
  3811. this,()=>{
  3812. this.loading.getLampList = false;
  3813. })
  3814. },
  3815. exportTableLS(){
  3816. this.lampcontrolHistorylist(1,1);
  3817. },
  3818. screenDateFun(){
  3819. this.LSDataType = '4';
  3820. console.log(this.screenDateLS);
  3821. if(this.dataLSType == '0'){
  3822. this.lampHistoryData();
  3823. }else{
  3824. this.currentPageLS = 1;
  3825. this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  3826. this.lampcontrolHistorylist(1);
  3827. }
  3828. },
  3829. LSDataTypeFun(val){
  3830. this.LSDataType = val;
  3831. this.lampHistoryData();
  3832. },
  3833. dataLSTypeFun(val){
  3834. let historicalNavSelect = this.historicalNavSelect;
  3835. this.dataLSType = val;
  3836. if(val == '0'){
  3837. if(historicalNavSelect == 'system_info_log'){
  3838. this.historicalNavSelect = 'lamp_info_log';
  3839. }
  3840. this.lampHistoryData();
  3841. }else{
  3842. this.LSDataType = '4';
  3843. // console.log(this.screenDateLS);
  3844. // if(this.dataLSType == '0'){
  3845. // this.lampHistoryData();
  3846. // }else{
  3847. // this.currentPageLS = 1;
  3848. // this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  3849. // this.lampcontrolHistorylist(1);
  3850. // }
  3851. if(historicalNavSelect == '3'){
  3852. this.historicalNavSelect = 'lamp_info_log';
  3853. }
  3854. this.currentPageLS = 1;
  3855. this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  3856. this.lampcontrolHistorylist(1,0);
  3857. }
  3858. },
  3859. lampHistoryData(){
  3860. let type = this.historicalNavSelect,date = this.screenDateLS[0]+'/'+this.screenDateLS[1];
  3861. if(this.historicalNavSelect == 'lamp_info_log'){
  3862. type = '0';
  3863. }
  3864. if(this.historicalNavSelect == 'battery_info_log'){
  3865. type = '1';
  3866. }
  3867. if(this.historicalNavSelect == 'solar_info_log'){
  3868. type = '2';
  3869. }
  3870. console.log(type,date)
  3871. this.loading.historyEcharts = true;
  3872. baseApi.ajax_post(
  3873. allUrl.project.lampHistoryData,
  3874. {
  3875. username:this.username,
  3876. client_key:this.client_key,
  3877. client_type:'0',
  3878. token:this.token,
  3879. lampid:this.lampId,
  3880. type:type,
  3881. dateType:this.LSDataType,
  3882. date:date,
  3883. },
  3884. {},
  3885. data =>{
  3886. this.loading.historyEcharts = false;
  3887. this.historyDataInfo = data.data;
  3888. if(data.data.list.updatetime){
  3889. this.historyEcharts(data.data.list,type);
  3890. }
  3891. },
  3892. this,()=>{
  3893. this.loading.historyEcharts = false;
  3894. for(let key in this.historyDataInfo){
  3895. this.historyDataInfo[key] = '';
  3896. }
  3897. })
  3898. },
  3899. historyEcharts(data,type){
  3900. let this_ = this,series = [],dataListMax = 3,gridLeft,legendData = [],legendSelected = {};
  3901. if(type == '0'){
  3902. series = [
  3903. {
  3904. name:'Voltage',
  3905. id:'V_0',
  3906. data:data.lampvoltage,
  3907. type: 'line',
  3908. smooth: true,
  3909. color:'#15CA56',
  3910. showSymbol:false,
  3911. },{
  3912. name:'Current',
  3913. id:'A_1',
  3914. data:data.lampcurrent,
  3915. type: 'line',
  3916. smooth: true,
  3917. color:'#F3BC12',
  3918. showSymbol:false,
  3919. },{
  3920. name:'power',
  3921. id:'W_2',
  3922. data:data.lamppower,
  3923. type: 'line',
  3924. smooth: true,
  3925. color:'#3898F8',
  3926. showSymbol:false,
  3927. },{
  3928. name:'brightness',
  3929. id:'%_3',
  3930. data:data.lighteness,
  3931. type: 'line',
  3932. smooth: true,
  3933. color:'#F05904',
  3934. showSymbol:false,
  3935. },
  3936. ];
  3937. legendData = [
  3938. {name:'Voltage',icon:'circle'},
  3939. {name:'Current',icon:'circle'},
  3940. {name:'power',icon:'circle'},
  3941. // {name:'brightness',icon:'circle',select:false}
  3942. ];
  3943. legendSelected['Voltage'] = true;
  3944. legendSelected['Current'] = true;
  3945. legendSelected['power'] = true;
  3946. // legendSelected['brightness'] = false;
  3947. for(let d of data.lamppower){
  3948. d = parseInt(d);
  3949. if(d > dataListMax){
  3950. dataListMax = d;
  3951. }
  3952. }
  3953. dataListMax = dataListMax +'00'
  3954. gridLeft = dataListMax.length*10;
  3955. }
  3956. if(type == '1'){
  3957. series = [
  3958. {
  3959. name:'Voltage',
  3960. id:'V_0',
  3961. data:data.battvoltage,
  3962. type: 'line',
  3963. smooth: true,
  3964. color:'#15CA56',
  3965. showSymbol:false,
  3966. },{
  3967. name:'Current',
  3968. id:'A_1',
  3969. data:data.batterycurrent,
  3970. type: 'line',
  3971. smooth: true,
  3972. color:'#F3BC12',
  3973. showSymbol:false,
  3974. },{
  3975. name:'power',
  3976. id:'W_2',
  3977. data:data.batterypower,
  3978. type: 'line',
  3979. smooth: true,
  3980. color:'#3898F8',
  3981. showSymbol:false,
  3982. }
  3983. ];
  3984. legendData = [
  3985. {name:'Voltage',icon:'circle'},
  3986. {name:'Current',icon:'circle'},
  3987. {name:'power',icon:'circle'},
  3988. ];
  3989. legendSelected['Voltage'] = true;
  3990. legendSelected['Current'] = true;
  3991. legendSelected['power'] = true;
  3992. for(let d of data.batterypower){
  3993. d = parseInt(d);
  3994. if(d > dataListMax){
  3995. dataListMax = d;
  3996. }
  3997. }
  3998. dataListMax = dataListMax +'00'
  3999. gridLeft = dataListMax.length*10;
  4000. }
  4001. if(type == '2'){
  4002. series = [
  4003. {
  4004. name:'Voltage',
  4005. id:'V_0',
  4006. data:data.solarvoltage,
  4007. type: 'line',
  4008. smooth: true,
  4009. color:'#15CA56',
  4010. showSymbol:false,
  4011. },{
  4012. name:'Current',
  4013. id:'A_1',
  4014. data:data.solarcurrent,
  4015. type: 'line',
  4016. smooth: true,
  4017. color:'#F3BC12',
  4018. showSymbol:false,
  4019. },{
  4020. name:'power',
  4021. id:'W_2',
  4022. data:data.solarpower,
  4023. type: 'line',
  4024. smooth: true,
  4025. color:'#3898F8',
  4026. showSymbol:false,
  4027. },
  4028. ];
  4029. legendData = [
  4030. {name:'Voltage',icon:'circle'},
  4031. {name:'Current',icon:'circle'},
  4032. {name:'power',icon:'circle'},
  4033. ];
  4034. legendSelected['Voltage'] = true;
  4035. legendSelected['Current'] = true;
  4036. legendSelected['power'] = true;
  4037. for(let d of data.solarpower){
  4038. d = parseInt(d);
  4039. if(d > dataListMax){
  4040. dataListMax = d;
  4041. }
  4042. }
  4043. dataListMax = dataListMax +'00'
  4044. gridLeft = dataListMax.length*10;
  4045. }
  4046. if(type == '3'){
  4047. series = [
  4048. {
  4049. name:'Charge',
  4050. id:'AH_0',
  4051. data:data.daychargeah,
  4052. type: 'line',
  4053. smooth: true,
  4054. color:'#15CA56',
  4055. showSymbol:false,
  4056. },{
  4057. name:'Discharge',
  4058. id:'AH_1',
  4059. data:data.daydischarah,
  4060. type: 'line',
  4061. smooth: true,
  4062. color:'#F3BC12',
  4063. showSymbol:false,
  4064. }
  4065. ];
  4066. legendData = [
  4067. {name:'Charge',icon:'circle'},
  4068. {name:'Discharge',icon:'circle'},
  4069. ];
  4070. legendSelected['Charge'] = true;
  4071. legendSelected['Discharge'] = true;
  4072. for(let d of data.daychargeah){
  4073. d = parseInt(d);
  4074. if(d > dataListMax){
  4075. dataListMax = d;
  4076. }
  4077. }
  4078. for(let d of data.daydischarah){
  4079. d = parseInt(d);
  4080. if(d > dataListMax){
  4081. dataListMax = d;
  4082. }
  4083. }
  4084. dataListMax = dataListMax +'00'
  4085. gridLeft = dataListMax.length*10;
  4086. }
  4087. let legendOrient = 'horizontal';
  4088. if(document.body.offsetWidth <1500){
  4089. this_.legendWidth = '180px';
  4090. if(type == '3'){
  4091. legendOrient = 'vertical';
  4092. }
  4093. }else{
  4094. this_.legendWidth = 'auto';
  4095. legendOrient = 'horizontal';
  4096. }
  4097. console.log(data,'------',document.body.offsetWidth,legendData,legendSelected,legendOrient)
  4098. this.$nextTick(function(){
  4099. if(document.getElementsByClassName('history_echarts')[0]){
  4100. const myChart = this.$echarts.init(document.getElementsByClassName('history_echarts')[0]);
  4101. let arry = [],hh,month,dd,mm;
  4102. for(let d of data.updatetime){
  4103. d = new Date(d);month = d.getMonth()+1;dd = d.getDate();
  4104. hh = d.getHours()<10?'0'+d.getHours():d.getHours();
  4105. mm = d.getMinutes()<10?'0'+d.getMinutes():d.getMinutes();
  4106. arry.push(month+'-'+dd+' '+hh+':'+mm)
  4107. }
  4108. let option = {
  4109. tooltip:{
  4110. trigger:'axis',
  4111. axisPointer:{
  4112. snap:true,
  4113. lineStyle:{
  4114. width:2,
  4115. color:'rgba(252, 130, 61, 0.19)',
  4116. type:'dashed',
  4117. }
  4118. },
  4119. padding:0,
  4120. backgroundColor:'rgba(0,0,0,0.6)',
  4121. formatter: function (params) {
  4122. var tls,p='';
  4123. for(let key in params){
  4124. // console.log('sapn_'+params[key].seriesId.split('_')[1])
  4125. p=p+'<p><span class="span_'+params[key].seriesId.split('_')[1]+'"></span>'+params[key].seriesName+': '+params[key].data+' '+params[key].seriesId.split('_')[0]+'</p>'
  4126. }
  4127. tls = '<div class="history_echarts_tooltip"><p>'+data.updatetime[params[0].dataIndex]+'</p>'+p+'</div>'
  4128. return tls;
  4129. },
  4130. },
  4131. grid:{
  4132. top:60,
  4133. left:gridLeft,
  4134. bottom:20,
  4135. right:40,
  4136. },
  4137. legend: {
  4138. data:legendData,
  4139. selected:legendSelected,
  4140. orient:legendOrient,
  4141. type: 'scroll',
  4142. left: '20px',
  4143. top: '0px',
  4144. width:this_.legendWidth,
  4145. itemWidth: 12,
  4146. itemHeight: 12,
  4147. textStyle:{
  4148. color:'rgba(102,102,102,1)',
  4149. fontSize:14,
  4150. fontWeight:500,
  4151. },
  4152. },
  4153. xAxis: {
  4154. data: arry,
  4155. type: 'category',
  4156. boundaryGap: false,
  4157. axisLabel:{
  4158. color:'rgba(136, 136, 136, 1)',
  4159. fontSize:'12',
  4160. },
  4161. axisTick:{
  4162. show:false
  4163. },
  4164. axisLine:{
  4165. show:false
  4166. },
  4167. },
  4168. yAxis: {
  4169. type: 'value',
  4170. nameGap:6,
  4171. // interval:6,
  4172. // max:
  4173. axisLabel:{
  4174. color:'rgba(136, 136, 136, 1)',
  4175. fontSize:'12',
  4176. },
  4177. axisTick:{
  4178. show:false
  4179. },
  4180. axisLine:{
  4181. show:false
  4182. },
  4183. splitNumber:4,
  4184. splitLine:{
  4185. lineStyle:{
  4186. color:'rgba(240, 240, 240, 1)',
  4187. }
  4188. },
  4189. },
  4190. series: series,
  4191. };
  4192. myChart.setOption(option,true);
  4193. window.onresize = function(){
  4194. if(document.body.offsetWidth <1500){
  4195. this_.legendWidth = '180px';
  4196. }else{
  4197. this_.legendWidth = 'auto';
  4198. }
  4199. myChart.setOption(option,true);
  4200. myChart.resize();
  4201. }
  4202. }
  4203. })
  4204. },
  4205. historicalNavSelectFun(obj){
  4206. this.historicalNavSelect = obj.model;
  4207. if(this.dataLSType == '0'){
  4208. this.lampHistoryData();
  4209. }else{
  4210. this.currentPageLS = 1;
  4211. this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  4212. this.lampcontrolHistorylist(1,0);
  4213. }
  4214. // console.log(this.historicalTableList)
  4215. },
  4216. lampcontrolHistorylist(val,download,callback,error){
  4217. let isDownload;
  4218. if(!download){
  4219. isDownload = 0;
  4220. this.historicalTableLoading = true;
  4221. }else{
  4222. this.loading.exportTableLS = true;
  4223. isDownload = download;
  4224. }
  4225. let date = this.screenDateLS[0]+'/'+this.screenDateLS[1];
  4226. console.log(isDownload,callback,error,date)
  4227. baseApi.ajax_post(
  4228. allUrl.project.lampcontrolHistorylist,
  4229. {
  4230. username:this.username,
  4231. client_key:this.client_key,
  4232. token:this.token,
  4233. lamp_id:this.lampId,
  4234. page:val,
  4235. count:this.zCount,
  4236. datatype:this.historicalNavSelect,
  4237. download:isDownload,
  4238. date:date,
  4239. },
  4240. {},
  4241. data =>{
  4242. // console.log(data,'表格历史数据')
  4243. if(callback){
  4244. callback()
  4245. }
  4246. if(download){
  4247. // var $eleBtn2 = $("#btn2");
  4248. var $eleForm = $("<form method='get'></form>");
  4249. $eleForm.attr("action",data.data.path);
  4250. $(document.body).append($eleForm);
  4251. //提交表单,实现下载
  4252. $eleForm.submit();
  4253. this.loading.exportTableLS = false;
  4254. }else{
  4255. this.historicalTableLoading = false;
  4256. if(data.data.list){
  4257. this.historicalTableData = data.data.list;
  4258. this.totalLS = data.data.total*16;
  4259. let i = (this.currentPageLS - 1)*16+1;
  4260. for(let d of this.historicalTableData){
  4261. let hh1 = '',mm1 = '',hh2 = '',mm2 = '';
  4262. hh1 = parseInt(d.daychargemincurrent/3600);
  4263. mm1 = parseInt((d.daychargemincurrent%3600)/60);
  4264. hh2 = parseInt(d.daydischargemincurrent/3600);
  4265. mm2 = parseInt((d.daydischargemincurrent%3600)/60);
  4266. if(hh1<10){
  4267. hh1 = '0'+hh1;
  4268. }
  4269. if(hh2<10){
  4270. hh2 = '0'+hh2;
  4271. }
  4272. if(mm1<10){
  4273. mm1 = '0'+mm1;
  4274. }
  4275. if(mm2<10){
  4276. mm2 = '0'+mm2;
  4277. }
  4278. d.daychargemincurrent = hh1+':'+mm1;
  4279. d.daydischargemincurrent = hh2+':'+mm2;
  4280. d.LSLD_index = i;
  4281. i++;
  4282. }
  4283. }else{
  4284. this.historicalTableData = [];
  4285. this.totalLS = 0;
  4286. }
  4287. }
  4288. },
  4289. this,()=>{
  4290. if(error){
  4291. error()
  4292. }
  4293. if(download){
  4294. this.loading.exportTableLS = false;
  4295. }else{
  4296. this.historicalTableData = [];
  4297. this.totalLS = 0;
  4298. this.historicalTableLoading = false;
  4299. }
  4300. }
  4301. )
  4302. },
  4303. /*参数弹框*/
  4304. monitorFun(data){
  4305. console.log(data,'-------')
  4306. this.lampId = data.id;
  4307. this.lampProtocoltype = data.lampProtocoltype;
  4308. this.loadtype = data.loadtype;
  4309. this.monitorType = 'loadParameters';
  4310. this.monitorDialog = true;
  4311. this.parameterLoadIsEdit = false;
  4312. this.parameterBatteryIsEdit = false;
  4313. this.loadParametersData = this.loadParametersDataNew;
  4314. this.loadParametersListEN = this.loadParametersListENNew
  4315. for(let key in this.loadParametersData){
  4316. this.loadParametersData[key] = '';
  4317. }
  4318. this.loadSetting();
  4319. for(let key in this.batteryParametersData){
  4320. this.batteryParametersData[key] = '';
  4321. }
  4322. this.batterySetting();
  4323. },
  4324. loadNoEditFun(){
  4325. this.loadParametersData = Object.assign({},this.loadParametersDataHC);
  4326. this.parameterLoadIsEdit = false;
  4327. },
  4328. batteryNoEditFun(){
  4329. this.batteryParametersData = Object.assign({},this.batteryParametersDataHC)
  4330. this.parameterBatteryIsEdit = false;
  4331. },
  4332. setLoadFun(){
  4333. // console.log(this.batchModificationParameters,'------1')
  4334. let loadParametersData = JSON.parse(JSON.stringify(this.loadParametersData));
  4335. loadParametersData.first_light_time = this.datezhuanhuan(loadParametersData.first_light_time);
  4336. loadParametersData.second_light_time = this.datezhuanhuan(loadParametersData.second_light_time);
  4337. loadParametersData.third_light_time = this.datezhuanhuan(loadParametersData.third_light_time);
  4338. loadParametersData.fourth_light_time = this.datezhuanhuan(loadParametersData.fourth_light_time);
  4339. loadParametersData.fifth_light_time = this.datezhuanhuan(loadParametersData.fifth_light_time);
  4340. loadParametersData.sixth_light_time = this.datezhuanhuan(loadParametersData.sixth_light_time);
  4341. loadParametersData.seventh_light_time = this.datezhuanhuan(loadParametersData.seventh_light_time);
  4342. loadParametersData.eighth_light_time = this.datezhuanhuan(loadParametersData.eighth_light_time);
  4343. loadParametersData.ninth_light_time = this.datezhuanhuan(loadParametersData.ninth_light_time);
  4344. loadParametersData.tenth_light_time = this.datezhuanhuan(loadParametersData.tenth_light_time);
  4345. if(this.batchModificationParameters){
  4346. this.loading.setLoadFun = true;
  4347. baseApi.websocket1(allUrl.websocket.wss,data=>{
  4348. if(data.data.status == '1'){
  4349. baseApi.ajax_post_ws(
  4350. allUrl.project.setLoad,
  4351. {
  4352. username:this.username,
  4353. client_key:this.client_key,
  4354. token:this.token,
  4355. lamp_id:this.lampId,
  4356. clientid:data.data.clientid,
  4357. ...loadParametersData,
  4358. },
  4359. this,
  4360. )
  4361. }
  4362. if(data.data.status == '2'){
  4363. if(data.code == '0000'){
  4364. this.$message({
  4365. showClose: true,
  4366. message:data.msg,
  4367. type: 'success'
  4368. });
  4369. this.loading.setLoadFun = false;
  4370. this.parameterLoadIsEdit = false;
  4371. }else{
  4372. this.$message({
  4373. showClose: true,
  4374. message:data.msg,
  4375. type: 'warning'
  4376. });
  4377. this.loading.setLoadFun = false;
  4378. this.parameterLoadIsEdit = false;
  4379. }
  4380. }
  4381. },() => {
  4382. this.loading.setLoadFun = false;
  4383. },this)
  4384. }else{
  4385. let this_ = this;
  4386. let i = 0;
  4387. let type = 'off';
  4388. this.loading.setLoadFun = false;
  4389. this.parameterLoadIsEdit = false;
  4390. this.monitorDialog = false;
  4391. this.giveCommandDialog = true;
  4392. this.giveCommandZS = this.multipleSelection.length;
  4393. this.giveCommandCG = 0;
  4394. this.giveCommandJD = 0;
  4395. this.giveCommandJournal = [];
  4396. console.log(this.multipleSelection)
  4397. let ids = '';
  4398. let ids_length = this.multipleSelection.length;
  4399. for(let d of this.multipleSelection){
  4400. if(ids == ''){
  4401. ids = d.id;
  4402. }else{
  4403. ids+=','+d.id;
  4404. }
  4405. }
  4406. baseApi.websocket1(allUrl.websocket.wss,(data,websocket)=>{
  4407. this_.loading.batchProcessingFun = true;
  4408. if(data.data.status == '1'){
  4409. baseApi.ajax_post_ws(
  4410. allUrl.project.setLoad,
  4411. {
  4412. username:this_.username,
  4413. client_key:this_.client_key,
  4414. token:this_.token,
  4415. lamp_id:ids,
  4416. clientid:data.data.clientid,
  4417. ...loadParametersData,
  4418. },
  4419. this,
  4420. )
  4421. }
  4422. if(data.data.status == '2'){
  4423. if(data.code == '0000'){
  4424. this_.$notify({
  4425. title: 'Successful operation',
  4426. message: 'Lamp '+data.data.number,
  4427. type: 'success'
  4428. });
  4429. this_.giveCommandJournal.push({
  4430. time:this_.GMTToZero2(new Date()),
  4431. text:data.msg,
  4432. number:data.data.number,
  4433. type:true
  4434. })
  4435. i++;
  4436. this_.giveCommandCG ++;
  4437. this_.giveCommandJD = i;
  4438. if(i >= ids_length){
  4439. this_.loading.batchProcessingFun = false;
  4440. this_.batchProcessing = type;
  4441. this_.getLightList(this_.currentPage);
  4442. websocket.close();
  4443. }
  4444. }else{
  4445. this_.$notify.error({
  4446. title: 'Operation failed',
  4447. message: 'Lamp '+data.data.number+':'+data.msg
  4448. });
  4449. this_.giveCommandJournal.push({
  4450. time:this_.GMTToZero2(new Date()),
  4451. text:data.msg,
  4452. number:data.data.number,
  4453. type:false
  4454. })
  4455. i++;
  4456. this_.giveCommandJD = i;
  4457. if(i >= ids_length){
  4458. this_.loading.batchProcessingFun = false;
  4459. this_.batchProcessing = type;
  4460. this_.getLightList(this_.currentPage);
  4461. websocket.close();
  4462. }
  4463. }
  4464. }
  4465. },() => {
  4466. this_.loading.batchProcessingFun = false;
  4467. },this_)
  4468. }
  4469. },
  4470. setProjectLoadFun(){
  4471. this.loading.setProjectLoadFun = true;
  4472. baseApi.ajax_post(
  4473. allUrl.project.projectSetPramData,
  4474. {
  4475. // controlType:this.lampProtocoltype,
  4476. username:this.username,
  4477. client_key:this.client_key,
  4478. token:this.token,
  4479. projectid:this.projectId,
  4480. ...this.loadParametersData,
  4481. },
  4482. {},
  4483. data => {
  4484. if(data.data.code == '0000'){
  4485. console.log(data)
  4486. this.$message({
  4487. showClose: true,
  4488. message:data.msg,
  4489. type: 'success'
  4490. });
  4491. this.loading.setProjectLoadFun = false;
  4492. this.parameterLoadIsEdit = false;
  4493. }else{
  4494. this.$message({
  4495. showClose: true,
  4496. message:data.msg,
  4497. type: 'warning'
  4498. });
  4499. this.loading.setProjectLoadFun = false;
  4500. this.parameterLoadIsEdit = false;
  4501. }
  4502. },
  4503. this,
  4504. () => {
  4505. this.loading.setProjectLoadFun = false;
  4506. },
  4507. )
  4508. },
  4509. setBatteryFun(){
  4510. console.log(this.batchModificationParameters,'-----2-------')
  4511. if(this.batchModificationParameters){
  4512. this.loading.setBatteryFun = true;
  4513. let parameter = {};
  4514. let obj = [];
  4515. let objData = {};
  4516. obj = this.batteryParametersList1EN
  4517. for(let d of obj){
  4518. console.log(d.model)
  4519. parameter[d.model] = this.batteryParametersData[d.model]
  4520. }
  4521. objData = {
  4522. username:this.username,
  4523. client_key:this.client_key,
  4524. token:this.token,
  4525. lamp_id:this.lampId,
  4526. batterytype:this.batteryParametersData.batterytype,
  4527. ...parameter,
  4528. }
  4529. // console.log(data)
  4530. baseApi.websocket1(allUrl.websocket.wss,data=>{
  4531. if(data.data.status == '1'){
  4532. baseApi.ajax_post_ws(
  4533. allUrl.project.setBattery,
  4534. {
  4535. clientid:data.data.clientid,
  4536. ...objData
  4537. },
  4538. this,
  4539. )
  4540. }
  4541. if(data.data.status == '2'){
  4542. if(data.code == '0000'){
  4543. this.$message({
  4544. showClose: true,
  4545. message:data.msg,
  4546. type: 'success'
  4547. });
  4548. this.loading.setBatteryFun = false;
  4549. this.parameterBatteryIsEdit = false;
  4550. }else{
  4551. this.$message({
  4552. showClose: true,
  4553. message:data.msg,
  4554. type: 'warning'
  4555. });
  4556. this.loading.setBatteryFun = false;
  4557. this.parameterBatteryIsEdit = false;
  4558. }
  4559. }
  4560. },() => {
  4561. this.loading.setBatteryFun = false;
  4562. },this)
  4563. }else{
  4564. let this_ = this;
  4565. let i = 0;
  4566. let type = 'off';
  4567. this.loading.setBatteryFun = false;
  4568. this.parameterBatteryIsEdit = false;
  4569. this.monitorDialog = false;
  4570. this.giveCommandDialog = true;
  4571. this.giveCommandZS = this.multipleSelection.length;
  4572. this.giveCommandCG = 0;
  4573. this.giveCommandJD = 0;
  4574. this.giveCommandJournal = [];
  4575. console.log(this.multipleSelection)
  4576. let ids = '';
  4577. let ids_length = this.multipleSelection.length;
  4578. for(let d of this.multipleSelection){
  4579. if(ids == ''){
  4580. ids = d.id;
  4581. }else{
  4582. ids+=','+d.id;
  4583. }
  4584. }
  4585. baseApi.websocket1(allUrl.websocket.wss,(data,websocket)=>{
  4586. this_.loading.batchProcessingFun = true;
  4587. if(data.data.status == '1'){
  4588. baseApi.ajax_post_ws(
  4589. allUrl.project.setBattery,
  4590. {
  4591. username:this_.username,
  4592. client_key:this_.client_key,
  4593. token:this_.token,
  4594. lamp_id:ids,
  4595. clientid:data.data.clientid,
  4596. ...this_.batteryParametersData,
  4597. },
  4598. this_,
  4599. )
  4600. }
  4601. if(data.data.status == '2'){
  4602. if(data.code == '0000'){
  4603. this_.$notify({
  4604. title: 'Successful operation',
  4605. message: 'Lamp '+data.data.number,
  4606. type: 'success'
  4607. });
  4608. this_.giveCommandJournal.push({
  4609. time:this_.GMTToZero2(new Date()),
  4610. text:data.msg,
  4611. number:data.data.number,
  4612. type:true
  4613. })
  4614. i++;
  4615. this_.giveCommandCG ++;
  4616. this_.giveCommandJD = i;
  4617. if(i >= ids_length){
  4618. this_.loading.batchProcessingFun = false;
  4619. this_.batchProcessing = type;
  4620. this_.getLightList(this_.currentPage);
  4621. websocket.close();
  4622. }
  4623. }else{
  4624. this_.$notify.error({
  4625. title: 'Operation failed',
  4626. message: 'Lamp '+data.data.number+':'+data.msg
  4627. });
  4628. this_.giveCommandJournal.push({
  4629. time:this_.GMTToZero2(new Date()),
  4630. text:data.msg,
  4631. number:data.data.number,
  4632. type:false
  4633. })
  4634. i++;
  4635. this_.giveCommandJD = i;
  4636. if(i >= ids_length){
  4637. this_.loading.batchProcessingFun = false;
  4638. this_.batchProcessing = type;
  4639. this_.getLightList(this_.currentPage);
  4640. websocket.close();
  4641. }
  4642. }
  4643. }
  4644. },() => {
  4645. this_.loading.batchProcessingFun = false;
  4646. },this_)
  4647. }
  4648. },
  4649. loadSettingFun(){
  4650. for(let key in this.loadParametersData){
  4651. this.loadParametersData[key] = '';
  4652. }
  4653. this.loadSetting();
  4654. },
  4655. loadSetting(callback,error){
  4656. this.loadSettingIsTrue = false;
  4657. this.loading.loadSetting = true;
  4658. this.batchModificationParameters = true;
  4659. baseApi.ajax_post(
  4660. allUrl.project.loadSetting,
  4661. {
  4662. username:this.username,
  4663. client_key:this.client_key,
  4664. token:this.token,
  4665. lamp_id:this.lampId,
  4666. },
  4667. {},
  4668. data =>{
  4669. let arr = Object.keys(data);
  4670. if(arr.length != 0){
  4671. if(callback){
  4672. callback(data)
  4673. }
  4674. this.$message({
  4675. showClose: true,
  4676. message:'Get load parameters successfully',
  4677. type: 'success'
  4678. });
  4679. data.data.first_light_time = new Date('2018-08-06 '+data.data.first_light_time);
  4680. data.data.second_light_time = new Date('2018-08-06 '+data.data.second_light_time);
  4681. data.data.third_light_time = new Date('2018-08-06 '+data.data.third_light_time);
  4682. data.data.fourth_light_time = new Date('2018-08-06 '+data.data.fourth_light_time);
  4683. data.data.fifth_light_time = new Date('2018-08-06 '+data.data.fifth_light_time);
  4684. data.data.sixth_light_time = new Date('2018-08-06 '+data.data.sixth_light_time);
  4685. data.data.seventh_light_time = new Date('2018-08-06 '+data.data.seventh_light_time);
  4686. data.data.eighth_light_time = new Date('2018-08-06 '+data.data.eighth_light_time);
  4687. data.data.ninth_light_time = new Date('2018-08-06 '+data.data.ninth_light_time);
  4688. data.data.tenth_light_time = new Date('2018-08-06 '+data.data.tenth_light_time);
  4689. this.loadParametersDataHC = Object.assign({},data.data)
  4690. for(let key in data.data){
  4691. this.loadParametersData[key] = data.data[key]
  4692. }
  4693. // this.loadParametersDataHC = Object.assign({},this.loadParametersData);
  4694. this.loadSettingIsTrue = true;
  4695. this.loading.loadSetting = false;
  4696. // console.log(data,'获取负载参数成功')
  4697. }
  4698. },
  4699. this,
  4700. data =>{
  4701. if(error){
  4702. error(data)
  4703. }
  4704. if(data.status == '0006'){
  4705. this.loadSettingIsTrue = true;
  4706. this.loading.loadSetting = false;
  4707. }else{
  4708. this.loadSettingIsTrue = false;//555
  4709. this.loading.loadSetting = false;
  4710. }
  4711. this.$message({
  4712. showClose: true,
  4713. message:data.msg,
  4714. type: 'warning'
  4715. });
  4716. }
  4717. )
  4718. },
  4719. batterySettingFun(){
  4720. for(let key in this.batteryParametersData){
  4721. this.batteryParametersData[key] = '';
  4722. }
  4723. this.batterySetting();
  4724. },
  4725. batterySetting(callback,error){
  4726. this.batterySettingIsTrue = false;
  4727. this.loading.batterySetting = true;
  4728. this.batchModificationParameters = true;
  4729. baseApi.ajax_post(
  4730. allUrl.project.batterySetting,
  4731. {
  4732. username:this.username,
  4733. client_key:this.client_key,
  4734. token:this.token,
  4735. lamp_id:this.lampId,
  4736. },
  4737. {},
  4738. data =>{
  4739. if(callback){
  4740. callback(data)
  4741. }
  4742. this.$message({
  4743. showClose: true,
  4744. message:'Get battery parameters successfully',
  4745. type: 'success'
  4746. });
  4747. this.batteryParametersDataHC = Object.assign({},data.data)
  4748. for(let key in data.data){
  4749. this.batteryParametersData[key] = data.data[key]
  4750. // console.log(key,'------')
  4751. }
  4752. // this.batteryParametersData.batterytype = data.data.batterytype;
  4753. console.log(this.batteryParametersData,data.data,'------------')
  4754. this.batterySettingIsTrue = true;
  4755. this.loading.batterySetting = false;
  4756. // console.log(data,'获取蓄电池参数成功')
  4757. },
  4758. this,
  4759. data =>{
  4760. if(error){
  4761. error(data)
  4762. }
  4763. if(data.status == '0006'){
  4764. this.batterySettingIsTrue = true;
  4765. this.loading.batterySetting = false;
  4766. }else{
  4767. this.batterySettingIsTrue = false;//555
  4768. this.loading.batterySetting = false;
  4769. }
  4770. this.$message({
  4771. showClose: true,
  4772. message:data.msg,
  4773. type: 'warning'
  4774. });
  4775. }
  4776. )
  4777. },
  4778. /*参数切换*/
  4779. monitorSwitchFun(type){
  4780. this.monitorType = type;
  4781. },
  4782. datezhuanhuan(date){
  4783. date = new Date(date)
  4784. // console.log(date,'----s-------s------s')
  4785. let h = '',m = '';
  4786. if(date.getHours()<10){
  4787. h = '0'+date.getHours();
  4788. }else{
  4789. h = date.getHours();
  4790. }
  4791. if(date.getMinutes()<10){
  4792. m = '0'+date.getMinutes();
  4793. }else{
  4794. m = date.getMinutes();
  4795. }
  4796. return h+':'+m;
  4797. },
  4798. //百度坐标转高德(传入经度、纬度)
  4799. bd_decrypt(bd_lng, bd_lat) {
  4800. var X_PI = Math.PI * 3000.0 / 180.0;
  4801. var x = bd_lng - 0.0065;
  4802. var y = bd_lat - 0.006;
  4803. var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * X_PI);
  4804. var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * X_PI);
  4805. var gg_lng = z * Math.cos(theta);
  4806. var gg_lat = z * Math.sin(theta);
  4807. return {lng: gg_lng, lat: gg_lat}
  4808. },
  4809. //高德坐标转百度(传入经度、纬度)
  4810. bd_encrypt(gg_lng, gg_lat) {
  4811. var X_PI = Math.PI * 3000.0 / 180.0;
  4812. var x = gg_lng, y = gg_lat;
  4813. var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * X_PI);
  4814. var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * X_PI);
  4815. var bd_lng = z * Math.cos(theta) + 0.0065;
  4816. var bd_lat = z * Math.sin(theta) + 0.006;
  4817. return {
  4818. bd_lat: bd_lat,
  4819. bd_lng: bd_lng
  4820. };
  4821. }
  4822. },
  4823. watch:{
  4824. "lightControlData.devicetype":function (){
  4825. let list = JSON.parse(JSON.stringify(this.lightControlListEN))
  4826. for(let key in list){
  4827. if((list[key].model == 'network_id' && this.lightControlData.devicetype == '1')||(list[key].model == 'protocoltype' && this.lightControlData.devicetype == '0')){
  4828. list.splice(key,1)
  4829. }
  4830. if((this.role == 2||this.role == 4)&&list[key].model == 'poName'){
  4831. list.splice(key,1)
  4832. }
  4833. if((this.role == 2)&&list[key].model == 'supplierName'){
  4834. list.splice(key,1)
  4835. }
  4836. }
  4837. this.$set(this,'lightControlListEN_for',list)
  4838. },
  4839. 'batteryParametersData.li_battery_type':function(curVal){
  4840. if(curVal == '0'){
  4841. if(this.batteryParametersData.system_voltage == '3'){
  4842. this.batteryParametersData.increa_char_voltage = '3.6';
  4843. this.batteryParametersData.float_char_voltage = '3.4';
  4844. this.batteryParametersData.over_dischar_return_voltage = '3.2';
  4845. this.batteryParametersData.over_dischar_voltage = '2.5';
  4846. }
  4847. if(this.batteryParametersData.system_voltage == '6'){
  4848. this.batteryParametersData.increa_char_voltage = '7.2';
  4849. this.batteryParametersData.float_char_voltage = '6.8';
  4850. this.batteryParametersData.over_dischar_return_voltage = '6.4';
  4851. this.batteryParametersData.over_dischar_voltage = '5.0';
  4852. }
  4853. if(this.batteryParametersData.system_voltage == '12'||this.batteryParametersData.system_voltage == '24'){
  4854. this.batteryParametersData.increa_char_voltage = '14.4';
  4855. this.batteryParametersData.float_char_voltage = '13.6';
  4856. this.batteryParametersData.over_dischar_return_voltage = '12.0';
  4857. this.batteryParametersData.over_dischar_voltage = '10.2';
  4858. }
  4859. }else{
  4860. if(this.batteryParametersData.system_voltage == '3'){
  4861. this.batteryParametersData.increa_char_voltage = '4.2';
  4862. this.batteryParametersData.float_char_voltage = '4.0';
  4863. this.batteryParametersData.over_dischar_return_voltage = '3.6';
  4864. this.batteryParametersData.over_dischar_voltage = '3.0';
  4865. }
  4866. if(this.batteryParametersData.system_voltage == '6'){
  4867. this.batteryParametersData.increa_char_voltage = '8.4';
  4868. this.batteryParametersData.float_char_voltage = '8.0';
  4869. this.batteryParametersData.over_dischar_return_voltage = '7.2';
  4870. this.batteryParametersData.over_dischar_voltage = '6.0';
  4871. }
  4872. if(this.batteryParametersData.system_voltage == '12'||this.batteryParametersData.system_voltage == '24'){
  4873. this.batteryParametersData.increa_char_voltage = '12.5';
  4874. this.batteryParametersData.float_char_voltage = '12.0';
  4875. this.batteryParametersData.over_dischar_return_voltage = '10.2';
  4876. this.batteryParametersData.over_dischar_voltage = '9.2';
  4877. }
  4878. }
  4879. },
  4880. 'batteryParametersData.system_voltage':function(curVal,oldVal){
  4881. console.log(curVal,oldVal,this.batteryParametersData.batterytype,'-------')
  4882. if(this.batteryParametersData.batterytype == '1'||this.batteryParametersData.battery_type == '1'||this.batteryParametersData.batterytype == '2'||this.batteryParametersData.battery_type == '2'){
  4883. if(curVal == '3'){
  4884. for(let d of this.batteryParametersList1){
  4885. if(d.model == 'increa_char_voltage'){
  4886. d.option = 'increa_char_voltage3'
  4887. }
  4888. if(d.model == 'float_char_voltage'){
  4889. d.option = 'increa_char_voltage3'
  4890. }
  4891. if(d.model == 'over_dischar_return_voltage'){
  4892. d.option = 'increa_char_voltage3'
  4893. }
  4894. if(d.model == 'over_dischar_voltage'){
  4895. d.option = 'increa_char_voltage3'
  4896. }
  4897. }
  4898. for(let d of this.batteryParametersList1EN){
  4899. if(d.model == 'increa_char_voltage'){
  4900. d.option = 'increa_char_voltage3'
  4901. }
  4902. if(d.model == 'float_char_voltage'){
  4903. d.option = 'increa_char_voltage3'
  4904. }
  4905. if(d.model == 'over_dischar_return_voltage'){
  4906. d.option = 'increa_char_voltage3'
  4907. }
  4908. if(d.model == 'over_dischar_voltage'){
  4909. d.option = 'increa_char_voltage3'
  4910. }
  4911. }
  4912. if(this.batteryParametersData.li_battery_type == '0'){
  4913. this.batteryParametersData.increa_char_voltage = '3.6';
  4914. this.batteryParametersData.float_char_voltage = '3.4';
  4915. this.batteryParametersData.over_dischar_return_voltage = '3.2';
  4916. this.batteryParametersData.over_dischar_voltage = '2.5';
  4917. }else{
  4918. this.batteryParametersData.increa_char_voltage = '4.2';
  4919. this.batteryParametersData.float_char_voltage = '4.0';
  4920. this.batteryParametersData.over_dischar_return_voltage = '3.6';
  4921. this.batteryParametersData.over_dischar_voltage = '3.0';
  4922. }
  4923. }else if(curVal == '6'){
  4924. for(let d of this.batteryParametersList1){
  4925. if(d.model == 'increa_char_voltage'){
  4926. d.option = 'increa_char_voltage6'
  4927. }
  4928. if(d.model == 'float_char_voltage'){
  4929. d.option = 'increa_char_voltage6'
  4930. }
  4931. if(d.model == 'over_dischar_return_voltage'){
  4932. d.option = 'increa_char_voltage6'
  4933. }
  4934. if(d.model == 'over_dischar_voltage'){
  4935. d.option = 'increa_char_voltage6'
  4936. }
  4937. }
  4938. for(let d of this.batteryParametersList1EN){
  4939. if(d.model == 'increa_char_voltage'){
  4940. d.option = 'increa_char_voltage6'
  4941. }
  4942. if(d.model == 'float_char_voltage'){
  4943. d.option = 'increa_char_voltage6'
  4944. }
  4945. if(d.model == 'over_dischar_return_voltage'){
  4946. d.option = 'increa_char_voltage6'
  4947. }
  4948. if(d.model == 'over_dischar_voltage'){
  4949. d.option = 'increa_char_voltage6'
  4950. }
  4951. }
  4952. if(this.batteryParametersData.li_battery_type == '0'){
  4953. this.batteryParametersData.increa_char_voltage = '7.2';
  4954. this.batteryParametersData.float_char_voltage = '6.8';
  4955. this.batteryParametersData.over_dischar_return_voltage = '6.4';
  4956. this.batteryParametersData.over_dischar_voltage = '5.0';
  4957. }else{
  4958. this.batteryParametersData.increa_char_voltage = '8.4';
  4959. this.batteryParametersData.float_char_voltage = '8.0';
  4960. this.batteryParametersData.over_dischar_return_voltage = '7.2';
  4961. this.batteryParametersData.over_dischar_voltage = '6.0';
  4962. }
  4963. }else{
  4964. for(let d of this.batteryParametersList1){
  4965. if(d.model == 'increa_char_voltage'){
  4966. d.option = 'increa_char_voltage0'
  4967. }
  4968. if(d.model == 'float_char_voltage'){
  4969. d.option = 'increa_char_voltage0'
  4970. }
  4971. if(d.model == 'over_dischar_return_voltage'){
  4972. d.option = 'increa_char_voltage0'
  4973. }
  4974. if(d.model == 'over_dischar_voltage'){
  4975. d.option = 'increa_char_voltage0'
  4976. }
  4977. }
  4978. for(let d of this.batteryParametersList1EN){
  4979. if(d.model == 'increa_char_voltage'){
  4980. d.option = 'increa_char_voltage0'
  4981. }
  4982. if(d.model == 'float_char_voltage'){
  4983. d.option = 'increa_char_voltage0'
  4984. }
  4985. if(d.model == 'over_dischar_return_voltage'){
  4986. d.option = 'increa_char_voltage0'
  4987. }
  4988. if(d.model == 'over_dischar_voltage'){
  4989. d.option = 'increa_char_voltage0'
  4990. }
  4991. }
  4992. if(this.batteryParametersData.li_battery_type == '0'){
  4993. if(curVal == '12'){
  4994. this.batteryParametersData.increa_char_voltage = '14.4';
  4995. this.batteryParametersData.float_char_voltage = '13.6';
  4996. this.batteryParametersData.over_dischar_return_voltage = '12.0';
  4997. this.batteryParametersData.over_dischar_voltage = '10.2';
  4998. }
  4999. if(curVal == '24'){
  5000. this.batteryParametersData.increa_char_voltage = '14.4';
  5001. this.batteryParametersData.float_char_voltage = '13.6';
  5002. this.batteryParametersData.over_dischar_return_voltage = '12.0';
  5003. this.batteryParametersData.over_dischar_voltage = '10.2';
  5004. }
  5005. }else{
  5006. if(curVal == '12'){
  5007. this.batteryParametersData.increa_char_voltage = '12.5';
  5008. this.batteryParametersData.float_char_voltage = '12.0';
  5009. this.batteryParametersData.over_dischar_return_voltage = '10.2';
  5010. this.batteryParametersData.over_dischar_voltage = '9.2';
  5011. }
  5012. if(curVal == '24'){
  5013. this.batteryParametersData.increa_char_voltage = '12.5';
  5014. this.batteryParametersData.float_char_voltage = '12.0';
  5015. this.batteryParametersData.over_dischar_return_voltage = '10.2';
  5016. this.batteryParametersData.over_dischar_voltage = '9.2';
  5017. }
  5018. }
  5019. }
  5020. }
  5021. },
  5022. 'batteryParametersData.battery_type':function(val) {
  5023. console.log(val)
  5024. this.batteryParametersData = Object.assign({},this.batteryParametersDataHC)
  5025. this.batteryParametersData.battery_type = val;
  5026. if (this.batteryParametersDataHC.type == '默认' && val == 0) {
  5027. this.batteryParametersData.overvoltage = '16';
  5028. this.batteryParametersData.char_limit_voltage = '15.5';
  5029. this.batteryParametersData.equ_char_time = '240';
  5030. this.batteryParametersData.increa_char_time = '240';
  5031. this.batteryParametersData.char_upper_limit_temper = '65';
  5032. this.batteryParametersData.dischar_upper_limit_temper = '65';
  5033. this.batteryParametersData.char_lower_limit_temper = '-35';
  5034. this.batteryParametersData.dischar_lower_limit_temper = '-35';
  5035. }
  5036. this.batteryParametersDataHC.type = '默认';
  5037. if(val == '2'){
  5038. val = '1';
  5039. }
  5040. // this['batteryParametersList'+val+'EN'] = this['batteryParametersListNew'+val+'EN'];
  5041. this.batteryParametersDataHC = Object.assign({},this.batteryParametersData)
  5042. },
  5043. // 'batteryParametersData.batterytype':function(val) {
  5044. // // console.log(val,'========================',this.batteryParametersData)
  5045. // this.batteryParametersData = Object.assign({},this.batteryParametersDataHC)
  5046. // this.batteryParametersData.batterytype = val;
  5047. // if(val == '2'){
  5048. // val = '1';
  5049. // }
  5050. // this['batteryParametersList'+val+'EN'] = this['batteryParametersListOld'+val+'EN'];
  5051. // if(this.batteryParametersData['capacity'+val]){
  5052. // this.batteryParametersData.capacity = this.batteryParametersData['capacity'+val];
  5053. // }
  5054. // if(this.batteryParametersData['voverdischarge'+val]){
  5055. // this.batteryParametersData.voverdischarge = this.batteryParametersData['voverdischarge'+val];
  5056. // }
  5057. // if(this.batteryParametersData['voverdischargerecover'+val]){
  5058. // this.batteryParametersData.voverdischargerecover = this.batteryParametersData['voverdischargerecover'+val];
  5059. // }
  5060. // if(this.batteryParametersData['vpromotecharge'+val]){
  5061. // this.batteryParametersData.vpromotecharge = this.batteryParametersData['vpromotecharge'+val];
  5062. // }
  5063. // if(this.batteryParametersData['vpromoterecover'+val]){
  5064. // this.batteryParametersData.vpromoterecover = this.batteryParametersData['vpromoterecover'+val];
  5065. // }
  5066. // this.batteryParametersDataHC = Object.assign({},this.batteryParametersData)
  5067. // },
  5068. "role":function (){
  5069. for(let key in this.lightControlListEN){
  5070. if((this.role == 2||this.role == 4)&&this.lightControlListEN[key].model == 'poName'){
  5071. this.lightControlListEN.splice(key,1)
  5072. }
  5073. if((this.role == 2)&&this.lightControlListEN[key].model == 'supplierName'){
  5074. this.lightControlListEN.splice(key,1)
  5075. }
  5076. }
  5077. this.lightControlListEN_for = JSON.parse(JSON.stringify(this.lightControlListEN))
  5078. }
  5079. }
  5080. }
  5081. </script>
  5082. <style type="text/css" lang="less">
  5083. .projectManagement_template{
  5084. width: 100%;
  5085. height: 100%;
  5086. // height: 105rem;
  5087. min-height: 50rem;
  5088. // min-width: 120rem;
  5089. margin: 0 auto;
  5090. overflow: hidden;
  5091. position: relative;
  5092. .nav_top{
  5093. display: flex;
  5094. justify-content: space-between;
  5095. width:100%;
  5096. height:3.3rem;line-height: 3.3rem;
  5097. background:rgba(255,255,255,1);
  5098. border:0.1rem solid rgba(240,240,240,1);
  5099. .left_title{
  5100. display: flex;
  5101. align-items: center;
  5102. img{
  5103. display: inline-block;
  5104. // width: 1.2rem;
  5105. height: 1rem;
  5106. margin: 0 0.6rem;
  5107. }
  5108. .span{
  5109. font-size:1rem;
  5110. font-family:HiraginoSansGB-W3,HiraginoSansGB;
  5111. font-weight:normal;
  5112. color:rgba(101,112,133,1);
  5113. }
  5114. }
  5115. .right_operation{
  5116. display: flex;
  5117. align-items: center;
  5118. padding-right: 1.6rem;
  5119. .el-dropdown{
  5120. width: 10rem;
  5121. height: 2rem;line-height: 2rem;
  5122. background:rgba(246,248,250,1);
  5123. border-radius: 0.2rem;
  5124. margin-right: 0.8rem;
  5125. .el-dropdown-link{
  5126. cursor: pointer;
  5127. height: 100%;
  5128. display: flex;
  5129. align-items: center;
  5130. justify-content: space-between;
  5131. padding: 0 0.8rem;
  5132. font-size:1rem;
  5133. font-family:PingFang-SC-Medium,PingFang-SC;
  5134. font-weight:500;
  5135. color:rgba(101,112,133,1);
  5136. }
  5137. }
  5138. .el-input{
  5139. width: 16.5rem;
  5140. height: 2rem;line-height: 2rem;
  5141. .el-input__inner{
  5142. height: 2rem;line-height: 2rem;
  5143. background:rgba(246,248,250,1);
  5144. border: none;
  5145. }
  5146. .el-input__icon{
  5147. width: 1.8rem;
  5148. height: 2rem;line-height: 2rem;
  5149. border-top-right-radius: 0.2rem;
  5150. border-bottom-right-radius: 0.2rem;
  5151. background:#FC8440;
  5152. color: #fff;
  5153. font-size: 1rem;
  5154. cursor: pointer;
  5155. position: absolute;
  5156. top: 0;
  5157. right: 0;
  5158. }
  5159. }
  5160. .btn{
  5161. margin-left: 0.6rem;
  5162. display: flex;
  5163. align-items: center;
  5164. padding: 0.5rem 1rem;
  5165. height:2rem;line-height: 2rem;
  5166. background:rgba(255,255,255,1);
  5167. border-radius:0.2rem 0.1rem 0.1rem 0.2rem;
  5168. border:0.1rem solid rgba(240,240,240,1);
  5169. cursor: pointer;
  5170. font-size:1rem;
  5171. font-family:PingFang-SC-Medium,PingFang-SC;
  5172. font-weight:500;
  5173. color:rgba(51,51,51,1);
  5174. img{
  5175. height: 1.2rem;
  5176. margin-right: 0.5rem;
  5177. }
  5178. }
  5179. }
  5180. }
  5181. .projectManagement_main{
  5182. background:rgba(246,248,250,1);
  5183. padding: 0.8rem 1.5rem 1.5rem;
  5184. height: calc(100% - 3.3rem);
  5185. position: relative;
  5186. .side_bar_left{
  5187. position: absolute;
  5188. left:0rem;
  5189. height: calc(100% - 2.2rem);
  5190. }
  5191. .main_top{
  5192. // margin-top: 0.8rem;
  5193. display: flex;
  5194. .main_top_left{
  5195. width:82.5rem;
  5196. height:11.6rem;
  5197. padding: 0rem 0 0 19rem;
  5198. // background:linear-gradient(134deg,rgba(252,169,64,1) 0%,rgba(252,132,64,1) 100%);
  5199. background-image: url(../img/project_box1_bg.png);
  5200. background-position: center;
  5201. background-size: 100% 100%;
  5202. border-radius:0.3rem;
  5203. display: flex;
  5204. .main_top_left_left{
  5205. flex: 1;
  5206. .title{
  5207. margin-top: 1.8rem;
  5208. display: flex;
  5209. align-items: center;
  5210. justify-content: space-between;
  5211. height: 1.6rem;
  5212. .l_text{
  5213. .span1{
  5214. font-size:1.33rem;
  5215. font-family:PingFangSC-Medium,PingFang SC;
  5216. font-weight:500;
  5217. color:rgba(255,255,255,1);
  5218. }
  5219. .span2{
  5220. margin-left: 1rem;
  5221. font-size:1rem;
  5222. font-family:PingFangSC-Regular,PingFang SC;
  5223. font-weight:400;
  5224. color:rgba(255,255,255,1);
  5225. }
  5226. }
  5227. .r_btn{
  5228. margin-right: 3rem;
  5229. width:1.6rem;
  5230. height:1.6rem;line-height: 1.6rem;
  5231. text-align: center;
  5232. background:rgba(255,255,255,0.1);
  5233. border-radius:0.2rem;
  5234. cursor: pointer;
  5235. i{
  5236. font-size: 1rem;
  5237. color:rgba(255, 255, 255, 0.8);
  5238. }
  5239. }
  5240. }
  5241. .p{
  5242. margin-top: 0.6rem;
  5243. display: flex;
  5244. align-items: center;
  5245. i{
  5246. font-size: 1rem;
  5247. color: #fff;
  5248. }
  5249. span{
  5250. margin-left: 0.3rem;
  5251. font-size:1rem;
  5252. font-family:PingFangSC-Medium,PingFang SC;
  5253. font-weight:500;
  5254. color:rgba(255,255,255,0.6);
  5255. }
  5256. }
  5257. .data_bpx{
  5258. margin-top: 1.2rem;
  5259. display: flex;
  5260. height:3.8rem;
  5261. border:0.05rem solid rgba(253,195,148,1);
  5262. margin-right: 3rem;
  5263. .li{
  5264. flex: 1;
  5265. text-align:center;
  5266. border-right:0.05rem solid rgba(253,195,148,1);;
  5267. .p1{
  5268. margin-top: 0.5rem;
  5269. font-size:1.3rem;
  5270. font-family:PingFangSC-Regular,PingFang SC;
  5271. font-weight:400;
  5272. color:rgba(255,255,255,1);
  5273. .span2{
  5274. margin-left: 0.3rem;
  5275. font-size:1rem;
  5276. font-family:PingFangSC-Regular,PingFang SC;
  5277. font-weight:400;
  5278. color:rgba(255,255,255,0.5);
  5279. }
  5280. }
  5281. .p2{
  5282. font-size:1rem;
  5283. font-family:PingFangSC-Regular,PingFang SC;
  5284. font-weight:400;
  5285. color:rgba(255,255,255,0.7);
  5286. }
  5287. }
  5288. }
  5289. }
  5290. .main_top_left_right{
  5291. width: 18.8rem;
  5292. border-left: 0.1rem dotted #fff;
  5293. padding-top: 0.8rem;
  5294. padding-left: 0.8rem;
  5295. .box{
  5296. margin-bottom: 0.6rem;
  5297. .p1{
  5298. font-size:1rem;
  5299. font-family:PingFangSC-Regular,PingFang SC;
  5300. font-weight:400;
  5301. color:rgba(255,255,255,1);
  5302. position: relative;
  5303. i{
  5304. position: absolute;
  5305. display: inline-block;
  5306. top: 0.3rem;
  5307. left: -1.2rem;
  5308. width:0.5rem;
  5309. height:0.5rem;
  5310. background:rgba(252,134,64,1);
  5311. border:0.1rem solid rgba(255,201,54,1);
  5312. border-radius: 50%;
  5313. }
  5314. }
  5315. .p2{
  5316. margin-top: 0.2rem;
  5317. font-size:1rem;
  5318. font-family:PingFangSC-Regular,PingFang SC;
  5319. font-weight:400;
  5320. color:rgba(255,255,255,0.6);
  5321. }
  5322. }
  5323. }
  5324. }
  5325. .main_top_right{
  5326. margin-left: 0.8rem;
  5327. flex: 1;
  5328. height:11.8rem;
  5329. background:rgba(255,255,255,1);
  5330. border-radius:0.3rem;
  5331. border:0.1rem solid rgba(240,240,240,1);
  5332. .weather_top{
  5333. display: flex;
  5334. justify-content: space-between;
  5335. padding: 1.4rem 1.6rem 0 1.6rem;
  5336. .weather_top_l{
  5337. display: flex;
  5338. height: 2.8rem;
  5339. .box1{
  5340. img{
  5341. height: 2.8rem;
  5342. }
  5343. }
  5344. .box2{
  5345. margin-left: 0.5rem;
  5346. }
  5347. .p1{
  5348. font-size:1.2rem;
  5349. font-family:PingFangSC-Regular,PingFang SC;
  5350. font-weight:400;
  5351. color:rgba(51,51,51,1);
  5352. }
  5353. }
  5354. .p2{
  5355. font-size:1rem;
  5356. font-family:PingFangSC-Regular,PingFang SC;
  5357. font-weight:400;
  5358. color:rgba(101,112,133,1);
  5359. }
  5360. .weather_top_r{
  5361. display: flex;
  5362. .box1,.box2{
  5363. text-align:center;
  5364. img{
  5365. height: 1.6rem;
  5366. }
  5367. }
  5368. .box2{
  5369. margin-left: 2.2rem;
  5370. }
  5371. .box3{
  5372. font-size:2rem;
  5373. font-family:PingFang-SC-Regular,PingFang-SC;
  5374. font-weight:400;
  5375. color:rgba(34,34,34,1);
  5376. span{
  5377. position: relative;
  5378. margin-left: 1.2rem;
  5379. padding-left: 0.8rem;
  5380. top: 0.2rem;
  5381. border-left: 0.1rem dotted rgba(198, 205, 213, 1);
  5382. }
  5383. }
  5384. }
  5385. }
  5386. .weather_top_bottom{
  5387. display: flex;
  5388. margin-top: 0.7rem;
  5389. padding: 0 1.6rem;
  5390. .li{
  5391. flex: 1;
  5392. height:5.8rem;
  5393. margin-right: 1rem;
  5394. background:rgba(251,252,253,1);
  5395. border-radius:0.42rem;
  5396. border:0.08rem solid rgba(235,239,242,1);
  5397. text-align:center;
  5398. &:last-child{
  5399. margin-right: 0;
  5400. }
  5401. .p1{
  5402. font-size:1rem;
  5403. font-family:AlibabaPuHuiTiR;
  5404. color:rgba(101,112,133,1);
  5405. }
  5406. img{
  5407. margin: 0.2rem 0 0.2rem;
  5408. height: 1.8rem;
  5409. }
  5410. .p2{
  5411. font-size:1rem;
  5412. font-family:PingFangSC-Regular,PingFang SC;
  5413. font-weight:400;
  5414. color:rgba(51,51,51,1);
  5415. }
  5416. }
  5417. }
  5418. }
  5419. }
  5420. .main_table{
  5421. height: calc(100% - 12.4rem);
  5422. margin-top: 0.8rem;
  5423. background-color: #fff;
  5424. border:0.08rem solid rgba(240,240,240,1);
  5425. padding: 0 1.6rem;
  5426. .table_top{
  5427. padding: 1.3rem 0 0.8rem;
  5428. display: flex;
  5429. justify-content: space-between;
  5430. background-color: #fff;
  5431. .table_top_l{
  5432. display: flex;
  5433. .el-dropdown{
  5434. width: 10rem;
  5435. height: 2rem;line-height: 2rem;
  5436. background:rgba(246,248,250,1);
  5437. border-radius: 0.2rem;
  5438. margin-right: 0.8rem;
  5439. .el-dropdown-link{
  5440. cursor: pointer;
  5441. height: 100%;
  5442. display: flex;
  5443. align-items: center;
  5444. justify-content: space-between;
  5445. padding: 0 0.8rem;
  5446. font-size:1rem;
  5447. font-family:PingFang-SC-Medium,PingFang-SC;
  5448. font-weight:500;
  5449. color:rgba(101,112,133,1);
  5450. }
  5451. }
  5452. .nav_box{
  5453. height:2rem;line-height: 2rem;
  5454. background:rgba(246,248,250,1);
  5455. border-radius:0.2rem;
  5456. display: flex;
  5457. .li{
  5458. padding: 0 1rem;
  5459. font-size:1rem;
  5460. font-family:PingFangSC-Regular,PingFang SC;
  5461. font-weight:400;
  5462. color:rgba(101,112,133,1);
  5463. cursor: pointer;
  5464. &.select{
  5465. background:rgba(252,132,64,1);
  5466. box-shadow:0rem 0.17rem 0.5rem 0rem rgba(252,132,64,0.3);
  5467. border-radius:0.2rem;
  5468. font-size:1rem;
  5469. font-family:PingFang-SC-Medium,PingFang-SC;
  5470. font-weight:500;
  5471. color:rgba(255,255,255,1);
  5472. }
  5473. }
  5474. }
  5475. .left_button{
  5476. display: flex;
  5477. >span{
  5478. height:2rem;line-height:2rem;
  5479. font-size: 1rem;
  5480. font-family: PingFangSC-Regular, PingFang SC;
  5481. font-weight: 400;
  5482. color:rgba(101,112,133,1);
  5483. }
  5484. >div{
  5485. margin-left: 1rem;
  5486. padding: 0 0.5rem;
  5487. height:2rem;line-height:2rem;
  5488. border: 1px solid #E8E8E8;
  5489. cursor:pointer;
  5490. >span{
  5491. font-size: 1rem;
  5492. font-family: PingFangSC-Regular, PingFang SC;
  5493. font-weight: 400;
  5494. color:rgba(101,112,133,1);
  5495. }
  5496. }
  5497. .lampcontrol_type_select{
  5498. >span{
  5499. color: #FC8440;
  5500. }
  5501. }
  5502. .dimming_slider_box{
  5503. display: flex;
  5504. // width: 15rem;
  5505. .el-slider{
  5506. position: relative;
  5507. top: 0;
  5508. width: 5rem;
  5509. .el-slider__runway{
  5510. margin: 0.7rem 0 0.7rem 1rem;
  5511. height: 0.6rem;
  5512. .el-slider__bar{
  5513. background-color: #fc8440;
  5514. height: 0.6rem;
  5515. }
  5516. .el-slider__button-wrapper{
  5517. top: -0.5rem;
  5518. width: 1.2rem;height: 1.2rem;
  5519. .el-slider__button{
  5520. width:100%;height: 100%;
  5521. background:url(../img/GIS/Lamp_icon-pre.png);
  5522. background-size: 100% 100%;
  5523. border:0px;
  5524. }
  5525. }
  5526. }
  5527. }
  5528. .span_last{
  5529. float: right;
  5530. color: #FC8440;
  5531. margin-left: 27px;
  5532. }
  5533. }
  5534. >:nth-child(6){
  5535. border: 0px;
  5536. color: #FE7325;
  5537. margin-left: 0px;
  5538. span{
  5539. color: #FC8440;
  5540. text-decoration:underline;
  5541. cursor:pointer;
  5542. }
  5543. }
  5544. >div:nth-child(7){
  5545. border: 0px;
  5546. color: #FE7325;
  5547. padding: 0px;
  5548. span{
  5549. color: #888888;
  5550. text-decoration:underline;
  5551. cursor:pointer;
  5552. }
  5553. }
  5554. .wxzzt{
  5555. span{
  5556. color: #666666;
  5557. }
  5558. }
  5559. .el-loading-spinner{
  5560. height: 100%;
  5561. top: 0;
  5562. margin-top: 0;
  5563. .circular{
  5564. height: 100%;
  5565. width: 100%;
  5566. }
  5567. }
  5568. }
  5569. }
  5570. .table_top_r{
  5571. display: flex;
  5572. .btn{
  5573. padding: 0 0.5rem;
  5574. img{
  5575. height: 1.2rem;
  5576. }
  5577. }
  5578. }
  5579. .btn{
  5580. margin-left: 0.6rem;
  5581. display: flex;
  5582. align-items: center;
  5583. padding: 0.5rem 1rem;
  5584. height:2rem;line-height: 2rem;
  5585. background:rgba(255,255,255,1);
  5586. border-radius:0.2rem 0.1rem 0.1rem 0.2rem;
  5587. border:0.1rem solid rgba(240,240,240,1);
  5588. cursor: pointer;
  5589. font-size:1rem;
  5590. font-family:PingFang-SC-Medium,PingFang-SC;
  5591. font-weight:500;
  5592. color:rgba(51,51,51,1);
  5593. i{
  5594. font-size: 1.2rem;
  5595. color: rgba(252, 137, 64, 1);
  5596. }
  5597. span{
  5598. margin-left: 0.5rem;
  5599. }
  5600. .el-loading-spinner{
  5601. height: 100%;
  5602. top: 0;
  5603. margin-top: 0;
  5604. .circular{
  5605. height: 100%;
  5606. width: 100%;
  5607. }
  5608. }
  5609. }
  5610. }
  5611. .el-table{
  5612. width: 100%;
  5613. th,td{
  5614. padding: 0;
  5615. >.cell{
  5616. padding: 0 0.5rem;
  5617. }
  5618. }
  5619. th{
  5620. height: 3.33rem;line-height: 3.33rem;
  5621. background:rgba(246,248,250,1);
  5622. font-size:1rem;
  5623. font-family:PingFang-SC-Medium,PingFang-SC;
  5624. font-weight:500;
  5625. color:rgba(102,102,102,1);
  5626. }
  5627. td{
  5628. height: 4.2rem;line-height: 4.2rem;
  5629. font-size:1rem;
  5630. font-family:PingFangSC-Medium,PingFang SC;
  5631. font-weight:500;
  5632. color:rgba(51,51,51,1);
  5633. }
  5634. // tr:hover>td{
  5635. // background: rgba(246, 248, 250, 1);
  5636. // >.cell{
  5637. // font-family:PingFangSC-Semibold,PingFang SC;
  5638. // font-weight:600;
  5639. // }
  5640. // }
  5641. .btn{
  5642. padding: 0.5rem 0.5rem;
  5643. cursor: pointer;
  5644. .iconfont{
  5645. font-size: 1rem;
  5646. color: rgba(163, 175, 187, 1);
  5647. }
  5648. }
  5649. .status{
  5650. display: flex;align-items: center;justify-content: center;
  5651. img{
  5652. width: 1.3rem;
  5653. }
  5654. }
  5655. .Brightness{
  5656. padding: 0 1rem;
  5657. .progress_outer{
  5658. height:1.5rem;
  5659. position: relative;
  5660. cursor: pointer;
  5661. border-radius:0.75rem;
  5662. overflow: hidden;
  5663. .progress_inner{
  5664. height:1.5rem;;line-height:1.5rem;
  5665. background:linear-gradient(134deg,rgba(252,169,64,1) 0%,rgba(252,132,64,1) 100%);
  5666. }
  5667. .text{
  5668. background:rgba(252,132,64,0.1);
  5669. position: absolute;
  5670. top: 0;left:0;
  5671. width: 100%;height: 1.5rem;line-height: 1.5rem;
  5672. text-align: center;
  5673. font-size:1rem;
  5674. font-family:PingFang-SC-Medium,PingFang-SC;
  5675. font-weight:500;
  5676. color:#BC4502;
  5677. &.light50{
  5678. color: #FFFFFF;
  5679. }
  5680. &.light0{
  5681. color: #657085;
  5682. background-color:#EBEFF2;
  5683. }
  5684. }
  5685. }
  5686. }
  5687. }
  5688. .pagination_box{
  5689. height: 2.3rem;line-height: 2.3rem;
  5690. margin-top: 1.6rem;
  5691. margin-bottom: 1.6rem;
  5692. display: flex;
  5693. .left{
  5694. margin-left: auto;
  5695. display: flex;
  5696. align-items: center;
  5697. background:rgba(246,248,250,1);
  5698. border-radius:1.2rem;
  5699. padding: 0 1.2rem;
  5700. .totle{
  5701. font-size:1rem;
  5702. font-family:AlibabaPuHuiTiR;
  5703. color:rgba(51,51,51,1);
  5704. .span2{
  5705. margin-left: 0.2rem;
  5706. color: rgba(252, 132, 64, 1);
  5707. }
  5708. }
  5709. .line{
  5710. margin: 0 0.7rem;
  5711. width:0.08rem;
  5712. height:1rem;
  5713. background-color: rgba(235, 239, 242, 1);
  5714. }
  5715. .el-dropdown-link{
  5716. font-size:1rem;
  5717. font-family:AlibabaPuHuiTiR;
  5718. color:rgba(51,51,51,1);
  5719. cursor: pointer;
  5720. }
  5721. }
  5722. .el-pagination{
  5723. margin: 0 auto 0 0.8rem;
  5724. // border-radius:1.2rem;
  5725. padding: 0;
  5726. .btn-next,.btn-prev{
  5727. height: 2.3rem;line-height: 2.3rem;
  5728. background:rgba(246,248,250,1);
  5729. &:hover{
  5730. background:rgba(252,132,64,1);
  5731. font-family:AlibabaPuHuiTiM;
  5732. color:rgba(255,255,255,1);
  5733. }
  5734. &.active{
  5735. font-family:AlibabaPuHuiTiM;
  5736. color:rgba(255,255,255,1);
  5737. cursor: default;
  5738. background:rgba(252,132,64,1);
  5739. }
  5740. }
  5741. // button{
  5742. // &:disabled{
  5743. // background-color: initial;
  5744. // }
  5745. // }
  5746. .btn-prev{
  5747. border-top-left-radius: 1.2rem;
  5748. border-bottom-left-radius: 1.2rem;
  5749. }
  5750. .btn-next{
  5751. border-top-right-radius: 1.2rem;
  5752. border-bottom-right-radius: 1.2rem;
  5753. }
  5754. .el-pager{
  5755. background:rgba(246,248,250,1);
  5756. li{
  5757. height: 2.3rem;line-height: 2.3rem;
  5758. background-color: initial;
  5759. font-size:1rem;
  5760. font-family:AlibabaPuHuiTiR;
  5761. color:rgba(51,51,51,1);
  5762. border-radius:0.25rem;
  5763. &:hover{
  5764. background:rgba(252,132,64,1);
  5765. font-family:AlibabaPuHuiTiM;
  5766. color:rgba(255,255,255,1);
  5767. }
  5768. &.active{
  5769. font-family:AlibabaPuHuiTiM;
  5770. color:rgba(255,255,255,1);
  5771. cursor: default;
  5772. background:rgba(252,132,64,1);
  5773. }
  5774. }
  5775. }
  5776. .el-pagination__jump{
  5777. margin-left: 0.8rem;
  5778. height:2.3rem;line-height: 2.3rem;
  5779. background:rgba(246,248,250,1);
  5780. border-radius:1.2rem;
  5781. padding: 0 1.2rem;
  5782. font-size:1rem;
  5783. font-family:AlibabaPuHuiTiR;
  5784. color:rgba(51,51,51,1);
  5785. .el-input{
  5786. height:2.3rem;line-height: 2.3rem;
  5787. .el-input__inner{
  5788. height:2.3rem;line-height: 2.3rem;
  5789. border: none;
  5790. background-color: #f6f8fa;
  5791. }
  5792. }
  5793. }
  5794. }
  5795. }
  5796. }
  5797. }
  5798. /*添加编辑项目*/
  5799. .addItem_box{
  5800. .box{
  5801. padding: 0 40px 0 20px;
  5802. .left_box{
  5803. .el-input{
  5804. width: 90%;
  5805. }
  5806. }
  5807. .el-select{
  5808. width:100%;
  5809. }
  5810. }
  5811. .project_del{
  5812. color: #fc8440;
  5813. margin-left: 30px;
  5814. cursor: pointer;
  5815. text-decoration: underline;
  5816. }
  5817. .project_upgrade{
  5818. color: #409EFF;
  5819. margin-left: 30px;
  5820. cursor: pointer;
  5821. text-decoration: underline;
  5822. }
  5823. }
  5824. /*字段管理*/
  5825. .field_box{
  5826. .fielf_box{
  5827. >div{
  5828. width: 25%;
  5829. font-size:12px;
  5830. }
  5831. }
  5832. .field_list{
  5833. float:left;
  5834. width: 20%;
  5835. margin-bottom:20px;
  5836. div{
  5837. margin-right: 20px;
  5838. height:40px;
  5839. line-height: 40px;
  5840. text-align: center;
  5841. border-radius: 6px;
  5842. color: #888888;
  5843. border: 1px solid #DCDCDC;
  5844. cursor: pointer;
  5845. position: relative;
  5846. img{
  5847. position: absolute;
  5848. top: 15px;
  5849. left: 10px;
  5850. }
  5851. }
  5852. }
  5853. .field_select{
  5854. div{
  5855. background:#3A96FF;
  5856. color: #FFFFFF;
  5857. border: 1px solid #3A96FF;
  5858. }
  5859. }
  5860. }
  5861. /*灯控详情*/
  5862. .details_box{
  5863. .wrap{
  5864. .table_box{
  5865. text-align: center;
  5866. th{
  5867. text-align: center;
  5868. color: #444444;
  5869. }
  5870. }
  5871. .el-table--enable-row-hover .el-table__body tr:hover>td{
  5872. // background: inherit;
  5873. }
  5874. .row_bg{
  5875. background: #F6F6F9;
  5876. }
  5877. position: relative;
  5878. // height: 50px;
  5879. .nav{
  5880. position: absolute;
  5881. width:428px;
  5882. height:50px;
  5883. line-height: 50px;
  5884. left: 50%;
  5885. margin-left: -214px;
  5886. background:rgba(255,255,255,1);
  5887. border-radius: 100px;
  5888. border:1px solid #E8E8E8;
  5889. .nav_list{
  5890. float: left;
  5891. width: 19%;
  5892. text-align: center;
  5893. cursor: pointer;
  5894. span{
  5895. font-size:14px;
  5896. font-family:PingFangSC-Medium;
  5897. color:#888888;
  5898. }
  5899. }
  5900. .details_nav_select{
  5901. background:linear-gradient(-90deg,rgba(54,130,251,1),rgba(56,161,246,1));
  5902. border-radius: 100px;
  5903. width: 24%;
  5904. span{
  5905. color: #ffffff;
  5906. }
  5907. }
  5908. }
  5909. .historicalnav{
  5910. position: absolute;
  5911. width:428px;
  5912. height:50px;
  5913. line-height: 50px;
  5914. left: 50%;
  5915. margin-left: -214px;
  5916. background:rgba(255,255,255,1);
  5917. border-radius: 100px;
  5918. border:1px solid #E8E8E8;
  5919. .nav_list{
  5920. float: left;
  5921. width: 24%;
  5922. text-align: center;
  5923. cursor: pointer;
  5924. span{
  5925. font-size:14px;
  5926. font-family:PingFangSC-Medium;
  5927. color:#888888;
  5928. }
  5929. }
  5930. .details_nav_select{
  5931. background:linear-gradient(-90deg,rgba(54,130,251,1),rgba(56,161,246,1));
  5932. border-radius: 100px;
  5933. width: 28%;
  5934. span{
  5935. color: #ffffff;
  5936. }
  5937. }
  5938. }
  5939. .details_list_box{
  5940. padding-top: 126px;
  5941. display: flex;
  5942. // justify-content: space-between;
  5943. flex-direction: row;
  5944. flex-wrap: wrap;
  5945. .details_list{
  5946. // float: left;
  5947. width: 25%;
  5948. position: relative;
  5949. margin-bottom: 30px;
  5950. span{
  5951. display: inline-block;
  5952. font-size:16px;
  5953. font-family:PingFangSC-Medium;
  5954. color:#222222;
  5955. line-height:16px;
  5956. height:44px;
  5957. line-height: 44px;
  5958. // white-space: nowrap;
  5959. // overflow: hidden;
  5960. // text-overflow: ellipsis;
  5961. }
  5962. span:first-child{
  5963. position: absolute;
  5964. width: 180px;
  5965. padding-right:20px;
  5966. text-align: right;
  5967. }
  5968. span:last-child{
  5969. padding: 0 20px;
  5970. margin-left: 190px;
  5971. width:calc(100% - 242px);
  5972. background:#F8F9FC;
  5973. border-radius: 2px ;
  5974. border: 1px solid #E8E8E8;
  5975. white-space: nowrap;
  5976. overflow: hidden;
  5977. text-overflow: ellipsis;
  5978. }
  5979. }
  5980. }
  5981. .details_list_box_EN{
  5982. .details_list_min{
  5983. width: 33.3%;
  5984. }
  5985. .details_list{
  5986. span:first-child{
  5987. width: 255px;
  5988. // line-height: 22px;
  5989. }
  5990. span:last-child{
  5991. margin-left: 260px;
  5992. width:calc(100% - 300px);
  5993. }
  5994. }
  5995. }
  5996. }
  5997. }
  5998. /*添加编辑灯控*/
  5999. .addLightControl_box{
  6000. .list_box{
  6001. width: 20%;
  6002. float: left;
  6003. height: 40px;
  6004. }
  6005. .list_box_min{
  6006. width: 25%;
  6007. }
  6008. .project_del{
  6009. color: #fc8440;
  6010. margin-left: 30px;
  6011. cursor: pointer;
  6012. text-decoration: underline;
  6013. }
  6014. .el-input-number{
  6015. width:100%;
  6016. .el-input__inner{
  6017. text-align: left;
  6018. }
  6019. }
  6020. .el-select{
  6021. width: 100%;
  6022. }
  6023. }
  6024. .monitor_box{
  6025. .el-date-editor.el-input, .el-date-editor.el-input__inner{
  6026. width: 100%;
  6027. }
  6028. .el-dialog__header{
  6029. border-bottom: 0px;
  6030. height: 25px;
  6031. }
  6032. .el-dialog{
  6033. margin-top: 60px !important;
  6034. }
  6035. .el-dialog__body{
  6036. // padding: 30px 0px 0 60px;
  6037. .dialog_foot .el-button{
  6038. width: 160px;
  6039. }
  6040. }
  6041. .el-input-number{
  6042. width: 100%;
  6043. input{
  6044. text-align: left;
  6045. }
  6046. }
  6047. .el-select{
  6048. width: 100%;
  6049. }
  6050. .wrap{
  6051. position: relative;
  6052. padding-top: 80px;
  6053. .button{
  6054. position: absolute;
  6055. top: -10px;right: 0px;
  6056. .el-button{
  6057. background: linear-gradient(140.3deg, #fc8440, #fe7121);
  6058. color: #fff;
  6059. border: 0px;
  6060. }
  6061. }
  6062. .nav{
  6063. position: absolute;
  6064. top: -10px;
  6065. left: 50%;
  6066. margin-left: -209px;
  6067. width:418px;
  6068. height:50px;
  6069. background:rgba(232,232,232,1);
  6070. border-radius: 100px;
  6071. div{
  6072. float: left;
  6073. text-align: center;
  6074. width:209px;
  6075. height:50px;
  6076. line-height: 50px;
  6077. border-radius: 100px ;
  6078. cursor: pointer;
  6079. span{
  6080. font-size:14px;
  6081. font-family:PingFangSC-Medium;
  6082. }
  6083. }
  6084. .monitor_type{
  6085. background:rgba(55,59,68,1);
  6086. span{
  6087. color:rgba(255,255,255,1);
  6088. }
  6089. }
  6090. }
  6091. .box{
  6092. // overflow: auto;
  6093. // padding-right: 75px;
  6094. .el-form{
  6095. display: flex;
  6096. flex-wrap: wrap;//换行
  6097. align-content: flex-start;//display flex 布局换行后行间距清空。
  6098. }
  6099. .list_box{
  6100. width: 25%;
  6101. height: 40px;
  6102. }
  6103. .list_boxEN{
  6104. width: 33.33%;
  6105. float: left;
  6106. height: 40px;
  6107. }
  6108. }
  6109. .box_padding{
  6110. padding-right: 0px;
  6111. }
  6112. }
  6113. }
  6114. /*历史弹框*/
  6115. .history_box{
  6116. .el-dialog__body{
  6117. padding:0px;
  6118. }
  6119. .wrap{
  6120. position: relative;
  6121. height: 50rem;
  6122. display: flex;
  6123. .main_list{
  6124. width: 16rem;
  6125. height: 100%;
  6126. // display: flex;
  6127. box-sizing: border-box;
  6128. border-right: 2px solid rgba(240, 240, 240, 1);
  6129. .main_list_title{
  6130. height: 4rem;
  6131. line-height: 4rem;
  6132. font-size:1.2rem;
  6133. font-family:PingFangSC-Semibold;
  6134. font-weight:600;
  6135. color:rgba(34,34,34,1);
  6136. padding-left:2rem;
  6137. border-bottom: 1px solid rgba(240, 240, 240, 1);
  6138. }
  6139. .main_list_box{
  6140. height: calc(100% - 4rem);
  6141. display: flex;
  6142. &.EN{
  6143. .nav_list{
  6144. padding-left: 1rem;
  6145. span{
  6146. display: inline-block;
  6147. max-width: 100%;
  6148. line-height: 1.2rem;
  6149. vertical-align: middle; // 行内垂直平行
  6150. }
  6151. }
  6152. }
  6153. }
  6154. .lamp_list{
  6155. text-align: center;
  6156. height: calc(100%);
  6157. overflow: auto;
  6158. box-sizing: border-box;
  6159. width: 10rem;
  6160. border-right: 2px solid rgba(240, 240, 240, 1);
  6161. .li{
  6162. height:3.5rem;
  6163. line-height: 3.5rem;
  6164. font-size:1rem;
  6165. font-family:PingFang-SC-Medium;
  6166. font-weight:500;
  6167. color:rgba(102,102,102,1);
  6168. cursor: pointer;
  6169. &.select{
  6170. font-family:PingFangSC-Semibold;
  6171. font-weight:600;
  6172. color:rgba(254,119,43,1);
  6173. background:rgba(253,124,51,0.1);
  6174. }
  6175. }
  6176. }
  6177. .historicalnav{
  6178. box-sizing: border-box;
  6179. background-color:rgba(248, 248, 248, 1);
  6180. width: 10rem;
  6181. }
  6182. .nav_list{
  6183. padding-left: 2rem;
  6184. height: 4rem;
  6185. line-height: 4rem;
  6186. font-size: 1rem;
  6187. border-bottom: 1px solid rgba(240, 240, 240, 1);
  6188. // background-color:rgba(255, 255, 255, 1);
  6189. cursor: pointer;
  6190. span{
  6191. display: inline-block;
  6192. max-width: 8rem;
  6193. // white-space: nowrap;
  6194. // overflow: hidden;
  6195. // text-overflow: ellipsis;
  6196. }
  6197. }
  6198. .details_nav_select{
  6199. color: rgba(255, 117, 39, 1);
  6200. }
  6201. }
  6202. .main_box{
  6203. width: calc(100% - 16rem);
  6204. padding: 2rem 1rem 0 1rem;
  6205. height: 100%;
  6206. .screen_box{
  6207. height: 3.2rem;
  6208. line-height: 3.2rem;
  6209. margin-bottom: 2.4rem;
  6210. display: flex;
  6211. align-items: center;
  6212. justify-content: space-between;
  6213. >div{
  6214. display: flex;
  6215. align-items: center;
  6216. }
  6217. .el-pager{
  6218. padding-top: 0.5rem;
  6219. li{
  6220. height: 2.2rem;
  6221. line-height: 2.2rem;
  6222. &.active {
  6223. color: #fff;
  6224. background: #fc8440;
  6225. border-radius: 2rem;
  6226. }
  6227. }
  6228. }
  6229. .el-pagination{
  6230. font-weight: normal;
  6231. }
  6232. .el-select .el-input.is-focus .el-input__inner{
  6233. border-color: #fc8440;
  6234. }
  6235. .el-input.is-active .el-input__inner, .el-input__inner:focus{
  6236. border-color: #fc8440;
  6237. }
  6238. .el-pagination button, .el-pagination span:not([class*=suffix]){
  6239. height: 3.2rem;
  6240. line-height: 3.2rem;
  6241. }
  6242. .el-pagination__editor{
  6243. height: 3.2rem;
  6244. line-height: 3.2rem;
  6245. }
  6246. .el-pagination__editor.el-input .el-input__inner{
  6247. height: 2.2rem;
  6248. }
  6249. .el-pager .more::before{
  6250. line-height: 2.2rem;
  6251. }
  6252. }
  6253. .screen_date{
  6254. border-radius: 2rem;
  6255. border:1px solid #DCDFE6;
  6256. overflow: hidden;
  6257. margin-right: 2rem;
  6258. // height: 2.5rem;line-height: 2.5rem;
  6259. .el-date-editor{
  6260. width: 14rem;
  6261. height: 2.5rem;line-height: 2.5rem;
  6262. padding:0;
  6263. border:none;
  6264. }
  6265. .el-range-editor--small .el-range-separator{
  6266. height: 2.5rem;line-height: 2.5rem;
  6267. }
  6268. .el-button--small{
  6269. height: 2.5rem;line-height: 2.5rem;
  6270. padding:0 1rem;
  6271. }
  6272. .el-button{
  6273. border: none;
  6274. border-left: 1px solid #DCDFE6;
  6275. .el-icon-arrow-right{
  6276. margin: 0 0 0 1.8rem;
  6277. }
  6278. }
  6279. }
  6280. .el-table{
  6281. th,td{
  6282. padding: 0;
  6283. >.cell{
  6284. padding: 0 0.5rem;
  6285. }
  6286. }
  6287. th{
  6288. height: 3.33rem;line-height: 3.33rem;
  6289. background:rgba(246,248,250,1);
  6290. font-size:1rem;
  6291. font-family:PingFang-SC-Medium,PingFang-SC;
  6292. font-weight:500;
  6293. color:rgba(102,102,102,1);
  6294. }
  6295. td{
  6296. height: 4.2rem;line-height: 4.2rem;
  6297. font-size:1rem;
  6298. font-family:PingFangSC-Medium,PingFang SC;
  6299. font-weight:500;
  6300. color:rgba(51,51,51,1);
  6301. }
  6302. }
  6303. .data_type_nav{
  6304. display: flex;
  6305. width: 15rem;
  6306. height: 2.5rem;line-height: 2.5rem;
  6307. border: 1px solid rgba(232, 232, 232, 1);
  6308. border-radius: 1.6rem;
  6309. overflow: hidden;
  6310. text-align: center;
  6311. margin-top: 1rem;
  6312. position: relative;
  6313. margin-left: -12rem;
  6314. left: 50%;
  6315. .li{
  6316. flex: 1;
  6317. cursor: pointer;
  6318. }
  6319. .select{
  6320. color: #fff;
  6321. height:2.5rem;
  6322. background:linear-gradient(270deg,rgba(54,130,251,1) 0%,rgba(56,161,246,1) 100%);
  6323. border-radius:10rem;
  6324. }
  6325. }
  6326. .LS_echarts{
  6327. display: flex;
  6328. height: 100%;
  6329. .left_echarts{
  6330. width: 76%;
  6331. height: 100%;
  6332. position: relative;
  6333. .echarts_top{
  6334. position: absolute;
  6335. top: 0rem;
  6336. z-index: 1;
  6337. right: 0px;
  6338. display: flex;
  6339. align-items: center;
  6340. justify-content: space-between;
  6341. >div{
  6342. display: flex;
  6343. }
  6344. }
  6345. .screen_date_select{
  6346. margin-right: 2rem;
  6347. width: 20rem;
  6348. height: 2.5rem;line-height: 2.5rem;
  6349. border: 1px solid #DCDFE6;
  6350. border-radius: 2.5em;
  6351. overflow: hidden;
  6352. text-align: center;
  6353. display: flex;
  6354. cursor: pointer;
  6355. .li{
  6356. flex:1;
  6357. border-right: 1px solid #DCDFE6;
  6358. font-size: 1rem;
  6359. &:last-child{
  6360. border-right: none;
  6361. }
  6362. }
  6363. .select{
  6364. color: rgba(253, 125, 52, 1);
  6365. }
  6366. }
  6367. .history_echarts{
  6368. width: 100%;
  6369. height: calc(100% - 6rem);
  6370. .history_echarts_tooltip{
  6371. background-color:#fff;
  6372. color: rgba(102, 102, 102, 1);
  6373. padding:14px;
  6374. border: 1px solid rgba(211, 181, 164, 1);
  6375. p{
  6376. position:relative;
  6377. span{
  6378. display: inline-block;
  6379. width: 5px;height: 5px;
  6380. position: relative;
  6381. top: -2px;
  6382. margin-right: 10px;
  6383. }
  6384. .span_0{
  6385. background-color: #15CA56;
  6386. }
  6387. .span_1{
  6388. background-color: #F3BC12;
  6389. }
  6390. .span_2{
  6391. background-color: #3898F8;
  6392. }
  6393. .span_3{
  6394. background-color: #F05904;
  6395. }
  6396. margin-bottom: 12px;
  6397. &:last-child{
  6398. margin: 0;
  6399. }
  6400. }
  6401. }
  6402. }
  6403. .history_echarts_noData{
  6404. width: 100%;
  6405. height: calc(100% - 6rem);
  6406. h3{
  6407. padding-top: 3rem;
  6408. text-align: center;
  6409. }
  6410. }
  6411. }
  6412. .left_data{
  6413. width: 24%;
  6414. height: 100%;
  6415. background:rgba(255,249,245,1);
  6416. border-radius:2px;
  6417. border:1px solid rgba(238,238,238,1);
  6418. padding: 0 1rem;
  6419. p{
  6420. text-align: center;
  6421. font-size:1.2rem;
  6422. font-family:PingFang-SC-Medium;
  6423. font-weight:500;
  6424. color:rgba(51,51,51,1);
  6425. margin: 1.9rem 0 2.3rem 0;
  6426. img{
  6427. position:relative;
  6428. top: 0.2rem;
  6429. margin-right: 1rem;
  6430. }
  6431. }
  6432. .ul{
  6433. .li{
  6434. height:3rem;
  6435. line-height: 3rem;
  6436. background:rgba(249,240,233,1);
  6437. border-radius:0.4rem;
  6438. display: flex;
  6439. align-items: center;
  6440. justify-content: space-between;
  6441. margin-bottom: 1rem;
  6442. .span1{
  6443. font-size:0.8rem;
  6444. font-family:PingFang-SC-Medium;
  6445. font-weight:500;
  6446. color:rgba(102,102,102,1);
  6447. margin-left: 1.3rem;
  6448. }
  6449. .span_r{
  6450. display: flex;
  6451. height: 3rem;
  6452. align-items: center;
  6453. flex: 1;
  6454. justify-content: flex-end;
  6455. }
  6456. .span2{
  6457. font-size:1.9rem;
  6458. font-family:PingFang-SC-Medium;
  6459. font-weight:500;
  6460. color:rgba(51,51,51,1);
  6461. margin-right: 0.5rem;
  6462. display: inline-block;
  6463. text-align: right;
  6464. // max-width: 38px;
  6465. width: calc(100% - 4rem);
  6466. white-space: nowrap;
  6467. overflow: hidden;
  6468. text-overflow: ellipsis;
  6469. }
  6470. .span3{
  6471. margin-right: 1rem;
  6472. font-size:1.2rem;
  6473. font-family:PingFang-SC-Medium;
  6474. font-weight:500;
  6475. color:rgba(153,153,153,1);
  6476. // margin-right: 7px;
  6477. // @media (max-width: 1500px){
  6478. // display: inline-block;
  6479. // line-height: 40px;
  6480. // position: relative;
  6481. // top: -7px;
  6482. // }
  6483. }
  6484. }
  6485. &.EN{
  6486. .li{
  6487. .span1{
  6488. display: inline-block;
  6489. max-width: calc(100% - 9rem);
  6490. line-height: 1.2rem;
  6491. }
  6492. }
  6493. }
  6494. }
  6495. }
  6496. }
  6497. .echarts_bottom{
  6498. position: relative;
  6499. display: flex;
  6500. .echarts_bottom_text{
  6501. margin-top: 1rem;
  6502. height: 3.2rem;
  6503. line-height: 3.2rem;
  6504. font-size:1rem;
  6505. font-family:PingFang-SC-Medium;
  6506. font-weight:500;
  6507. color:rgba(102,102,102,1);
  6508. }
  6509. &.echarts_line{
  6510. .data_type_nav{
  6511. margin-left: -22rem;
  6512. left: 61.49%;
  6513. }
  6514. }
  6515. }
  6516. }
  6517. .table_box{
  6518. text-align: center;
  6519. th{
  6520. text-align: center;
  6521. color: #444444;
  6522. }
  6523. }
  6524. .el-table--enable-row-hover .el-table__body tr:hover>td{
  6525. // background: inherit;
  6526. }
  6527. .row_bg{
  6528. background: #F6F6F9;
  6529. }
  6530. }
  6531. }
  6532. }
  6533. .lampAmapWrapper_box{
  6534. position: relative;
  6535. .screenMap{
  6536. position: absolute;
  6537. top: 20px;left:40px;
  6538. width:250px;
  6539. z-index: 1;
  6540. line-height: 50px;
  6541. i{
  6542. font-size: 20px;
  6543. cursor: pointer;
  6544. }
  6545. }
  6546. }
  6547. #lampAmapWrapper{
  6548. width: 100%;
  6549. min-height: 400px;
  6550. .google_Location_box{
  6551. width: 40px;
  6552. height: 40px;
  6553. background: #fff;
  6554. right: 10px !important;
  6555. bottom: 120px !important;
  6556. .google_Location{
  6557. display:none;
  6558. background: #fff url(http://webapi.amap.com/theme/v1.3/markers/b/loc_gray.png) 50% 50% no-repeat;
  6559. width: 38px;
  6560. height: 38px;
  6561. border: 1px solid #ccc;
  6562. cursor: pointer;
  6563. }
  6564. .circular{
  6565. height: 40px;
  6566. width: 40px;
  6567. animation: loading-rotate 2s linear infinite;
  6568. .path{
  6569. animation: loading-dash 1.5s ease-in-out infinite;
  6570. stroke-dasharray: 90,150;
  6571. stroke-dashoffset: 0;
  6572. stroke-width: 2;
  6573. stroke: #409eff;
  6574. stroke-linecap: round;
  6575. }
  6576. }
  6577. }
  6578. .lamp_coordinate_en{
  6579. .determine_l{
  6580. background: url(../img/GIS/determine-icon.png);
  6581. display:inline-block;
  6582. width: 38px;height: 38px;
  6583. }
  6584. .cancel_l{
  6585. background: url(../img/GIS/cancel-icon.png);
  6586. display:inline-block;
  6587. width: 38px;height: 38px;
  6588. margin-left: 10px;
  6589. }
  6590. }
  6591. .lamp_coordinate_en{
  6592. // width: 200px
  6593. // display: none;
  6594. position: absolute;
  6595. line-height: 40px;
  6596. width: 600px;
  6597. top: -6px;
  6598. left: 50px;
  6599. display: flex;
  6600. align-items: center;
  6601. >span{
  6602. display: inline-block;
  6603. padding: 0 20px;
  6604. margin-right: 20px;
  6605. font-size: 14px;
  6606. color: #888888;
  6607. background: #fff;
  6608. span{
  6609. span{
  6610. color:#fc8440;
  6611. }
  6612. }
  6613. >:first-child{
  6614. margin-right: 10px;
  6615. }
  6616. }
  6617. >i{
  6618. font-size:30px;
  6619. z-index: 1;
  6620. cursor: pointer;
  6621. }
  6622. }
  6623. .lamp_coordinate{
  6624. // width: 200px
  6625. // display: none;
  6626. position: absolute;
  6627. line-height: 40px;
  6628. width: 450px;
  6629. top: 0px;
  6630. left: 78px;
  6631. >span{
  6632. display: inline-block;
  6633. padding: 0 20px;
  6634. margin-right: 20px;
  6635. font-size: 14px;
  6636. color: #888888;
  6637. background: #fff;
  6638. span{
  6639. span{
  6640. color:#fc8440;
  6641. }
  6642. }
  6643. >:first-child{
  6644. margin-right: 10px;
  6645. }
  6646. }
  6647. >i{
  6648. font-size:30px;
  6649. z-index: 1;
  6650. cursor: pointer;
  6651. }
  6652. }
  6653. }
  6654. .lamp_light_slider{
  6655. position: absolute;
  6656. top: 0px;
  6657. left: 0px;
  6658. width: 100%;
  6659. height: 100%;
  6660. .bg{
  6661. position:absolute;
  6662. top: 0px;
  6663. left: 0px;
  6664. width: 100%;
  6665. height: 100%;
  6666. }
  6667. .box{
  6668. position:absolute;
  6669. width: 342px;
  6670. padding: 5px 0 15px 0;
  6671. background-color: #fff;
  6672. box-shadow:0px 2px 24px 0px rgba(90,90,90,0.12);
  6673. border-radius:2px;
  6674. }
  6675. .div1{
  6676. position: absolute;
  6677. top: 40px;
  6678. left: -15px;
  6679. display: flex;
  6680. width: 25px;
  6681. span{
  6682. display: inline-block;
  6683. width:15px;
  6684. height:1px;
  6685. border-top:1px solid rgba(252, 132, 64, 1);
  6686. }
  6687. i{
  6688. position: relative;
  6689. top: -3px;
  6690. display: inline-block;
  6691. width:7px;
  6692. height:7px;
  6693. border-radius: 7px;
  6694. background:rgba(252,132,64,1);
  6695. }
  6696. }
  6697. .div2{
  6698. padding: 0 16px 0 18px;
  6699. >div:nth-child(1){
  6700. height:25px;
  6701. line-height:25px;
  6702. span:nth-child(1){
  6703. font-size:12px;
  6704. font-family:PingFang-SC-Medium;
  6705. font-weight:500;
  6706. color:rgba(102,102,102,1);
  6707. }
  6708. span:nth-child(2){
  6709. padding: 0px 10px;
  6710. font-size:14px;
  6711. font-family:PingFang-SC-Medium;
  6712. font-weight:500;
  6713. color:rgba(252,129,58,1);
  6714. float: right;
  6715. cursor: pointer;
  6716. }
  6717. }
  6718. .el-slider__bar{
  6719. background-color:rgba(252, 132, 64, 1);
  6720. }
  6721. .el-slider__button{
  6722. position: relative;
  6723. top: 15px;
  6724. border:none;
  6725. background-image: url(../img/projectManagement/slider_button.png);
  6726. background-size: 100% 100%;
  6727. }
  6728. .el-slider__runway{
  6729. margin: 10px 0;
  6730. }
  6731. }
  6732. }
  6733. </style>