GISMap.vue 357 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698
  1. <template>
  2. <div class="GISMap_main">
  3. <div class="main_top_bg">
  4. </div>
  5. <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" :projectAll="projectAll"></side-bar-idcol>
  6. <div class="right_sidebar_box">
  7. <div class="top_data_box" :class="{'EN':version == '0'}" :style="{'top':topDataBoxShow?'0px':'-96px'}">
  8. <div class="ul" >
  9. <div class="li" v-for="item in topDataListEN" :key="item.id">
  10. <p class="p1" v-if="topDataNav[item.model]">{{topDataNav[item.model]>9999?parseInt(topDataNav[item.model]):topDataNav[item.model]}}<span v-if="item.value">{{topDataNav[item.value]}}%</span></p>
  11. <p class="p1" v-if="!topDataNav[item.model]">0<span v-if="item.value">{{topDataNav[item.value]}}%</span></p>
  12. <p class="p2"><i></i>{{item.label}}</p>
  13. </div>
  14. </div>
  15. <div class="bottom_box" @click="topDataBoxShowFun()">
  16. <div class="icon">
  17. <div></div>
  18. <div></div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="amap-wrapper" element-loading-text="Map data loading">
  24. <div id="container">
  25. </div>
  26. <ul class="contextmenu" :style="{'top':contextmenuY+'px','left':contextmenuX+'px'}" v-show="contextmenuIsShow" @contextmenu="contextmenuFun">
  27. <li @click="lampRotateFun" v-if="mapTCtype == 'Satellite'" class="rotate">
  28. <div>{{'Rotate '+lmText}}</div>
  29. <div class="rotate_btu">
  30. <div @click="changeDirectionFun('0')">{{'Up'}}</div>
  31. <div @click="changeDirectionFun('1')">{{'Down'}}</div>
  32. <div @click="changeDirectionFun('2')">{{'Left'}}</div>
  33. <div @click="changeDirectionFun('3')">{{'Right'}}</div>
  34. </div>
  35. </li>
  36. <li @click="lampEditFun">{{'Edit '+lmText}}</li>
  37. <li @click="lampDelFun">{{'Delete '}}</li>
  38. </ul>
  39. <div class="contextmenu_bg" v-show="contextmenuIsShow" @contextmenu="contextmenuFun" @mousedown="mousedownFun"></div>
  40. </div>
  41. <div class="lamp_dialog" :class="{'EN':version == '0'}" v-if="lampDialogShow">
  42. <div class="top_nav">
  43. <div class="top_nav_li top_nav_li1" :class="{'select':lampDialogType == '1','borderRadius1':lampDialogType == '2'}" @click="lampDialogTypeSwitch('1')">
  44. <div class="bg">
  45. <span>{{'Lamp'}}</span>
  46. </div>
  47. </div>
  48. <div class="top_nav_li top_nav_li2" :class="{'select':lampDialogType == '2','borderRadius21':lampDialogType == '1','borderRadius23':lampDialogType == '3'}" @click="lampDialogTypeSwitch('2')">
  49. <div class="bg">
  50. <span>{{'Section'}}</span>
  51. </div>
  52. </div>
  53. <div class="top_nav_li top_nav_li3" :class="{'select':lampDialogType == '3','borderRadius3':lampDialogType == '2'}" @click="lampDialogTypeSwitch('3')">
  54. <div class="bg">
  55. <span>{{'Project'}}</span>
  56. </div>
  57. </div>
  58. <div class="top_nav_li top_nav_li4" :class="{'borderRadius4':lampDialogType == '3'}" @click="lampDialogClose">
  59. <i class="el-icon-close"></i>
  60. </div>
  61. </div>
  62. <div class="lamp_info scroll_show" v-if="lampDialogType == '1'" key="lamp_info">
  63. <div class="box1">
  64. <div class="box1_left">
  65. <div class="li li1"><span class="span1">{{'number'}}</span><span class="span2">{{dialogLampInfo.number}}</span></div>
  66. <div class="li li2"><span class="span1">{{'SN'}}</span><span class="span2">{{dialogLampInfo.address}}</span></div>
  67. </div>
  68. <div class="box1_right">
  69. <img :src="require('../img/GIS/wifi_'+dialogLampInfo.netStatus+'.png')" />
  70. </div>
  71. </div>
  72. <div class="box">
  73. <div class="box_top">
  74. <div class="top_left">
  75. <i></i><span>{{'Lamp'}}</span>
  76. </div>
  77. <div class="top_right" @click="historicalFun(dialogLampInfo,'lamp_info_log')">
  78. <img src="../img/GIS/data_icon.png"><span>{{'Historical data'}}</span>
  79. </div>
  80. </div>
  81. <div class="data_box">
  82. <div class="li">
  83. <div class="li_left">
  84. <span class="span1">{{'Brightness'}}</span>
  85. <span class="span2">{{dialogLampInfo.lighteness}}(%)</span>
  86. </div>
  87. <i></i>
  88. <div class="li_right">
  89. <span class="span1">{{'Power'}}</span>
  90. <span class="span2">{{dialogLampInfo.lamppower}}(W)</span>
  91. </div>
  92. </div>
  93. <div class="li">
  94. <div class="li_left">
  95. <span class="span1">{{'Voltage'}}</span>
  96. <span class="span2">{{dialogLampInfo.lampvoltage}}(V)</span>
  97. </div>
  98. <i></i>
  99. <div class="li_right">
  100. <span class="span1">{{'Current'}}</span>
  101. <span class="span2">{{dialogLampInfo.lampcurrent}}(A)</span>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="box">
  107. <div class="box_top">
  108. <div class="top_left">
  109. <i></i><span>{{'Battery'}}</span>
  110. </div>
  111. <div class="top_right" @click="historicalFun(dialogLampInfo,'battery_info_log')">
  112. <img src="../img/GIS/data_icon.png"><span>{{'Historical data'}}</span>
  113. </div>
  114. </div>
  115. <div class="data_box">
  116. <div class="li">
  117. <div class="li_left">
  118. <span class="span1">{{'Electric quantity'}}</span>
  119. <span class="span2">{{dialogLampInfo.electricleft}}(%)</span>
  120. </div>
  121. <i></i>
  122. <div class="li_right">
  123. <span class="span1">{{'temperature'}}</span>
  124. <span class="span2">{{dialogLampInfo.batttemper}}(℃)</span>
  125. </div>
  126. </div>
  127. <div class="li">
  128. <div class="li_left">
  129. <span class="span1">{{'state'}}</span>
  130. <!-- <span class="span2" v-if="version=='0'">{{chargestageData[dialogLampInfo.chargestage]}}</span> -->
  131. <span class="span2" >{{chargestageDataEN[dialogLampInfo.chargestage]}}</span>
  132. </div>
  133. <i></i>
  134. <div class="li_right">
  135. <span class="span1">{{'Over Discharge times'}}</span>
  136. <span class="span2">{{dialogLampInfo.overtimes}}</span>
  137. </div>
  138. </div>
  139. <div class="li">
  140. <div class="li_left">
  141. <span class="span1">{{'Voltage'}}</span>
  142. <span class="span2">{{dialogLampInfo.battvoltage}}(V)</span>
  143. </div>
  144. <i></i>
  145. <div class="li_right">
  146. <span class="span1">{{'Current'}}</span>
  147. <span class="span2">{{dialogLampInfo.discharcurrent}}(A)</span>
  148. </div>
  149. </div>
  150. <div class="li">
  151. <div class="li_center">
  152. <span class="span1">{{'Power'}}</span>
  153. <span class="span2">{{dialogLampInfo.dischargepower}}(W)</span>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="box">
  159. <div class="box_top">
  160. <div class="top_left">
  161. <i></i><span>{{'Solar panels'}}</span>
  162. </div>
  163. <div class="top_right" @click="historicalFun(dialogLampInfo,'solar_info_log')">
  164. <img src="../img/GIS/data_icon.png"><span>{{'Historical data'}}</span>
  165. </div>
  166. </div>
  167. <div class="data_box">
  168. <div class="li">
  169. <div class="li_left">
  170. <span class="span1">{{'Charging time'}}</span>
  171. <span class="span2">{{dialogLampInfo.daydischargemincurrent}}</span>
  172. </div>
  173. <i></i>
  174. <div class="li_right">
  175. <span class="span1">{{'Sunshine duration'}}</span>
  176. <span class="span2">{{dialogLampInfo.sunTime}}(h)</span>
  177. </div>
  178. </div>
  179. <div class="li">
  180. <div class="li_left">
  181. <span class="span1">{{'Voltage'}}</span>
  182. <span class="span2">{{dialogLampInfo.solarvoltage}}(V)</span>
  183. </div>
  184. <i></i>
  185. <div class="li_right">
  186. <span class="span1">{{'Current'}}</span>
  187. <span class="span2">{{dialogLampInfo.solarcurrent}}(A)</span>
  188. </div>
  189. </div>
  190. <div class="li">
  191. <div class="li_center">
  192. <span class="span1">{{'Power'}}</span>
  193. <span class="span2">{{dialogLampInfo.solarpower}}(W)</span>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. <div class="box">
  199. <div class="box_top">
  200. <div class="top_left">
  201. <i></i><span>{{'Basic information'}}</span>
  202. </div>
  203. <div class="top_right_fault" v-if="dialogLampInfo.isfaulted==1" @click="lampInfoFailure('lamp',dialogLampInfo)">
  204. <img src="../img/GIS/fault_icon.png">
  205. <span>{{'故障'}}</span>
  206. </div>
  207. </div>
  208. <div class="data_box">
  209. <div class="li">
  210. <div class="li_left">
  211. <span class="span1">{{'Controller temperature'}}</span>
  212. <span class="span2">{{dialogLampInfo.temper}}(℃)</span>
  213. </div>
  214. <i></i>
  215. <div class="li_right">
  216. <span class="span1">{{'Cumulative light-on time'}}</span>
  217. <span class="span2">{{dialogLampInfo.totalLightTime}}</span>
  218. </div>
  219. </div>
  220. <div class="li">
  221. <div class="li_left">
  222. <span class="span1">{{'Cumulative power generation'}}</span>
  223. <span class="span2">{{dialogLampInfo.totalgeneration}}(kWh)</span>
  224. </div>
  225. <i></i>
  226. <div class="li_right">
  227. <span class="span1">{{'Accumulated electricity consumption'}}</span>
  228. <span class="span2">{{dialogLampInfo.totalconsumption}}(kWh)</span>
  229. </div>
  230. </div>
  231. <div class="li">
  232. <div class="li_center">
  233. <span class="span1">{{'service life'}}</span>
  234. <div class="progress_">
  235. <el-progress :percentage="dialogLampInfo.jd_sfe"></el-progress>
  236. </div>
  237. <!-- <span class="span2">{{dialogLampInfo.later}}</span> -->
  238. </div>
  239. </div>
  240. <div class="li">
  241. <div class="li_center">
  242. <span class="span1">{{'Expected useful life'}}</span>
  243. <span class="span2">{{dialogLampInfo.later}}{{'year'}}</span>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="road_info scroll_show" v-if="lampDialogType == '2'" key="road_info">
  250. <div class="box1">
  251. <div class="box">
  252. <div class="box_box">
  253. <span class="span1">{{'Section Name'}}</span>
  254. <span class="span2">{{dialogSectionInfo.section}}</span>
  255. </div>
  256. </div>
  257. </div>
  258. <div class="box2">
  259. <div class="flex_box">
  260. <div class="li">
  261. <p class="p1">{{dialogSectionInfo.lamp_count}}</p>
  262. <p class="p2">{{'Installation Number'}}</p>
  263. </div>
  264. <div class="li">
  265. <p class="p1">{{dialogSectionInfo.light_count}}</p>
  266. <p class="p2">{{'lights Number'}}<span>{{dialogSectionInfo.light_rate}}%</span></p>
  267. </div>
  268. <div class="li">
  269. <p class="p1">{{dialogSectionInfo.online_count}}</p>
  270. <p class="p2">{{'On-line Number'}}<span>{{dialogSectionInfo.online_rate}}%</span></p>
  271. </div>
  272. </div>
  273. <div class="box">
  274. <div>
  275. <i class="dian"></i>
  276. <span class="span1">{{'Equipment failure Number'}}</span>
  277. </div>
  278. <div class="click" @click="lampInfoFailure('road',dialogSectionInfo)">
  279. <span class="span2">{{dialogSectionInfo.fail_count}}</span>
  280. <span class="span3">({{dialogSectionInfo.fail_rate}}%)</span>
  281. <i class="el-icon-setting sz"></i>
  282. </div>
  283. </div>
  284. </div>
  285. <div class="box3">
  286. <div class="box3_top">
  287. <i class="dian"></i><span>{{'Section Mean'}}</span>
  288. </div>
  289. <div class="data_box">
  290. <div class="li">
  291. <div class="li_left">
  292. <span class="span1">{{'Lighting duration'}}</span>
  293. <span class="span2">{{dialogSectionInfo.daychargemincurrent}}</span>
  294. </div>
  295. <i></i>
  296. <div class="li_right">
  297. <span class="span1">{{'Charging time'}}</span>
  298. <span class="span2">{{dialogSectionInfo.daydischargemincurrent}}</span>
  299. </div>
  300. </div>
  301. <div class="li">
  302. <div class="li_left">
  303. <span class="span1">{{'Generation capacity'}}</span>
  304. <span class="span2">{{dialogSectionInfo.totalgeneration}}(Kwh)</span>
  305. </div>
  306. <i></i>
  307. <div class="li_right">
  308. <span class="span1">{{'Electricity consumption'}}</span>
  309. <span class="span2">{{dialogSectionInfo.totalgeneration}}(Kwh)</span>
  310. </div>
  311. </div>
  312. <div class="li">
  313. <div class="li_left">
  314. <span class="span1">{{'Battery Voltage'}}V</span>
  315. <span class="span2">{{dialogSectionInfo.battvoltage}}(V)</span>
  316. </div>
  317. <i></i>
  318. <div class="li_right">
  319. <span class="span1">{{'Battery capacity'}}</span>
  320. <span class="span2">{{dialogSectionInfo.electricleft}}(%)</span>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. <div class="box4">
  326. <div class="box4_top">
  327. <div class="box4_top_left">
  328. <i class="dian"></i><span>{{'Lamp list'}}</span>
  329. </div>
  330. <div class="box4_top_right">
  331. <div class="li" :class="{'select':roadOnlineStatus==1}" @click="roadInfoScreen(1)">{{'On-line'}}</div>
  332. <div class="li" :class="{'select':roadLightStatus==1}" @click="roadInfoScreen(2)">{{'ON'}}</div>
  333. <div class="li" :class="{'select':roadFailStatus==1}" @click="roadInfoScreen(3)">{{'fault'}}</div>
  334. </div>
  335. </div>
  336. <div class="table_box">
  337. <el-table
  338. :data="rodaTableData"
  339. ref="rodaTableData"
  340. height="calc(100% - 10px)"
  341. :row-class-name="rodaTableDataRowName"
  342. @row-dblclick="rodaTableDblclick"
  343. style="width: 100%">
  344. <el-table-column v-for="item in rodaTableList" :key="item.prop" :label="item.label" :prop="item.prop" :min-width="item.width" align="center">
  345. <template slot-scope="scope">
  346. <i class="border_i" v-if="item.prop=='number'"></i>
  347. <span v-if="item.prop!='netStatus'" :class="{'red':scope.row.isfaulted == 1}">{{scope.row[item.prop]}}</span>
  348. <img v-if="item.prop=='netStatus'" :src="require('../img/GIS/wifi_'+scope.row[item.prop]+'.png')" class="wifi_img" />
  349. </template>
  350. </el-table-column>
  351. </el-table>
  352. </div>
  353. </div>
  354. </div>
  355. <div class="project_info scroll_show" v-if="lampDialogType == '3'" key="project_info">
  356. <div class="box1">
  357. <div class="box1_bg">
  358. <div class="box1_left">
  359. <span class="span1">{{'Project'}}</span>
  360. <span class="span2">{{dialogProjectInfo.projectname}}</span>
  361. </div>
  362. <div class="box1_right">
  363. <span class="span1">{{'Section'}}</span>
  364. <el-select v-model="dialogProjectInfo.section" placeholder=" " @change="projectInfoSection" class="span2">
  365. <el-option
  366. v-for="item in dialogProjectInfo.section_nav"
  367. :key="item.value"
  368. :label="item.name"
  369. :value="item.value">
  370. </el-option>
  371. </el-select>
  372. </div>
  373. </div>
  374. </div>
  375. <div class="box2">
  376. <div class="flex_box">
  377. <div class="li">
  378. <p class="p1">{{dialogProjectInfo.total_lamp}}</p>
  379. <p class="p2">{{'Installation Number'}}</p>
  380. </div>
  381. <div class="li">
  382. <p class="p1">{{dialogProjectInfo.lighting_count}}</p>
  383. <p class="p2">{{'lights Number'}}<span>{{dialogProjectInfo.lighting_rate}}%</span></p>
  384. </div>
  385. <div class="li">
  386. <p class="p1">{{dialogProjectInfo.online_count}}</p>
  387. <p class="p2">{{'On-line Number'}}<span>{{dialogProjectInfo.online_rate}}%</span></p>
  388. </div>
  389. </div>
  390. <div class="box">
  391. <div>
  392. <i class="dian"></i>
  393. <span class="span1">{{'Equipment failure Number'}}</span>
  394. </div>
  395. <div class="click" @click="lampInfoFailure('project',dialogProjectInfo)">
  396. <span class="span2">{{dialogProjectInfo.failure_count}}</span>
  397. <span class="span3">({{dialogProjectInfo.failure_rate}}%)</span>
  398. <i class="el-icon-setting sz"></i>
  399. </div>
  400. </div>
  401. </div>
  402. <div class="box3">
  403. <div class="box3_top">
  404. <div class="box3_top_l">
  405. <p class="p1"><i></i> <span>{{'Total power generation'}}(kWh)</span></p>
  406. <p class="p2"><span>{{dialogProjectInfo.totalgeneration}}</span></p>
  407. </div>
  408. <div class="box3_top_r">
  409. <p class="p1"><i></i> <span>{{'Total Power'}}(kWh)</span></p>
  410. <p class="p2"><span>{{dialogProjectInfo.totalconsumption}}</span></p>
  411. </div>
  412. </div>
  413. <div class="box3_bottom">
  414. <div class="li">
  415. <p class="p1">{{'Emission reduction CO2'}}</p>
  416. <p class="p2">
  417. <span class="span1">{{dialogProjectInfo.co2_emission}}</span>
  418. <span class="span2">kg</span>
  419. </p>
  420. </div>
  421. <div class="li">
  422. <p class="p1">{{'Emission reduction SO2'}}</p>
  423. <p class="p2">
  424. <span class="span1">{{dialogProjectInfo.so2_emission}}</span>
  425. <span class="span2">kg</span>
  426. </p>
  427. </div>
  428. <div class="li">
  429. <p class="p1">{{'Saving Standard Coal'}}</p>
  430. <p class="p2">
  431. <span class="span1">{{dialogProjectInfo.coal_saving}}</span>
  432. <span class="span2">t</span>
  433. </p>
  434. </div>
  435. </div>
  436. </div>
  437. <div class="box4">
  438. <div class="box_top">
  439. <i class="dian"></i><span>{{'configuration information'}}</span>
  440. </div>
  441. <div class="data_box">
  442. <div class="li">
  443. <div class="li_center">
  444. <span class="span1">{{'Controller Model'}}</span>
  445. <span class="span2">{{dialogProjectInfo.controlType}}</span>
  446. </div>
  447. </div>
  448. <div class="li">
  449. <div class="li_center">
  450. <span class="span1">{{'Specification of solar panels'}}</span>
  451. <span class="span2">{{dialogProjectInfo.boardpower}}(W)</span>
  452. </div>
  453. </div>
  454. <div class="li">
  455. <div class="li_center">
  456. <span class="span1">{{'communication protocol'}}</span>
  457. <span class="span2">{{dialogProjectInfo.protocolType}}</span>
  458. </div>
  459. </div>
  460. <div class="li">
  461. <div class="li_left">
  462. <span class="span1">{{'Lamp Power'}}</span>
  463. <span class="span2">{{dialogProjectInfo.lamppower}}(W)</span>
  464. </div>
  465. <i></i>
  466. <div class="li_right">
  467. <span class="span1">{{'Battery type'}}</span>
  468. <span class="span2">{{dialogProjectInfo.batterytype}}</span>
  469. </div>
  470. </div>
  471. <div class="li">
  472. <div class="li_left">
  473. <span class="span1">{{'Battery capacity'}}</span>
  474. <span class="span2">{{dialogProjectInfo.batteryah}}(Ah)</span>
  475. </div>
  476. <i></i>
  477. <div class="li_right">
  478. <span class="span1">{{'Warranty years'}}</span>
  479. <span class="span2">{{dialogProjectInfo.shelfLife}}</span>
  480. </div>
  481. </div>
  482. </div>
  483. </div>
  484. <div class="box5">
  485. <div class="box_top">
  486. <i class="dian"></i><span>{{'Basic information'}}</span>
  487. </div>
  488. <div class="data_box">
  489. <div class="li">
  490. <div class="li_center">
  491. <span class="span1">{{'Project Date'}}</span>
  492. <span class="span2">{{dialogProjectInfo.createtime}}</span>
  493. </div>
  494. </div>
  495. <div class="li">
  496. <div class="li_center">
  497. <span class="span1">{{'Specific address'}}</span>
  498. <span class="span2">{{dialogProjectInfo.address}}</span>
  499. </div>
  500. </div>
  501. <div class="li">
  502. <div class="li_center">
  503. <span class="span1">{{'Owner'}}</span>
  504. <span class="span2">{{dialogProjectInfo.company}}</span>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. <div class="fault_list_tk" v-if="faultListTkShow">
  512. <div class="fault_list_tk_top">
  513. <div class="left">{{'Fault List'}}</div>
  514. <div class="right" @click="faultListTkShow = false">{{'cancel'}}</div>
  515. </div>
  516. <div class="table_box">
  517. <el-table
  518. v-loading="loading.lampInfoFailure"
  519. :data="faultTableData"
  520. ref="faultTableData"
  521. height="calc(100% - 20px)"
  522. style="width: 100%;">
  523. <el-table-column v-for="item in faultTableList" :key="item.prop" :label="item.label" :prop="item.prop" :min-width="item.width" align="center"></el-table-column>
  524. <el-table-column
  525. key="caozuo"
  526. :label="'operation'"
  527. :width="200"
  528. align="center"
  529. >
  530. <template slot-scope="scope">
  531. <el-button type="text" size="small" @click="tableOperationfun(scope.row)">{{'Maintenance scheduling'}}</el-button>
  532. </template>
  533. </el-table-column>
  534. </el-table>
  535. </div>
  536. </div>
  537. <!-- 故障详情弹框 -->
  538. <el-dialog
  539. title="故障详情"
  540. :visible.sync="detailsDetailsDialog"
  541. :close-on-click-modal="false"
  542. class="detailsDetails_box"
  543. width="60%">
  544. <el-form label-width="80px" :model="detailsDetailsData" label-position="right" class="box">
  545. <el-row>
  546. <el-col :span="12" style="padding-right: 15px">
  547. <el-form-item label="项目名称:">
  548. <el-input v-model="detailsDetailsData.projectname" disabled></el-input>
  549. </el-form-item>
  550. <el-form-item label="报警事件:">
  551. <el-input v-model="detailsDetailsData.stralarmtype" disabled></el-input>
  552. </el-form-item>
  553. </el-col>
  554. <el-col :span="12" style="padding-left: 15px">
  555. <el-form-item label="报警路灯:">
  556. <el-input v-model="detailsDetailsData.number" disabled></el-input>
  557. </el-form-item>
  558. <el-form-item label="报警时间:">
  559. <el-input v-model="detailsDetailsData.updatetime" disabled></el-input>
  560. </el-form-item>
  561. </el-col>
  562. <el-form-item label="操 作:">
  563. <el-radio v-model="detailsDetailsData.status" label="1">标记已处理</el-radio>
  564. <el-radio v-model="detailsDetailsData.status" label="0">
  565. 维修调度
  566. <el-select :disabled="detailsDetailsData.status != '0'" v-model="detailsDetailsData.userid" placeholder="请选择维修人员" @keyup.native="detailsDetailsKeydown($event)">
  567. <el-option
  568. v-for="item in detailsDetailsData.list"
  569. :key="item.id"
  570. :label="item.name"
  571. :value="item.id">
  572. </el-option>
  573. </el-select>
  574. </el-radio>
  575. </el-form-item>
  576. </el-row>
  577. </el-form>
  578. <div class="dialog_foot">
  579. <el-button type="primary" @click="detailsDetailsKeep()" v-loading="loading.detailsDetailsKeep">确 定</el-button>
  580. </div>
  581. </el-dialog>
  582. <!-- 123 监控弹窗 -->
  583. <el-dialog
  584. :title="'Surveillance video'"
  585. :visible.sync="surveillanceVideoDialog"
  586. :close-on-click-modal="false"
  587. class="surveillanceVideo_box"
  588. width="900px">
  589. <div class="myPlayer_container" @mouseover="showControlIcons" @mouseout="hideControlIcons">
  590. <video ref="myPlayer" id="myPlayer" controls autoplay playsInline webkit-playsinline poster="">
  591. <source :src="videoData.rtmp" type="rtmp/flv" />
  592. </video>
  593. <div class="video-control-icons" :class="{hide:isHideControlIconsFlag}">
  594. <!-- 方向 -->
  595. <div class="outer-wrap direction-control" @mouseover="activeAction('0')" @mouseout="blurAction">
  596. <a href="javascript:void(0)" class="control-btn direction-btn" @mouseover="activeAction('0')" @mouseout="blurAction">{{'Direction'}}</a>
  597. <div class="inner-wrap" :class="{show:isShowIconWrap=='0'}">
  598. <div class="control-wrap direction-wrap">
  599. <div class="left">
  600. <a href="javascript:void(0)" @click.prevent="clickControlDirection(0)" class="control-icon up-icon"></a>
  601. <a href="javascript:void(0)" @click.prevent="clickControlDirection(1)" class="control-icon down-icon"></a>
  602. <a href="javascript:void(0)" @click.prevent="clickControlDirection(2)" class="control-icon left-icon"></a>
  603. <a href="javascript:void(0)" @click.prevent="clickControlDirection(3)" class="control-icon right-icon"></a>
  604. </div>
  605. <div class="right">
  606. <a href="javascript:void(0)" @click.prevent="clickControlDirection(4)" class="control-icon left-up-icon"></a>
  607. <a href="javascript:void(0)" @click.prevent="clickControlDirection(6)" class="control-icon right-up-icon"></a>
  608. <a href="javascript:void(0)" @click.prevent="clickControlDirection(5)" class="control-icon left-down-icon"></a>
  609. <a href="javascript:void(0)" @click.prevent="clickControlDirection(7)" class="control-icon right-down-icon"></a>
  610. </div>
  611. </div>
  612. </div>
  613. </div>
  614. <!-- 缩放 -->
  615. <div class="outer-wrap zoom-control" @mouseover="activeAction('1')" @mouseout="blurAction">
  616. <a href="javascript:void(0)" class="control-btn zoom-btn" @mouseover="activeAction('1')" @mouseout="blurAction">{{'Zoom'}}</a>
  617. <div class="inner-wrap" :class="{show:isShowIconWrap=='1'}">
  618. <div class="control-wrap zoom-wrap">
  619. <a href="javascript:void(0)" @click.prevent="clickControlDirection(8)" class="control-icon to-big-icon"></a>
  620. <a href="javascript:void(0)" @click.prevent="clickControlDirection(9)" class="control-icon to-small-icon"></a>
  621. </div>
  622. </div>
  623. </div>
  624. <!-- 焦距 -->
  625. <div class="outer-wrap focal-control" @mouseover="activeAction('2')" @mouseout="blurAction">
  626. <a href="javascript:void(0)" class="control-btn focal-btn" @mouseover="activeAction('2')" @mouseout="blurAction">{{'Focal'}}</a>
  627. <div class="inner-wrap" :class="{show:isShowIconWrap=='2'}">
  628. <div class="control-wrap focal-wrap">
  629. <a href="javascript:void(0)" @click.prevent="clickControlDirection(11)" class="control-icon farst-icon"></a>
  630. <a href="javascript:void(0)" @click.prevent="clickControlDirection(10)" class="control-icon near-icon"></a>
  631. </div>
  632. </div>
  633. </div>
  634. <!-- 标清高清 -->
  635. <div class="outer-wrap clarity-control" @mouseover="activeAction('3')" @mouseout="blurAction">
  636. <a href="javascript:void(0)" class="control-btn clarity-btn" @mouseover="activeAction('3')" @mouseout="blurAction">{{definitionBtnText}}</a>
  637. <div class="inner-wrap" :class="{show:isShowIconWrap=='3'}">
  638. <div class="control-wrap clarity-wrap">
  639. <a href="javascript:void(0)" @click.prevent="switchUrl(0)" class="definition standard" :class="{active:definition==0}">{{'SD'}}</a>
  640. <a href="javascript:void(0)" @click.prevent="switchUrl(1)" class="definition high" :class="{active:definition==1}">{{'HD'}}</a>
  641. </div>
  642. </div>
  643. </div>
  644. </div>
  645. </div>
  646. </el-dialog>
  647. <!-- 表格历史弹框 -->
  648. <el-dialog
  649. :title="'Historical Data'"
  650. :visible.sync="historicalDialog"
  651. :close-on-click-modal="false"
  652. class="history_box"
  653. width="95%">
  654. <div class="wrap">
  655. <div class="main_list">
  656. <div class="main_list_title">
  657. <p>{{'Lamp number'}}</p>
  658. </div>
  659. <div class="main_list_box" :class="{'EN':version == '0'}">
  660. <div class="lamp_list scroll_show_all">
  661. <div class="li" :class="{'select':item.id==historicalLampId}" v-for="item in historicalLampList" :key="item.id" @click="historicalLampClick(item.id)">
  662. {{item.number}}
  663. </div>
  664. </div>
  665. <div class="historicalnav clearfix">
  666. <div class="nav_list"
  667. :class="{'details_nav_select':historicalNavSelect==item.model}"
  668. v-for="item in historicalNavListEN"
  669. :key="item.model"
  670. @click="historicalNavSelectFun(item)">
  671. <!-- v-if="((item.model =='3'&&dataLSType=='0')||item.model !='3')&&((item.model =='system_info_log'&&dataLSType=='1')||item.model !='system_info_log')" -->
  672. <span :title="item.label">{{item.label}}</span>
  673. </div>
  674. </div>
  675. </div>
  676. </div>
  677. <div class="main_box">
  678. <div class="screen_box" v-if="dataLSType == '1'">
  679. <el-pagination
  680. @current-change="handleCurrentChangeLS"
  681. :current-page.sync="currentPageLS"
  682. :page-size="16"
  683. layout="prev, pager, next, jumper"
  684. :total="totalLS">
  685. </el-pagination>
  686. <div>
  687. <div class="screen_date">
  688. <el-date-picker
  689. v-model="screenDateLS"
  690. format="MM-dd"
  691. value-format="yyyy-MM-dd"
  692. size="small"
  693. :clearable="false"
  694. prefix-icon=" "
  695. type="daterange"
  696. range-separator="-"
  697. start-placeholder=""
  698. end-placeholder="">
  699. </el-date-picker>
  700. <el-button size="small" @click="screenDateFun()">{{'Determine'}}<i class="el-icon-arrow-right"></i></el-button>
  701. </div>
  702. <el-button round size="small" @click="exportTableLS()" v-loading="loading.exportTableLS">{{'Export'}}</el-button>
  703. </div>
  704. </div>
  705. <el-table
  706. v-if="dataLSType == '1'"
  707. ref="multipleTable"
  708. v-loading="historicalTableLoading"
  709. :data="historicalTableData"
  710. border
  711. align="center"
  712. style="width: 100%;"
  713. height="374"
  714. :row-class-name="tableRowClassName">
  715. <el-table-column
  716. label="Number"
  717. prop="LSLD_index"
  718. align="center"
  719. :show-overflow-tooltip="true"
  720. width="82">
  721. </el-table-column>
  722. <template>
  723. <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">
  724. <template slot-scope="scope">
  725. <span v-if="item.prop !='lampstatus' && item.prop !='battstatus' && item.prop !='chargestage'">{{scope.row[item.prop]}}</span>
  726. <span v-if="item.prop=='lampstatus'&&scope.row[item.prop]=='1'">on</span>
  727. <span v-if="item.prop=='lampstatus'&&scope.row[item.prop]=='0'">off</span>
  728. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='0'">free</span>
  729. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='1'">discharge</span>
  730. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='2'">Charge</span>
  731. <span v-if="item.prop=='battstatus'&&scope.row[item.prop]=='3'">Discharge while charging</span>
  732. <template v-if="lampProtocoltype != '2'">
  733. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='0'">No charge</span>
  734. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='1'">Start charging</span>
  735. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='6'">Current limiting</span>
  736. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='7'">Full</span>
  737. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='16'">MPPT charging</span>
  738. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='32'">Equalizing charging</span>
  739. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='48'">Boost charging</span>
  740. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='64'">floating charge</span>
  741. </template>
  742. <template v-if="lampProtocoltype == '2'">
  743. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='0'">No charge</span>
  744. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='1'">wait for</span>
  745. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='2'">initial</span>
  746. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='3'">MPPT</span>
  747. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='4'">Constant voltage</span>
  748. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='5'">constant current</span>
  749. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='6'">floating charge</span>
  750. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='7'">equilibrium</span>
  751. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='8'">Promote</span>
  752. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='9'">Trickle</span>
  753. <span v-if="item.prop=='chargestage'&&scope.row[item.prop]=='10'">complete</span>
  754. </template>
  755. </template>
  756. </el-table-column>
  757. </template>
  758. <el-table-column :show-overflow-tooltip="true" header-align="center" prop="updatetime" label="Update time" width="160px">
  759. </el-table-column>
  760. </el-table>
  761. <div v-if="dataLSType == '0'" class="LS_echarts" key="dataLSType_0">
  762. <div class="left_echarts">
  763. <div class="echarts_top">
  764. <div></div>
  765. <div>
  766. <div class="screen_date_select">
  767. <div class="li" :class="{'select':LSDataType == '0'}" @click="LSDataTypeFun('0',1)">1{{'Day'}}</div>
  768. <div class="li" :class="{'select':LSDataType == '1'}" @click="LSDataTypeFun('1',3)">3{{'Day'}}</div>
  769. <div class="li" :class="{'select':LSDataType == '2'}" @click="LSDataTypeFun('2',7)">7{{'Day'}}</div>
  770. <div class="li" :class="{'select':LSDataType == '3'}" @click="LSDataTypeFun('3',14)">14{{'Day'}}</div>
  771. </div>
  772. <div class="screen_date">
  773. <el-date-picker
  774. v-model="screenDateLS"
  775. format="MM-dd"
  776. value-format="yyyy-MM-dd"
  777. size="small"
  778. :clearable="false"
  779. prefix-icon=" "
  780. type="daterange"
  781. range-separator="-"
  782. start-placeholder=""
  783. end-placeholder="">
  784. </el-date-picker>
  785. <el-button size="small" @click="screenDateFun()">{{'Determine'}}<i class="el-icon-arrow-right"></i></el-button>
  786. </div>
  787. </div>
  788. </div>
  789. <div class="history_echarts" v-loading="loading.historyEcharts" v-show="historyDataInfo.list.updatetime"></div>
  790. <div class="history_echarts_noData" v-show="!historyDataInfo.list.updatetime">
  791. <h3>{{'No data can be queried'}}</h3>
  792. </div>
  793. <div class="echarts_bottom echarts_line">
  794. <div class="echarts_bottom_text">{'sampling period'}}: {{historyDataInfo.patrolinterval}}{{'minutes'}}</div>
  795. <div class="data_type_nav">
  796. <div class="li" :class="{'select':dataLSType == '0'}" @click="dataLSTypeFun('0')">{{'Diagram'}}</div>
  797. <div class="li" :class="{'select':dataLSType == '1'}" @click="dataLSTypeFun('1')">{{'list'}}</div>
  798. </div>
  799. </div>
  800. </div>
  801. <div class="left_data">
  802. <p><img src="../img/projectManagement/data.png">{{'Statistical extremum'}}</p>
  803. <div class="ul" :class="{'EN':version == '0'}">
  804. <div class="li" v-if="historicalNavSelect != '3'">
  805. <span class="span1">{{'Maximum voltage'}}</span>
  806. <span>
  807. <span class="span2" :title="historyDataInfo.maxvoltage">{{historyDataInfo.maxvoltage}}</span>
  808. <span class="span3">V</span>
  809. </span>
  810. </div>
  811. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  812. <span class="span1">{{'Minimum voltage'}}</span>
  813. <span>
  814. <span class="span2" :title="historyDataInfo.minvoltage">{{historyDataInfo.minvoltage}}</span>
  815. <span class="span3">V</span>
  816. </span>
  817. </div>
  818. <div class="li" v-if="historicalNavSelect != '3'&&historicalNavSelect != 'battery_info_log'">
  819. <span class="span1">{{'Maximum current'}}</span>
  820. <span>
  821. <span class="span2" :title="historyDataInfo.maxcurrent">{{historyDataInfo.maxcurrent}}</span>
  822. <span class="span3">A</span>
  823. </span>
  824. </div>
  825. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  826. <span class="span1">{{'Max charging current'}}</span>
  827. <span>
  828. <span class="span2" :title="historyDataInfo.maxcurrent">{{historyDataInfo.maxcurrent}}</span>
  829. <span class="span3">A</span>
  830. </span>
  831. </div>
  832. <div class="li" v-if="historicalNavSelect =='battery_info_log'">
  833. <span class="span1">{{'Max discharge current'}}</span>
  834. <span>
  835. <span class="span2" :title="historyDataInfo.mincurrent">{{historyDataInfo.mincurrent}}</span>
  836. <span class="span3">A</span>
  837. </span>
  838. </div>
  839. <div class="li" v-if="historicalNavSelect =='battery_info_log'">
  840. <span class="span1">{{'Max charging power'}}</span>
  841. <span>
  842. <span class="span2" :title="historyDataInfo.maxpower">{{historyDataInfo.maxpower}}</span>
  843. <span class="span3">W</span>
  844. </span>
  845. </div>
  846. <div class="li" v-if="historicalNavSelect != '3'&&historicalNavSelect != 'battery_info_log'">
  847. <span class="span1">{{'maximum power'}}</span>
  848. <span>
  849. <span class="span2" :title="historyDataInfo.maxpower">{{historyDataInfo.maxpower}}</span>
  850. <span class="span3">W</span>
  851. </span>
  852. </div>
  853. <div class="li" v-if="historicalNavSelect =='battery_info_log'">
  854. <span class="span1">{{'Max discharge power'}}</span>
  855. <span>
  856. <span class="span2" :title="historyDataInfo.minpower">{{historyDataInfo.minpower}}</span>
  857. <span class="span3">W</span>
  858. </span>
  859. </div>
  860. <div class="li" v-if="historicalNavSelect == 'lamp_info_log'">
  861. <span class="span1">{{'Maximum brightness'}}</span>
  862. <span>
  863. <span class="span2" :title="historyDataInfo.maxlighteness">{{historyDataInfo.maxlighteness}}</span>
  864. <span class="span3">%</span>
  865. </span>
  866. </div>
  867. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  868. <span class="span1">{{'Max temperature'}}</span>
  869. <span>
  870. <span class="span2" :title="historyDataInfo.maxbatttemper">{{historyDataInfo.maxbatttemper}}</span>
  871. <span class="span3">℃</span>
  872. </span>
  873. </div>
  874. <div class="li" v-if="historicalNavSelect == 'battery_info_log'">
  875. <span class="span1">{{'Min temperature'}}</span>
  876. <span>
  877. <span class="span2" :title="historyDataInfo.minbatttemper">{{historyDataInfo.minbatttemper}}</span>
  878. <span class="span3">℃</span>
  879. </span>
  880. </div>
  881. <div class="li" v-if="historicalNavSelect == 'solar_info_log'">
  882. <span class="span1">{{'Charging time'}}</span>
  883. <span>
  884. <span class="span2">{{historyDataInfo.maxdaydischargemincurrent}}</span>
  885. <!-- <span class="span3"></span> -->
  886. </span>
  887. </div>
  888. <div class="li" v-if="historicalNavSelect == 'lamp_info_log'">
  889. <span class="span1">{{'Lights on time'}}</span>
  890. <span>
  891. <span class="span2">{{historyDataInfo.maxdaychargemincurrent}}</span>
  892. <!-- <span class="span3">%</span> -->
  893. </span>
  894. </div>
  895. <div class="li" v-if="historicalNavSelect == '3'">
  896. <span class="span1">{{'Max charge ampere hours'}}</span>
  897. <span>
  898. <span class="span2" :title="historyDataInfo.maxdaychargeah">{{historyDataInfo.maxdaychargeah}}</span>
  899. <span class="span3">AH</span>
  900. </span>
  901. </div>
  902. <div class="li" v-if="historicalNavSelect == '3'">
  903. <span class="span1">{{'Min charge ampere hours'}}</span>
  904. <span>
  905. <span class="span2" :title="historyDataInfo.mindaychargeah">{{historyDataInfo.mindaychargeah}}</span>
  906. <span class="span3">AH</span>
  907. </span>
  908. </div>
  909. <div class="li" v-if="historicalNavSelect == '3'">
  910. <span class="span1">{{'Max discharge amperes'}}</span>
  911. <span>
  912. <span class="span2" :title="historyDataInfo.maxdaydischarah">{{historyDataInfo.maxdaydischarah}}</span>
  913. <span class="span3">AH</span>
  914. </span>
  915. </div>
  916. <div class="li" v-if="historicalNavSelect == '3'">
  917. <span class="span1">{{'Min discharge amperes'}}</span>
  918. <span>
  919. <span class="span2" :title="historyDataInfo.mindaydischarah">{{historyDataInfo.mindaydischarah}}</span>
  920. <span class="span3">AH</span>
  921. </span>
  922. </div>
  923. </div>
  924. </div>
  925. </div>
  926. <div class="echarts_bottom" v-if="dataLSType == '1'" key="dataLSType_1">
  927. <div class="data_type_nav">
  928. <div class="li" :class="{'select':dataLSType == '0'}" @click="dataLSTypeFun('0')">{{'Diagram'}}</div>
  929. <div class="li" :class="{'select':dataLSType == '1'}" @click="dataLSTypeFun('1')">{{'list'}}</div>
  930. </div>
  931. </div>
  932. </div>
  933. </div>
  934. </el-dialog>
  935. </div>
  936. </template>
  937. <script>
  938. import {mapGetters} from 'vuex'
  939. import baseApi from '../api/base.js'
  940. import allUrl from '../api/allUel.js'
  941. import { Notification } from 'element-ui'
  942. // import sideBarNew from '../components/sideBarNew.vue'
  943. import sideBarIdcol from '../components/sideBar_idcol.vue'
  944. import ezuikit from '../store/ezuikit.js'
  945. // import richmarker from '../store/richmarker.js'
  946. export default{
  947. data() {
  948. return {
  949. projectNav:[],
  950. networkId:'',
  951. sideBarType:'off',
  952. keyword:'',
  953. lampId:'-1',
  954. lamp_id:'',
  955. slider:'0',
  956. projectData:{},
  957. projects_id:'',
  958. monitorInfoData:{},
  959. operationList:[{name:'开灯',key:1,icon:'turn-on'},{name:'关灯',key:2,icon:'turn-off'},{name:'故障',key:3,icon:'fault'},{name:'离线',key:4,icon:'Off-line'},{name:'监控',key:5,icon:'Monitor'}],
  960. operationListEN:[{name:'Lamp on',key:1,icon:'turn-on'},{name:'Lamp off',key:2,icon:'turn-off'},{name:'fault',key:3,icon:'fault'},{name:'Offline',key:4,icon:'Off-line'},{name:'monitor',key:5,icon:'Monitor'}],
  961. operationType:0,
  962. rightSideBarType:'off',
  963. sideBarNavList:[{label:'路灯信息',key:'0'},{key:'1',label:'项目信息'},{key:'2',label:'监控信息'}],
  964. sideBarNavListEN:[{label:'Lamp',key:'0'},{key:'1',label:'Project'},{key:'2',label:'Monitoring'}],
  965. sideBarNav:'0',
  966. streetLampList:[],
  967. streetLampType:'list',
  968. streetLamp:{},
  969. projectDataSee:'-1',
  970. streetLampsList:[],
  971. projectType:'list',
  972. projectList:[],
  973. monitor:{},
  974. monitorType:'data',
  975. monitorList:[],
  976. monitorId:'-1',
  977. groupingList:[],
  978. monitorIsDialog:false,
  979. /*地图*/
  980. cluster:null,
  981. markers:[],
  982. markersHC:[],
  983. marker:null,
  984. markerMonitor:null,
  985. map:null,
  986. /**/
  987. detailsDetailsDialog:false,
  988. detailsDetailsData:{},
  989. settingPacketDialog:false,
  990. settingPacketData:{
  991. value0:'',
  992. value1:'',
  993. value2:'',
  994. },
  995. lightenessHC:'',
  996. sliderLoading:false,
  997. turnonoffType:'-1',
  998. lampData:{},
  999. lampIdChangeType:'',
  1000. projectsIdChangeType:'',
  1001. contextmenuX:0,
  1002. contextmenuY:0,
  1003. contextmenuIsShow:false,
  1004. lampIdHC:'',
  1005. // lampEdit:true,
  1006. lampLongitude:0,
  1007. lampLatitude:0,
  1008. lampCoordinateIsShow:false,
  1009. topL:'',
  1010. leftL:'',
  1011. lampType:'',
  1012. positionPicker:null,
  1013. lampListPage:1,
  1014. projectListPage:1,
  1015. lampListTotal:0,
  1016. projectListTotal:0,
  1017. scroll_time:null,
  1018. mapDataListHC:[],
  1019. lampEditFunIsfirst:true,
  1020. markerListHC:[],
  1021. roadId:0,
  1022. projectId:0,
  1023. companyId:'',
  1024. timeoutMap:null,
  1025. intervalMap:null,
  1026. projectDataLoading:false,
  1027. projectInfoGX:true,
  1028. mapTCtype:'TileLayer',
  1029. mapDYtype:'day',
  1030. mapLKtype:false,
  1031. networkLampList:[],
  1032. isShowMonitorImg:true,
  1033. //123(标志,方便查找)
  1034. // monitorId:'-1',//监控id
  1035. surveillanceVideoDialog:false,//控制监控视频弹窗显示、隐藏
  1036. videoData:{},//监控视频详细数据
  1037. canControlFlag:true,//是否能够操作云台,防止用户一直点击
  1038. isHideControlIconsFlag:true,//是否显示video自定义控件
  1039. isShowIconWrap:'',//包裹云台控制的div
  1040. definition:0,//控制清晰度
  1041. definitionBtnText:'标清',
  1042. lmText:'灯控',
  1043. topDataBoxShow:false,
  1044. topDataNav:{},
  1045. topDataList:[{label:'路灯总数',model:'total_lamp'},{label:'在线数',model:'online_count',value:'online_rate'},{label:'故障数',model:'failure_count',value:'failure_rate'},{label:'累计发电量',model:'totalgeneration'},{label:'累计用电量',model:'totalconsumption'},{label:'减排CO2',model:'co2_emission'},{label:'减排SO2',model:'so2_emission'},{label:'节约标准煤',model:'coal_saving'}],
  1046. topDataListEN:[{label:'Lamp total',model:'total_lamp'},{label:'Online',model:'online_count',value:'online_rate'},{label:'Fault count',model:'failure_count',value:'failure_rate'},{label:'Cumulative generating capacity',model:'totalgeneration'},{label:'Cumulative electricity consumption',model:'totalconsumption'},{label:'Emissions of CO2',model:'co2_emission'},{label:'SO2 emissions',model:'so2_emission'},{label:'Saving standard coal',model:'coal_saving'}],
  1047. lampStatus:'0',//默认显示开灯,分别表示1开灯、2关灯、5故障、4离线、0全部
  1048. currentLampStatusName:'全部',//当前的路灯按钮状态、开灯、关灯、故障、离线、全部
  1049. isShowLampStatusList:false,//默认隐藏选择路灯状态的容器
  1050. switchArrowType:'1',
  1051. lampTypeList:[],
  1052. lampDialogShow:false,
  1053. lampDialogType:'1',
  1054. dialogLampInfo:{
  1055. jd_sfe:0,
  1056. },
  1057. chargestageData:{0:'没有充电',16:'MPPT充电',32:'均衡充电',48:'提升充电',64:'浮充'},
  1058. chargestageDataEN:{0:'No charge',16:'MPPT Charging',32:'Balanced Charging',48:'Elevation Charging',64:'floating charge'},
  1059. dialogSectionInfo:{
  1060. },
  1061. roadOnlineStatus:0,
  1062. roadLightStatus:0,
  1063. roadFailStatus:0,
  1064. rodaTableList:[{label:'编号',prop:'number',width:''},{label:'状态',prop:'netStatus',width:''},{label:'亮度',prop:'lighteness',width:''},{label:'故障',prop:'stralarmtype',width:''}],
  1065. rodaTableListEN:[{label:'Number',prop:'number',width:''},{label:'State',prop:'netStatus',width:''},{label:'Brightness',prop:'lighteness',width:''},{label:'Fault',prop:'stralarmtype',width:''}],
  1066. rodaTableData:[],
  1067. screen:'',
  1068. searchType:'1',
  1069. dialogProjectInfo:{},
  1070. faultTableList:[{label:'设备编号',prop:'number',width:''},{label:'所属路段',prop:'section',width:''},{label:'故障时间',prop:'alarmDate',width:''},{label:'故障原因',prop:'alarmInfo',width:''}],
  1071. faultTableData:[],
  1072. faultListTkShow:false,
  1073. faultLampId:'',
  1074. lSLampId:'',
  1075. lSRoadId:'',
  1076. lSProjectId:'',
  1077. historicalTableData:[],
  1078. historicalTableList:[],
  1079. screenDateLS:'',
  1080. historyDataInfo:{
  1081. list:{}
  1082. },
  1083. historicalLampList:[],
  1084. historicalLampId:'',
  1085. dataLSType:'0',
  1086. LSDataType:'0',
  1087. currentPageLS:1,
  1088. totalLS:0,
  1089. historicalNavSelect:'lamp_info_log',
  1090. historicalDialog:false,
  1091. historicalNavList:[{model:'lamp_info_log',label:'路灯'},{model:'system_info_log',label:'系统'},{model:'battery_info_log',label:'蓄电池'},{model:'solar_info_log',label:'太阳能板'},{model:'3',label:'充放电量'}],
  1092. historicalNavListEN:[{model:'lamp_info_log',label:'Lamp'},{model:'system_info_log',label:'system'},{model:'battery_info_log',label:'Battery'},{model:'solar_info_log',label:'Solar panels'},{model:'3',label:'Capacity'}],
  1093. 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:'当天亮灯时间'}],
  1094. 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'}],
  1095. system_info_logTableList:[{prop:'sysvoltage',label:'系统电压',unit:'(V)'},{prop:'syscurrent',label:'系统电流',unit:'(A)'},{prop:'temper',label:'控制器温度',unit:'(℃)'}],
  1096. system_info_logTableListEN:[{prop:'sysvoltage',label:'System voltage(V)'},{prop:'syscurrent',label:'System current(A)'},{prop:'temper',label:'Controller temperature(℃)'}],
  1097. battery_info_logTableList:[{prop:'temper',label:'控制器温度',unit:'(℃)'},{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:''}],
  1098. battery_info_logTableListEN:[{prop:'temper',label:'Controller temperature(℃)'},{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:''}],
  1099. 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:'当天充电时间'}],
  1100. 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)'}],
  1101. loading:{
  1102. turnonoff:false,
  1103. detailsDetailsKeep:false,
  1104. streetLampList:false,
  1105. projectListList:false,
  1106. catcherOnOff:false,
  1107. lampInfoFailure:false,
  1108. schedulingInformationData:false,
  1109. historyEcharts:false,
  1110. },
  1111. mapEnIsTrue:false,
  1112. }
  1113. },
  1114. computed:{
  1115. ...mapGetters({
  1116. token:'token',
  1117. username:'username',
  1118. client_key:'client_key',
  1119. // projectsId:'projectsId',
  1120. // companyId:'companyId',
  1121. lampEdit:'lampEdit',
  1122. version:'version',
  1123. remRatio:'remRatio',
  1124. GoogleJS_frequency:'GoogleJS_frequency',
  1125. role:'role',
  1126. sideBarCompanyType:'sideBarCompanyType',
  1127. browserLanguage:'browserLanguage'
  1128. })
  1129. },
  1130. components:{sideBarIdcol},
  1131. created() {
  1132. },
  1133. mounted(){
  1134. var container=document.getElementById('container');
  1135. this.definitionBtnText='SD';
  1136. // this.sideBarNav = "Lamp";
  1137. // this.lmText = 'lamp'
  1138. // var storage = window.localStorage;
  1139. // if(storage.getItem("projectId") && storage.getItem("projectId") != 'false'){
  1140. // this.projectInfo(storage.getItem("projectId"));
  1141. // }
  1142. console.log(this.browserLanguage,'====================')
  1143. let this_ = this;
  1144. if(this.browserLanguage == 'google'){
  1145. this.sideBarNav = "Lamp";
  1146. this.lmText = 'lamp'
  1147. }else{
  1148. container.onclick=function(e){
  1149. if(this_.lampEdit){
  1150. this_.monitorIsDialog = true;
  1151. let className = e.target.className.split(' ');
  1152. // console.log(className,e.target.className)
  1153. if(className[0] == 'lamp'){
  1154. this_.lampIdChangeType = 'map';
  1155. if(this_.lampId != className[1].split('_')[1]){
  1156. this_.lampId = className[1].split('_')[1]
  1157. }else{
  1158. this_.lampId = '-1'
  1159. }
  1160. }
  1161. if(className[0] == 'monitor'){
  1162. // this_.lampIdChangeType = 'map';
  1163. if(this_.monitorId != className[1].split('_')[1]){
  1164. this_.monitorId = className[1].split('_')[1]
  1165. }else{
  1166. this_.monitorId = '-1'
  1167. }
  1168. }
  1169. }
  1170. }
  1171. }
  1172. container.onmouseup=function(e){
  1173. if(this_.lampEdit){
  1174. this_.monitorIsDialog = false;
  1175. let className = e.target.className.split(' ');
  1176. if(e.button == 2){
  1177. if(className[0] == 'lamp'){
  1178. this_.lampIdHC = className[1].split('_')[1];
  1179. this_.lampType = className[2];
  1180. this_.contextmenuIsShow = true;
  1181. this_.contextmenuX = e.pageX + 40;
  1182. this_.contextmenuY = e.pageY - 4.1*this_.remRatio + $('#app > .scrollbar_style').scrollTop()+$('html').scrollTop();
  1183. //
  1184. // console.log($('#app > .main > .main_cont').scrollTop()+$('html').scrollTop())
  1185. this_.contextmenuY -= 25;
  1186. // console.log(className)
  1187. console.log(this_.contextmenuY,'----------')
  1188. }
  1189. if(className[0] == 'monitor'){
  1190. // this_.lampIdChangeType = 'map';
  1191. this_.monitorId = className[1].split('_')[1]
  1192. this_.lampType = className[0];
  1193. this_.contextmenuIsShow = true;
  1194. this_.contextmenuX = e.pageX + 30;
  1195. this_.contextmenuY = e.pageY - 125;
  1196. this_.contextmenuY +=40;
  1197. }
  1198. }
  1199. if(e.button == 0){
  1200. if(className[1] == 'lamp_info_click'){
  1201. this_.lampInfoGet(className[2]);
  1202. }
  1203. }
  1204. }
  1205. }
  1206. container.onmouseover=function(e){
  1207. if(this_.lampEdit && this_.isShowMonitorImg){
  1208. let className = e.target.className.split(' ');
  1209. // console.log(className)
  1210. if(className[0] == 'monitor'){
  1211. // console.log(className,e.target.className)
  1212. if(this_.browserLanguage == 'google'){
  1213. this_.markerMonitor = new RichMarker({
  1214. position:new google.maps.LatLng(Number(className[2]),Number(className[3])),
  1215. map: this_.map,
  1216. draggable: false,
  1217. zIndex:120,
  1218. content:'<div class="monitor_img_box" style="width:130px;height:68px;border:8px solid #fff;background:url('+className[4]+');background-size:100% 100%;position:absolute;top: -88px;left: -50px;z-index:1;"><div></div></div>'
  1219. })
  1220. }else{
  1221. this_.markerMonitor = new AMap.Marker({
  1222. position:[Number(className[3]),Number(className[2])], // 基点位置
  1223. // 自定义点标记覆盖物内容
  1224. zIndex:120,
  1225. content: '<div class="monitor_img_box" style="width:130px;height:68px;border:8px solid #fff;background:url('+className[4]+');background-size:100% 100%;position:absolute;top: -78px;left: -62px;z-index:1;"><div></div></div>',
  1226. // offset:new AMap.Pixel(-(d.count.toString().length*8+20)/2,-27/2) // 相对于基点的偏移位置
  1227. });
  1228. this_.map.add(this_.markerMonitor);
  1229. }
  1230. // this_.markerMonitor = new RichMarker({
  1231. // position:new google.maps.LatLng(Number(className[2]),Number(className[3])),
  1232. // map: this_.map,
  1233. // draggable: false,
  1234. // zIndex:120,
  1235. // content:'<div class="monitor_img_box" style="width:130px;height:68px;border:8px solid #fff;background:url('+className[4]+');background-size:100% 100%;position:absolute;top: -88px;left: -50px;z-index:1;"><div></div></div>'
  1236. // })
  1237. this_.isShowMonitorImg = false;
  1238. }
  1239. }
  1240. }
  1241. container.onmouseout=function(e){
  1242. if(this_.lampEdit){
  1243. let className = e.target.className.split(' ');
  1244. if(className[0] == 'monitor'){
  1245. // console.log(className,e.target.className,'-------------')
  1246. if(this_.markerMonitor.onRemove){
  1247. this_.markerMonitor.onRemove()
  1248. }
  1249. this_.isShowMonitorImg = true;
  1250. this_.markerMonitor = false;
  1251. }
  1252. }
  1253. }
  1254. var url = window.location.hash.split("?")[1]; //获取url中"?"符后的字串
  1255. var theRequest = new Object();
  1256. if (url) {
  1257. let arr = url.split("&");
  1258. for (var i = 0; i < arr.length; i++) {
  1259. theRequest[arr[i].split("=")[0]] = decodeURIComponent(arr[i].split("=")[1]);
  1260. }
  1261. this.lampIdChangeType = 'map';
  1262. this.lampId = theRequest.id;
  1263. if(this.browserLanguage == 'bd'){
  1264. this.mapGet('lamp',[theRequest.longitude,theRequest.latitude],false,true);
  1265. }else{
  1266. setTimeout(function(){
  1267. this_.mapEnIsTrue = true;
  1268. this_.mapGet_en('lamp',[theRequest.longitude,theRequest.latitude],false,true);
  1269. },1000)
  1270. }
  1271. // this.getProjectNav('lamp')
  1272. // this.getProjectCompany
  1273. }else{
  1274. if(this.browserLanguage == 'bd'){
  1275. this.mapGet(false,false,false,true);
  1276. }else{
  1277. setTimeout(function(){
  1278. this_.mapEnIsTrue = true;
  1279. this_.mapGet_en(false,false,false,true);
  1280. },1000)
  1281. }
  1282. // this.projectInfo(0);
  1283. // this.getProjectNav()
  1284. }
  1285. AMap.mapSwitch=function(){
  1286. };
  1287. AMap.mapSwitch.prototype = {
  1288. addTo: function(map, dom){
  1289. dom.appendChild(this._getHtmlDom(map));
  1290. },
  1291. _getHtmlDom:function(map){
  1292. this.map=map;
  1293. // 创建一个能承载控件的<div>容器
  1294. var controlUIBox=document.createElement("DIV");
  1295. controlUIBox.className="controlUIBox_class"
  1296. var controlRY=document.createElement("DIV");
  1297. let img = document.createElement("DIV");
  1298. controlRY.appendChild(img);
  1299. controlUIBox.appendChild(controlRY);
  1300. let time = new Date();
  1301. if(time.getHours()>7&&time.getHours()<19){
  1302. controlRY.className="control_ry_class"
  1303. this_.mapDYtype = 'day'
  1304. map.setMapStyle('amap://styles/macaron');
  1305. }else{
  1306. controlRY.className="control_ry_class hover"
  1307. this_.mapDYtype = 'night'
  1308. map.setMapStyle('amap://styles/darkblue');
  1309. }
  1310. var controlUI=document.createElement("DIV");
  1311. controlUI.className="controlUI_class"
  1312. controlUI.innerHTML="2D";
  1313. controlUIBox.appendChild(controlUI);
  1314. // var controlUIdiv=document.createElement("DIV");
  1315. // controlUIdiv.className="controlUIdiv_class";
  1316. // controlUIdiv.innerHTML="路况";
  1317. // controlUIBox.appendChild(controlUIdiv);
  1318. var layers = [];
  1319. // var layers_ = [];
  1320. // 设置控件响应点击onclick事件
  1321. controlRY.onclick = function() {
  1322. var styleName;
  1323. if(this_.mapDYtype == "day"){
  1324. styleName = "amap://styles/darkblue";
  1325. controlRY.className="control_ry_class hover"
  1326. this_.mapDYtype = 'night'
  1327. }else{
  1328. styleName = "amap://styles/macaron";
  1329. controlRY.className = "control_ry_class"
  1330. this_.mapDYtype = 'day'
  1331. }
  1332. map.setMapStyle(styleName);
  1333. }
  1334. controlUI.onclick = function(){
  1335. if(this_.mapTCtype == 'TileLayer'){
  1336. if(this_.mapLKtype){
  1337. layers = [
  1338. new AMap.TileLayer.Satellite(),
  1339. new AMap.TileLayer.Traffic()
  1340. ]
  1341. }else{
  1342. layers = [
  1343. new AMap.TileLayer.Satellite(),
  1344. ]
  1345. }
  1346. this_.mapTCtype = 'Satellite'
  1347. controlUI.className="controlUI_class hover";
  1348. controlRY.className="control_ry_class none";
  1349. controlUI.innerHTML="<img src='./src/img/GIS/satellite_icon.png' />";
  1350. }else{
  1351. if(this_.mapLKtype){
  1352. layers = [
  1353. new AMap.TileLayer(),
  1354. new AMap.TileLayer.Traffic()
  1355. ]
  1356. }else{
  1357. layers = [
  1358. new AMap.TileLayer(),
  1359. ]
  1360. }
  1361. this_.mapTCtype = 'TileLayer'
  1362. controlUI.className="controlUI_class";
  1363. controlUI.innerHTML="2D";
  1364. var styleName;
  1365. if(this_.mapDYtype == "day"){
  1366. styleName = "amap://styles/normal";
  1367. controlRY.className = "control_ry_class"
  1368. this_.mapDYtype = 'day'
  1369. }else{
  1370. styleName = "amap://styles/darkblue";
  1371. controlRY.className="control_ry_class hover"
  1372. this_.mapDYtype = 'night'
  1373. }
  1374. map.setMapStyle(styleName);
  1375. }
  1376. // this_.mapFun(this_,this_.mapDataListHC,true);
  1377. // 地图上设置图层
  1378. map.setLayers(layers);
  1379. clearTimeout(this_.timeoutMap)
  1380. this_.timeoutMap = setTimeout(function(){
  1381. // this_.$store.commit('setLoadingGetMap',{
  1382. // loadingGetMap:true,
  1383. // })
  1384. let encrypt_low = this_.bd_encrypt(this_.map.getBounds().southwest.lng,this_.map.getBounds().southwest.lat)
  1385. let encrypt_high = this_.bd_encrypt(this_.map.getBounds().northeast.lng,this_.map.getBounds().northeast.lat)
  1386. this_.cluster.clearMarkers();
  1387. baseApi.ajax_post(
  1388. allUrl.gisMap.mapGet,
  1389. {
  1390. username:this_.username,
  1391. client_key:this_.client_key,
  1392. token:this_.token,
  1393. project_id:this_.projectId,
  1394. section:this_.roadId,
  1395. type:this_.operationType,
  1396. keyword:this_.keyword,
  1397. lng_low:encrypt_low.bd_lng,
  1398. lat_low:encrypt_low.bd_lat,
  1399. lng_high:encrypt_high.bd_lng,
  1400. lat_high:encrypt_high.bd_lat,
  1401. multiple:this_.map.getZoom(),
  1402. lampid:'-1',
  1403. },
  1404. {},
  1405. data =>{
  1406. this_.mapDataListHC = data.data.lamps;
  1407. this_.mapFun(this_,data.data.lamps);
  1408. },
  1409. this_,
  1410. // ()=>{
  1411. // this_.$store.commit('setLoadingGetMap',{
  1412. // loadingGetMap:false,
  1413. // })
  1414. // }
  1415. )
  1416. },800)
  1417. }
  1418. return controlUIBox;
  1419. }
  1420. }
  1421. this.screenDateLS = [dateFun(new Date()),dateFun(new Date(new Date()-(-1*24*3600*1000)))];
  1422. function dateFun(date){
  1423. let MM = date.getMonth() + 1;
  1424. let dd = date.getDate();
  1425. if(MM<10){
  1426. MM = '0'+MM;
  1427. }
  1428. if(dd<10){
  1429. dd = '0'+dd;
  1430. }
  1431. return date.getFullYear() + '-' + MM + '-' + dd;
  1432. }
  1433. },
  1434. methods:{
  1435. lampDialogClose(){
  1436. this.lampDialogShow = false;
  1437. this.lampId = '-1';
  1438. },
  1439. /*旋转*/
  1440. changeDirectionFun(val){
  1441. let this_ = this;
  1442. baseApi.ajax_post(
  1443. allUrl.gisMap.changeDirection,
  1444. {
  1445. username:this.username,
  1446. client_key:this.client_key,
  1447. token:this.token,
  1448. client_type:'0',
  1449. lampid:this.lampIdHC,
  1450. direction:val,
  1451. },
  1452. {},
  1453. data =>{
  1454. this.$store.commit('setLampEdit',{
  1455. lampEdit:true,
  1456. })
  1457. this.contextmenuIsShow = false;
  1458. Notification.closeAll();
  1459. this.lampType = '';
  1460. this.$message({
  1461. showClose: true,
  1462. message:data.msg,
  1463. type: 'success'
  1464. });
  1465. let encrypt_low = this_.bd_encrypt(this_.map.getBounds().getSouthWest().lng(),this_.map.getBounds().getSouthWest().lat())
  1466. let encrypt_high = this_.bd_encrypt(this_.map.getBounds().getNorthEast().lng(),this_.map.getBounds().getNorthEast().lat())
  1467. baseApi.ajax_post(
  1468. allUrl.gisMap.mapGet,
  1469. {
  1470. username:this_.username,
  1471. client_key:this_.client_key,
  1472. token:this_.token,
  1473. project_id:this_.projectId,
  1474. section:this_.roadId,
  1475. type:this_.operationType,
  1476. keyword:this_.keyword,
  1477. lng_low:encrypt_low.bd_lng,
  1478. lat_low:encrypt_low.bd_lat,
  1479. lng_high:encrypt_high.bd_lng,
  1480. lat_high:encrypt_high.bd_lat,
  1481. multiple:this_.map.getZoom(),
  1482. lampid:'-1',
  1483. },
  1484. {},
  1485. data =>{
  1486. this_.mapDataListHC = data.data.lamps;
  1487. this_.mapFun_en(this_,data.data.lamps);
  1488. },
  1489. this_)
  1490. },
  1491. this)
  1492. },
  1493. /*路灯管理历史数据弹框*/
  1494. historicalFun(data,type){
  1495. // this.lampId = data.id;
  1496. console.log(data)
  1497. this.lSLampId = data.id;
  1498. this.lSProjectId = data.projectid;
  1499. this.historicalLampId = data.id;
  1500. this.lampLoadtype = data.loadtype;
  1501. this.historicalDialog = true;
  1502. this.currentPageLS = 1;
  1503. this.historicalNavSelect = type;
  1504. if(data.loadtype == '1'){
  1505. this.historicalNavList[0].label = 'Insect trap';
  1506. }else{
  1507. this.historicalNavList[0].label ='lamp';
  1508. }
  1509. this.historicalTableList = JSON.parse(JSON.stringify(this[this.historicalNavSelect+'TableListEN']));
  1510. this.lampcontrolHistorylist(1);
  1511. this.lampHistoryData();
  1512. this.getLampList();
  1513. },
  1514. getLampList(){
  1515. this.loading.getLampList = true;
  1516. baseApi.ajax_post(
  1517. allUrl.device.getLampList,
  1518. {
  1519. username:this.username,
  1520. client_key:this.client_key,
  1521. token:this.token,
  1522. client_type:'0',
  1523. projectid:this.lSProjectId,
  1524. },
  1525. {},
  1526. data =>{
  1527. this.historicalLampList = data.data;
  1528. this.loading.getLampList = false;
  1529. console.log($('.history_box .main_list .lamp_list .select'))
  1530. let isTrue = true;
  1531. let time = setInterval(function(){
  1532. if($('.history_box .main_list .lamp_list .select')){
  1533. $('.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()});
  1534. clearInterval(time);
  1535. }
  1536. if(isTrue){
  1537. setTimeout(function(){
  1538. clearInterval(time);
  1539. },3000)
  1540. }
  1541. isTrue = false;
  1542. },100)
  1543. },
  1544. this,()=>{
  1545. this.loading.getLampList = false;
  1546. })
  1547. },
  1548. historicalLampClick(id){
  1549. this.historicalLampId = id;
  1550. this.lSLampId = id;
  1551. if(this.dataLSType == '1'){
  1552. this.lampcontrolHistorylist(1);
  1553. }else{
  1554. this.lampHistoryData();
  1555. }
  1556. },
  1557. lampcontrolHistorylist(val,download,callback,error){
  1558. let isDownload;
  1559. if(!download){
  1560. isDownload = 0;
  1561. this.historicalTableLoading = true;
  1562. }else{
  1563. this.loading.exportTableLS = true;
  1564. isDownload = download;
  1565. }
  1566. let date = this.screenDateLS[0]+'/'+this.screenDateLS[1];
  1567. baseApi.ajax_post(
  1568. allUrl.device.lampcontrolHistorylist,
  1569. {
  1570. username:this.username,
  1571. client_key:this.client_key,
  1572. token:this.token,
  1573. lamp_id:this.lSLampId,
  1574. page:val,
  1575. count:this.zCount,
  1576. datatype:this.historicalNavSelect,
  1577. download:isDownload,
  1578. date:date,
  1579. },
  1580. {},
  1581. data =>{
  1582. // console.log(data,'表格历史数据')
  1583. if(callback){
  1584. callback()
  1585. }
  1586. if(download){
  1587. // var $eleBtn2 = $("#btn2");
  1588. var $eleForm = $("<form method='get'></form>");
  1589. $eleForm.attr("action",data.data.path);
  1590. $(document.body).append($eleForm);
  1591. //提交表单,实现下载
  1592. $eleForm.submit();
  1593. this.loading.exportTableLS = false;
  1594. }else{
  1595. this.historicalTableLoading = false;
  1596. if(data.data.list){
  1597. this.historicalTableData = data.data.list;
  1598. this.totalLS = data.data.total*16;
  1599. let i = (this.currentPageLS - 1)*16+1;
  1600. for(let d of this.historicalTableData){
  1601. let hh1 = '',mm1 = '',hh2 = '',mm2 = '';
  1602. hh1 = parseInt(d.daychargemincurrent/3600);
  1603. mm1 = parseInt((d.daychargemincurrent%3600)/60);
  1604. hh2 = parseInt(d.daydischargemincurrent/3600);
  1605. mm2 = parseInt((d.daydischargemincurrent%3600)/60);
  1606. if(hh1<10){
  1607. hh1 = '0'+hh1;
  1608. }
  1609. if(hh2<10){
  1610. hh2 = '0'+hh2;
  1611. }
  1612. if(mm1<10){
  1613. mm1 = '0'+mm1;
  1614. }
  1615. if(mm2<10){
  1616. mm2 = '0'+mm2;
  1617. }
  1618. d.daychargemincurrent = hh1+':'+mm1;
  1619. d.daydischargemincurrent = hh2+':'+mm2;
  1620. d.LSLD_index = i;
  1621. i++;
  1622. }
  1623. }else{
  1624. this.historicalTableData = [];
  1625. this.totalLS = 0;
  1626. }
  1627. }
  1628. },
  1629. this,()=>{
  1630. if(error){
  1631. error()
  1632. }
  1633. if(download){
  1634. this.loading.exportTableLS = false;
  1635. }else{
  1636. this.historicalTableData = [];
  1637. this.totalLS = 0;
  1638. this.historicalTableLoading = false;
  1639. }
  1640. })
  1641. },
  1642. lampHistoryData(){
  1643. let type = this.historicalNavSelect,date = this.screenDateLS[0]+'/'+this.screenDateLS[1];
  1644. if(this.historicalNavSelect == 'lamp_info_log'){
  1645. type = '0';
  1646. }
  1647. if(this.historicalNavSelect == 'battery_info_log'){
  1648. type = '1';
  1649. }
  1650. if(this.historicalNavSelect == 'solar_info_log'){
  1651. type = '2';
  1652. }
  1653. this.loading.historyEcharts = true;
  1654. baseApi.ajax_post(
  1655. allUrl.device.lampHistoryData,
  1656. {
  1657. username:this.username,
  1658. client_key:this.client_key,
  1659. client_type:'0',
  1660. token:this.token,
  1661. lampid:this.lSLampId,
  1662. type:type,
  1663. dateType:this.LSDataType,
  1664. date:date,
  1665. },
  1666. {},
  1667. data =>{
  1668. this.loading.historyEcharts = false;
  1669. // console.log(data)
  1670. this.historyDataInfo = data.data;
  1671. if(data.data.list.updatetime){
  1672. this.historyEcharts(data.data.list,type);
  1673. }
  1674. },
  1675. this,()=>{
  1676. this.loading.historyEcharts = false;
  1677. for(let key in this.historyDataInfo){
  1678. this.historyDataInfo[key] = '';
  1679. }
  1680. })
  1681. },
  1682. historicalNavSelectFun(obj){
  1683. // let historicalNavSelectHC = this.historicalNavSelect;
  1684. this.historicalNavSelect = obj.model;
  1685. if(this.dataLSType == '0'){
  1686. this.lampHistoryData();
  1687. }else{
  1688. this.currentPageLS = 1;
  1689. this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  1690. this.lampcontrolHistorylist(1,0);
  1691. }
  1692. // console.log(this.historicalTableList)
  1693. },
  1694. LSDataTypeFun(val){
  1695. this.LSDataType = val;
  1696. this.lampHistoryData();
  1697. },
  1698. dataLSTypeFun(val){
  1699. let historicalNavSelect = this.historicalNavSelect;
  1700. this.dataLSType = val;
  1701. if(val == '0'){
  1702. if(historicalNavSelect == 'system_info_log'){
  1703. this.historicalNavSelect = 'lamp_info_log';
  1704. }
  1705. this.lampHistoryData();
  1706. }else{
  1707. if(historicalNavSelect == '3'){
  1708. this.historicalNavSelect = 'lamp_info_log';
  1709. }
  1710. this.currentPageLS = 1;
  1711. this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  1712. this.lampcontrolHistorylist(1,0);
  1713. }
  1714. },
  1715. historyEcharts(data,type){
  1716. let this_ = this,series = [],dataListMax = 3,gridLeft,legendData = [],legendSelected = {};
  1717. if(type == '0'){
  1718. series = [
  1719. {
  1720. name:'Voltage',
  1721. id:'V_0',
  1722. data:data.lampvoltage,
  1723. type: 'line',
  1724. smooth: true,
  1725. color:'#15CA56',
  1726. showSymbol:false,
  1727. },{
  1728. name:'Current',
  1729. id:'A_1',
  1730. data:data.lampcurrent,
  1731. type: 'line',
  1732. smooth: true,
  1733. color:'#F3BC12',
  1734. showSymbol:false,
  1735. },{
  1736. name:'power',
  1737. id:'W_2',
  1738. data:data.lamppower,
  1739. type: 'line',
  1740. smooth: true,
  1741. color:'#3898F8',
  1742. showSymbol:false,
  1743. },{
  1744. name:'brightness',
  1745. id:'%_3',
  1746. data:data.lighteness,
  1747. type: 'line',
  1748. smooth: true,
  1749. color:'#F05904',
  1750. showSymbol:false,
  1751. },
  1752. ];
  1753. legendData = [
  1754. {name:'Voltage',icon:'circle'},
  1755. {name:'Current',icon:'circle'},
  1756. {name:'power',icon:'circle'},
  1757. {name:'brightness',icon:'circle',select:false}
  1758. ];
  1759. legendSelected['Voltage'] = true;
  1760. legendSelected['Current'] = true;
  1761. legendSelected['power'] = true;
  1762. legendSelected['brightness'] = false;
  1763. for(let d of data.lamppower){
  1764. d = parseInt(d);
  1765. if(d > dataListMax){
  1766. dataListMax = d;
  1767. }
  1768. }
  1769. dataListMax = dataListMax +'00'
  1770. gridLeft = dataListMax.length*10;
  1771. }
  1772. if(type == '1'){
  1773. series = [
  1774. {
  1775. name:'Voltage',
  1776. id:'V_0',
  1777. data:data.battvoltage,
  1778. type: 'line',
  1779. smooth: true,
  1780. color:'#15CA56',
  1781. showSymbol:false,
  1782. },{
  1783. name:'Current',
  1784. id:'A_1',
  1785. data:data.batterycurrent,
  1786. type: 'line',
  1787. smooth: true,
  1788. color:'#F3BC12',
  1789. showSymbol:false,
  1790. },{
  1791. name:'power',
  1792. id:'W_2',
  1793. data:data.batterypower,
  1794. type: 'line',
  1795. smooth: true,
  1796. color:'#3898F8',
  1797. showSymbol:false,
  1798. }
  1799. ];
  1800. legendData = [
  1801. {name:'Voltage',icon:'circle'},
  1802. {name:'Current',icon:'circle'},
  1803. {name:'power',icon:'circle'},
  1804. ];
  1805. legendSelected['Voltage'] = true;
  1806. legendSelected['Current'] = true;
  1807. legendSelected['power'] = true;
  1808. for(let d of data.batterypower){
  1809. d = parseInt(d);
  1810. if(d > dataListMax){
  1811. dataListMax = d;
  1812. }
  1813. }
  1814. dataListMax = dataListMax +'00'
  1815. gridLeft = dataListMax.length*10;
  1816. }
  1817. if(type == '2'){
  1818. series = [
  1819. {
  1820. name:'Voltage',
  1821. id:'V_0',
  1822. data:data.solarvoltage,
  1823. type: 'line',
  1824. smooth: true,
  1825. color:'#15CA56',
  1826. showSymbol:false,
  1827. },{
  1828. name:'Current',
  1829. id:'A_1',
  1830. data:data.solarcurrent,
  1831. type: 'line',
  1832. smooth: true,
  1833. color:'#F3BC12',
  1834. showSymbol:false,
  1835. },{
  1836. name:'power',
  1837. id:'W_2',
  1838. data:data.solarpower,
  1839. type: 'line',
  1840. smooth: true,
  1841. color:'#3898F8',
  1842. showSymbol:false,
  1843. },
  1844. ];
  1845. legendData = [
  1846. {name:'Voltage',icon:'circle'},
  1847. {name:'Current',icon:'circle'},
  1848. {name:'power',icon:'circle'},
  1849. ];
  1850. legendSelected['Voltage'] = true;
  1851. legendSelected['Current'] = true;
  1852. legendSelected['power'] = true;
  1853. for(let d of data.solarpower){
  1854. d = parseInt(d);
  1855. if(d > dataListMax){
  1856. dataListMax = d;
  1857. }
  1858. }
  1859. dataListMax = dataListMax +'00'
  1860. gridLeft = dataListMax.length*10;
  1861. }
  1862. if(type == '3'){
  1863. series = [
  1864. {
  1865. name:'Charge',
  1866. id:'AH_0',
  1867. data:data.daychargeah,
  1868. type: 'line',
  1869. smooth: true,
  1870. color:'#15CA56',
  1871. showSymbol:false,
  1872. },{
  1873. name:'Discharge',
  1874. id:'AH_1',
  1875. data:data.daydischarah,
  1876. type: 'line',
  1877. smooth: true,
  1878. color:'#F3BC12',
  1879. showSymbol:false,
  1880. }
  1881. ];
  1882. legendData = [
  1883. {name:'Charge',icon:'circle'},
  1884. {name:'Discharge',icon:'circle'},
  1885. ];
  1886. legendSelected['Charge'] = true;
  1887. legendSelected['Discharge'] = true;
  1888. for(let d of data.daychargeah){
  1889. d = parseInt(d);
  1890. if(d > dataListMax){
  1891. dataListMax = d;
  1892. }
  1893. }
  1894. for(let d of data.daydischarah){
  1895. d = parseInt(d);
  1896. if(d > dataListMax){
  1897. dataListMax = d;
  1898. }
  1899. }
  1900. dataListMax = dataListMax +'00'
  1901. gridLeft = dataListMax.length*10;
  1902. }
  1903. // console.log(data,'------')
  1904. let legendOrient = 'horizontal';
  1905. if(document.body.offsetWidth <1500){
  1906. this_.legendWidth = '180px';
  1907. // if(type == '3'){
  1908. // legendOrient = 'vertical';
  1909. // }
  1910. }else{
  1911. this_.legendWidth = 'auto';
  1912. // legendOrient = 'horizontal';
  1913. }
  1914. this.$nextTick(function(){
  1915. if(document.getElementsByClassName('history_echarts')[0]){
  1916. const myChart = this.$echarts.init(document.getElementsByClassName('history_echarts')[0]);
  1917. let arry = [],hh,month,dd,mm;
  1918. for(let d of data.updatetime){
  1919. d = new Date(d);month = d.getMonth()+1;dd = d.getDate();
  1920. hh = d.getHours()<10?'0'+d.getHours():d.getHours();
  1921. mm = d.getMinutes()<10?'0'+d.getMinutes():d.getMinutes();
  1922. arry.push(month+'-'+dd+' '+hh+':'+mm)
  1923. }
  1924. let option = {
  1925. tooltip:{
  1926. trigger:'axis',
  1927. axisPointer:{
  1928. snap:true,
  1929. lineStyle:{
  1930. width:2,
  1931. color:'rgba(252, 130, 61, 0.19)',
  1932. type:'dashed',
  1933. }
  1934. },
  1935. padding:0,
  1936. backgroundColor:'rgba(0,0,0,0.6)',
  1937. formatter: function (params) {
  1938. var tls,p='';
  1939. for(let key in params){
  1940. // console.log('sapn_'+params[key].seriesId.split('_')[1])
  1941. p=p+'<p><span class="span_'+params[key].seriesId.split('_')[1]+'"></span>'+params[key].seriesName+': '+params[key].data+' '+params[key].seriesId.split('_')[0]+'</p>'
  1942. }
  1943. tls = '<div class="history_echarts_tooltip"><p>'+data.updatetime[params[0].dataIndex]+'</p>'+p+'</div>'
  1944. return tls;
  1945. },
  1946. },
  1947. grid:{
  1948. top:60,
  1949. left:gridLeft,
  1950. bottom:20,
  1951. right:40,
  1952. },
  1953. legend: {
  1954. data:legendData,
  1955. selected:legendSelected,
  1956. orient:legendOrient,
  1957. type: 'scroll',
  1958. left: '20px',
  1959. top: '0px',
  1960. width:this_.legendWidth,
  1961. itemWidth: 12,
  1962. itemHeight: 12,
  1963. textStyle:{
  1964. color:'rgba(102,102,102,1)',
  1965. fontSize:14,
  1966. fontWeight:500,
  1967. },
  1968. },
  1969. xAxis: {
  1970. data: arry,
  1971. type: 'category',
  1972. boundaryGap: false,
  1973. axisLabel:{
  1974. color:'rgba(136, 136, 136, 1)',
  1975. fontSize:'12',
  1976. },
  1977. axisTick:{
  1978. show:false
  1979. },
  1980. axisLine:{
  1981. show:false
  1982. },
  1983. },
  1984. yAxis: {
  1985. type: 'value',
  1986. nameGap:6,
  1987. // interval:6,
  1988. // max:
  1989. axisLabel:{
  1990. color:'rgba(136, 136, 136, 1)',
  1991. fontSize:'12',
  1992. },
  1993. axisTick:{
  1994. show:false
  1995. },
  1996. axisLine:{
  1997. show:false
  1998. },
  1999. splitNumber:4,
  2000. splitLine:{
  2001. lineStyle:{
  2002. color:'rgba(240, 240, 240, 1)',
  2003. }
  2004. },
  2005. },
  2006. series: series,
  2007. };
  2008. myChart.setOption(option,true);
  2009. window.onresize = function(){
  2010. if(document.body.offsetWidth <1500){
  2011. this_.legendWidth = '180px';
  2012. }else{
  2013. this_.legendWidth = 'auto';
  2014. }
  2015. myChart.setOption(option,true);
  2016. myChart.resize();
  2017. }
  2018. }
  2019. })
  2020. },
  2021. handleCurrentChangeLS(val) {
  2022. this.lampcontrolHistorylist(val);
  2023. },
  2024. tableRowClassName({row, rowIndex}) {
  2025. console.log(row)
  2026. if (rowIndex%2 == 0) {
  2027. return 'row_bg';
  2028. }
  2029. return '';
  2030. },
  2031. screenDateFun(){
  2032. this.LSDataType = '4';
  2033. console.log(this.screenDateLS);
  2034. if(this.dataLSType == '0'){
  2035. this.lampHistoryData();
  2036. }else{
  2037. this.currentPageLS = 1;
  2038. this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
  2039. this.lampcontrolHistorylist(1);
  2040. }
  2041. },
  2042. /**/
  2043. tableOperationfun(data){
  2044. this.faultInfo(data.lampId,data => {
  2045. this.detailsDetailsData = data.data;
  2046. this.detailsDetailsData.userid = '';
  2047. this.detailsDetailsDialog = true;
  2048. })
  2049. },
  2050. faultInfo(value,callback){
  2051. baseApi.ajax_post(
  2052. allUrl.gisMap.faultInfo,
  2053. {
  2054. username:this.username,
  2055. client_key:this.client_key,
  2056. token:this.token,
  2057. lampid:value,
  2058. },
  2059. {},
  2060. data =>{
  2061. if(callback){
  2062. callback(data)
  2063. }
  2064. },
  2065. this)
  2066. },
  2067. lampInfoFailure(type,data){
  2068. // alarmData
  2069. console.log(data)
  2070. this.faultListTkShow = true;
  2071. this.loading.lampInfoFailure = true;
  2072. let lampId,projectId,section;
  2073. if(type == 'project'){
  2074. projectId = data.projectid;
  2075. }
  2076. if(type == 'road'){
  2077. section = data.section;
  2078. projectId = data.projectid;
  2079. }
  2080. if(type == 'lamp'){
  2081. lampId = data.id
  2082. }
  2083. baseApi.ajax_post(
  2084. allUrl.gisMap.alarmData,
  2085. {
  2086. username:this.username,
  2087. client_key:this.client_key,
  2088. token:this.token,
  2089. lampid:lampId,
  2090. projectid:projectId,
  2091. section:section,
  2092. },
  2093. {},
  2094. data =>{
  2095. console.log(data)
  2096. this.faultTableData = data.data.list;
  2097. this.loading.lampInfoFailure = false;
  2098. this.$refs.faultTableData.doLayout();
  2099. },
  2100. this)
  2101. },
  2102. projectInfoSection(command){
  2103. this.dialogProjectInfo.section = command;
  2104. this.lampDialogType = 2;
  2105. this.sectionDataGet(command);
  2106. },
  2107. rodaTableDataRowName(row){
  2108. if(row.row.id == this.lampId){
  2109. return 'road_lampId select road_lampId_'+row.row.id;
  2110. }
  2111. return 'road_lampId road_lampId_'+row.row.id;
  2112. },
  2113. rodaTableDblclick(data){
  2114. this.lampDialogType = 1;
  2115. this.lampId = data.id;
  2116. this.lampInfoGet(this.lampId);
  2117. this.lampIdChangeType = 'list';
  2118. // console.log(data.id)
  2119. },
  2120. roadInfoScreen(val){
  2121. if(val == 1){
  2122. this.roadOnlineStatus = this.roadOnlineStatus==1?0:1;
  2123. this.roadLightStatus = 0;
  2124. this.roadFailStatus = 0;
  2125. }
  2126. if(val == 2){
  2127. this.roadOnlineStatus = 0;
  2128. this.roadLightStatus = this.roadLightStatus==1?0:1;
  2129. this.roadFailStatus = 0;
  2130. }
  2131. if(val == 3){
  2132. this.roadOnlineStatus = 0;
  2133. this.roadLightStatus = 0;
  2134. this.roadFailStatus = this.roadFailStatus==1?0:1;
  2135. }
  2136. this.sectionDataGet();
  2137. },
  2138. sChangeH_M_S(s) {
  2139. let hh,mm,ss;
  2140. hh = parseInt(s/3600)<10?'0'+parseInt(s/3600):parseInt(s/3600);
  2141. mm = parseInt(s%3600/60)<10?'0'+parseInt(s%3600/60):parseInt(s%3600/60);
  2142. ss = (s - hh*3600 - mm*60)<10?'0'+(s - hh*3600 - mm*60):s - hh*3600 - mm*60;
  2143. return hh+':'+mm+':'+ss
  2144. },
  2145. sectionNavGet(id,obj){
  2146. // console.log(id,obj)
  2147. baseApi.ajax_post(
  2148. allUrl.gisMap.section_nav,
  2149. {
  2150. username:this.username,
  2151. client_key:this.client_key,
  2152. token:this.token,
  2153. projectid:id,
  2154. },
  2155. {},
  2156. data =>{
  2157. this.$set(obj,'roadList',data.data.list)
  2158. // console.log(data)
  2159. },
  2160. this)
  2161. },
  2162. lampInfoGet(id){
  2163. this.lampId = id;
  2164. baseApi.ajax_post(
  2165. allUrl.gisMap.lampData,
  2166. {
  2167. username:this.username,
  2168. client_key:this.client_key,
  2169. token:this.token,
  2170. lampid:id,
  2171. },
  2172. {},
  2173. data =>{
  2174. this.dialogLampInfo = data.data;
  2175. if(Number(data.data.userDate/data.data.totalDate*100).toFixed(0)){
  2176. this.dialogLampInfo.jd_sfe = parseInt(data.data.userDate/data.data.totalDate*100);
  2177. }else if(data.data.totalDate == 0){
  2178. this.dialogLampInfo.jd_sfe = 100;
  2179. }else{
  2180. this.dialogLampInfo.jd_sfe = 0;
  2181. }
  2182. this.dialogLampInfo.daydischargemincurrent = this.sChangeH_M_S(this.dialogLampInfo.daydischargemincurrent);
  2183. this.dialogLampInfo.totalLightTime = this.sChangeH_M_S(this.dialogLampInfo.totalLightTime);
  2184. this.lampDialogShow = true;
  2185. this.lampDialogType = 1;
  2186. },
  2187. this)
  2188. },
  2189. sectionDataGet(id){
  2190. let section,lampId,projectid;
  2191. if(id){
  2192. lampId = '';
  2193. section = id;
  2194. projectid = this.projectId;
  2195. }else{
  2196. lampId = this.lampId;
  2197. }
  2198. let this_ = this;
  2199. baseApi.ajax_post(
  2200. allUrl.gisMap.sectionData,
  2201. {
  2202. username:this.username,
  2203. client_key:this.client_key,
  2204. token:this.token,
  2205. lampid:lampId,
  2206. section:section,
  2207. projectid:projectid,
  2208. onlineStatus:this.roadOnlineStatus,
  2209. lightStatus:this.roadLightStatus,
  2210. failStatus:this.roadFailStatus,
  2211. },
  2212. {},
  2213. data =>{
  2214. this.dialogSectionInfo = data.data;
  2215. this.dialogSectionInfo.daychargemincurrent = this.sChangeH_M_S(this.dialogSectionInfo.daychargemincurrent);
  2216. this.dialogSectionInfo.daydischargemincurrent = this.sChangeH_M_S(this.dialogSectionInfo.daydischargemincurrent);
  2217. this.rodaTableData = data.data.lampList;
  2218. for(let d of this.rodaTableData){
  2219. d.lighteness = d.lighteness+'%';
  2220. }
  2221. this.$refs.rodaTableData.doLayout();
  2222. if(this.rodaTableData.length > 5){
  2223. setTimeout(function(){
  2224. // console.log($('.road_lampId_'+this_.lampId)[0].offsetTop)
  2225. if($('.road_lampId_'+this_.lampId)){
  2226. $('.GISMap_main .lamp_dialog .road_info .box4 .table_box .el-table__body-wrapper').animate({scrollTop: $('.road_lampId_'+this_.lampId)[0].offsetTop - 100})
  2227. }
  2228. },500)
  2229. }
  2230. },
  2231. this)
  2232. },
  2233. projectDataGet(){
  2234. baseApi.ajax_post(
  2235. allUrl.gisMap.projectData,
  2236. {
  2237. username:this.username,
  2238. client_key:this.client_key,
  2239. token:this.token,
  2240. lampid:this.lampId,
  2241. },
  2242. {},
  2243. data =>{
  2244. this.dialogProjectInfo = data.data;
  2245. if(this.dialogProjectInfo.co2_emission > 9999){
  2246. this.dialogProjectInfo.co2_emission = parseInt(this.dialogProjectInfo.co2_emission)
  2247. }
  2248. if(this.dialogProjectInfo.so2_emission > 9999){
  2249. this.dialogProjectInfo.so2_emission = parseInt(this.dialogProjectInfo.so2_emission)
  2250. }
  2251. if(this.dialogProjectInfo.coal_saving > 9999){
  2252. this.dialogProjectInfo.coal_saving = parseInt(this.dialogProjectInfo.coal_saving)
  2253. }
  2254. this.projectId = data.data.projectid;
  2255. },
  2256. this)
  2257. },
  2258. lampDialogTypeSwitch(val){
  2259. this.lampDialogType = val;
  2260. if(val == '1'){
  2261. this.lampInfoGet(this.lampId);
  2262. }
  2263. if(val == '2'){
  2264. this.sectionDataGet();
  2265. }
  2266. if(val == '3'){
  2267. this.projectDataGet();
  2268. }
  2269. },
  2270. topDataBoxShowFun(){
  2271. if(this.topDataBoxShow){
  2272. this.topDataBoxShow = false;
  2273. }else{
  2274. this.topDataBoxShow = true;
  2275. }
  2276. },
  2277. operationFun(key){
  2278. if(this.lampEdit){
  2279. if(this.operationType == key){
  2280. this.operationType = 0;
  2281. }else{
  2282. this.operationType = key;
  2283. }
  2284. if(this.browserLanguage == 'bd'){
  2285. this.mapGet();
  2286. }else{
  2287. this.mapGet_en();
  2288. }
  2289. }
  2290. },
  2291. /*隐藏*/
  2292. switchLampOnOff(val){
  2293. this.switchArrowType = val;
  2294. },
  2295. /*36、显示选择路灯状态的容器 开灯、关灯、故障、离线、全部*/
  2296. showLampStatusList(){
  2297. this.isShowLampStatusList=true
  2298. },
  2299. /*隐藏选择路灯状态的容器 开灯、关灯、故障、离线、全部*/
  2300. hideLampStatusList(){
  2301. this.isShowLampStatusList=false
  2302. },
  2303. dateNav(){
  2304. baseApi.ajax_post(
  2305. allUrl.gisMap.dateNav,
  2306. {
  2307. username:this.username,
  2308. client_key:this.client_key,
  2309. token:this.token,
  2310. project_id:this.projectId,
  2311. },
  2312. {},
  2313. data =>{
  2314. this.topDataNav =data.data;
  2315. },
  2316. this)
  2317. },
  2318. /*捕虫器开关*/
  2319. catcherOnOff(){
  2320. let type;
  2321. let this_ = this;
  2322. if(this.streetLamp.status == '0'){
  2323. type = '1';
  2324. }else{
  2325. type = '0';
  2326. }
  2327. if(!this.loading.catcherOnOff){
  2328. baseApi.websocket1(allUrl.home.wss,(data,websocket)=>{
  2329. console.log(websocket)
  2330. this_.loading.catcherOnOff = true;
  2331. if(data.data.status == '1'){
  2332. baseApi.ajax_post_ws(
  2333. allUrl.device.lampcontrolTurnonoff,
  2334. {
  2335. username:this_.username,
  2336. client_key:this_.client_key,
  2337. token:this_.token,
  2338. lamp_id:this_.lampId,
  2339. type:type,
  2340. mode:0,
  2341. clientid:data.clientid,
  2342. },
  2343. this_
  2344. )
  2345. }else if(data.data.status == '2'){
  2346. if(data.data.code == '0000'){
  2347. this.$message({
  2348. showClose: true,
  2349. message:data.data.msg,
  2350. type: 'success'
  2351. });
  2352. // this_.lampInfo(this_.lampId,data=>{
  2353. // this_.streetLamp = data.data;
  2354. // })
  2355. }else{
  2356. this.$message({
  2357. showClose: true,
  2358. message:data.data.data.msg,
  2359. type: 'warning'
  2360. });
  2361. }
  2362. this_.loading.catcherOnOff = false;
  2363. }
  2364. },() => {
  2365. this_.loading.catcherOnOff = false;
  2366. },this_)
  2367. }
  2368. },
  2369. /*获取公司项目列表*/
  2370. getProjectNav(type){
  2371. baseApi.ajax_post(
  2372. allUrl.device.projectNav,
  2373. {
  2374. username:this.username,
  2375. client_key:this.client_key,
  2376. token:this.token,
  2377. },
  2378. {},
  2379. data =>{
  2380. // console.log(data,'公司列表')
  2381. this.projectNav = data.data;
  2382. var storage = window.localStorage;
  2383. let projectId = storage.getItem("projectId");
  2384. this.companyId = storage.getItem("companyId");
  2385. for(var key in data.data){
  2386. this.$set(data.data[key],'type','Unfold')
  2387. if(data.data[key].project_list){
  2388. for(var d of data.data[key].project_list){
  2389. this.$set(d,'companyId',data.data[key].id)
  2390. }
  2391. }
  2392. if(type){
  2393. console.log(type)
  2394. }else{
  2395. if(this.companyId != 'false' && this.companyId){
  2396. if(data.data[key].id == this.companyId){
  2397. this.$set(data.data[key],'type','Collapse')
  2398. this.projectId = projectId;
  2399. }
  2400. }else{
  2401. this.projectId = 0;
  2402. this.companyId = 0;
  2403. }
  2404. }
  2405. }
  2406. for(let d of this.projectNav){
  2407. if(d.id == this.companyId){
  2408. for(let dd of d.project_list){
  2409. if(dd.id == this.projectId){
  2410. this.$set(dd,'isOpen',true);
  2411. this.sectionNavGet(dd.id,dd)
  2412. }
  2413. }
  2414. }
  2415. }
  2416. this.dateNav();
  2417. this.lampListGet(1);
  2418. },
  2419. this)
  2420. },
  2421. /*侧栏列表*/
  2422. sideBarCompanyList(val,type,init){
  2423. baseApi.ajax_post(
  2424. allUrl.project.projectNav,
  2425. {
  2426. username:this.username,
  2427. client_key:this.client_key,
  2428. token:this.token,
  2429. type:type,
  2430. keyword:val,
  2431. },
  2432. {},
  2433. data =>{
  2434. // console.log(data,'公司列表')
  2435. console.log(init)
  2436. let storage = window.localStorage;
  2437. let companyId = storage.getItem("companyId");
  2438. let projectId = storage.getItem("projectId")
  2439. if(type == 0){
  2440. if(data.data.length>0){
  2441. if(projectId){
  2442. this.projectId = projectId;
  2443. }else{
  2444. this.projectId = data.data[0].id;
  2445. }
  2446. this.sectionNavGet(data.data[0].id,data.data[0])
  2447. for(let key in data.data){
  2448. this.$set(data.data[key],'isOpen',false)
  2449. if(data.data[key].id == this.projectId){
  2450. this.$set(data.data[key],'isOpen',true)
  2451. }
  2452. }
  2453. }
  2454. }else{
  2455. if(data.data.length>0){
  2456. if(companyId){
  2457. this.companyId = companyId;
  2458. if(data.data[0].projectList.length>0){
  2459. if(projectId){
  2460. this.projectId = projectId;
  2461. }else{
  2462. this.projectId = data.data[0].projectList[0].id;
  2463. }
  2464. // this.$set(data.data[0].projectList[0],'isOpen',true)
  2465. this.sectionNavGet(data.data[0].id,data.data[0])
  2466. }else{
  2467. this.projectId = null;
  2468. this.deviceTotalData = {
  2469. light_num:0,
  2470. online_num:0,
  2471. fault_count:0,
  2472. network_num:0
  2473. };
  2474. this.deviceList = [];
  2475. this.total = 0;
  2476. this.count = 0;
  2477. this.fault = 0;
  2478. }
  2479. }else{
  2480. this.companyId = data.data[0].cId;
  2481. if(data.data[0].projectList.length>0){
  2482. this.projectId = data.data[0].projectList[0].id;
  2483. // this.$set(data.data[0].projectList[0],'isOpen',true)
  2484. this.sectionNavGet(data.data[0].id,data.data[0])
  2485. }else{
  2486. this.projectId = null;
  2487. this.deviceTotalData = {
  2488. light_num:0,
  2489. online_num:0,
  2490. fault_count:0,
  2491. network_num:0
  2492. };
  2493. this.deviceList = [];
  2494. this.total = 0;
  2495. this.count = 0;
  2496. this.fault = 0;
  2497. }
  2498. }
  2499. for(let key in data.data){
  2500. this.$set(data.data[key],'isOpen',false)
  2501. if(data.data[key].cId == this.companyId){
  2502. this.$set(data.data[key],'isOpen',true)
  2503. }
  2504. if(data.data[0].projectList.length>0){
  2505. for(let d of data.data[0].projectList){
  2506. this.$set(d,'isOpen',true)
  2507. if(d.id == this.projectId){
  2508. this.$set(d,'isOpen',true)
  2509. }
  2510. }
  2511. }
  2512. }
  2513. }else{
  2514. this.companyId = null
  2515. this.projectId = null;
  2516. this.deviceTotalData = {
  2517. light_num:0,
  2518. online_num:0,
  2519. fault_count:0,
  2520. network_num:0
  2521. };
  2522. this.deviceList = [];
  2523. this.total = 0;
  2524. this.count = 0;
  2525. this.fault = 0;
  2526. }
  2527. }
  2528. console.log(this.companyId)
  2529. this.projectNav = data.data;
  2530. this.dateNav();
  2531. this.lampListGet(1);
  2532. },
  2533. this)
  2534. },
  2535. /*侧边栏打开关闭*/
  2536. sideBarIsOn(){
  2537. if(this.sideBarType == 'on'){
  2538. this.sideBarType = 'off';
  2539. }else{
  2540. this.sideBarType = 'on';
  2541. }
  2542. },
  2543. /*侧边栏里展开收起*/
  2544. sideBarListIsOpen(data){
  2545. if(data.isOpen){
  2546. data.isOpen = false;
  2547. }else{
  2548. data.isOpen = true;
  2549. }
  2550. },
  2551. projectAll(){
  2552. this.projectId = 0;
  2553. this.companyId = 0;
  2554. var storage = window.localStorage;
  2555. storage.setItem('projectId',false);
  2556. storage.setItem('companyId',false);
  2557. },
  2558. projectSelectFun(type,data,d){
  2559. var storage = window.localStorage;
  2560. storage.setItem('projectId',data.id);
  2561. if(this.sideBarCompanyType != 0){
  2562. if(d.cId != this.companyId){
  2563. this.companyId = d.cId;
  2564. storage.setItem('companyId',d.cId);
  2565. }
  2566. }
  2567. this.projectId = data.id;
  2568. this.roadId = '';
  2569. if(!data.isOpen||this.projectId != data.id){
  2570. this.$set(data,'isOpen',true)
  2571. this.sectionNavGet(this.projectId,data)
  2572. }else{
  2573. this.$set(data,'isOpen',false)
  2574. this.maplampListDW();
  2575. }
  2576. },
  2577. roadSelectFun(data,obj,d){
  2578. var storage = window.localStorage;
  2579. if(this.sideBarCompanyType == 0){
  2580. if(data.id != this.projectId){
  2581. storage.setItem('projectId',data.id);
  2582. this.projectId = data.id;
  2583. }
  2584. this.roadId = obj.name;
  2585. }else{
  2586. if(data.cId != this.companyId){
  2587. this.companyId = data.cId;
  2588. storage.setItem('companyId',data.cId);
  2589. }
  2590. if(obj.id != this.projectId){
  2591. storage.setItem('projectId',obj.id);
  2592. this.projectId = obj.id;
  2593. }
  2594. this.roadId = d.name;
  2595. }
  2596. this.maplampListDW();
  2597. },
  2598. searchKeyUp(e){
  2599. if(e.key == 'Enter'){
  2600. this.search();
  2601. }
  2602. },
  2603. search(){
  2604. if(this.lampEdit){
  2605. if(this.operationType == 5){
  2606. this.videoListGet(data=>{
  2607. console.log(data)
  2608. if(data.data.list.length > 0){
  2609. if(this.browserLanguage == 'bd'){
  2610. this.mapGet('lamp',[data.data.list[0].longitude,data.data.list[0].latitude]);
  2611. }else{
  2612. this.mapGet_en('lamp',[data.data.list[0].longitude,data.data.list[0].latitude]);
  2613. }
  2614. this.rightSideBarType = 'off';
  2615. if(document.getElementsByClassName('right_sidebar')[0]){
  2616. document.getElementsByClassName('right_sidebar')[0].setAttribute('style', 'width: 0px ;transition:all 0.6s;');
  2617. }
  2618. }else{
  2619. if(this.browserLanguage == 'bd'){
  2620. this.mapGet();
  2621. }else{
  2622. this.mapGet_en();
  2623. }
  2624. }
  2625. })
  2626. }else{
  2627. this.lampListGet(1,data=>{
  2628. if(data.data.lamps.length > 0){
  2629. if(this.browserLanguage == 'bd'){
  2630. this.mapGet('lamp',[data.data.lamps[0].longitude,data.data.lamps[0].latitude]);
  2631. }else{
  2632. this.mapGet_en('lamp',[data.data.lamps[0].longitude,data.data.lamps[0].latitude]);
  2633. }
  2634. }else{
  2635. if(this.browserLanguage == 'bd'){
  2636. this.mapGet();
  2637. }else{
  2638. this.mapGet_en();
  2639. }
  2640. }
  2641. });
  2642. this.rightSideBarType = 'on';
  2643. if(document.getElementsByClassName('right_sidebar')[0]){
  2644. document.getElementsByClassName('right_sidebar')[0].setAttribute('style', 'width: 46% ;transition:all 0.6s;');
  2645. }
  2646. }
  2647. }
  2648. },
  2649. projectListSCroll(e){
  2650. // console.log(e.target.scrollHeight-e.target.scrollTop-e.target.offsetHeight,this.loading.projectListList,this.projectListTotal,this.projectListPage)
  2651. if(e.target.scrollHeight-e.target.scrollTop-e.target.offsetHeight < 50 && !this.loading.projectListList && this.projectListTotal > this.projectListPage){
  2652. clearTimeout(this.scroll_time);
  2653. let this_ = this;
  2654. // console.log(this_.projectListPage)
  2655. this.scroll_time = setTimeout(function(){
  2656. this_.projectListPage++;
  2657. this_.loading.projectListList = true;
  2658. baseApi.ajax_post(
  2659. allUrl.gisMap.projectListUrl,
  2660. {
  2661. username:this_.username,
  2662. client_key:this_.client_key,
  2663. token:this_.token,
  2664. page:this_.projectListPage,
  2665. count:16,
  2666. },
  2667. {},
  2668. data =>{
  2669. for(let d of data.data.projects){
  2670. this_.projectList.push(d)
  2671. }
  2672. this_.loading.projectListList = false;
  2673. },
  2674. this_)
  2675. },300)
  2676. }
  2677. },
  2678. lampListSCroll(e){
  2679. clearTimeout(this.scroll_time);
  2680. if(e.target.scrollHeight-e.target.scrollTop-e.target.offsetHeight < 50 && !this.loading.streetLampList && this.lampListTotal > this.lampListPage){
  2681. let this_ = this;
  2682. this.scroll_time = setTimeout(function(){
  2683. this_.lampListPage++;
  2684. this_.loading.streetLampList = true;
  2685. baseApi.ajax_post(
  2686. allUrl.gisMap.lampList,
  2687. {
  2688. username:this_.username,
  2689. client_key:this_.client_key,
  2690. token:this_.token,
  2691. project_id:this_.projectId,
  2692. section:this_.roadId,
  2693. type:this_.operationType,
  2694. keyword:this_.keyword,
  2695. page:this_.lampListPage,
  2696. count:16,
  2697. },
  2698. {},
  2699. data =>{
  2700. // console.log(data)
  2701. for(let d of data.data.lamps){
  2702. if(d.status == '1'){
  2703. d.runState = 'Lamp on'
  2704. }else{
  2705. d.runState = 'Lamp off'
  2706. }
  2707. this_.streetLampList.push(d);
  2708. }
  2709. // console.log(this_.streetLampList)
  2710. this_.loading.streetLampList = false;
  2711. },
  2712. this_)
  2713. },300)
  2714. }
  2715. },
  2716. lampListGet(val,callback){
  2717. baseApi.ajax_post(
  2718. allUrl.gisMap.lampList,
  2719. {
  2720. username:this.username,
  2721. client_key:this.client_key,
  2722. token:this.token,
  2723. project_id:this.projectId,
  2724. section:this.roadId,
  2725. type:this.operationType,
  2726. keyword:this.keyword,
  2727. page:val,
  2728. count:16,
  2729. },
  2730. {},
  2731. data =>{
  2732. if(callback){
  2733. callback(data)
  2734. }
  2735. // console.log(data)
  2736. this.streetLampList = data.data.lamps;
  2737. this.lampListTotal = data.data.total;
  2738. this.lampListPage = 1;
  2739. for(let d of this.streetLampList){
  2740. if(d.status == '1'){
  2741. d.runState = 'Lamp on'
  2742. }else{
  2743. d.runState = 'Lamp off'
  2744. }
  2745. }
  2746. },
  2747. this)
  2748. },
  2749. contextmenuFun(e){
  2750. // console.log(e,1)
  2751. e.preventDefault();
  2752. },
  2753. mousedownFun(){
  2754. this.contextmenuIsShow = false;
  2755. this.monitorId = '-1';
  2756. Notification.closeAll();
  2757. // console.log(e,2)
  2758. },
  2759. /*灯控删除*/
  2760. lampDelFun(){
  2761. this.$confirm('This operation will permanently delete the lamp control, will it continue?', 'Prompt', {
  2762. confirmButtonText: 'confirm',
  2763. cancelButtonText: 'cancel',
  2764. type: 'warning'
  2765. }).then(() => {
  2766. if(this.lampType == 'monitor'){
  2767. baseApi.ajax_post(
  2768. allUrl.video.videoDelete,
  2769. {
  2770. username:this.username,
  2771. client_key:this.client_key,
  2772. token:this.token,
  2773. id:this.monitorId
  2774. },
  2775. {},
  2776. data =>{
  2777. this.$message({
  2778. showClose: true,
  2779. message:data.msg,
  2780. type: 'success'
  2781. });
  2782. for(let key in this.mapDataListHC){
  2783. if(this.mapDataListHC[key].id == this.monitorId){
  2784. this.mapDataListHC.splice(key,1)
  2785. }
  2786. }
  2787. this.cluster.clearMarkers();
  2788. if(this.browserLanguage == 'bd'){
  2789. this.mapGet('del',false,this.mapDataListHC);
  2790. }else{
  2791. this.mapGet_en('del',false,this.mapDataListHC);
  2792. }
  2793. this.monitorId = '-1';
  2794. this.contextmenuIsShow = false;
  2795. Notification.closeAll();
  2796. },
  2797. this);
  2798. }else{
  2799. baseApi.ajax_post(
  2800. allUrl.device.lampcontrolDel,
  2801. {
  2802. username:this.username,
  2803. client_key:this.client_key,
  2804. token:this.token,
  2805. lamp_ids:this.lampIdHC,
  2806. },
  2807. {},
  2808. data =>{
  2809. this.$message({
  2810. showClose: true,
  2811. message:data.msg,
  2812. type: 'success'
  2813. });
  2814. // console.log(data,'删除路灯坐标回调')
  2815. for(let key in this.mapDataListHC){
  2816. if(this.mapDataListHC[key].id == this.lampId){
  2817. this.mapDataListHC.splice(key,1)
  2818. }
  2819. }
  2820. this.cluster.clearMarkers();
  2821. if(this.browserLanguage == 'bd'){
  2822. this.mapGet('del',false,this.mapDataListHC);
  2823. }else{
  2824. this.mapGet_en('del',false,this.mapDataListHC);
  2825. }
  2826. this.lampId = '-1';
  2827. this.contextmenuIsShow = false;
  2828. Notification.closeAll();
  2829. },
  2830. this)
  2831. }
  2832. }).catch(() => {
  2833. this.monitorId = '-1';
  2834. this.lampId = '-1';
  2835. this.$message({
  2836. type: 'info',
  2837. message: 'Canceled deleting'
  2838. });
  2839. });
  2840. },
  2841. /*灯控编辑*/
  2842. lampEditFun(){
  2843. let this_ = this;
  2844. this.networkLampList = [];
  2845. this.networkId = '';
  2846. this.contextmenuIsShow = false;
  2847. this.lampId = this.lampIdHC;
  2848. // this.lampEdit = false;
  2849. this.$store.commit('setLampEdit',{
  2850. lampEdit:false,
  2851. })
  2852. this.lampCoordinateIsShow = true;
  2853. this.lamp_editFun();
  2854. if(this.lampEditFunIsfirst){
  2855. this.$notify({
  2856. title: 'Edit '+this.lmText,
  2857. dangerouslyUseHTMLString: true,
  2858. message: 'Drag the '+this.lmText+' to adjust its latitude and longitude<span class="lampEditTiTleClose">Oh I see</span>',
  2859. customClass:"lampEditTiTle",
  2860. duration: 0,
  2861. offset: 100,
  2862. showClose:false
  2863. });
  2864. }
  2865. this.lampEditFunIsfirst = false;
  2866. var body = document.body;
  2867. body.onclick=function(e){
  2868. let className = e.target.className.split(' ');
  2869. if(className[0] == 'lampEditTiTleClose'){
  2870. Notification.closeAll();
  2871. $("body").unbind();
  2872. }
  2873. }
  2874. this.getProjectCompany(this.lampId,data => {
  2875. let bd_decrypt = this.bd_decrypt(data.data.longitude,data.data.latitude)
  2876. console.log(data.data.longitude,data.data.latitude,'--',bd_decrypt.lng,bd_decrypt.lat,'==========')
  2877. data.data.longitude = bd_decrypt.lng.toFixed(8);
  2878. data.data.latitude = bd_decrypt.lat.toFixed(8);
  2879. let JDstr = '';
  2880. let WDstr = '';
  2881. JDstr = 'longitude';
  2882. WDstr = 'latitude';
  2883. this.lampLongitude = data.data.longitude;
  2884. this.lampLatitude = data.data.latitude;
  2885. this.rightSideBarType = 'off';
  2886. if(document.getElementsByClassName('right_sidebar')[0]){
  2887. document.getElementsByClassName('right_sidebar')[0].setAttribute('style', 'width: 0px ;transition:all 0.6s;');
  2888. }
  2889. let type = '';
  2890. let lmId;
  2891. if(this_.lampType == 'monitor'){
  2892. type = '2';
  2893. lmId = this_.monitorId;
  2894. }else{
  2895. lmId = this_.lampId;
  2896. type = '1';
  2897. }
  2898. // this.lampLongitude = data.data.longitude;
  2899. // this.lampLatitude = data.data.latitude;
  2900. if(this.browserLanguage == 'google'){
  2901. let bgColor = '#31b4fd';
  2902. let borderColor = 'rgba(49, 180, 253, 0.18)';
  2903. if(this.lampType == 'fault'){
  2904. bgColor = '#ff0505';
  2905. borderColor = 'rgba(255, 5, 5, 0.14)';
  2906. }else if(this.lampType == 'off-line'){
  2907. bgColor = '#7c7c7c';
  2908. borderColor = 'rgba(167, 167, 167, 0.18)';
  2909. }else if(this.lampType == 'on'){
  2910. bgColor = 'linear-gradient(#fc8440, #fe7121)';
  2911. borderColor = 'rgba(253, 122, 48, 0.18)';
  2912. }else if(this.lampType == 'off'){
  2913. bgColor = '#ffb68d';
  2914. borderColor = 'rgba(242, 223, 199, 0.18)';
  2915. }
  2916. let div;
  2917. if(this_.mapTCtype == 'TileLayer'){
  2918. div = '<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>';
  2919. }else{
  2920. div = `<div class="lm_img_mover" style="width:42px;height:42px;background-image:url('./src/img/GIS/lamp_type/lamp_night_${this_.lampType}_${data.data.direction}.png');background-size:100% 100%;background-position: 0 0;"></div>`;
  2921. }
  2922. this_.positionPicker = new RichMarker({
  2923. position:new google.maps.LatLng(Number(this.lampLatitude),Number(this.lampLongitude)),
  2924. map: this_.map,
  2925. draggable: true,
  2926. content:div,
  2927. })
  2928. google.maps.event.addListener(this_.positionPicker,"position_changed",function(e){
  2929. e = e || window.event;
  2930. if(e.stopPropagation) { //W3C阻止冒泡方法
  2931. e.stopPropagation();
  2932. } else {
  2933. e.cancelBubble = true; //IE阻止冒泡方法
  2934. }
  2935. // console.log(e,this.getPosition())
  2936. $('.lampLongitude'+lmId).text(this.getPosition().lng().toFixed(8));
  2937. $('.lampLatitude'+lmId).html(this.getPosition().lat().toFixed(8));
  2938. let bd_encrypt = this_.bd_encrypt(this.getPosition().lng().toFixed(8),this.getPosition().lat().toFixed(8))
  2939. this_.lampLongitude = bd_encrypt.bd_lng;
  2940. this_.lampLatitude = bd_encrypt.bd_lat;
  2941. })
  2942. let time = setInterval(function(){
  2943. if($('.lm_img_mover').length >0){
  2944. let div = $('<div class="lamp_coordinate lamp_coordinate_'+lmId+'"><span><span>'+ JDstr +' : <span class="lampLongitude'+lmId+'">'+this_.lampLongitude+'</span></span><span>'+ WDstr +' : <span class="lampLatitude'+lmId+'">'+this_.lampLatitude+'</span></span></span><i class="determine_l"></i><i class="cancel_l"></i></div>')
  2945. $('.lm_img_mover').parent().append(div);
  2946. $('.lamp_coordinate_'+lmId).children('i').mouseup(function(e){
  2947. let className = e.target.className.split(' ');
  2948. // console.log(className)
  2949. if(className[0] == 'determine_l'){
  2950. baseApi.ajax_post(
  2951. allUrl.gisMap.changeLocation,
  2952. {
  2953. username:this_.username,
  2954. client_key:this_.client_key,
  2955. token:this_.token,
  2956. id:lmId,
  2957. type:type,
  2958. longitude:this_.lampLongitude,
  2959. latitude:this_.lampLatitude,
  2960. },
  2961. {},
  2962. data =>{
  2963. this_.$message({
  2964. showClose: true,
  2965. message:data.msg,
  2966. type: 'success'
  2967. });
  2968. // console.log(data,'改变路灯坐标回调')
  2969. $('.lamp_coordinate_'+lmId).css('display','none');
  2970. if(this_.lampType == 'monitor'){
  2971. $('.monitor_'+this_.monitorId).unbind("mousedown");
  2972. }else{
  2973. $('.lamp_'+this_.lampId).unbind("mousedown");
  2974. }
  2975. this_.$store.commit('setLampEdit',{
  2976. lampEdit:true,
  2977. })
  2978. for(let d of this_.mapDataListHC){
  2979. if(d.id == lmId){
  2980. let bd_decrypt = this_.bd_decrypt(this_.lampLongitude,this_.lampLatitude)
  2981. d.latitude = bd_decrypt.lat
  2982. d.longitude = bd_decrypt.lng
  2983. // console.log('-----',d)
  2984. }
  2985. }
  2986. this_.mapGet_en('lamp',[this_.lampLongitude,this_.lampLatitude],this_.mapDataListHC);
  2987. if(this_.positionPicker.onRemove){
  2988. this_.positionPicker.onRemove()
  2989. }
  2990. this_.lampId = '-1';
  2991. this_.monitorId = '-1';
  2992. Notification.closeAll();
  2993. this_.lampType = '';
  2994. },
  2995. this_)
  2996. }else if(className[0] == 'cancel_l'){
  2997. this_.$store.commit('setLampEdit',{
  2998. lampEdit:true,
  2999. })
  3000. if(this_.lampType == 'monitor'){
  3001. $('.monitor_'+this_.monitorId).css('display','block')
  3002. }else{
  3003. $('.lamp_'+this_.lampId).css('display','block')
  3004. }
  3005. this_.mapGet_en('lamp',[this_.lampLongitude,this_.lampLatitude],this_.mapDataListHC);
  3006. if(this_.positionPicker.onRemove){
  3007. this_.positionPicker.onRemove()
  3008. }
  3009. this_.lampId = '-1';
  3010. this_.monitorId = '-1';
  3011. Notification.closeAll();
  3012. this_.lampType = '';
  3013. }
  3014. })
  3015. clearInterval(time)
  3016. }
  3017. },1)
  3018. }
  3019. if(this.browserLanguage == 'bd'){
  3020. let url;
  3021. if(this_.mapTCtype == 'TileLayer'){
  3022. url = './src/img/GIS/'+this_.lampType+'-icon.png';
  3023. }else{
  3024. url = './src/img/GIS/lamp_type/lamp_night_'+this_.lampType+'_'+data.data.direction+'.png';
  3025. }
  3026. /*路灯方向*/
  3027. AMapUI.loadUI(['misc/PositionPicker'], function(PositionPicker) {
  3028. this_.positionPicker = new PositionPicker({
  3029. mode: 'dragMarker',
  3030. map: this_.map,
  3031. iconStyle: { //自定义外观
  3032. url: url,
  3033. ancher: [24, 24],
  3034. size: [48, 48],
  3035. }
  3036. });
  3037. this_.positionPicker.on('success', function(positionResult) {
  3038. // console.log(positionResult.position)
  3039. $('.lampLongitude'+lmId).text(positionResult.position.lng);
  3040. $('.lampLatitude'+lmId).html(positionResult.position.lat);
  3041. let bd_encrypt = this_.bd_encrypt(positionResult.position.lng,positionResult.position.lat)
  3042. positionResult.position.lng = bd_encrypt.bd_lng;
  3043. positionResult.position.lat = bd_encrypt.bd_lat;
  3044. this_.lampLongitude = positionResult.position.lng;
  3045. this_.lampLatitude = positionResult.position.lat;
  3046. });
  3047. // this_.positionPicker.on('fail', function(positionResult) {
  3048. // // console.log(positionResult.position)
  3049. // });
  3050. this_.positionPicker.start([data.data.longitude,data.data.latitude]);
  3051. this_.map.addControl(new AMap.ToolBar({
  3052. liteStyle: true
  3053. }))
  3054. });
  3055. let time = setInterval(function(){
  3056. if($('.amap-marker').children('.amap-marker-content').children('img').parent().length>0){
  3057. let div = $('<div class="lamp_coordinate lamp_coordinate_'+lmId+'"><span><span>'+ JDstr +' : <span class="lampLongitude'+lmId+'">0</span></span><span>'+ WDstr +' : <span class="lampLatitude'+lmId+'">0</span></span></span><i class="determine_l"></i><i class="cancel_l"></i></div>')
  3058. $('.amap-marker').children('.amap-marker-content').children('img').parent().append(div);
  3059. $('.lampLongitude'+lmId).text(this_.lampLongitude);
  3060. $('.lampLatitude'+lmId).html(this_.lampLatitude);
  3061. $('.lamp_coordinate_'+lmId).children('i').mousedown(function(){
  3062. this_.map.setStatus({'dragEnable':false})
  3063. })
  3064. $('.lamp_coordinate_'+lmId).children('i').mouseup(function(e){
  3065. let className = e.target.className.split(' ');
  3066. // console.log(className)
  3067. if(className[0] == 'determine_l'){
  3068. baseApi.ajax_post(
  3069. allUrl.gisMap.changeLocation,
  3070. {
  3071. username:this_.username,
  3072. client_key:this_.client_key,
  3073. token:this_.token,
  3074. id:lmId,
  3075. type:type,
  3076. longitude:this_.lampLongitude,
  3077. latitude:this_.lampLatitude,
  3078. },
  3079. {},
  3080. data =>{
  3081. this_.$message({
  3082. showClose: true,
  3083. message:data.msg,
  3084. type: 'success'
  3085. });
  3086. // console.log(data,'改变路灯坐标回调')
  3087. this_.map.setStatus({'dragEnable':true})
  3088. $('.lamp_coordinate_'+lmId).css('display','none');
  3089. if(this_.lampType == 'monitor'){
  3090. $('.monitor_'+this_.monitorId).unbind("mousedown");
  3091. }else{
  3092. $('.lamp_'+this_.lampId).unbind("mousedown");
  3093. }
  3094. this_.$store.commit('setLampEdit',{
  3095. lampEdit:true,
  3096. })
  3097. this_.positionPicker.stop();
  3098. for(let d of this_.mapDataListHC){
  3099. if(d.id == lmId){
  3100. let bd_decrypt = this_.bd_decrypt(this_.lampLongitude,this_.lampLatitude)
  3101. d.latitude = bd_decrypt.lat
  3102. d.longitude = bd_decrypt.lng
  3103. }
  3104. }
  3105. this_.cluster.clearMarkers();
  3106. this_.mapGet('lamp',[this_.lampLongitude,this_.lampLatitude],this_.mapDataListHC);
  3107. this_.lampId = '-1';
  3108. this_.monitorId = '-1';
  3109. Notification.closeAll();
  3110. this_.lampType = '';
  3111. },
  3112. this_)
  3113. }else if(className[0] == 'cancel_l'){
  3114. this_.$store.commit('setLampEdit',{
  3115. lampEdit:true,
  3116. })
  3117. this_.positionPicker.stop();
  3118. this_.map.setStatus({'dragEnable':true})
  3119. if(this_.lampType == 'monitor'){
  3120. $('.monitor_'+this_.monitorId).css('display','block')
  3121. }else{
  3122. $('.lamp_'+this_.lampId).css('display','block')
  3123. }
  3124. this_.cluster.clearMarkers();
  3125. let bd_encrypt = this_.bd_encrypt(this_.lampLongitude,this_.lampLatitude)
  3126. this_.mapGet('lamp',[bd_encrypt.bd_lng,bd_encrypt.bd_lat],this_.mapDataListHC);
  3127. this_.lampId = '-1';
  3128. this_.monitorId = '-1';
  3129. Notification.closeAll();
  3130. this_.lampType = '';
  3131. }
  3132. })
  3133. clearInterval(time)
  3134. }
  3135. },1)
  3136. }
  3137. })
  3138. },
  3139. lampRotateFun(){
  3140. },
  3141. lamp_editFun(){
  3142. let this_ = this;
  3143. // console.log(this_.lampType,'------------------')
  3144. if(this_.lampType == 'monitor'){
  3145. $('.monitor_'+this_.monitorId).css('display','none')
  3146. }else{
  3147. $('.lamp_'+this_.lampId).css('display','none')
  3148. }
  3149. },
  3150. lampTypeFun(type){
  3151. if(type == 'lamp'){
  3152. this.lampIdChangeType = 'list';
  3153. this.lampId = '-1';
  3154. }else{
  3155. // this.projectInfo(0);
  3156. this.projectsIdChangeType = 'list';
  3157. this.slider = '0';
  3158. this.projectType = 'list';
  3159. }
  3160. },
  3161. /*获取灯控公司与所属项目*/
  3162. getProjectCompany(val,callback,id){
  3163. let type_l = '1';
  3164. if(this.lampType == 'monitor'){
  3165. type_l = '2';
  3166. val = this.monitorId;
  3167. }
  3168. baseApi.ajax_post(
  3169. allUrl.gisMap.getProjectCompany,
  3170. {
  3171. username:this.username,
  3172. client_key:this.client_key,
  3173. token:this.token,
  3174. id:val,
  3175. type:type_l,
  3176. projectid:id,
  3177. },
  3178. {},
  3179. data =>{
  3180. callback(data)
  3181. },
  3182. this)
  3183. },
  3184. /*灯控调光*/
  3185. sliderFun(){
  3186. let this_ = this;
  3187. if(!this.sliderLoading){
  3188. this.sliderLoading = true;
  3189. baseApi.websocket1(allUrl.home.wss,data=>{
  3190. if(data.data.status == '1'){
  3191. baseApi.ajax_post_ws(
  3192. allUrl.gisMap.lampcontrolDimming,
  3193. {
  3194. username:this_.username,
  3195. client_key:this_.client_key,
  3196. token:this_.token,
  3197. lamp_id:this_.streetLamp.id,
  3198. // type:'1',
  3199. lightness:this_.streetLamp.lighteness,
  3200. mode:'0',
  3201. clientid:data.data.clientid,
  3202. },
  3203. this_,
  3204. )
  3205. }
  3206. if(data.data.status == '2'){
  3207. if(data.data.code == '0000'){
  3208. this_.$message({
  3209. showClose: true,
  3210. message:data.data.msg,
  3211. type: 'success'
  3212. });
  3213. this_.slider = '0';
  3214. this_.sliderLoading = false;
  3215. }else{
  3216. this_.$message({
  3217. showClose: true,
  3218. message:data.data.msg,
  3219. type: 'warning'
  3220. });
  3221. this_.slider = '0';
  3222. this_.sliderLoading = false;
  3223. this_.streetLamp.lighteness = this_.lightenessHC?this_.lightenessHC:0;
  3224. }
  3225. }
  3226. },() => {
  3227. this_.sliderLoading = false;
  3228. },
  3229. this_)
  3230. }
  3231. },
  3232. adjustLuminanceFun(){
  3233. if(this.slider == '1'){
  3234. this.slider = '0'
  3235. }else{
  3236. this.slider = '1'
  3237. this.lightenessHC = this.streetLamp.lighteness?this.streetLamp.lighteness:0;
  3238. }
  3239. },
  3240. policyGroupset(data,callback){
  3241. baseApi.ajax_post(
  3242. allUrl.gisMap.policyGroupset,
  3243. {
  3244. username:this.username,
  3245. client_key:this.client_key,
  3246. token:this.token,
  3247. groupid:data.groupid,
  3248. type:data.type,
  3249. value:data.value,
  3250. name:this.settingPacketData.name,
  3251. },
  3252. {},
  3253. data =>{
  3254. if(callback){
  3255. callback(data)
  3256. }
  3257. },
  3258. this)
  3259. },
  3260. policyGroupinfo(value,callback){
  3261. baseApi.ajax_post(
  3262. allUrl.gisMap.policyGroupinfo,
  3263. {
  3264. username:this.username,
  3265. client_key:this.client_key,
  3266. token:this.token,
  3267. groupid:value,
  3268. companyid:this.companyId,
  3269. },
  3270. {},
  3271. data =>{
  3272. if(callback){
  3273. callback(data)
  3274. }
  3275. },
  3276. this)
  3277. },
  3278. settingPacketKeep(){
  3279. // console.log(this.settingPacketData)
  3280. let value;
  3281. if(this.settingPacketData.actiontype == '0'){
  3282. value = this.settingPacketData.value0
  3283. }else if(this.settingPacketData.actiontype == '1'){
  3284. value = this.settingPacketData.value1
  3285. }else if(this.settingPacketData.actiontype == '2'){
  3286. value = this.settingPacketData.value2
  3287. }
  3288. this.policyGroupset({
  3289. groupid:this.settingPacketData.id,
  3290. type:this.settingPacketData.actiontype,
  3291. value:value,
  3292. },data => {
  3293. this.grouplist(this.projects_id);
  3294. this.$message({
  3295. showClose: true,
  3296. message:data.msg,
  3297. type: 'success'
  3298. });
  3299. this.settingPacketDialog = false;
  3300. })
  3301. },
  3302. projectDetailsFun(data){
  3303. let this_ = this;
  3304. if(this.projectDataSee == '1'){
  3305. this.lampIdChangeType = 'list';
  3306. this.projectInfoGX = false;
  3307. this.lampId = data.id;
  3308. }else if(this.projectDataSee == '2'){
  3309. // console.log(data)
  3310. this.networkId = data.id;
  3311. baseApi.ajax_post(
  3312. allUrl.alarm.lampList,
  3313. {
  3314. username:this.username,
  3315. client_key:this.client_key,
  3316. token:this.token,
  3317. networkid:data.id,
  3318. },
  3319. {},
  3320. data =>{
  3321. // console.log(data)
  3322. this.networkLampList = data.data;
  3323. console.log(this_.networkLampList,'-----ssssssssssss--------')
  3324. if(data.data.length >0){
  3325. this.getProjectCompany(data.data[0].id,obj => {
  3326. // console.log(obj)
  3327. if(this.browserLanguage == 'bd'){
  3328. this.mapGet('lamp',[obj.data.longitude,obj.data.latitude]);
  3329. }else{
  3330. this.mapGet_en('lamp',[obj.data.longitude,obj.data.latitude]);
  3331. }
  3332. })
  3333. }else{
  3334. this.$message({
  3335. showClose: true,
  3336. message:'The network has no light control at present',
  3337. type: 'warning'
  3338. });
  3339. }
  3340. },
  3341. this)
  3342. }else if(this.projectDataSee == '3'){
  3343. this.faultInfo(data.id,data => {
  3344. this.detailsDetailsData = data.data;
  3345. if(this.detailsDetailsData.userid == '0'){
  3346. this.detailsDetailsData.userid = '';
  3347. }
  3348. this.detailsDetailsDialog = true;
  3349. })
  3350. }else if(this.projectDataSee == '4'){
  3351. this.settingPacketDialog = true;
  3352. this.policyGroupinfo(data.id,data => {
  3353. this.settingPacketData = data.data;
  3354. if(this.settingPacketData.actiontype == '0'){
  3355. this.$set(this.settingPacketData,'value0',parseInt(this.settingPacketData.value))
  3356. }else{
  3357. this.$set(this.settingPacketData,'value0',0)
  3358. }
  3359. this.$set(this.settingPacketData,'value1',this.settingPacketData.value)
  3360. this.$set(this.settingPacketData,'value2',this.settingPacketData.value)
  3361. })
  3362. }
  3363. if(this.projectDataSee != '2'){
  3364. this.lamp_id = data.id;
  3365. }
  3366. },
  3367. detailsDetailsKeydown(e){
  3368. if(e.key == 'Enter'){
  3369. this.detailsDetailsKeep();
  3370. }
  3371. },
  3372. detailsDetailsKeep(){
  3373. if(this.detailsDetailsData.status == '1'){
  3374. this.loading.detailsDetailsKeep = true;
  3375. baseApi.ajax_post(
  3376. allUrl.alarm.alarmSet,
  3377. {
  3378. username:this.username,
  3379. client_key:this.client_key,
  3380. token:this.token,
  3381. ids:this.detailsDetailsData.alarmid,
  3382. status:'1',
  3383. },
  3384. {},
  3385. data =>{
  3386. this.$message({
  3387. showClose: true,
  3388. message:data.msg,
  3389. type: 'success'
  3390. });
  3391. this.dataList();
  3392. this.detailsDetailsDialog = false;
  3393. this.loading.detailsDetailsKeep = false;
  3394. },
  3395. this,() =>{
  3396. this.loading.detailsDetailsKeep = false;
  3397. })
  3398. }else if(this.detailsDetailsData.status == '0'){
  3399. this.detailsDetailsDialog = false;
  3400. baseApi.ajax_post(
  3401. allUrl.gisMap.repairDispatch,
  3402. {
  3403. username:this.username,
  3404. client_key:this.client_key,
  3405. token:this.token,
  3406. alarmid:this.detailsDetailsData.alarmid,
  3407. userid:this.detailsDetailsData.userid,
  3408. },
  3409. {},
  3410. data =>{
  3411. // console.log(data,'维修调度回调')
  3412. this.$message({
  3413. showClose: true,
  3414. message:data.msg,
  3415. type: 'success'
  3416. });
  3417. this.dataList();
  3418. this.detailsDetailsDialog = false;
  3419. this.loading.detailsDetailsKeep = false;
  3420. },
  3421. this,() =>{
  3422. this.loading.detailsDetailsKeep = false;
  3423. })
  3424. }
  3425. },
  3426. dataList(){
  3427. let projectId;
  3428. if(this.projectId == '0'){
  3429. projectId = this.projects_id;
  3430. }else{
  3431. projectId = this.projectId
  3432. }
  3433. baseApi.ajax_post(
  3434. allUrl.gisMap.dataList,
  3435. {
  3436. username:this.username,
  3437. client_key:this.client_key,
  3438. token:this.token,
  3439. projectid:projectId,
  3440. type:this.projectDataSee,
  3441. keyword:this.keyword,
  3442. },
  3443. {},
  3444. data =>{
  3445. this.streetLampsList = data.data;
  3446. },
  3447. this)
  3448. },
  3449. grouplist(value){
  3450. baseApi.ajax_post(
  3451. allUrl.gisMap.grouplist,
  3452. {
  3453. username:this.username,
  3454. client_key:this.client_key,
  3455. token:this.token,
  3456. projectid:value,
  3457. },
  3458. {},
  3459. data =>{
  3460. // console.log(data,'分组数列表')
  3461. for(let d of data.data.list){
  3462. if(d.actiontype == '2'){
  3463. for(let dd of d.content.list){
  3464. var text = '';
  3465. if(text == ''){
  3466. text = dd.date;
  3467. }
  3468. for(let ddd of dd.value){
  3469. text += ' '+ddd;
  3470. }
  3471. dd.text = text;
  3472. }
  3473. }
  3474. }
  3475. this.$set(this,'groupingList',data.data.list);
  3476. },
  3477. this)
  3478. },
  3479. // monitorInfo(){
  3480. turnonoff(value){
  3481. if(this.streetLampList.length == 0){
  3482. this.$message({
  3483. showClose: true,
  3484. message:'The project has no light control at present',
  3485. type: 'warning'
  3486. });
  3487. }else{
  3488. // console.log(this.projectData.company)
  3489. this.$confirm('Is it confirmed?', 'Prompt', {
  3490. confirmButtonText: 'confirm',
  3491. cancelButtonText: 'cancel',
  3492. type: 'warning'
  3493. }).then(() => {
  3494. this.turnonoffType = value;
  3495. this.loading.turnonoff = true;
  3496. baseApi.ajax_post(
  3497. allUrl.gisMap.turnonoff,
  3498. {
  3499. username:this.username,
  3500. client_key:this.client_key,
  3501. token:this.token,
  3502. projectid:this.projectId,
  3503. type:value,
  3504. mode:'0',
  3505. },
  3506. {},
  3507. data =>{
  3508. this.$message({
  3509. showClose: true,
  3510. message:data.msg,
  3511. type: 'success'
  3512. });
  3513. this.turnonoffType = '-1';
  3514. this.loading.turnonoff = false;
  3515. if(this.browserLanguage == 'bd'){
  3516. this.mapGet();
  3517. }else{
  3518. this.mapGet_en();
  3519. }
  3520. this.lampListGet(1);
  3521. },
  3522. this,
  3523. () =>{
  3524. this.turnonoffType = '-1';
  3525. this.loading.turnonoff = false;
  3526. })
  3527. }).catch(() => {
  3528. this.monitorId = '-1';
  3529. this.lampId = '-1';
  3530. this.$message({
  3531. type: 'info',
  3532. message: 'Canceled deleting'
  3533. });
  3534. });
  3535. }
  3536. },
  3537. _renderCluserMarker(context) {
  3538. let div = document.createElement('div');
  3539. div.style.backgroundColor = '#ffffff';
  3540. div.style.height = '27px';
  3541. div.style.width = (context.count.toString().length*8+20)+'px';
  3542. div.style.borderRadius = '2px';
  3543. div.style.boxShadow = '0 0 4px rgba(0, 0, 0, 0.2)';
  3544. div.innerHTML = context.count;
  3545. div.className = 'map_jh';
  3546. div.style.lineHeight = '27px';
  3547. div.style.color = '#222222';
  3548. div.style.fontSize = '12px';
  3549. div.style.textAlign = 'center';
  3550. let divCY = document.createElement('div');
  3551. divCY.className = 'map_CY';
  3552. div.appendChild(divCY);
  3553. context.marker.setOffset(new AMap.Pixel(-(context.count.toString().length*8+20)/2,-27/2));
  3554. context.marker.setContent(div)
  3555. },
  3556. mapGet_en(type,XY,obj,isNew){
  3557. let this_ = this;
  3558. let isGet = true;
  3559. if(obj){
  3560. isGet = false;
  3561. this.mapFun_en(this_,obj,true);
  3562. }
  3563. console.log(this_.mapEnIsTrue)
  3564. if(isGet&&this_.mapEnIsTrue){
  3565. baseApi.ajax_post(
  3566. allUrl.gisMap.getLngLat,
  3567. {
  3568. username:this.username,
  3569. client_key:this.client_key,
  3570. token:this.token,
  3571. lampid:0,
  3572. projectid:this.projectId,
  3573. },
  3574. {},
  3575. data =>{
  3576. if(isNew){
  3577. /*创建地图*/
  3578. this_.map = new google.maps.Map(document.getElementById('container'), {
  3579. center:{lat: 0, lng: 0},
  3580. zoom: 16,
  3581. disableDoubleClickZoom:true,
  3582. gestureHandling: 'greedy',
  3583. streetViewControl:false,
  3584. mapTypeControlOptions:{
  3585. style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,
  3586. position:google.maps.ControlPosition.RIGHT_BOTTOM
  3587. },
  3588. MapTypeControlStyle:'HORIZONTAL_BAR',
  3589. mapTypeId:google.maps.MapTypeId.ROADMAP,
  3590. });
  3591. }
  3592. let decrypt = this_.bd_decrypt(data.data.longitude,data.data.latitude)
  3593. data.data.longitude = decrypt.lng;
  3594. data.data.latitude = decrypt.lat;
  3595. console.log(this_.map,isNew);
  3596. this_.map.setCenter(new google.maps.LatLng(Number(data.data.latitude),Number(data.data.longitude)));
  3597. mapGet_enFun(type,XY,obj,this_);
  3598. function mapGet_enFun(type,XY,obj,this_) {
  3599. let lampId = '';
  3600. if(type == 'lamp'){
  3601. // this_.map.setZoomAndCenter(18,XY)
  3602. this_.map.setZoom(18);
  3603. // console.log(XY)
  3604. XY = [this_.bd_decrypt(XY[0],XY[1]).lng,this_.bd_decrypt(XY[0],XY[1]).lat];
  3605. this_.map.setCenter(new google.maps.LatLng(XY[1],XY[0]));
  3606. lampId = this_.lampId;
  3607. }else if(type != 'del'){
  3608. if(this_.streetLampType == 'list'){
  3609. this_.lampIdChangeType = 'list';
  3610. this_.lampId = '-1';
  3611. }
  3612. }
  3613. let mapTime = setTimeout(function(){
  3614. if(this_.map.getBounds()){
  3615. if(this_.map.getBounds().b){
  3616. // this_.$store.commit('setLoadingGetMap',{
  3617. // loadingGetMap:true,
  3618. // })
  3619. let encrypt_low = this_.bd_encrypt(this_.map.getSouthWest().lng(),this_.map.getSouthWest().lat())
  3620. let encrypt_high = this_.bd_encrypt(this_.map.getNorthEast().lng(),this_.map.getNorthEast().lat())
  3621. // console.log(this_.map.getNorthEast().lat(),this)
  3622. baseApi.ajax_post(
  3623. allUrl.gisMap.mapGet,
  3624. {
  3625. username:this_.username,
  3626. client_key:this_.client_key,
  3627. token:this_.token,
  3628. project_id:this_.projectId,
  3629. section:this_.roadId,
  3630. type:this_.operationType,
  3631. keyword:this_.keyword,
  3632. lng_low:encrypt_low.bd_lng,
  3633. lat_low:encrypt_low.bd_lat,
  3634. lng_high:encrypt_high.bd_lng,
  3635. lat_high:encrypt_high.bd_lat,
  3636. multiple:this_.map.getZoom(),
  3637. lampid:lampId,
  3638. },
  3639. {},
  3640. data =>{
  3641. this_.mapDataListHC = data.data.lamps;
  3642. this_.mapFun_en(this_,data.data.lamps);
  3643. },
  3644. this_)
  3645. clearTimeout(mapTime)
  3646. }
  3647. }
  3648. },1)
  3649. google.maps.event.addListener(this_.map,"tilesloaded",function(){
  3650. let encrypt_low = this_.bd_encrypt(this.getBounds().getSouthWest().lng(),this.getBounds().getSouthWest().lat())
  3651. let encrypt_high = this_.bd_encrypt(this.getBounds().getNorthEast().lng(),this.getBounds().getNorthEast().lat())
  3652. baseApi.ajax_post(
  3653. allUrl.gisMap.mapGet,
  3654. {
  3655. username:this_.username,
  3656. client_key:this_.client_key,
  3657. token:this_.token,
  3658. project_id:this_.projectId,
  3659. section:this_.roadId,
  3660. type:this_.operationType,
  3661. keyword:this_.keyword,
  3662. lng_low:encrypt_low.bd_lng,
  3663. lat_low:encrypt_low.bd_lat,
  3664. lng_high:encrypt_high.bd_lng,
  3665. lat_high:encrypt_high.bd_lat,
  3666. multiple:this.getZoom(),
  3667. lampid:lampId,
  3668. },
  3669. {},
  3670. data =>{
  3671. // console.log(data.data.lamps)
  3672. this_.mapDataListHC = data.data.lamps;
  3673. this_.mapFun_en(this_,data.data.lamps);
  3674. },
  3675. this_)
  3676. });
  3677. }
  3678. },
  3679. this)
  3680. }
  3681. },
  3682. mapFun_en(this_,data,isTrue){
  3683. this_.cluster = null;
  3684. this_.markers = [];
  3685. this_.$nextTick(function(){
  3686. // console.log(data)
  3687. for(let d of this_.markersHC){
  3688. if(d.onRemove){
  3689. d.setMap(null)
  3690. }
  3691. }
  3692. for(let d of this_.markerListHC){
  3693. if(d.onRemove){
  3694. d.setMap(null);
  3695. }
  3696. }
  3697. this_.markersHC = [];
  3698. // console.log(this_.map,this_.marker)
  3699. this_.markerListHC = [];
  3700. let mapTCtype = this.map.getMapTypeId();
  3701. if(mapTCtype == 'roadmap'){
  3702. this_.mapTCtype = 'TileLayer'
  3703. }else{
  3704. this_.mapTCtype = 'Satellite'
  3705. }
  3706. for(let d of data){
  3707. if(!isTrue){
  3708. let decrypt = this_.bd_decrypt(d.longitude,d.latitude);
  3709. d.longitude = decrypt.lng;
  3710. d.latitude = decrypt.lat;
  3711. }
  3712. if(d.is_lamp == 1){
  3713. let lampType = '';
  3714. let bgColor = '';
  3715. let borderColor = '';
  3716. if(d.lampstatus == '0'){
  3717. d.runningState = 'malfunction'
  3718. lampType = 'fault'
  3719. bgColor = '#ff0505';
  3720. borderColor = 'rgba(255, 5, 5, 0.14)';
  3721. }else{
  3722. d.runningState = 'malfunction'
  3723. if(d.netStatus == '0'){
  3724. lampType = 'off-line';
  3725. bgColor = '#7c7c7c';
  3726. borderColor = 'rgba(167, 167, 167, 0.18)';
  3727. }else{
  3728. if(d.status == '1'){
  3729. lampType = 'on'
  3730. bgColor = 'linear-gradient(#fc8440, #fe7121)';
  3731. borderColor = 'rgba(253, 122, 48, 0.18)';
  3732. }else{
  3733. lampType = 'off'
  3734. bgColor = '#ffb68d';
  3735. borderColor = 'rgba(242, 223, 199, 0.18)';
  3736. }
  3737. }
  3738. }
  3739. let lamp_icon;
  3740. if(this_.mapTCtype == 'TileLayer'){
  3741. lamp_icon = `<div style="text-align:center;background:${bgColor};background-clip:padding-box;border:2px solid #fff; height: 16px; width: 16px; border-radius:50%;" class="lamp lamp_${d.id} ${lampType}"></div>`
  3742. }else{
  3743. lamp_icon = `<div class="lamp lamp_${d.id} ${lampType} lamp_icon lamp_Satellite_${lampType}_${d.direction}"></div>`
  3744. }
  3745. this_.marker = new RichMarker({
  3746. position:new google.maps.LatLng(Number(d.latitude),Number(d.longitude)),
  3747. map: this_.map,
  3748. draggable: false,
  3749. content: `<div style="text-align:center;border:11px solid ${borderColor};border-radius:50%;cursor: pointer;" class="lamp lamp_${d.id} ${lampType} lamp_${this_.mapTCtype}">
  3750. ${lamp_icon}
  3751. <div class="map_lamp_info map_lamp_info_${d.id}">
  3752. <div class="map_lamp_info_bg">
  3753. <div class="top">
  3754. <span>${'Lamp'+d.number}</span>
  3755. <img src="${require('../img/GIS/wifi_'+d.netStatus+'.png')}" />
  3756. <sapn class="right lamp_info_click ${d.id}" >${'More'}</span>
  3757. </div>
  3758. <div class="ul">
  3759. <div class="li">
  3760. <span class="span1">Brightness</span>
  3761. <span class="span2">${d.light}%</span>
  3762. </div>
  3763. <div class="li">
  3764. <span class="span1">${'Voltage:'}</span>
  3765. <span class="span2">${d.lampvoltage}V</span>
  3766. </div>
  3767. <div class="li">
  3768. <span class="span1">${'Power:'}</span>
  3769. <span class="span2">${d.lamppower}W</span>
  3770. </div>
  3771. <div class="li">
  3772. <span class="span1">${'SN:'}</span>
  3773. <span class="span2">${d.address}</span>
  3774. </div>
  3775. <div class="li">
  3776. <span class="span1">${'Charge:'}</span>
  3777. <span class="span2">${this_.chargestageDataEN[d.chargestage]}</span>
  3778. </div>
  3779. </div>
  3780. <div class="bottom">
  3781. <span class="span1">${'Update time:'}</span>
  3782. <span class="span2">${d.updatetime}</span>
  3783. </div>
  3784. <div class="icon"></div>
  3785. </div>
  3786. </div>
  3787. </div>`,
  3788. })
  3789. google.maps.event.addListener(this_.marker,"click",function(e){
  3790. e = e || window.event;
  3791. if(e.stopPropagation) { //W3C阻止冒泡方法
  3792. e.stopPropagation();
  3793. } else {
  3794. e.cancelBubble = true; //IE阻止冒泡方法
  3795. }
  3796. if(this_.lampEdit){
  3797. let className = e.target.className.split(' ');
  3798. if(className[0] == 'lamp'){
  3799. this_.lampIdChangeType = 'map';
  3800. if(this_.lampId != className[1].split('_')[1]){
  3801. this_.lampId = className[1].split('_')[1]
  3802. }else{
  3803. this_.lampId = '-1'
  3804. }
  3805. }
  3806. }
  3807. // console.log(e,this.getPosition())
  3808. })
  3809. this_.markers.push(this_.marker)
  3810. this_.markersHC.push(this_.marker)
  3811. }else if(d.is_marker == 1){
  3812. // console.log(d,'----------')
  3813. let div = document.createElement('div');
  3814. div.style.backgroundColor = '#ffffff';
  3815. div.style.height = '27px';
  3816. div.style.width = (d.count.toString().length*8+20)+'px';
  3817. div.style.borderRadius = '2px';
  3818. div.style.boxShadow = '0 0 4px rgba(0, 0, 0, 0.2)';
  3819. div.innerHTML = d.count;
  3820. div.className = 'map_jh';
  3821. div.style.lineHeight = '27px';
  3822. div.style.color = '#222222';
  3823. div.style.fontSize = '12px';
  3824. div.style.textAlign = 'center';
  3825. let divCY = document.createElement('div');
  3826. divCY.className = 'map_CY';
  3827. div.appendChild(divCY);
  3828. this_.marker = new RichMarker({
  3829. position: new google.maps.LatLng(Number(d.latitude),Number(d.longitude)),
  3830. map: this_.map,
  3831. draggable: false,
  3832. content: div
  3833. });
  3834. google.maps.event.addListener(this_.marker,"click",function(e){
  3835. e = e || window.event;
  3836. if(e.stopPropagation) { //W3C阻止冒泡方法
  3837. e.stopPropagation();
  3838. } else {
  3839. e.cancelBubble = true; //IE阻止冒泡方法
  3840. }
  3841. // console.log(e,this.getPosition())
  3842. this_.map.setZoom(this_.map.getZoom()+1);
  3843. this_.map.setCenter(new google.maps.LatLng(this.getPosition().lat(),this.getPosition().lng()));
  3844. })
  3845. this_.markerListHC.push(this_.marker)
  3846. }else if(d.is_video == 1){
  3847. this_.marker = new RichMarker({
  3848. position:new google.maps.LatLng(Number(d.latitude),Number(d.longitude)),
  3849. map: this_.map,
  3850. draggable: false,
  3851. content:'<div style="text-align:center;border:11px solid rgba(49, 180, 253, 0.18); border-radius:50%;cursor:pointer;" class="monitor monitor_'+d.id+' '+d.latitude+' '+d.longitude+' '+d.image+'"><div style="text-align:center;background:#31b4fd;background-clip: padding-box;border:2px solid #fff; height: 16px; width: 16px; border-radius:50%;" class="monitor monitor_'+d.id+' '+d.latitude+' '+d.longitude+' '+d.image+'"></div></div>'
  3852. })
  3853. google.maps.event.addListener(this_.marker,"click",function(e){
  3854. e = e || window.event;
  3855. if(e.stopPropagation) { //W3C阻止冒泡方法
  3856. e.stopPropagation();
  3857. } else {
  3858. e.cancelBubble = true; //IE阻止冒泡方法
  3859. }
  3860. if(this_.lampEdit){
  3861. let className = e.target.className.split(' ');
  3862. if(className[0] == 'monitor'){
  3863. // this_.lampIdChangeType = 'map';
  3864. this_.monitorIsDialog = true;
  3865. // console.log('----------------------')
  3866. if(this_.monitorId != className[1].split('_')[1]){
  3867. this_.monitorId = className[1].split('_')[1]
  3868. }else{
  3869. this_.monitorId = '-1'
  3870. }
  3871. }
  3872. }
  3873. })
  3874. this_.markers.push(this_.marker)
  3875. this_.markersHC.push(this_.marker)
  3876. }
  3877. }
  3878. clearInterval(this_.intervalMap)
  3879. this_.intervalMap = setInterval(function(){
  3880. if(this_.networkLampList.length > 0){
  3881. for(let d of this_.networkLampList){
  3882. $('.lamp_'+d.id).addClass("Lamp_active");
  3883. }
  3884. if($('.lamp_'+this_.networkLampList[0].id).length>0){
  3885. clearInterval(this_.intervalMap)
  3886. }
  3887. }else if($('.lamp_'+this_.lampId).length>0){
  3888. $('.lamp').removeClass("Lamp_active");
  3889. $('.monitor').removeClass("monitor_active");
  3890. $('.lamp_'+this_.lampId).addClass("Lamp_active");
  3891. clearInterval(this_.intervalMap)
  3892. }else{
  3893. setTimeout(function(){
  3894. if($('.amap-marker').length>0){
  3895. clearInterval(this_.intervalMap)
  3896. }
  3897. },500)
  3898. }
  3899. setTimeout(function(){
  3900. if($('.amap-markers').children().length == 0){
  3901. clearInterval(this_.intervalMap)
  3902. }
  3903. },1000)
  3904. if(!this_.lampEdit){
  3905. this_.lamp_editFun();
  3906. }
  3907. },1)
  3908. });
  3909. },
  3910. mapGet(type,XY,obj,isNew){
  3911. let this_ = this;
  3912. let isGet = true;
  3913. if(obj){
  3914. isGet = false;
  3915. this.mapFun(this_,obj,true);
  3916. }
  3917. if(isGet){
  3918. baseApi.ajax_post(
  3919. allUrl.gisMap.getLngLat,
  3920. {
  3921. username:this.username,
  3922. client_key:this.client_key,
  3923. token:this.token,
  3924. lampid:0,
  3925. projectid:this.projectId,
  3926. section:this.roadId,
  3927. },
  3928. {},
  3929. data =>{
  3930. // if(data.data.longitude == 0 && data.data.latitude == 0){
  3931. // /*创建地图*/
  3932. // this_.map = new AMap.Map("container", {
  3933. // resizeEnable: true,
  3934. // zooms:[0,20],
  3935. // zoom: 16,
  3936. // });
  3937. // }else{
  3938. if(isNew){
  3939. let decrypt = this.bd_decrypt(data.data.longitude,data.data.latitude)
  3940. data.data.longitude = decrypt.lng;
  3941. data.data.latitude = decrypt.lat;
  3942. // console.log(data.data.longitude,data.data.latitude,'===========')
  3943. /*创建地图*/
  3944. this.map = new AMap.Map("container", {
  3945. resizeEnable: true,
  3946. center:[data.data.longitude,data.data.latitude],
  3947. zooms:[0,20],
  3948. zoom: 16,
  3949. });
  3950. // }
  3951. this.map.setFeatures(['road','bg','point']); // 多个种类要素显示 bg区域面/point兴趣点/road道路及道路标注/
  3952. // this.map.setMapStyle('amap://styles/macaron');
  3953. // console.log(this.map.getFeatures(),'--------------')
  3954. var homeControl=new AMap.mapSwitch(this.map); //新建自定义插件对象
  3955. this.map.addControl(homeControl);
  3956. // this_.map.setLang(Lang);
  3957. console.log(type,XY,'--123---')
  3958. AMap.plugin([
  3959. // 'AMap.MapType',
  3960. 'AMap.ToolBar',
  3961. ], function(){
  3962. // this_.map.addControl(new AMap.MapType({
  3963. // }));
  3964. this_.map.addControl(new AMap.ToolBar({
  3965. liteStyle:true
  3966. }));
  3967. })
  3968. }
  3969. let lampId = '';
  3970. if(type == 'lamp'){
  3971. XY = [this.bd_decrypt(XY[0],XY[1]).lng,this.bd_decrypt(XY[0],XY[1]).lat];
  3972. this_.map.setZoomAndCenter(17,XY)
  3973. lampId = this_.lampId;
  3974. }else{
  3975. if(this_.streetLampType == 'list'){
  3976. this_.lampIdChangeType = 'list';
  3977. this_.lampId = '-1';
  3978. }
  3979. }
  3980. this.$nextTick(function(){
  3981. // this.$store.commit('setLoadingGetMap',{
  3982. // loadingGetMap:true,
  3983. // })
  3984. let encrypt_low = this.bd_encrypt(this.map.getBounds().southwest.lng,this.map.getBounds().southwest.lat)
  3985. let encrypt_high = this.bd_encrypt(this.map.getBounds().northeast.lng,this.map.getBounds().northeast.lat)
  3986. baseApi.ajax_post(
  3987. allUrl.gisMap.mapGet,
  3988. {
  3989. username:this.username,
  3990. client_key:this.client_key,
  3991. token:this.token,
  3992. project_id:this.projectId,
  3993. section:this.roadId,
  3994. type:this.operationType,
  3995. keyword:this.keyword,
  3996. lng_low:encrypt_low.bd_lng,
  3997. lat_low:encrypt_low.bd_lat,
  3998. lng_high:encrypt_high.bd_lng,
  3999. lat_high:encrypt_high.bd_lat,
  4000. multiple:this.map.getZoom(),
  4001. lampid:lampId,
  4002. },
  4003. {},
  4004. data =>{
  4005. this.mapDataListHC = data.data.lamps;
  4006. this.mapFun(this_,data.data.lamps);
  4007. },
  4008. this)
  4009. this_.map.on('dragend', function() {
  4010. clearTimeout(this_.timeoutMap)
  4011. this_.timeoutMap = setTimeout(function(){
  4012. let encrypt_low = this_.bd_encrypt(this_.map.getBounds().southwest.lng,this_.map.getBounds().southwest.lat)
  4013. let encrypt_high = this_.bd_encrypt(this_.map.getBounds().northeast.lng,this_.map.getBounds().northeast.lat)
  4014. this_.cluster.clearMarkers();
  4015. baseApi.ajax_post(
  4016. allUrl.gisMap.mapGet,
  4017. {
  4018. username:this_.username,
  4019. client_key:this_.client_key,
  4020. token:this_.token,
  4021. project_id:this_.projectId,
  4022. section:this_.roadId,
  4023. type:this_.operationType,
  4024. keyword:this_.keyword,
  4025. lng_low:encrypt_low.bd_lng,
  4026. lat_low:encrypt_low.bd_lat,
  4027. lng_high:encrypt_high.bd_lng,
  4028. lat_high:encrypt_high.bd_lat,
  4029. multiple:this_.map.getZoom(),
  4030. lampid:lampId,
  4031. },
  4032. {},
  4033. data =>{
  4034. this_.mapDataListHC = data.data.lamps;
  4035. this_.mapFun(this_,data.data.lamps);
  4036. },
  4037. this_)
  4038. },800)
  4039. })
  4040. this_.map.on('zoomchange', function() {
  4041. clearTimeout(this_.timeoutMap)
  4042. console.log(this_.map.getZoom(),'-z-------')
  4043. this_.timeoutMap = setTimeout(function(){
  4044. // this_.$store.commit('setLoadingGetMap',{
  4045. // loadingGetMap:true,
  4046. // })
  4047. let encrypt_low = this_.bd_encrypt(this_.map.getBounds().southwest.lng,this_.map.getBounds().southwest.lat)
  4048. let encrypt_high = this_.bd_encrypt(this_.map.getBounds().northeast.lng,this_.map.getBounds().northeast.lat)
  4049. this_.cluster.clearMarkers();
  4050. baseApi.ajax_post(
  4051. allUrl.gisMap.mapGet,
  4052. {
  4053. username:this_.username,
  4054. client_key:this_.client_key,
  4055. token:this_.token,
  4056. project_id:this_.projectId,
  4057. section:this_.roadId,
  4058. type:this_.operationType,
  4059. keyword:this_.keyword,
  4060. lng_low:encrypt_low.bd_lng,
  4061. lat_low:encrypt_low.bd_lat,
  4062. lng_high:encrypt_high.bd_lng,
  4063. lat_high:encrypt_high.bd_lat,
  4064. multiple:this_.map.getZoom(),
  4065. lampid:lampId,
  4066. },
  4067. {},
  4068. data =>{
  4069. this_.mapDataListHC = data.data.lamps;
  4070. this_.mapFun(this_,data.data.lamps);
  4071. },
  4072. this_)
  4073. },800)
  4074. });
  4075. })
  4076. },
  4077. this)
  4078. }
  4079. },
  4080. mapFun(this_,data,isTrue){
  4081. this_.cluster = null;
  4082. this_.markers = [];
  4083. this_.$nextTick(function(){
  4084. this_.map.remove(this_.markerListHC)
  4085. // this_.map.clearMap()
  4086. this_.markerListHC = [];
  4087. for(let d of data){
  4088. if(!isTrue){
  4089. let decrypt = this_.bd_decrypt(d.longitude,d.latitude);
  4090. d.longitude = decrypt.lng;
  4091. d.latitude = decrypt.lat;
  4092. }
  4093. if((!this_.lampEdit && d.id != this_.lampId) || this_.lampEdit){
  4094. if(d.is_lamp == 1){
  4095. let lampType = '';
  4096. let bgColor = '';
  4097. let borderColor = '';
  4098. if(d.lampstatus == '0'){
  4099. d.runningState = '故障';
  4100. if(this_.browserLanguage == 'google'){
  4101. d.runningState = 'malfunction'
  4102. }
  4103. lampType = 'fault'
  4104. bgColor = '#ff0505';
  4105. borderColor = 'rgba(255, 5, 5, 0.14)';
  4106. }else{
  4107. d.runningState = '正常'
  4108. if(this_.browserLanguage == 'google'){
  4109. d.runningState = 'malfunction'
  4110. }
  4111. if(d.netStatus == '0'){
  4112. lampType = 'off-line';
  4113. bgColor = '#7c7c7c';
  4114. borderColor = 'rgba(167, 167, 167, 0.18)';
  4115. }else{
  4116. if(d.status == '1'){
  4117. lampType = 'on'
  4118. bgColor = 'linear-gradient(#fc8440, #fe7121)';
  4119. borderColor = 'rgba(253, 122, 48, 0.18)';
  4120. }else{
  4121. lampType = 'off'
  4122. bgColor = '#ffb68d';
  4123. borderColor = 'rgba(242, 223, 199, 0.18)';
  4124. }
  4125. }
  4126. }
  4127. let lamp_icon;
  4128. if(this_.mapTCtype == 'TileLayer'){
  4129. lamp_icon = `<div style="text-align:center;background:${bgColor};background-clip:padding-box;border:2px solid #fff; height: 16px; width: 16px; border-radius:50%;" class="lamp lamp_${d.id} ${lampType}"></div>`
  4130. }else{
  4131. lamp_icon = `<div class="lamp lamp_${d.id} ${lampType} lamp_icon lamp_Satellite_${lampType}_${d.direction}"></div>`
  4132. }
  4133. this_.markers.push(new AMap.Marker({
  4134. position:[d.longitude,d.latitude],
  4135. content: `<div style="text-align:center;border:11px solid ${borderColor};border-radius:50%;" class="lamp lamp_${d.id} ${lampType} lamp_${this_.mapTCtype}">
  4136. ${lamp_icon}
  4137. <div class="map_lamp_info map_lamp_info_${d.id}">
  4138. <div class="map_lamp_info_bg">
  4139. <div class="top">
  4140. <span>${'路灯'+d.number}</span>
  4141. <img src="${require('../img/GIS/wifi_'+d.netStatus+'.png')}" />
  4142. <sapn class="right lamp_info_click ${d.id}" >${'更多'}</span>
  4143. </div>
  4144. <div class="ul">
  4145. <div class="li">
  4146. <span class="span1">${'亮度:'}</span>
  4147. <span class="span2">${d.light}%</span>
  4148. </div>
  4149. <div class="li">
  4150. <span class="span1">${'电压:'}</span>
  4151. <span class="span2">${d.lampvoltage}V</span>
  4152. </div>
  4153. <div class="li">
  4154. <span class="span1">${'功率:'}</span>
  4155. <span class="span2">${d.lamppower}W</span>
  4156. </div>
  4157. <div class="li">
  4158. <span class="span1">${'SN:'}</span>
  4159. <span class="span2">${d.address}</span>
  4160. </div>
  4161. <div class="li">
  4162. <span class="span1">${'充电:'}</span>
  4163. <span class="span2">${this_.chargestageData[d.chargestage]}</span>
  4164. </div>
  4165. </div>
  4166. <div class="bottom">
  4167. <span class="span1">${'更新时间:'}</span>
  4168. <span class="span2">${d.updatetime}</span>
  4169. </div>
  4170. <div class="icon"></div>
  4171. </div>
  4172. </div>
  4173. </div>`,
  4174. offset: new AMap.Pixel(-19,-19),
  4175. extData:d.id+d.number,
  4176. }))
  4177. }else if(d.is_marker == 1){
  4178. // console.log(d,'----------')
  4179. let div = document.createElement('div');
  4180. div.style.backgroundColor = '#ffffff';
  4181. div.style.height = '27px';
  4182. div.style.width = (d.count.toString().length*8+20)+'px';
  4183. div.style.borderRadius = '2px';
  4184. div.style.boxShadow = '0 0 4px rgba(0, 0, 0, 0.2)';
  4185. div.innerHTML = d.count;
  4186. div.className = 'map_jh';
  4187. div.style.lineHeight = '27px';
  4188. div.style.color = '#222222';
  4189. div.style.fontSize = '12px';
  4190. div.style.textAlign = 'center';
  4191. let divCY = document.createElement('div');
  4192. divCY.className = 'map_CY';
  4193. div.appendChild(divCY);
  4194. var marker = new AMap.Marker({
  4195. content: div, // 自定义点标记覆盖物内容
  4196. position:[d.longitude, d.latitude], // 基点位置
  4197. offset:new AMap.Pixel(-(d.count.toString().length*8+20)/2,-27/2) // 相对于基点的偏移位置
  4198. });
  4199. marker.on('click',function(e){
  4200. // console.log(e)
  4201. this_.map.setZoomAndCenter(this_.map.getZoom()+1, [e.lnglat.lng,e.lnglat.lat]);
  4202. })
  4203. this_.map.add(marker);
  4204. this_.markerListHC.push(marker)
  4205. }else if(d.is_video == 1){
  4206. this_.markers.push(new AMap.Marker({
  4207. position:[d.longitude,d.latitude],
  4208. content:'<div style="text-align:center;border:11px solid rgba(49, 180, 253, 0.18); border-radius:50%;cursor:pointer;" class="monitor monitor_'+d.id+' '+d.latitude+' '+d.longitude+' '+d.image+'"><div style="text-align:center;background:#31b4fd;background-clip: padding-box;border:2px solid #fff; height: 16px; width: 16px; border-radius:50%;" class="monitor monitor_'+d.id+' '+d.latitude+' '+d.longitude+' '+d.image+'"></div></div>',
  4209. offset: new AMap.Pixel(-19,-19),
  4210. extData:d.id+d.number,
  4211. }))
  4212. }
  4213. }
  4214. }
  4215. clearInterval(this_.intervalMap)
  4216. this_.intervalMap = setInterval(function(){
  4217. if(this_.networkLampList.length > 0){
  4218. for(let d of this_.networkLampList){
  4219. $('.lamp_'+d.id).addClass("Lamp_active");
  4220. }
  4221. if($('.lamp_'+this_.networkLampList[0].id).length>0){
  4222. clearInterval(this_.intervalMap)
  4223. }
  4224. }else if($('.lamp_'+this_.lampId).length>0){
  4225. $('.lamp').removeClass("Lamp_active");
  4226. $('.monitor').removeClass("monitor_active");
  4227. $('.lamp_'+this_.lampId).addClass("Lamp_active");
  4228. clearInterval(this_.intervalMap)
  4229. }else{
  4230. setTimeout(function(){
  4231. if($('.amap-marker').length>0){
  4232. clearInterval(this_.intervalMap)
  4233. }
  4234. },500)
  4235. }
  4236. setTimeout(function(){
  4237. if($('.amap-markers').children().length == 0){
  4238. clearInterval(this_.intervalMap)
  4239. }
  4240. },1000)
  4241. if(!this_.lampEdit){
  4242. this_.lamp_editFun();
  4243. }
  4244. },1)
  4245. if(this_.map.getZoom() > 16){
  4246. this_.cluster = new AMap.MarkerClusterer(this_.map,this_.markers,{
  4247. gridSize:52,
  4248. minClusterSize:2,
  4249. maxZoom:2,
  4250. renderCluserMarker:this_._renderCluserMarker
  4251. });
  4252. }else{
  4253. let number = parseInt(this_.markers.length)
  4254. this_.cluster = new AMap.MarkerClusterer(this_.map,this_.markers,{
  4255. gridSize:52,
  4256. minClusterSize:2,
  4257. maxZoom:number*100,
  4258. renderCluserMarker:this_._renderCluserMarker
  4259. });
  4260. }
  4261. });
  4262. },
  4263. videoListGet(callback){
  4264. baseApi.ajax_post(
  4265. allUrl.gisMap.videoList,
  4266. {
  4267. username:this.username,
  4268. client_key:this.client_key,
  4269. token:this.token,
  4270. project_id:this.projectId,
  4271. keyword:this.keyword,
  4272. },
  4273. {},
  4274. data =>{
  4275. callback(data)
  4276. },
  4277. this)
  4278. },
  4279. rightSideBarIsOn(){
  4280. if(this.lampEdit){
  4281. if(this.rightSideBarType == 'on'){
  4282. this.rightSideBarType = 'off';
  4283. }else{
  4284. this.rightSideBarType = 'on';
  4285. }
  4286. }
  4287. },
  4288. sideBarNavFun(type){
  4289. this.sideBarNav = type;
  4290. },
  4291. streetLampFun(data){
  4292. // console.log(data)
  4293. this.lampData = data;
  4294. this.streetLamp = data;
  4295. if(this.streetLamp.loadtype == '0'){
  4296. this.sideBarNavList = [{label:'路灯信息',key:'0'},{key:'1',label:'项目信息'},{key:'2',label:'监控信息'}];
  4297. this.sideBarNavListEN = [{label:'Lamp',key:'0'},{key:'1',label:'Project'},{key:'2',label:'Monitoring'}];
  4298. }else{
  4299. this.sideBarNavList = [{label:'捕虫器设备信息',key:'0'},{key:'1',label:'项目信息'},{key:'2',label:'监控信息'}];
  4300. this.sideBarNavListEN = [{label:'Catcher information',key:'0'},{key:'1',label:'Project'},{key:'2',label:'Monitoring'}];
  4301. }
  4302. this.streetLamp.lighteness = this.streetLamp.lighteness?parseInt(this.streetLamp.lighteness):0;
  4303. this.lampIdChangeType = 'list';
  4304. this.lampId = data.id;
  4305. },
  4306. projectFun(){
  4307. this.projectDataLoading = true;
  4308. this.projectsIdChangeType = 'list';
  4309. },
  4310. projectDataSeeFun(value){
  4311. if(this.projectDataSee == value){
  4312. this.projectDataSee = '-1';
  4313. }else{
  4314. this.projectDataSee = value;
  4315. if(this.projectDataSee != '4' && this.projectDataSee != '-1'){
  4316. this.dataList();
  4317. }
  4318. if(this.projectDataSee == '4'){
  4319. this.grouplist(this.projects_id);
  4320. }
  4321. }
  4322. },
  4323. //123
  4324. //鼠标移入移除显示隐藏控制icon
  4325. showControlIcons(){
  4326. this.isHideControlIconsFlag=false;
  4327. },
  4328. //鼠标移出隐藏控制icon
  4329. hideControlIcons(){
  4330. this.isHideControlIconsFlag=true;
  4331. this.isShowIconWrap='';
  4332. },
  4333. activeAction(derection){
  4334. this.isShowIconWrap=derection;
  4335. },
  4336. blurAction(){
  4337. this.isShowIconWrap='';
  4338. },
  4339. //云台控制
  4340. clickControlDirection(direction){
  4341. if(!this.canControlFlag){
  4342. return;
  4343. }
  4344. this.starControlVideo(direction);
  4345. this.canControlFlag=false;
  4346. },
  4347. stopControlVideo(direction){
  4348. const _this = this;
  4349. baseApi.ajax_post(
  4350. allUrl.video.stopVideoControl,
  4351. {
  4352. username:this.username,
  4353. client_key:this.client_key,
  4354. token:this.token,
  4355. accessToken:this.videoData.accessToken,
  4356. deviceSerial:this.videoData.devid,
  4357. channelNo:this.videoData.channel,
  4358. direction:direction,
  4359. },
  4360. {},
  4361. () =>{
  4362. _this.canControlFlag=true;
  4363. },
  4364. this)
  4365. },
  4366. starControlVideo(direction){
  4367. const _this = this;
  4368. baseApi.ajax_post(
  4369. allUrl.video.starVideoControl,
  4370. {
  4371. username:this.username,
  4372. client_key:this.client_key,
  4373. token:this.token,
  4374. accessToken:this.videoData.accessToken,
  4375. deviceSerial:this.videoData.devid,
  4376. channelNo:this.videoData.channel,
  4377. direction:direction,
  4378. speed:1
  4379. },
  4380. {},
  4381. () =>{
  4382. // console.log("star"+direction)
  4383. setTimeout(function(){
  4384. _this.stopControlVideo(direction)
  4385. },1000)
  4386. },
  4387. this)
  4388. },
  4389. getVideoData(){
  4390. baseApi.ajax_post(
  4391. allUrl.video.videoInfo,
  4392. {
  4393. username:this.username,
  4394. client_key:this.client_key,
  4395. token:this.token,
  4396. id:this.monitorId,
  4397. },
  4398. {},
  4399. data =>{
  4400. let this_ = this;
  4401. this.videoData=data.data
  4402. setTimeout(function(){
  4403. let source=`<video ref="myPlayer" id="myPlayer" controls autoplay playsInline webkit-playsinline poster="">
  4404. <source src="${this_.videoData.rtmp}" type="rtmp/flv" />
  4405. </video>`;
  4406. document.getElementById('myPlayer').innerHTML=source
  4407. let player = new ezuikit('myPlayer');
  4408. console.log(player)
  4409. },100)
  4410. },
  4411. this)
  4412. },
  4413. //切换高清、标清
  4414. switchUrl(flag){
  4415. const this_=this;
  4416. this_.definition=flag;
  4417. if(flag==0){
  4418. this_.definitionBtnText='SD';
  4419. //标清
  4420. setTimeout(function(){
  4421. let source=`<video ref="myPlayer" id="myPlayer" controls autoplay playsInline webkit-playsinline poster="">
  4422. <source src="${this_.videoData.rtmp}" type="rtmp/flv" />
  4423. </video>`;
  4424. document.getElementById('myPlayer').innerHTML=source
  4425. let player = new ezuikit('myPlayer');
  4426. console.log(player)
  4427. },100)
  4428. }else{
  4429. this_.definitionBtnText='HD';
  4430. // 高清
  4431. setTimeout(function(){
  4432. let source=`<video ref="myPlayer" id="myPlayer" controls autoplay playsInline webkit-playsinline poster="">
  4433. <source src="${this_.videoData.rtmpHD}" type="rtmp/flv" />
  4434. </video>`;
  4435. document.getElementById('myPlayer').innerHTML=source
  4436. let player = new ezuikit('myPlayer');
  4437. console.log(player)
  4438. },100)
  4439. }
  4440. },
  4441. routerLink(type){
  4442. window.open('#/'+type);
  4443. },
  4444. //百度坐标转高德(传入经度、纬度)
  4445. bd_decrypt(bd_lng, bd_lat) {
  4446. var X_PI = Math.PI * 3000.0 / 180.0;
  4447. var x = bd_lng - 0.0065;
  4448. var y = bd_lat - 0.006;
  4449. var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * X_PI);
  4450. var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * X_PI);
  4451. var gg_lng = z * Math.cos(theta);
  4452. var gg_lat = z * Math.sin(theta);
  4453. return {lng: gg_lng, lat: gg_lat}
  4454. },
  4455. //高德坐标转百度(传入经度、纬度)
  4456. bd_encrypt(gg_lng, gg_lat) {
  4457. var X_PI = Math.PI * 3000.0 / 180.0;
  4458. var x = gg_lng, y = gg_lat;
  4459. var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * X_PI);
  4460. var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * X_PI);
  4461. var bd_lng = z * Math.cos(theta) + 0.0065;
  4462. var bd_lat = z * Math.sin(theta) + 0.006;
  4463. return {
  4464. bd_lat: bd_lat,
  4465. bd_lng: bd_lng
  4466. };
  4467. },
  4468. maplampListDW(){
  4469. let this_ = this;
  4470. let isTrue = false,longitude,latitude;
  4471. let x = 0;
  4472. this.videoListGet(data=>{
  4473. if(data.data.list.length > 0){
  4474. isTrue = true;
  4475. longitude = data.data.list[0].longitude;
  4476. latitude = data.data.list[0].latitude;
  4477. }
  4478. x++;
  4479. if(x==2){
  4480. fun(isTrue,this_);
  4481. }
  4482. })
  4483. this.lampListGet(1,data=>{
  4484. console.log(data.data.lamps.length)
  4485. if(data.data.lamps.length > 0){
  4486. isTrue = true;
  4487. longitude = data.data.lamps[0].longitude;
  4488. latitude = data.data.lamps[0].latitude;
  4489. }
  4490. x++;
  4491. if(x==2){
  4492. fun(isTrue,this_);
  4493. }
  4494. });
  4495. function fun(isTrue,this_){
  4496. console.log(isTrue,longitude,latitude)
  4497. if(isTrue){
  4498. if(this_.browserLanguage == 'bd'){
  4499. this_.mapGet('lamp',[longitude,latitude]);
  4500. }else{
  4501. this_.mapGet_en('lamp',[longitude,latitude]);
  4502. }
  4503. }else{
  4504. if(this_.browserLanguage == 'bd'){
  4505. this_.mapGet();
  4506. }else{
  4507. this_.mapGet_en();
  4508. }
  4509. }
  4510. }
  4511. this.dateNav();
  4512. }
  4513. },
  4514. watch:{
  4515. projectId(curVal){
  4516. // this.projectInfo(curVal);
  4517. if(curVal != 0){
  4518. this.projectType = 'data';
  4519. }else{
  4520. this.projectType = 'list';
  4521. }
  4522. this.lampId = '-1';
  4523. if(this.projectsIdChangeType == 'list'){
  4524. this.streetLampType = 'list';
  4525. }
  4526. this.maplampListDW();
  4527. },
  4528. lampType(curVal){
  4529. if(curVal == 'monitor'){
  4530. this.lmText = 'monitor'
  4531. }else{
  4532. this.lmText = 'lamp'
  4533. }
  4534. },
  4535. surveillanceVideoDialog(curVal){
  4536. if(!curVal){
  4537. this.monitorId = -1;
  4538. }
  4539. },
  4540. monitorId(curVal){
  4541. if(curVal != '-1'){
  4542. if(this.monitorIsDialog){
  4543. this.surveillanceVideoDialog=true;
  4544. this.getVideoData();
  4545. }
  4546. }
  4547. },
  4548. lampId(curVal){
  4549. let this_ = this;
  4550. this.slider = '0';
  4551. if(curVal == '-1'){
  4552. $('.lamp').removeClass("Lamp_active");
  4553. $('.monitor').removeClass("monitor_active");
  4554. this.streetLampType = 'list';
  4555. if(this.projectId == 0){
  4556. this.projectType = 'list';
  4557. // this.projectInfo(0);
  4558. }
  4559. this.lampDialogShow = false;
  4560. }else{
  4561. this.lampInfoGet(curVal);
  4562. // this.sideBarNav = '路灯信息';
  4563. $('.lamp').removeClass("Lamp_active");
  4564. $('.monitor').removeClass("monitor_active");
  4565. $('.lamp_'+curVal).addClass("Lamp_active");
  4566. this.networkLampList = [];
  4567. this.networkId = '';
  4568. this.getProjectCompany(curVal,data => {
  4569. if(this.lampIdChangeType != 'list'){
  4570. let decrypt = this_.bd_decrypt(data.data.longitude,data.data.latitude);
  4571. data.data.longitude = decrypt.lng;
  4572. data.data.latitude = decrypt.lat;
  4573. }
  4574. if(this.lampEdit){
  4575. this.projectsIdChangeType = 'map';
  4576. // this.lampInfo(curVal,data=>{
  4577. // this.streetLamp = data.data;
  4578. // if(this.streetLamp.loadtype == '0'){
  4579. // this.sideBarNavList = [{label:'路灯信息',key:'0'},{key:'1',label:'项目信息'},{key:'2',label:'监控信息'}];
  4580. // this.sideBarNavListEN = [{label:'Lamp',key:'0'},{key:'1',label:'Project'},{key:'2',label:'Monitoring'}];
  4581. // }else{
  4582. // this.sideBarNavList = [{label:'捕虫器设备信息',key:'0'},{key:'1',label:'项目信息'},{key:'2',label:'监控信息'}];
  4583. // this.sideBarNavListEN = [{label:'Catcher information',key:'0'},{key:'1',label:'Project'},{key:'2',label:'Monitoring'}];
  4584. // }
  4585. // this.streetLamp.lighteness = this.streetLamp.lighteness?parseInt(this.streetLamp.lighteness):0;
  4586. // })
  4587. // if(data.data.projectid == this.projectType){
  4588. // this.projectInfo('-1',curVal);
  4589. // }else{
  4590. // this.projectInfo(data.data.projectid);
  4591. // }
  4592. this.streetLampType = 'data';
  4593. this.projectType = 'data';
  4594. // this.monitorInfo();
  4595. this.lampLongitude = data.data.longitude;
  4596. this.lampLatitude = data.data.latitude;
  4597. this.rightSideBarType = 'on';
  4598. // if(document.getElementsByClassName('right_sidebar')[0]){
  4599. // document.getElementsByClassName('right_sidebar')[0].setAttribute('style', 'width: 46% ;transition:all 0.6s;');
  4600. // }
  4601. // console.log(this.lampIdChangeType)
  4602. if(this.lampIdChangeType == 'list'){
  4603. if(this.browserLanguage == 'bd'){
  4604. this.mapGet('lamp',[data.data.longitude,data.data.latitude]);
  4605. }else{
  4606. this.mapGet_en('lamp',[data.data.longitude,data.data.latitude]);
  4607. }
  4608. }else{
  4609. if(this.map){
  4610. if(this.browserLanguage == 'bd'){
  4611. this.map.panTo([data.data.longitude,data.data.latitude]);
  4612. }else{
  4613. if(data.data.longitude == 0&&data.data.latitude == 0){
  4614. this.map.setCenter(new google.maps.LatLng(0, 0));
  4615. }else if(data.data.longitude == 0&&data.data.latitude != 0){
  4616. this.map.setCenter(new google.maps.LatLng(Number(data.data.latitude),0));
  4617. }else if(data.data.longitude != 0&&data.data.latitude == 0){
  4618. this.map.setCenter(new google.maps.LatLng(0,Number(data.data.longitude)));
  4619. }else{
  4620. this.map.setCenter(new google.maps.LatLng(Number(data.data.latitude),Number(data.data.longitude)));
  4621. }
  4622. }
  4623. }
  4624. }
  4625. }
  4626. });
  4627. }
  4628. }
  4629. }
  4630. }
  4631. </script>
  4632. <style type="text/css" lang="less">
  4633. .gm-control-active.gm-fullscreen-control{
  4634. display: none;
  4635. }
  4636. /*高德地图标记*/
  4637. .amap-marker-content{
  4638. .lamp_TileLayer{
  4639. &.Lamp_active{
  4640. // transform: translate(-5px, -5px);
  4641. position: relative;
  4642. top: -5px;
  4643. left: -5px;
  4644. >.lamp{
  4645. width: 26px !important;
  4646. height: 26px !important;
  4647. position: relative;
  4648. top: 0px;
  4649. left: 0px;
  4650. }
  4651. >.map_lamp_info{
  4652. top: -155px;left: -160px;
  4653. }
  4654. }
  4655. }
  4656. }
  4657. .lamp_Satellite{
  4658. border: none !important;
  4659. cursor: pointer;
  4660. .lamp_icon{
  4661. width: 42px;height: 42px;
  4662. background-size: 100% 100%;
  4663. background-position: 0 0;
  4664. }
  4665. .lamp_Satellite_off_0{
  4666. background-image: url('../img/GIS/lamp_type/lamp_night_off_0.png');
  4667. }
  4668. .lamp_Satellite_off_1{
  4669. background-image: url('../img/GIS/lamp_type/lamp_night_off_1.png');
  4670. }
  4671. .lamp_Satellite_off_2{
  4672. background-image: url('../img/GIS/lamp_type/lamp_night_off_2.png');
  4673. }
  4674. .lamp_Satellite_off_3{
  4675. background-image: url('../img/GIS/lamp_type/lamp_night_off_3.png');
  4676. }
  4677. .lamp_Satellite_on_0{
  4678. background-image: url('../img/GIS/lamp_type/lamp_night_on_0.png');
  4679. }
  4680. .lamp_Satellite_on_1{
  4681. background-image: url('../img/GIS/lamp_type/lamp_night_on_1.png');
  4682. }
  4683. .lamp_Satellite_on_2{
  4684. background-image: url('../img/GIS/lamp_type/lamp_night_on_2.png');
  4685. }
  4686. .lamp_Satellite_on_3{
  4687. background-image: url('../img/GIS/lamp_type/lamp_night_on_3.png');
  4688. }
  4689. .lamp_Satellite_off-line_0{
  4690. background-image: url('../img/GIS/lamp_type/lamp_night_off-line_0.png');
  4691. }
  4692. .lamp_Satellite_off-line_1{
  4693. background-image: url('../img/GIS/lamp_type/lamp_night_off-line_1.png');
  4694. }
  4695. .lamp_Satellite_off-line_2{
  4696. background-image: url('../img/GIS/lamp_type/lamp_night_off-line_2.png');
  4697. }
  4698. .lamp_Satellite_off-line_3{
  4699. background-image: url('../img/GIS/lamp_type/lamp_night_off-line_3.png');
  4700. }
  4701. .lamp_Satellite_fault_0{
  4702. background-image: url('../img/GIS/lamp_type/lamp_night_fault_0.png');
  4703. }
  4704. .lamp_Satellite_fault_1{
  4705. background-image: url('../img/GIS/lamp_type/lamp_night_fault_1.png');
  4706. }
  4707. .lamp_Satellite_fault_2{
  4708. background-image: url('../img/GIS/lamp_type/lamp_night_fault_2.png');
  4709. }
  4710. .lamp_Satellite_fault_3{
  4711. background-image: url('../img/GIS/lamp_type/lamp_night_fault_3.png');
  4712. }
  4713. }
  4714. /*历史弹框*/
  4715. .history_box{
  4716. .el-dialog__body{
  4717. padding:0px;
  4718. }
  4719. .wrap{
  4720. position: relative;
  4721. height: 600px;
  4722. display: flex;
  4723. .main_list{
  4724. width: 200px;
  4725. // display: flex;
  4726. box-sizing: border-box;
  4727. border-right: 2px solid rgba(240, 240, 240, 1);
  4728. .main_list_title{
  4729. height: 48px;
  4730. line-height: 48px;
  4731. font-size:14px;
  4732. font-family:PingFangSC-Semibold;
  4733. font-weight:600;
  4734. color:rgba(34,34,34,1);
  4735. padding-left:23px;
  4736. border-bottom: 1px solid rgba(240, 240, 240, 1);
  4737. }
  4738. .main_list_box{
  4739. height: calc(100% - 50px);
  4740. display: flex;
  4741. &.EN{
  4742. .nav_list{
  4743. padding-left: 10px;
  4744. span{
  4745. display: inline-block;
  4746. max-width: 100%;
  4747. line-height: 12px;
  4748. vertical-align: middle; // 行内垂直平行
  4749. }
  4750. }
  4751. }
  4752. }
  4753. .lamp_list{
  4754. text-align: center;
  4755. height: calc(100%);
  4756. overflow: auto;
  4757. box-sizing: border-box;
  4758. width: 100px;
  4759. border-right: 2px solid rgba(240, 240, 240, 1);
  4760. .li{
  4761. height:49px;
  4762. line-height: 49px;
  4763. font-size:14px;
  4764. font-family:PingFang-SC-Medium;
  4765. font-weight:500;
  4766. color:rgba(102,102,102,1);
  4767. cursor: pointer;
  4768. &.select{
  4769. font-family:PingFangSC-Semibold;
  4770. font-weight:600;
  4771. color:rgba(254,119,43,1);
  4772. background:rgba(253,124,51,0.1);
  4773. }
  4774. }
  4775. }
  4776. .historicalnav{
  4777. box-sizing: border-box;
  4778. background-color:rgba(248, 248, 248, 1);
  4779. width: 100px;
  4780. }
  4781. .nav_list{
  4782. padding-left: 20px;
  4783. height: 50px;
  4784. line-height: 50px;
  4785. border-bottom: 1px solid rgba(240, 240, 240, 1);
  4786. // background-color:rgba(255, 255, 255, 1);
  4787. cursor: pointer;
  4788. span{
  4789. display: inline-block;
  4790. max-width: 80px;
  4791. // white-space: nowrap;
  4792. // overflow: hidden;
  4793. // text-overflow: ellipsis;
  4794. }
  4795. }
  4796. .details_nav_select{
  4797. color: rgba(255, 117, 39, 1);
  4798. }
  4799. }
  4800. .main_box{
  4801. width: calc(100% - 240px);
  4802. padding: 24px 20px 0 20px;
  4803. .screen_box{
  4804. height: 32px;
  4805. line-height: 32px;
  4806. margin-bottom: 24px;
  4807. display: flex;
  4808. align-items: center;
  4809. justify-content: space-between;
  4810. >div{
  4811. display: flex;
  4812. }
  4813. .el-pager{
  4814. padding-top: 5px;
  4815. li{
  4816. height: 22px;
  4817. line-height: 22px;
  4818. &.active {
  4819. color: #fff;
  4820. background: #fc8440;
  4821. border-radius: 20px;
  4822. }
  4823. }
  4824. }
  4825. .el-pagination{
  4826. font-weight: normal;
  4827. }
  4828. .el-select .el-input.is-focus .el-input__inner{
  4829. border-color: #fc8440;
  4830. }
  4831. .el-input.is-active .el-input__inner, .el-input__inner:focus{
  4832. border-color: #fc8440;
  4833. }
  4834. .el-pagination button, .el-pagination span:not([class*=suffix]){
  4835. height: 32px;
  4836. line-height: 32px;
  4837. }
  4838. .el-pagination__editor{
  4839. height: 32px;
  4840. line-height: 32px;
  4841. }
  4842. .el-pagination__editor.el-input .el-input__inner{
  4843. height: 22px;
  4844. }
  4845. .el-pager .more::before{
  4846. line-height: 22px;
  4847. }
  4848. }
  4849. .screen_date{
  4850. border-radius: 20px;
  4851. border:1px solid #DCDFE6;
  4852. overflow: hidden;
  4853. margin-right: 20px;
  4854. .el-date-editor{
  4855. width: 140px;
  4856. border:none;
  4857. }
  4858. .el-button{
  4859. border: none;
  4860. border-left: 1px solid #DCDFE6;
  4861. .el-icon-arrow-right{
  4862. margin: 0 0 0 18px;
  4863. }
  4864. }
  4865. }
  4866. .el-table{
  4867. td,th{
  4868. padding: 7px 0px;
  4869. }
  4870. }
  4871. .data_type_nav{
  4872. display: flex;
  4873. width: 200px;
  4874. height: 32px;line-height: 32px;
  4875. border: 1px solid rgba(232, 232, 232, 1);
  4876. border-radius: 16px;
  4877. overflow: hidden;
  4878. text-align: center;
  4879. margin-top: 50px;
  4880. position: relative;
  4881. margin-left: -100px;
  4882. left: 50%;
  4883. .li{
  4884. flex: 1;
  4885. cursor: pointer;
  4886. }
  4887. .select{
  4888. color: #fff;
  4889. height:32px;
  4890. background:linear-gradient(270deg,rgba(54,130,251,1) 0%,rgba(56,161,246,1) 100%);
  4891. border-radius:100px;
  4892. }
  4893. }
  4894. .LS_echarts{
  4895. display: flex;
  4896. .left_echarts{
  4897. width: 81.31%;
  4898. position: relative;
  4899. .echarts_top{
  4900. position: absolute;
  4901. z-index: 1;
  4902. right: 0px;
  4903. display: flex;
  4904. align-items: center;
  4905. justify-content: space-between;
  4906. >div{
  4907. display: flex;
  4908. }
  4909. }
  4910. .screen_date_select{
  4911. margin-right: 20px;
  4912. width: 240px;
  4913. height:30px;line-height:30px;
  4914. border: 1px solid #DCDFE6;
  4915. border-radius: 20px;
  4916. overflow: hidden;
  4917. text-align: center;
  4918. display: flex;
  4919. font-size: 12px;
  4920. cursor: pointer;
  4921. .li{
  4922. flex:1;
  4923. border-right: 1px solid #DCDFE6;
  4924. &:last-child{
  4925. border-right: none;
  4926. }
  4927. }
  4928. .select{
  4929. color: rgba(253, 125, 52, 1);
  4930. }
  4931. }
  4932. .history_echarts{
  4933. width: 100%;
  4934. height: 430px;
  4935. }
  4936. .history_echarts_noData{
  4937. width: 100%;
  4938. height: 430px;
  4939. h3{
  4940. margin-top: 30px;
  4941. text-align: center;
  4942. }
  4943. }
  4944. }
  4945. .left_data{
  4946. width: 18.69%;
  4947. height:498px;
  4948. background:rgba(255,249,245,1);
  4949. border-radius:2px;
  4950. border:1px solid rgba(238,238,238,1);
  4951. padding: 0 10px;
  4952. p{
  4953. text-align: center;
  4954. font-size:12px;
  4955. font-family:PingFang-SC-Medium;
  4956. font-weight:500;
  4957. color:rgba(51,51,51,1);
  4958. margin: 19px 0 23px 0;
  4959. img{
  4960. position:relative;
  4961. top: 2px;
  4962. margin-right: 10px;
  4963. }
  4964. }
  4965. .ul{
  4966. .li{
  4967. height:40px;
  4968. line-height: 40px;
  4969. background:rgba(249,240,233,1);
  4970. border-radius:4px;
  4971. display: flex;
  4972. align-items: center;
  4973. justify-content: space-between;
  4974. margin-bottom: 10px;
  4975. .span1{
  4976. font-size:12px;
  4977. font-family:PingFang-SC-Medium;
  4978. font-weight:500;
  4979. color:rgba(102,102,102,1);
  4980. margin-left: 13px;
  4981. }
  4982. .span2{
  4983. font-size:19px;
  4984. font-family:PingFang-SC-Medium;
  4985. font-weight:500;
  4986. color:rgba(51,51,51,1);
  4987. margin-right: 15px;
  4988. @media (max-width: 1500px){
  4989. font-size: 12px;
  4990. margin-right: 5px;
  4991. display: inline-block;
  4992. max-width: 38px;
  4993. white-space: nowrap;
  4994. overflow: hidden;
  4995. text-overflow: ellipsis;
  4996. position: relative;
  4997. top: 7px;
  4998. }
  4999. }
  5000. .span3{
  5001. font-size:14px;
  5002. font-family:PingFang-SC-Medium;
  5003. font-weight:500;
  5004. color:rgba(153,153,153,1);
  5005. margin-right: 7px;
  5006. @media (max-width: 1500px){
  5007. display: inline-block;
  5008. line-height: 40px;
  5009. position: relative;
  5010. top: -7px;
  5011. }
  5012. }
  5013. }
  5014. &.EN{
  5015. .li{
  5016. .span1{
  5017. display: inline-block;
  5018. max-width: calc(100% - 100px);
  5019. line-height: 12px;
  5020. }
  5021. }
  5022. }
  5023. }
  5024. }
  5025. }
  5026. .echarts_bottom{
  5027. position: relative;
  5028. display: flex;
  5029. .echarts_bottom_text{
  5030. margin-top: 50px;
  5031. height: 32px;
  5032. line-height: 32px;
  5033. font-size:12px;
  5034. font-family:PingFang-SC-Medium;
  5035. font-weight:500;
  5036. color:rgba(102,102,102,1);
  5037. }
  5038. &.echarts_line{
  5039. .data_type_nav{
  5040. margin-left: -180px;
  5041. left: 61.49%;
  5042. }
  5043. }
  5044. }
  5045. }
  5046. .table_box{
  5047. text-align: center;
  5048. th{
  5049. text-align: center;
  5050. color: #444444;
  5051. }
  5052. }
  5053. .el-table--enable-row-hover .el-table__body tr:hover>td{
  5054. // background: inherit;
  5055. }
  5056. .row_bg{
  5057. background: #F6F6F9;
  5058. }
  5059. }
  5060. }
  5061. .controlUIBox_class{
  5062. position: absolute;
  5063. right: 15px;
  5064. bottom: 150px;
  5065. z-index: 300;
  5066. .control_ry_class{
  5067. position:relative;
  5068. width: 40px;
  5069. height: 40px;
  5070. line-height: 40px;
  5071. background-color: rgba(255, 255, 255, 0.9);
  5072. border-width: 1px;
  5073. box-shadow: rgb(204, 204, 204) 1px 1px 10px 0px;
  5074. cursor: pointer;
  5075. text-align: center;
  5076. padding:0 4px;
  5077. div{
  5078. position:absolute;
  5079. top: 50%;left: 50%;margin: -8px 0 0 -8px;
  5080. background-image: url('../img/GIS/day_icon.png');
  5081. width: 16px;height: 16px;
  5082. background-size: 100% 100%;
  5083. background-position: 0 0;
  5084. }
  5085. &.hover{
  5086. div{
  5087. position:absolute;
  5088. top: 50%;left: 50%;margin: -8px 0 0 -8px;
  5089. background-image: url('../img/GIS/night_icon.png');
  5090. width: 16px;height: 16px;
  5091. background-size: 100% 100%;
  5092. background-position: 0 0;
  5093. }
  5094. }
  5095. &.none{
  5096. display: none;
  5097. }
  5098. }
  5099. .controlUI_class{
  5100. margin-top: 10px;
  5101. width: 40px;
  5102. height: 40px;
  5103. line-height: 40px;
  5104. background-color: rgba(255, 255, 255, 0.9);
  5105. border-width: 1px;
  5106. box-shadow: rgb(204, 204, 204) 1px 1px 10px 0px;
  5107. cursor: pointer;
  5108. text-align: center;
  5109. font-family: Arial, sens-serif;
  5110. font-size: 16px;
  5111. padding:0 4px;
  5112. &.hover{
  5113. img{
  5114. width: 16px;height: 16px;
  5115. }
  5116. }
  5117. }
  5118. .controlUIdiv_class{
  5119. width: 40px;
  5120. height: 40px;
  5121. line-height: 40px;
  5122. background-color: rgba(255, 255, 255, 0.9);
  5123. border-width: 1px;
  5124. box-shadow: #cccccc 1px 1px 10px 0px;
  5125. cursor: pointer;
  5126. text-align: center;
  5127. font-family: Arial, sens-serif;
  5128. font-size: 16px;
  5129. padding: 0 4px;
  5130. margin-top: 10px;
  5131. }
  5132. .controlUIdiv_hover{
  5133. width: 40px;
  5134. height: 40px;
  5135. line-height: 40px;
  5136. background-color: #fc8440;
  5137. color:#fff;
  5138. border-width: 1px;
  5139. box-shadow: #cccccc 1px 1px 10px 0px;
  5140. cursor: pointer;
  5141. text-align: center;
  5142. font-family: Arial, sens-serif;
  5143. font-size: 16px;
  5144. padding: 0 4px;
  5145. margin-top: 10px;
  5146. }
  5147. }
  5148. .adjustLuminance{
  5149. .el-loading-spinner{
  5150. margin-top: -9px;
  5151. }
  5152. }
  5153. .lampEditTiTle{
  5154. width: 347px;
  5155. padding: 16px 20px 18px 18px;
  5156. .el-notification__group{
  5157. width: 100%
  5158. }
  5159. .el-notification__title{
  5160. font-size: 18px;
  5161. color:#222222;
  5162. }
  5163. .el-notification__content{
  5164. margin: 16px 0 0;
  5165. font-size:14px;
  5166. color:#888888;
  5167. >p{
  5168. >span{
  5169. float: right;
  5170. color: #fc813a;
  5171. cursor: pointer;
  5172. }
  5173. }
  5174. }
  5175. }
  5176. .GISMap_main{
  5177. position: relative;
  5178. min-width: 1260px;
  5179. max-width: 1920px;
  5180. height: 100%;
  5181. min-height: 600px;
  5182. margin: auto;
  5183. // .sideBar .sideBar_box{
  5184. // height: calc(100% - 85px);
  5185. // }
  5186. .side_bar_left{
  5187. position: absolute;
  5188. left:0rem;
  5189. height: calc(100% - 2.2rem);
  5190. }
  5191. .map_jh{
  5192. cursor: pointer;
  5193. .map_CY{
  5194. cursor: pointer;
  5195. }
  5196. }
  5197. .map_jh:hover .map_CY{
  5198. background:#fc8440 !important;
  5199. color: #fff !important;
  5200. }
  5201. .map_jh:hover{
  5202. background:#fc8440 !important;
  5203. color: #fff !important;
  5204. }
  5205. .map_CY{
  5206. position: relative;
  5207. left:50%;margin-left:-4px;top: -5px;
  5208. width: 8px;height: 8px;
  5209. // border:1px solid #222222;
  5210. box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.2);
  5211. background:#ffffff;
  5212. transform: rotate(45deg);
  5213. }
  5214. .monitor_img_box{
  5215. >div{
  5216. position: relative;
  5217. left:50%;margin-left:-4px;top: 72px;
  5218. width: 8px;height: 8px;
  5219. // border:1px solid #222222;
  5220. box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.2);
  5221. background:#ffffff;
  5222. transform: rotate(45deg);
  5223. }
  5224. }
  5225. .lamp{
  5226. .map_lamp_info{
  5227. display: none;
  5228. width:350px;height:165px;
  5229. position:absolute;top: -150px;left: -156px;
  5230. z-index:1;
  5231. text-align: left;
  5232. cursor: initial;
  5233. .map_lamp_info_bg{
  5234. padding-top: 10px;
  5235. height:150px;
  5236. background-color:#fff;
  5237. }
  5238. .top{
  5239. width:calc(100% - 20px);
  5240. margin: 0px 10px 0 10px;
  5241. height:27px;line-height: 27px;
  5242. background:rgba(246,248,250,1);
  5243. border-radius:2px;
  5244. span{
  5245. vertical-align: middle;
  5246. font-size:12px;
  5247. font-family:PingFang-SC-Medium;
  5248. font-weight:500;
  5249. color:rgba(101,112,133,1);
  5250. }
  5251. img{
  5252. margin-left: 5px;
  5253. height: 18px;
  5254. vertical-align: middle;
  5255. }
  5256. .right{
  5257. padding-right: 5px;
  5258. float: right;
  5259. cursor: pointer;
  5260. font-size:12px;
  5261. font-family:PingFang-SC-Medium;
  5262. font-weight:500;
  5263. color:rgba(249,124,49,1);
  5264. padding: 0 5px;
  5265. }
  5266. }
  5267. .span1{
  5268. margin-left: 15px;
  5269. height: 24px;line-height: 24px;
  5270. font-size:12px;
  5271. font-family:PingFang-SC-Regular;
  5272. font-weight:400;
  5273. color:rgba(102,102,102,1);
  5274. }
  5275. .span2{
  5276. margin-right: 15px;
  5277. float: right;
  5278. height: 24px;line-height: 24px;
  5279. font-size:12px;
  5280. font-family:PingFang-SC-Regular;
  5281. font-weight:400;
  5282. color:rgba(34,34,34,1);
  5283. }
  5284. .ul{
  5285. margin: 13px 0px 0 0px;
  5286. padding-bottom: 6px;
  5287. flex-wrap: wrap;
  5288. align-content: flex-start;
  5289. display: flex;
  5290. border-bottom: 1px dashed #EBEFF2;
  5291. .li{
  5292. width: 50%;
  5293. }
  5294. }
  5295. .bottom{
  5296. margin: 0 12px 0 14px;
  5297. .span1{
  5298. margin-left: 0px;
  5299. }
  5300. }
  5301. .icon{
  5302. position: relative;
  5303. left:50%;margin-left:-5px;top: -10px;
  5304. width: 10px;height: 10px;
  5305. // border:1px solid #222222;
  5306. box-shadow:5px 5px 5px 0px rgba(0, 0, 0, 0.2);
  5307. background:#ffffff;
  5308. transform: rotate(45deg);
  5309. }
  5310. }
  5311. &:hover{
  5312. .map_lamp_info{
  5313. display: inline-block;
  5314. }
  5315. }
  5316. }
  5317. .determine_l{
  5318. background: url(../img/GIS/determine-icon.png);
  5319. display:inline-block;
  5320. width: 38px;height: 38px;
  5321. }
  5322. .cancel_l{
  5323. background: url(../img/GIS/cancel-icon.png);
  5324. display:inline-block;
  5325. width: 38px;height: 38px;
  5326. margin-left: 10px;
  5327. }
  5328. .is_disabled{
  5329. cursor: not-allowed !important;
  5330. }
  5331. .is_disabled_box{
  5332. >li{
  5333. cursor: not-allowed !important;
  5334. }
  5335. }
  5336. .right_sidebar_box{
  5337. position: absolute;
  5338. width:100%;
  5339. height: 100%;
  5340. .top_data_box{
  5341. transition: all 1s;
  5342. position: absolute;
  5343. width: 80%;height: 96px;
  5344. top: 0px;left: 50%;margin-left: -40%;
  5345. background-color: #fff;
  5346. box-shadow:0px 2px 6px 0px rgba(0,0,0,0.18);
  5347. z-index: 1;
  5348. &.EN{
  5349. .ul{
  5350. padding: 0 30px;
  5351. .li{
  5352. .p1{
  5353. margin-top: 16px;
  5354. font-weight:800;
  5355. span{
  5356. font-size:12px;
  5357. font-weight:500;
  5358. }
  5359. }
  5360. .p2{
  5361. font-size: 12px;
  5362. i{
  5363. margin-right: 5px;
  5364. width:4px;
  5365. height:4px;
  5366. }
  5367. span{
  5368. font-size:12px;
  5369. font-weight:500;
  5370. }
  5371. }
  5372. }
  5373. }
  5374. }
  5375. .ul{
  5376. // line-height:86px;
  5377. display: flex;
  5378. padding: 0 30px;
  5379. box-sizing: border-box;
  5380. .li{
  5381. text-align: center;
  5382. // flex: 1;
  5383. width: 12.5%;
  5384. .p1{
  5385. margin-top: 16px;
  5386. font-size:30px;
  5387. font-family:PingFang-SC-Heavy;
  5388. font-weight:800;
  5389. color:rgba(51,51,51,1);
  5390. @media (max-width: 1800px){
  5391. font-size: 24px;
  5392. }
  5393. @media (max-width: 1400px){
  5394. font-size: 16px;
  5395. }
  5396. span{
  5397. font-size:12px;
  5398. font-family:PingFang-SC-Medium;
  5399. font-weight:500;
  5400. color:rgba(153,153,153,1);
  5401. }
  5402. }
  5403. .p2{
  5404. i{
  5405. margin-right: 5px;
  5406. display: inline-block;
  5407. width:4px;
  5408. height:4px;
  5409. background:rgba(249,124,49,1);
  5410. vertical-align: middle
  5411. }
  5412. span{
  5413. font-size:12px;
  5414. font-family:PingFang-SC-Medium;
  5415. font-weight:500;
  5416. color:rgba(51,51,51,1);
  5417. }
  5418. }
  5419. }
  5420. }
  5421. .bottom_box{
  5422. position: absolute;
  5423. width: 40%;height: 10px;
  5424. bottom: -8px;left: 50%;margin-left: -20%;
  5425. background-color: #fff;
  5426. box-shadow:0px 6px 6px 0px rgba(0,0,0,0.18);
  5427. border-bottom-right-radius: 10px;
  5428. border-bottom-left-radius: 10px;
  5429. cursor: pointer;
  5430. .icon{
  5431. position: absolute;
  5432. width: 28%;height: 20px;
  5433. bottom: -20px;left: 50%;margin-left: -14%;
  5434. background-color: #fff;
  5435. box-shadow:0px 6px 6px 0px rgba(0,0,0,0.18);
  5436. border-bottom-right-radius: 8px;
  5437. border-bottom-left-radius: 8px;
  5438. div{
  5439. margin: 3px auto;
  5440. width:30%;
  5441. height:3px;
  5442. background:rgba(232,232,232,1);
  5443. border-radius:1px;
  5444. }
  5445. }
  5446. }
  5447. }
  5448. }
  5449. .amap-wrapper {
  5450. width: 100%;
  5451. height: 100%;
  5452. #container{
  5453. width: 100%;
  5454. height: 100%;
  5455. .monitor_active{
  5456. // transform: translate(-5px, -5px);
  5457. position: relative;
  5458. top: -5px;
  5459. left: -5px;
  5460. >div{
  5461. width: 26px !important;
  5462. height: 26px !important;
  5463. // transform: translate(0px, 0px);
  5464. position: relative;
  5465. top: 0px;
  5466. left: 0px;
  5467. }
  5468. }
  5469. }
  5470. /*地图上的开灯、关灯、故障、离线、全部样式*/
  5471. .lamp-status-style{
  5472. position:absolute;
  5473. z-index:9;
  5474. right:20px;
  5475. // top:26px;
  5476. top:20px;
  5477. display: flex;
  5478. .status{
  5479. vertical-align: top;
  5480. width:100%;
  5481. }
  5482. a{
  5483. display: flex;
  5484. align-items: center;
  5485. justify-content: center;
  5486. .light-status-icon{
  5487. &.open{
  5488. width:12px;
  5489. height:12px;
  5490. margin-right:5px;
  5491. background:url('../img/GIS/open_light1.png') no-repeat left/12px 12px;
  5492. }
  5493. &.close{
  5494. width:12px;
  5495. height:12px;
  5496. margin-right:5px;
  5497. background:url('../img/GIS/close_light1.png') no-repeat left/12px 12px;
  5498. }
  5499. &.fault{
  5500. width:12px;
  5501. height:12px;
  5502. margin-right:5px;
  5503. background:url('../img/GIS/fault_light1.png') no-repeat left/12px 12px;
  5504. }
  5505. &.offline{
  5506. width:12px;
  5507. height:12px;
  5508. margin-right:5px;
  5509. background:url('../img/GIS/offline_light1.png') no-repeat left/12px 12px;
  5510. }
  5511. }
  5512. &:hover{
  5513. color:rgba(45,133,245,1);
  5514. }
  5515. font-size:12px;
  5516. font-family:PingFang-SC-Medium;
  5517. color:rgba(68,68,68,1);
  5518. }
  5519. .lamp-status-line{
  5520. position:absolute;
  5521. right:-1px;
  5522. top:13px;
  5523. display: inline-block;
  5524. width:1px;
  5525. height:14px;
  5526. border:1px solid rgba(239,239,239,1);
  5527. }
  5528. .lamp-status-wrap{
  5529. width:420px;
  5530. margin-right:10px;
  5531. transition: width 1s;
  5532. overflow: hidden;
  5533. &.EN{
  5534. width: 570px;
  5535. ul{
  5536. width: 570px;
  5537. li{
  5538. width: auto;
  5539. padding-right: 10px;
  5540. margin-left: 10px;
  5541. }
  5542. .switch_arrow_box{
  5543. margin-left: 0px;
  5544. padding-right: 0px;
  5545. }
  5546. }
  5547. }
  5548. // display: none;
  5549. &.active{
  5550. display: block;
  5551. }
  5552. &.off{
  5553. width: 32px;
  5554. }
  5555. ul{
  5556. // width:354px;
  5557. position:relative;
  5558. width:420px;
  5559. box-sizing: border-box;
  5560. height:42px;
  5561. line-height: 42px;
  5562. background:rgba(255,255,255,1);
  5563. // background:red;
  5564. box-shadow:0px 2px 12px 0px rgba(0,0,0,0.06);
  5565. border-radius:4px 4px 0px 0px;
  5566. display: flex;
  5567. li{
  5568. width:25%;
  5569. // padding-right: 10px;
  5570. // margin-left: 10px;
  5571. position:relative;
  5572. overflow: hidden;
  5573. .checklist{
  5574. position: absolute;
  5575. top: -15px;
  5576. right: -16px;
  5577. width: 30px;
  5578. height: 30px;
  5579. background-color: #3388ed;
  5580. transform:rotate(45deg);
  5581. z-index: 1;
  5582. img{
  5583. position: absolute;
  5584. width: 10px;
  5585. top: 20px;
  5586. right: 12px;
  5587. transform:rotate(-45deg);
  5588. }
  5589. }
  5590. a{
  5591. font-size: 14px;
  5592. img{
  5593. width: 28px;
  5594. height: 28px;
  5595. margin-right: 8px;
  5596. }
  5597. }
  5598. &.select{
  5599. a{
  5600. color:rgba(45,133,245,1);
  5601. }
  5602. }
  5603. }
  5604. .switch_arrow_box{
  5605. width: 34px;
  5606. a{
  5607. // height: 40px;
  5608. // line-height: 40px;
  5609. img{
  5610. height: 40px;
  5611. margin-right: 0px;
  5612. }
  5613. }
  5614. }
  5615. }
  5616. }
  5617. .current-lamp-btn{
  5618. width:71px;
  5619. height:30px;
  5620. line-height: 30px;
  5621. background:rgba(255,255,255,1);
  5622. border-radius:15px;
  5623. margin-top:4px;
  5624. // box-shadow:0px 2px 12px 0px rgba(0,0,0,0.06);
  5625. box-shadow: 0px 2px 17px rgba(206, 206, 206, 1);
  5626. opacity: 0.7602;
  5627. // &::before{
  5628. // // left:16px;
  5629. // // top:12px;
  5630. // left:14px;
  5631. // top:10px;
  5632. // }
  5633. &:hover{
  5634. color:rgba(45,133,245,1);
  5635. }
  5636. }
  5637. }
  5638. .lamp_coordinate{
  5639. // width: 200px
  5640. // display: none;
  5641. position: absolute;
  5642. line-height: 40px;
  5643. width: max-content;
  5644. top: -10px;
  5645. left: 78px;
  5646. >span{
  5647. display: inline-block;
  5648. padding: 0 20px;
  5649. margin-right: 20px;
  5650. font-size: 14px;
  5651. color: #888888;
  5652. background: #fff;
  5653. span{
  5654. span{
  5655. color:#fc8440;
  5656. }
  5657. }
  5658. >:first-child{
  5659. margin-right: 10px;
  5660. }
  5661. }
  5662. >i{
  5663. position: relative;
  5664. top: 12px;
  5665. font-size:30px;
  5666. z-index: 1;
  5667. cursor: pointer;
  5668. }
  5669. }
  5670. .contextmenu_bg{
  5671. width: 100%;
  5672. height: 100%;
  5673. position: absolute;
  5674. top: 0px;left: 0px;
  5675. z-index: 3;
  5676. }
  5677. .contextmenu{
  5678. position: absolute;
  5679. // top: 0px;
  5680. // left: 0px;
  5681. z-index: 4;
  5682. // width: 250px;
  5683. text-align: center;
  5684. background: #fff;
  5685. border-radius: 2px;
  5686. padding: 8px 0;
  5687. display: flex;
  5688. // padding-left:30px;
  5689. &::after{
  5690. content:'';
  5691. position:absolute;
  5692. left:0px;
  5693. top: 50%;
  5694. margin-top: -5px;
  5695. display: inline-block;
  5696. width:10px;
  5697. height:10px;
  5698. background:rgba(255,255,255,1);
  5699. box-shadow:0px 2px 12px 0px rgba(0,0,0,0.06);
  5700. transform: translateX(-50%) rotate(45deg);
  5701. }
  5702. li{
  5703. line-height: 34px;
  5704. cursor: pointer;
  5705. margin-left: 40px;
  5706. font-size:12px;
  5707. font-family:PingFang-SC-Medium;
  5708. font-weight:500;
  5709. color:rgba(51,51,51,1);
  5710. }
  5711. li:last-child{
  5712. margin-right: 30px;
  5713. font-size:12px;
  5714. font-family:PingFang-SC-Medium;
  5715. font-weight:500;
  5716. color:rgba(255,55,55,1);
  5717. }
  5718. li:hover{
  5719. background: #f5f5f5;
  5720. }
  5721. .rotate{
  5722. &:hover{
  5723. .rotate_btu{
  5724. display: inline-block;
  5725. }
  5726. }
  5727. position:relative;
  5728. .rotate_btu{
  5729. display: none;
  5730. position: absolute;
  5731. bottom: 30px;left: 0px;
  5732. width: 100%;
  5733. background-color:#fff;
  5734. >div{
  5735. cursor: pointer;
  5736. &:hover{
  5737. color: #fc8440;
  5738. }
  5739. }
  5740. }
  5741. }
  5742. }
  5743. }
  5744. .detailsDetails_box{
  5745. }
  5746. .settingPacket_box{
  5747. .is-active .el-radio-button__inner{
  5748. background: #fffaf8;
  5749. border: 1px solid #fc8440;
  5750. }
  5751. .el-radio-button__inner{
  5752. color: #000;
  5753. width: 140px;height: 50px;line-height: 50px;padding: 0px;
  5754. background: #f8f9fc;
  5755. border: 1px solid #e8e8e8;
  5756. -webkit-box-shadow: none;
  5757. box-shadow: none;
  5758. }
  5759. .el-radio-button{
  5760. margin-right: 30px;
  5761. margin-bottom: 20px;
  5762. }
  5763. .el-slider{
  5764. .el-slider__bar{
  5765. background: #fc8440;
  5766. }
  5767. .el-slider__button{
  5768. width:30px;height: 30px;
  5769. background:url(../img/GIS/Lamp_icon-pre.png);
  5770. background-size: 100% 100%;
  5771. border:0px;
  5772. }
  5773. }
  5774. }
  5775. /*123 监控视频样式*/
  5776. .surveillanceVideo_box{
  5777. .myPlayer_container{
  5778. position:relative;
  5779. width:100%;
  5780. #myPlayer{
  5781. width:100%;
  5782. height:567px;
  5783. }
  5784. /*视屏播放按钮图标样式*/
  5785. .video-control-icons{
  5786. &.hide{
  5787. display: none;
  5788. }
  5789. .outer-wrap{
  5790. position:absolute;
  5791. width:90px;
  5792. height:40px;
  5793. cursor: pointer;
  5794. bottom:66px;
  5795. &.direction-control{
  5796. right:353px;
  5797. }
  5798. &.zoom-control{
  5799. right:244px;
  5800. }
  5801. &.focal-control{
  5802. right:135px;
  5803. }
  5804. &.clarity-control{
  5805. right:26px;//+90
  5806. }
  5807. // 按钮
  5808. .control-btn{
  5809. position:absolute;
  5810. left:0;
  5811. bottom:0;
  5812. text-decoration: none;
  5813. color:#000;
  5814. display:block;
  5815. width:90px;
  5816. height:30px;
  5817. background-color:rgba(255,255,255,0.7);
  5818. border-radius:15px;
  5819. text-align:center;
  5820. line-height: 30px;
  5821. &:hover{
  5822. background-color:#fff;
  5823. }
  5824. // &.direction-btn{
  5825. // right:353px;
  5826. // }
  5827. // &.zoom-btn{
  5828. // right:244px;
  5829. // }
  5830. // &.focal-btn{
  5831. // right:135px;
  5832. // }
  5833. // &.clarity-btn{
  5834. // right:26px;
  5835. // }
  5836. }
  5837. .inner-wrap{
  5838. padding-bottom:10px;
  5839. display:none;
  5840. &.show{
  5841. display:block;
  5842. }
  5843. // 包裹云台控制按钮的div
  5844. .control-wrap{
  5845. position:absolute;
  5846. left:50%;
  5847. transform: translateX(-50%);
  5848. bottom:38px;
  5849. border-radius:8px;
  5850. background-color:#fff;
  5851. &::after{
  5852. position:absolute;
  5853. bottom:-10px;
  5854. content:'';
  5855. display:block;
  5856. width:10px;
  5857. height:10px;
  5858. background: url('../img/video/top_down.arrow.png') no-repeat left -14px;
  5859. }
  5860. &.direction-wrap{
  5861. width:192px;
  5862. height:106px;
  5863. padding:14px 0 0 14px;
  5864. box-sizing: border-box;
  5865. display:flex;
  5866. .left{
  5867. display:flex;
  5868. flex-wrap: wrap;
  5869. padding-right:2px;//15px-13px;
  5870. }
  5871. .right{
  5872. display:flex;
  5873. flex-wrap: wrap;
  5874. padding-left:15px;
  5875. }
  5876. &::after{
  5877. left:91px;
  5878. }
  5879. }
  5880. &.zoom-wrap{
  5881. width:108px;
  5882. height:46px;
  5883. // line-height: 46px;
  5884. display:flex;
  5885. justify-content: center;
  5886. align-items: center;
  5887. }
  5888. &.focal-wrap{
  5889. width:131px;
  5890. height:46px;
  5891. // line-height: 46px;
  5892. display:flex;
  5893. justify-content: center;
  5894. align-items: center;
  5895. }
  5896. &.clarity-wrap{
  5897. width:138px;
  5898. height:46px;
  5899. // line-height: 46px;
  5900. display:flex;
  5901. justify-content: center;
  5902. align-items: center;
  5903. /*标清高清*/
  5904. .definition{
  5905. color:#000;
  5906. text-decoration: none;
  5907. font-size:14px;
  5908. display:block;
  5909. padding:0 20px;
  5910. &:hover,&.active{
  5911. color:#FD8947;
  5912. }
  5913. &.high{
  5914. border-left:2px solid #EDEDED;
  5915. }
  5916. }
  5917. }
  5918. // 图标
  5919. .control-icon{
  5920. display: inline-block;
  5921. width:26px;
  5922. height:26px;
  5923. text-decoration: none;
  5924. /*八个方向*/
  5925. &.up-icon,&.down-icon,&.left-icon,&.right-icon,&.left-up-icon,&.left-down-icon,&.right-up-icon,&.right-down-icon{
  5926. margin-right:13px;
  5927. }
  5928. // 上
  5929. &.up-icon{
  5930. background: url('../img/video/up.png') no-repeat center;
  5931. &:hover{
  5932. background: url('../img/video/up.active.png');
  5933. }
  5934. }
  5935. // 下
  5936. &.down-icon{
  5937. background: url('../img/video/down.png') no-repeat center;
  5938. &:hover{
  5939. background: url('../img/video/down.active.png');
  5940. }
  5941. }
  5942. // 左
  5943. &.left-icon{
  5944. background: url('../img/video/left.png') no-repeat center;
  5945. &:hover{
  5946. background: url('../img/video/left.active.png');
  5947. }
  5948. }
  5949. // 右
  5950. &.right-icon{
  5951. background: url('../img/video/right.png') no-repeat center;
  5952. &:hover{
  5953. background: url('../img/video/right.active.png');
  5954. }
  5955. }
  5956. // 左上
  5957. &.left-up-icon{
  5958. background: url('../img/video/left_up.png') no-repeat center;
  5959. &:hover{
  5960. background: url('../img/video/left_up.active.png');
  5961. }
  5962. }
  5963. // 左下
  5964. &.left-down-icon{
  5965. background: url('../img/video/left_down.png') no-repeat center;
  5966. &:hover{
  5967. background: url('../img/video/left_down.active.png');
  5968. }
  5969. }
  5970. // 右上
  5971. &.right-up-icon{
  5972. background: url('../img/video/right_up.png') no-repeat center;
  5973. &:hover{
  5974. background: url('../img/video/right_up.active.png');
  5975. }
  5976. }
  5977. // 右下
  5978. &.right-down-icon{
  5979. background: url('../img/video/right_down.png') no-repeat center;
  5980. &:hover{
  5981. background: url('../img/video/right_down.active.png');
  5982. }
  5983. }
  5984. /*缩放*/
  5985. &.to-big-icon{
  5986. background: url('../img/video/to_big.png') no-repeat center;
  5987. margin-right:18px;
  5988. &:hover{
  5989. background: url('../img/video/to_big.active.png');
  5990. }
  5991. }
  5992. &.to-small-icon{
  5993. background: url('../img/video/to_small.png') no-repeat center;
  5994. &:hover{
  5995. background: url('../img/video/to_small.active.png');
  5996. }
  5997. }
  5998. /*焦距*/
  5999. &.farst-icon{
  6000. background: url('../img/video/farst.png') no-repeat center;
  6001. margin-right:29px;
  6002. &:hover{
  6003. background: url('../img/video/farst.active.png');
  6004. }
  6005. }
  6006. &.near-icon{
  6007. background: url('../img/video/near.png') no-repeat center;
  6008. &:hover{
  6009. background: url('../img/video/near.active.png');
  6010. }
  6011. }
  6012. }
  6013. }
  6014. }
  6015. }
  6016. }
  6017. }
  6018. }
  6019. // .search_box{
  6020. // position:absolute;
  6021. // top: 42px;left: 44px;
  6022. // width:344px;
  6023. // height:50px;line-height: 50px;
  6024. // background:rgba(255,255,255,1);
  6025. // box-shadow: -5px 0px 0px 0px rgba(252,132,64,1);
  6026. // .search{
  6027. // font-size:18px;
  6028. // font-family:PingFangSC-Regular;
  6029. // color:rgba(178,186,198,1);
  6030. // }
  6031. // .el-input__inner{
  6032. // height:50px;line-height: 50px;
  6033. // border: 0px;
  6034. // }
  6035. // .el-input-group__prepend{
  6036. // background: #ffffff;
  6037. // border: 0px;
  6038. // font-size: 18px;
  6039. // font-weight: 540;
  6040. // font-family:PingFangSC-Medium;
  6041. // color:rgba(26,26,26,1);
  6042. // >span{
  6043. // cursor: pointer;
  6044. // }
  6045. // }
  6046. // }
  6047. .lamp_dialog{
  6048. position:absolute;
  6049. top: 17px;left: 54px;
  6050. width:400px;
  6051. height: calc(100% - 30px);
  6052. max-height: 810px;
  6053. border-radius: 6px;
  6054. background:rgba(255,255,255,1);
  6055. box-shadow:0px 2px 6px 0px rgba(0,0,0,0.18);
  6056. // overflow: auto;
  6057. &.EN{
  6058. width: 460px;
  6059. }
  6060. .top_nav{
  6061. display: flex;
  6062. .top_nav_li{
  6063. position: relative;
  6064. text-align: center;
  6065. width:calc(33.33% - 10px);
  6066. height:30px;line-height: 30px;
  6067. background:rgba(240,240,240,1);
  6068. cursor: pointer;
  6069. border:1px solid rgba(223,223,223,1);
  6070. border-left: none;
  6071. font-size:12px;
  6072. font-family:PingFang-SC-Medium;
  6073. font-weight:500;
  6074. color:rgba(102,102,102,1);
  6075. &.select{
  6076. border: none;
  6077. background-color: #fff;
  6078. .bg{
  6079. position: relative;
  6080. top: -5px;
  6081. height: 35px;line-height: 35px;
  6082. background-color: #fff;
  6083. border-radius:10px;
  6084. font-size:14px;
  6085. font-family:PingFangSC-Semibold;
  6086. font-weight:600;
  6087. color:rgba(51,51,51,1);
  6088. }
  6089. }
  6090. }
  6091. // .top_nav_li1{
  6092. // .bg{
  6093. // position: absolute;
  6094. // }
  6095. // }
  6096. .top_nav_li4{
  6097. width: 30px;
  6098. }
  6099. .borderRadius1{
  6100. border-bottom-right-radius: 10px;
  6101. }
  6102. .borderRadius21{
  6103. border-bottom-left-radius: 10px;
  6104. }
  6105. .borderRadius23{
  6106. border-bottom-right-radius: 10px;
  6107. }
  6108. .borderRadius3{
  6109. border-bottom-left-radius: 10px;
  6110. }
  6111. .borderRadius4{
  6112. border-bottom-left-radius: 10px;
  6113. }
  6114. }
  6115. .lamp_info{
  6116. height: calc(100% - 30px);
  6117. overflow: auto;
  6118. .box1{
  6119. display: flex;
  6120. margin: 20px 0 13px 0;
  6121. padding: 0 10px;
  6122. justify-content: space-between;
  6123. .box1_left{
  6124. height:37px;
  6125. background:rgba(246,248,250,1);
  6126. border-radius:2px;
  6127. display: flex;
  6128. width: calc(100% - 50px);
  6129. .li{
  6130. width: calc(50% - 15px);
  6131. margin: 6px 0 0 10px;
  6132. height:26px;line-height: 26px;
  6133. background:rgba(255,255,255,1);
  6134. box-shadow:0px 2px 6px 0px rgba(0,0,0,0.05);
  6135. border-radius:2px;
  6136. display: flex;
  6137. justify-content: space-between;
  6138. .span1{
  6139. margin-left: 10px;
  6140. font-size:12px;
  6141. font-family:PingFang-SC-Medium;
  6142. font-weight:500;
  6143. color:rgba(51,51,51,1);
  6144. }
  6145. .span2{
  6146. margin-right: 10px;
  6147. font-size:12px;
  6148. font-family:PingFang-SC-Medium;
  6149. font-weight:500;
  6150. color:rgba(51,51,51,1);
  6151. }
  6152. }
  6153. }
  6154. .box1_right{
  6155. width: 37px;height: 37px;
  6156. text-align: center;
  6157. background:rgba(246,248,250,1);
  6158. border-radius:2px;
  6159. img{
  6160. margin-top: 8px;
  6161. width: 20px;
  6162. }
  6163. }
  6164. }
  6165. .box{
  6166. border-top: 1px dashed #DFDFDF;
  6167. }
  6168. .box_top{
  6169. margin-top: 10px;
  6170. height: 27px;line-height: 27px;
  6171. display: flex;
  6172. justify-content: space-between;
  6173. .top_left{
  6174. margin-left: 10px;
  6175. i{
  6176. margin-right: 6px;
  6177. vertical-align: middle;
  6178. display: inline-block;
  6179. width:6px;
  6180. height:6px;
  6181. background:rgba(249,124,49,1);
  6182. border-radius:1px;
  6183. border-radius: 2px;
  6184. }
  6185. span{
  6186. vertical-align: middle;
  6187. font-size:12px;
  6188. font-family:PingFangSC-Semibold;
  6189. font-weight:600;
  6190. color:rgba(249,124,49,1);
  6191. }
  6192. }
  6193. .top_right{
  6194. margin-right: 10px;
  6195. // width:85px;
  6196. height:27px;
  6197. background:rgba(246,246,250,1);
  6198. border-radius:2px;
  6199. cursor: pointer;
  6200. img{
  6201. height: 10px;
  6202. margin: 0 6px 0 8px;
  6203. vertical-align: middle;
  6204. }
  6205. span{
  6206. vertical-align: middle;
  6207. font-size:12px;
  6208. font-family:PingFang-SC-Medium;
  6209. font-weight:500;
  6210. color:rgba(0,93,232,1);
  6211. }
  6212. }
  6213. .top_right_fault{
  6214. margin-right: 10px;
  6215. width:64px;
  6216. height:27px;
  6217. background:rgba(255,242,245,1);
  6218. border-radius:2px;
  6219. cursor: pointer;
  6220. img{
  6221. margin: 0 6px 0 8px;
  6222. height: 10px;
  6223. vertical-align: middle;
  6224. }
  6225. span{
  6226. vertical-align: middle;
  6227. font-size:12px;
  6228. font-family:PingFang-SC-Medium;
  6229. font-weight:500;
  6230. color:rgba(255,12,77,1);
  6231. }
  6232. }
  6233. }
  6234. .data_box{
  6235. margin-top: 18px;
  6236. .li{
  6237. display: flex;
  6238. justify-content: space-between;
  6239. border-bottom: 1px solid #EBEFF2;
  6240. padding-bottom: 12px;
  6241. margin-top: 8px;
  6242. &:last-child{
  6243. padding-bottom: 20px;
  6244. border: none;
  6245. }
  6246. >div{
  6247. width: calc(50% - 2px);
  6248. display: flex;
  6249. justify-content: space-between;
  6250. }
  6251. .li_center{
  6252. width: 100%;
  6253. }
  6254. .span1{
  6255. margin-left: 28px;
  6256. font-size:12px;
  6257. font-family:PingFang-SC-Medium;
  6258. font-weight:500;
  6259. color:rgba(101,112,133,1);
  6260. }
  6261. i{
  6262. position:relative;
  6263. top: 2px;
  6264. width:2px;
  6265. height:12px;
  6266. background:#EBEFF2;
  6267. }
  6268. .span2{
  6269. margin-right: 20px;
  6270. font-size:12px;
  6271. font-family:PingFang-SC-Medium;
  6272. font-weight:500;
  6273. color:rgba(34,34,34,1);
  6274. }
  6275. .progress_{
  6276. width: 170px;
  6277. }
  6278. }
  6279. }
  6280. }
  6281. .road_info{
  6282. overflow: auto;
  6283. height: calc(100% - 30px);
  6284. .box1{
  6285. margin: 20px 0 20px 0;
  6286. padding-bottom: 13px;
  6287. border-bottom: 1px dashed #DFDFDF;
  6288. >.box{
  6289. margin: 0 10px;
  6290. width:calc(100% - 20px);
  6291. height:31px;
  6292. background:rgba(246,248,250,1);
  6293. border-radius:2px;
  6294. padding-top: 6px;
  6295. .box_box{
  6296. margin: 0px 10px 0;
  6297. width:calc(100% - 20px);
  6298. height:26px;line-height: 26px;
  6299. background:rgba(255,255,255,1);
  6300. box-shadow:0px 2px 6px 0px rgba(0,0,0,0.05);
  6301. border-radius:2px;
  6302. display: flex;
  6303. justify-content: space-between;
  6304. .span1{
  6305. font-size:12px;
  6306. font-family:PingFang-SC-Medium;
  6307. font-weight:500;
  6308. color:rgba(51,51,51,1);
  6309. margin-left: 10px;
  6310. }
  6311. .span2{
  6312. font-size:12px;
  6313. font-family:PingFang-SC-Medium;
  6314. font-weight:500;
  6315. color:rgba(153,153,153,1);
  6316. margin-right: 16px;
  6317. }
  6318. }
  6319. }
  6320. }
  6321. .box2{
  6322. border-bottom: 1px dashed #DFDFDF;
  6323. .flex_box{
  6324. display: flex;
  6325. .li{
  6326. width: calc(33.33%);
  6327. text-align: center;
  6328. .p1{
  6329. font-size:30px;
  6330. font-family:PingFang-SC-Heavy;
  6331. font-weight:800;
  6332. color:rgba(51,51,51,1);
  6333. }
  6334. .p2{
  6335. font-size:12px;
  6336. font-family:PingFang-SC-Medium;
  6337. font-weight:500;
  6338. color:rgba(51,51,51,1);
  6339. span{
  6340. margin-left: 5px;
  6341. font-size:12px;
  6342. font-family:PingFang-SC-Medium;
  6343. font-weight:500;
  6344. color:rgba(153,153,153,1);
  6345. }
  6346. }
  6347. }
  6348. }
  6349. .box{
  6350. margin: 16px 10px 20px;
  6351. width:calc(100% - 20px);
  6352. height:27px;
  6353. background:rgba(255,242,245,0.5);
  6354. border-radius:2px;
  6355. display: flex;
  6356. justify-content: space-between;
  6357. i{
  6358. vertical-align: middle;
  6359. }
  6360. .dian{
  6361. margin-left: 10px;
  6362. position:relative;
  6363. display: inline-block;
  6364. width:4px;
  6365. height:4px;
  6366. background:rgba(255,12,77,1);
  6367. border-radius: 50%;
  6368. }
  6369. .span1{
  6370. margin-left: 16px;
  6371. vertical-align: middle;
  6372. font-size:12px;
  6373. font-family:PingFang-SC-Medium;
  6374. font-weight:500;
  6375. color:rgba(51,51,51,1);
  6376. }
  6377. .span2{
  6378. vertical-align: middle;
  6379. font-size:14px;
  6380. font-family:PingFang-SC-Medium;
  6381. font-weight:500;
  6382. color:rgba(255,12,77,1);
  6383. }
  6384. .span3{
  6385. vertical-align: middle;
  6386. font-size:12px;
  6387. font-family:PingFang-SC-Medium;
  6388. font-weight:500;
  6389. color:rgba(255,12,77,1);
  6390. }
  6391. .sz{
  6392. color: #F97C31;
  6393. }
  6394. .click{
  6395. cursor: pointer;
  6396. }
  6397. }
  6398. }
  6399. .box3{
  6400. .box3_top{
  6401. height: 17px;line-height: 17px;
  6402. margin: 15px 0 20px 0;
  6403. i{
  6404. margin-left: 14px;
  6405. vertical-align: middle;
  6406. display: inline-block;
  6407. width:6px;
  6408. height:6px;
  6409. background:rgba(249,124,49,1);
  6410. border-radius:1px;
  6411. }
  6412. span{
  6413. margin-left: 8px;
  6414. vertical-align: middle;
  6415. font-size:12px;
  6416. font-family:PingFangSC-Semibold;
  6417. font-weight:600;
  6418. color:rgba(249,124,49,1);
  6419. }
  6420. }
  6421. .data_box{
  6422. margin-top: 18px;
  6423. border-bottom: 1px dashed #DFDFDF;
  6424. .li{
  6425. display: flex;
  6426. justify-content: space-between;
  6427. border-bottom: 1px solid #EBEFF2;
  6428. padding-bottom: 12px;
  6429. margin-top: 8px;
  6430. &:last-child{
  6431. padding-bottom: 20px;
  6432. border: none;
  6433. }
  6434. >div{
  6435. width: calc(50% - 2px);
  6436. display: flex;
  6437. justify-content: space-between;
  6438. }
  6439. .span1{
  6440. margin-left: 28px;
  6441. font-size:12px;
  6442. font-family:PingFang-SC-Medium;
  6443. font-weight:500;
  6444. color:rgba(101,112,133,1);
  6445. }
  6446. i{
  6447. position:relative;
  6448. top: 2px;
  6449. width:2px;
  6450. height:12px;
  6451. background:#EBEFF2;
  6452. }
  6453. .span2{
  6454. margin-right: 20px;
  6455. font-size:12px;
  6456. font-family:PingFang-SC-Medium;
  6457. font-weight:500;
  6458. color:rgba(34,34,34,1);
  6459. }
  6460. }
  6461. }
  6462. }
  6463. .box4{
  6464. height: calc(100% - 380px);
  6465. .box4_top{
  6466. display: flex;
  6467. justify-content: space-between;
  6468. padding: 15px 0 20px 0;
  6469. .box4_top_left{
  6470. height: 20px;line-height: 20px;
  6471. i{
  6472. margin-left: 14px;
  6473. vertical-align: middle;
  6474. display: inline-block;
  6475. width:6px;
  6476. height:6px;
  6477. background:rgba(249,124,49,1);
  6478. border-radius:1px;
  6479. }
  6480. span{
  6481. margin-left: 8px;
  6482. vertical-align: middle;
  6483. font-size:12px;
  6484. font-family:PingFangSC-Semibold;
  6485. font-weight:600;
  6486. color:rgba(249,124,49,1);
  6487. }
  6488. }
  6489. .box4_top_right{
  6490. width: 140px;
  6491. height: 20px;line-height: 20px;
  6492. background:rgba(254,241,234,1);
  6493. border-radius:2px;
  6494. display: flex;
  6495. text-align: center;
  6496. .li{
  6497. font-size:12px;
  6498. font-family:PingFang-SC-Medium;
  6499. font-weight:500;
  6500. color:rgba(206,161,135,1);
  6501. width: 33.33%;
  6502. cursor: pointer;
  6503. &.select{
  6504. background:rgba(249,124,49,1);
  6505. color:rgba(255,255,255,1);
  6506. }
  6507. }
  6508. }
  6509. }
  6510. .table_box{
  6511. height: calc(100% - 55px);
  6512. .wifi_img{
  6513. height: 20px;
  6514. vertical-align: middle;
  6515. }
  6516. .select{
  6517. background:rgba(255,255,255,1);
  6518. box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.1);
  6519. border-radius:2px;
  6520. border-left: 2px solid #F97C31;
  6521. color:rgba(249,124,49,1);
  6522. .border_i{
  6523. position: absolute;
  6524. top: 0;
  6525. left: 0;
  6526. content: "";
  6527. width: 3px;
  6528. height: 100%;
  6529. background: #F97C31;
  6530. }
  6531. }
  6532. .red{
  6533. color:#FF0C4D;
  6534. }
  6535. .el-table td, .el-table th.is-leaf{
  6536. border-bottom: none;
  6537. }
  6538. .has-gutter{
  6539. tr{
  6540. background:rgba(246,248,250,1);
  6541. border-radius:2px;
  6542. font-size:12px;
  6543. font-family:PingFang-SC-Medium;
  6544. font-weight:500;
  6545. color:rgba(101,112,133,1);
  6546. th{
  6547. background:rgba(246,248,250,1);
  6548. }
  6549. }
  6550. }
  6551. .el-table__body-wrapper::-webkit-scrollbar-button {/*滚动条整体样式*/
  6552. width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  6553. height: 10px;
  6554. }
  6555. .el-table__body-wrapper::-webkit-scrollbar {/*滚动条整体样式*/
  6556. width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  6557. height: 10px;
  6558. }
  6559. .el-table__body-wrapper::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
  6560. border-radius: 10px;
  6561. background: #D8D8D8;
  6562. }
  6563. .el-table__body-wrapper::-webkit-scrollbar-thumb:horizontal{
  6564. background: #D8D8D8;
  6565. }
  6566. }
  6567. }
  6568. }
  6569. .project_info{
  6570. overflow: auto;
  6571. height: calc(100% - 30px);
  6572. .box1{
  6573. margin: 20px 0 20px 0;
  6574. padding-bottom: 13px;
  6575. border-bottom: 1px dashed #DFDFDF;
  6576. .box1_bg{
  6577. display: flex;
  6578. margin: 0 10px;
  6579. padding:6px 10px 5px;
  6580. background:rgba(246,248,250,1);
  6581. border-radius:2px;
  6582. >div{
  6583. display: flex;
  6584. justify-content: space-between;
  6585. height:26px;line-height: 26px;
  6586. background:rgba(255,255,255,1);
  6587. box-shadow:0px 2px 6px 0px rgba(0,0,0,0.05);
  6588. border-radius:2px;
  6589. width: calc(50% - 5px);
  6590. .span1{
  6591. margin-left: 10px;
  6592. font-size:12px;
  6593. font-family:PingFang-SC-Medium;
  6594. font-weight:500;
  6595. color:rgba(51,51,51,1);
  6596. }
  6597. .span2{
  6598. // margin-right: 10px;
  6599. text-align: right;
  6600. margin-right: 10px;
  6601. width: calc(100% - 60px);
  6602. font-size:12px;
  6603. font-family:PingFang-SC-Medium;
  6604. font-weight:500;
  6605. color:rgba(153,153,153,1);
  6606. cursor: pointer;
  6607. .el-input__inner{
  6608. border:none;
  6609. height: inherit;
  6610. line-height: inherit;
  6611. text-align: right;
  6612. padding: 0px 30px 0 0;
  6613. }
  6614. .el-input__icon{
  6615. line-height: inherit;
  6616. }
  6617. }
  6618. }
  6619. .box1_right{
  6620. margin-left: 10px;
  6621. }
  6622. }
  6623. }
  6624. .box2{
  6625. border-bottom: 1px dashed #DFDFDF;
  6626. .flex_box{
  6627. display: flex;
  6628. .li{
  6629. width: calc(33.33%);
  6630. text-align: center;
  6631. .p1{
  6632. font-size:30px;
  6633. font-family:PingFang-SC-Heavy;
  6634. font-weight:800;
  6635. color:rgba(51,51,51,1);
  6636. }
  6637. .p2{
  6638. font-size:12px;
  6639. font-family:PingFang-SC-Medium;
  6640. font-weight:500;
  6641. color:rgba(51,51,51,1);
  6642. span{
  6643. margin-left: 5px;
  6644. font-size:12px;
  6645. font-family:PingFang-SC-Medium;
  6646. font-weight:500;
  6647. color:rgba(153,153,153,1);
  6648. }
  6649. }
  6650. }
  6651. }
  6652. .box{
  6653. margin: 16px 10px 20px;
  6654. width:calc(100% - 20px);
  6655. height:27px;
  6656. background:rgba(255,242,245,0.5);
  6657. border-radius:2px;
  6658. display: flex;
  6659. justify-content: space-between;
  6660. i{
  6661. vertical-align: middle;
  6662. }
  6663. .dian{
  6664. margin-left: 10px;
  6665. position:relative;
  6666. display: inline-block;
  6667. width:4px;
  6668. height:4px;
  6669. background:rgba(255,12,77,1);
  6670. border-radius: 50%;
  6671. }
  6672. .span1{
  6673. margin-left: 16px;
  6674. vertical-align: middle;
  6675. font-size:12px;
  6676. font-family:PingFang-SC-Medium;
  6677. font-weight:500;
  6678. color:rgba(51,51,51,1);
  6679. }
  6680. .span2{
  6681. vertical-align: middle;
  6682. font-size:14px;
  6683. font-family:PingFang-SC-Medium;
  6684. font-weight:500;
  6685. color:rgba(255,12,77,1);
  6686. }
  6687. .span3{
  6688. vertical-align: middle;
  6689. font-size:12px;
  6690. font-family:PingFang-SC-Medium;
  6691. font-weight:500;
  6692. color:rgba(255,12,77,1);
  6693. }
  6694. .sz{
  6695. color: #F97C31;
  6696. }
  6697. .click{
  6698. cursor: pointer;
  6699. }
  6700. }
  6701. }
  6702. .box3{
  6703. border-bottom: 1px dashed #DFDFDF;
  6704. .box3_top{
  6705. display: flex;
  6706. margin-top: 13px;
  6707. >div{
  6708. width: calc(50%);
  6709. .p1{
  6710. i{
  6711. vertical-align: middle;
  6712. margin-left: 20px;
  6713. display: inline-block;
  6714. width:4px;
  6715. height:4px;
  6716. background:rgba(0,93,232,1);
  6717. border-radius: 50%;
  6718. }
  6719. span{
  6720. vertical-align: middle;
  6721. margin-left: 6px;
  6722. font-size:12px;
  6723. font-family:PingFang-SC-Medium;
  6724. font-weight:500;
  6725. color:rgba(153,153,153,1);
  6726. }
  6727. }
  6728. .p2{
  6729. line-height: 29px;
  6730. span{
  6731. margin-left: 30px;
  6732. font-size:21px;
  6733. font-family:PingFang-SC-Heavy;
  6734. font-weight:800;
  6735. color:rgba(51,51,51,1);
  6736. }
  6737. }
  6738. }
  6739. }
  6740. .box3_bottom{
  6741. margin: 10px 10px 20px 20px;
  6742. display: flex;
  6743. .li{
  6744. width: calc(33.33% - 10px);
  6745. margin-right: 10px;
  6746. background:rgba(246,248,250,1);
  6747. border-radius:2px;
  6748. padding: 6px 0 4px 9px;
  6749. box-sizing:border-box;
  6750. .p1{
  6751. font-size:12px;
  6752. font-family:PingFang-SC-Medium;
  6753. font-weight:500;
  6754. color:rgba(153,153,153,1);
  6755. }
  6756. .p2{
  6757. .span1{
  6758. font-size:18px;
  6759. font-family:PingFang-SC-Heavy;
  6760. font-weight:800;
  6761. color:rgba(51,51,51,1);
  6762. }
  6763. .span2{
  6764. font-size:10px;
  6765. font-family:PingFang-SC-Medium;
  6766. font-weight:500;
  6767. color:rgba(153,153,153,1);
  6768. }
  6769. }
  6770. }
  6771. }
  6772. }
  6773. .box4{
  6774. }
  6775. .box_top{
  6776. height: 17px;line-height: 17px;
  6777. margin: 15px 0 20px 0;
  6778. i{
  6779. margin-left: 14px;
  6780. vertical-align: middle;
  6781. display: inline-block;
  6782. width:6px;
  6783. height:6px;
  6784. background:rgba(249,124,49,1);
  6785. border-radius:1px;
  6786. }
  6787. span{
  6788. margin-left: 8px;
  6789. vertical-align: middle;
  6790. font-size:12px;
  6791. font-family:PingFangSC-Semibold;
  6792. font-weight:600;
  6793. color:rgba(249,124,49,1);
  6794. }
  6795. }
  6796. .data_box{
  6797. margin-top: 18px;
  6798. .li{
  6799. display: flex;
  6800. justify-content: space-between;
  6801. border-bottom: 1px solid #EBEFF2;
  6802. padding-bottom: 12px;
  6803. margin-top: 8px;
  6804. &:last-child{
  6805. padding-bottom: 20px;
  6806. border: none;
  6807. }
  6808. >div{
  6809. width: calc(50% - 2px);
  6810. display: flex;
  6811. justify-content: space-between;
  6812. }
  6813. .li_center{
  6814. width: 100%;
  6815. }
  6816. .span1{
  6817. margin-left: 28px;
  6818. font-size:12px;
  6819. font-family:PingFang-SC-Medium;
  6820. font-weight:500;
  6821. color:rgba(101,112,133,1);
  6822. }
  6823. i{
  6824. position:relative;
  6825. top: 2px;
  6826. width:2px;
  6827. height:12px;
  6828. background:#EBEFF2;
  6829. }
  6830. .span2{
  6831. margin-right: 20px;
  6832. font-size:12px;
  6833. font-family:PingFang-SC-Medium;
  6834. font-weight:500;
  6835. color:rgba(34,34,34,1);
  6836. }
  6837. }
  6838. }
  6839. }
  6840. }
  6841. .fault_list_tk{
  6842. position:absolute;
  6843. top: 114px;left: 300px;
  6844. width:calc(100% - 600px);
  6845. height: calc(100% - 200px);
  6846. // max-height: 800px;
  6847. background:rgba(255,255,255,1);
  6848. box-shadow:0px 2px 6px 0px rgba(0,0,0,0.05);
  6849. border-radius:2px;
  6850. border:1px solid rgba(240,240,240,1);
  6851. .fault_list_tk_top{
  6852. display: flex;
  6853. justify-content: space-between;
  6854. height: 50px;line-height: 50px;
  6855. border-bottom: 1px solid #F0F0F0;
  6856. box-sizing: border-box;
  6857. .left{
  6858. margin-left: 19px;
  6859. font-size:14px;
  6860. font-family:PingFang-SC-Medium;
  6861. font-weight:500;
  6862. color:rgba(51,51,51,1);
  6863. }
  6864. .right{
  6865. padding: 0 10px;
  6866. margin-right: 20px;
  6867. font-size:14px;
  6868. font-family:PingFang-SC-Medium;
  6869. font-weight:500;
  6870. color:rgba(153,153,153,1);
  6871. cursor: pointer;
  6872. }
  6873. }
  6874. .table_box{
  6875. height: calc(100% - 65px);
  6876. margin: 25px 20px 0;
  6877. .el-table td, .el-table th.is-leaf{
  6878. border-bottom: none;
  6879. }
  6880. .has-gutter{
  6881. tr{
  6882. background:rgba(246,248,250,1);
  6883. border-radius:2px;
  6884. font-size:12px;
  6885. font-family:PingFang-SC-Medium;
  6886. font-weight:500;
  6887. color:rgba(101,112,133,1);
  6888. th{
  6889. background:rgba(246,248,250,1);
  6890. }
  6891. }
  6892. }
  6893. .el-table__body-wrapper::-webkit-scrollbar-button {/*滚动条整体样式*/
  6894. width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  6895. height: 10px;
  6896. }
  6897. .el-table__body-wrapper::-webkit-scrollbar {/*滚动条整体样式*/
  6898. width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  6899. height: 10px;
  6900. }
  6901. .el-table__body-wrapper::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
  6902. border-radius: 10px;
  6903. background: #D8D8D8;
  6904. }
  6905. .el-table__body-wrapper::-webkit-scrollbar-thumb:horizontal{
  6906. background: #D8D8D8;
  6907. }
  6908. }
  6909. }
  6910. >.button_box{
  6911. position: absolute;
  6912. top:154px;left: 33px;
  6913. width: 107px;
  6914. li{
  6915. float: left;
  6916. height: 50px;width: 100%;line-height: 50px;
  6917. margin-bottom: 30px;
  6918. // text-align: center;
  6919. background: #fff;font-size: 16px;color: #666666;
  6920. border-radius: 16px;
  6921. cursor: pointer;
  6922. >i{
  6923. display: inline-block;
  6924. width: 10px;
  6925. height: 10px;
  6926. border-radius: 50%;
  6927. position: relative;
  6928. top: -1px;
  6929. left: 20px;
  6930. }
  6931. span{
  6932. margin-left: 30px;
  6933. }
  6934. }
  6935. li:nth-child(1) >i{
  6936. background: #fc8440;
  6937. }
  6938. li:nth-child(2) >i{
  6939. background: #ffb68d;
  6940. }
  6941. li:nth-child(3) >i{
  6942. background: #ff0505;
  6943. }
  6944. li:nth-child(4) >i{
  6945. background: #a7a7a7;
  6946. }
  6947. li:nth-child(5) >i{
  6948. background: #31b4fd;
  6949. }
  6950. .operationSelect{
  6951. background:#373b44;
  6952. color:#fff;
  6953. }
  6954. }
  6955. >.button_box_en{
  6956. width: 150px;
  6957. }
  6958. .right_sidebar_bg{
  6959. background: #000;
  6960. opacity: 0.1;
  6961. position: absolute;
  6962. width: 100%;height: 100%;
  6963. z-index: 2;
  6964. }
  6965. .right_sidebar{
  6966. position: absolute;
  6967. right: 0px;
  6968. width: 0px;
  6969. height: 100%;
  6970. background:#494e54;
  6971. z-index: 350;
  6972. .sideBar_box{
  6973. width: calc(100%);
  6974. height: 100%;
  6975. overflow: hidden;
  6976. >div{
  6977. min-width: 400px;
  6978. height: 100%;
  6979. }
  6980. .streetLamp_box{
  6981. height: calc(100% - 70px);
  6982. }
  6983. .switch{
  6984. float: right;
  6985. display: inline-block;
  6986. background: #64686d;
  6987. width: 84px;height: 32px;line-height: 32px;
  6988. border-radius: 16px;
  6989. font-size: 14px;
  6990. color: #ffffff;
  6991. span{
  6992. display: inline-block;
  6993. text-align: center;
  6994. width: 62px;
  6995. background: linear-gradient(#fc8440, #fe7121);
  6996. border-radius: 16px;
  6997. }
  6998. .run_state{
  6999. float: right;
  7000. background: #3f3f3f;
  7001. }
  7002. }
  7003. .sideBar_Nav{
  7004. // width: 522px;
  7005. margin: 23px 30px 0;
  7006. li{
  7007. float: left;
  7008. width: 33.33%;height: 47px;line-height: 47px;
  7009. text-align: center;
  7010. font-size: 16px;color: #ffffff;
  7011. background: #575c61;
  7012. cursor: pointer;
  7013. }
  7014. .sideBar_nav_select{
  7015. background: #373b44;
  7016. }
  7017. }
  7018. .streetLamp_button{
  7019. margin: 20px 30px 0;
  7020. >div{
  7021. float: right;
  7022. }
  7023. .el-button{
  7024. width: 112px;height: 30px;line-height: 30px;
  7025. padding: 0px;
  7026. font-size: 14px;color: #ffffff;
  7027. background: #575c61;
  7028. border:1px solid #808488;
  7029. }
  7030. }
  7031. .streetLamp_List{
  7032. margin: 20px 30px 0;
  7033. height: calc(100% - 150px);
  7034. padding-bottom: 80px;
  7035. overflow: auto;
  7036. li{
  7037. width: calc(100% - 34px);
  7038. background: #575c61;
  7039. margin-bottom: 20px;
  7040. padding: 17px 10px 20px 24px;
  7041. color: #ffffff;
  7042. cursor: pointer;
  7043. p:first-child{
  7044. font-size: 22px;
  7045. margin-bottom: 30px;
  7046. }
  7047. p:last-child{
  7048. font-size: 20px;
  7049. span:first-child{
  7050. position: relative;
  7051. top: -2px;
  7052. font-size: 14px;
  7053. opacity: 0.6;
  7054. }
  7055. span:last-child{
  7056. float: right;
  7057. margin-right: 5px;
  7058. }
  7059. .running_state{
  7060. color: #fe7527;
  7061. }
  7062. }
  7063. }
  7064. }
  7065. .streetLamp_data{
  7066. margin: 0 30px;
  7067. .lamp_icon{
  7068. position: relative;
  7069. top: 6px;
  7070. margin-right: 10px;
  7071. }
  7072. >:nth-child(1){
  7073. height: 32px;line-height: 32px;
  7074. margin: 63px 0 36px 0;
  7075. color: #ffffff;font-size: 22px;
  7076. position: relative;
  7077. >span{
  7078. margin-right: 10px;
  7079. }
  7080. .streetLamp_data_button{
  7081. position: absolute;
  7082. top: -50px;
  7083. right: -10px;
  7084. margin: 0 25px 0 10px;
  7085. color: #fc8440;
  7086. cursor: pointer;
  7087. text-decoration: underline;
  7088. }
  7089. }
  7090. >:nth-child(2){
  7091. width: 100%;
  7092. li{
  7093. float: left;
  7094. width: calc(25% - 10px);
  7095. padding-left: 10px;
  7096. margin-bottom: 30px;
  7097. p:first-child{
  7098. font-size: 14px;color: #ffffff;opacity: 0.6;
  7099. }
  7100. p:nth-child(2){
  7101. position: relative;
  7102. font-size: 20px;color: #ffffff;
  7103. margin-top: 5px;
  7104. span{
  7105. font-size: 14px;color: #b5b5b5;
  7106. text-decoration:underline;
  7107. margin-left: 10px;
  7108. cursor: pointer;
  7109. }
  7110. .el-slider{
  7111. position: absolute;
  7112. bottom: 0px;
  7113. right: 4px;
  7114. padding: 15px 0;
  7115. background: #fff;
  7116. border-radius: 6px;
  7117. z-index: 1;
  7118. .el-slider__bar{
  7119. background: #fc8440;
  7120. }
  7121. .el-slider__button{
  7122. width:30px;height: 30px;
  7123. background:url(../img/GIS/Lamp_icon-pre.png);
  7124. background-size: 100% 100%;
  7125. border:0px;
  7126. }
  7127. }
  7128. }
  7129. .catcher_on_off{
  7130. margin-top: 5px;
  7131. cursor: pointer;
  7132. background: #64686d;
  7133. width: 84px;
  7134. height: 26px;
  7135. line-height: 26px;
  7136. border-radius: 16px;
  7137. font-size: 14px;
  7138. color: #ffffff;
  7139. .select1{
  7140. display: inline-block;
  7141. text-align: center;
  7142. width: 62px;
  7143. background: linear-gradient(#fc8440, #fe7121);
  7144. border-radius: 16px;
  7145. }
  7146. .select0{
  7147. float: right;
  7148. display: inline-block;
  7149. text-align: center;
  7150. width: 62px;
  7151. background: #3f3f3f;
  7152. border-radius: 16px;
  7153. }
  7154. }
  7155. }
  7156. }
  7157. >:nth-child(3){
  7158. display: none;
  7159. }
  7160. >:nth-child(4){
  7161. margin-top: 20px;
  7162. font-size: 14px;color: #ffffff;
  7163. span:last-child{
  7164. float: right;
  7165. }
  7166. }
  7167. >:nth-child(5){
  7168. width: 100%;
  7169. margin-top: 21px;
  7170. padding-bottom: 30px;
  7171. border-bottom: 1px solid #5b6065;
  7172. li{
  7173. float: left;
  7174. width: calc(25% - 10px);
  7175. padding-left: 10px;
  7176. p:first-child{
  7177. font-size: 14px;color: #ffffff;opacity: 0.6;
  7178. }
  7179. p:last-child{
  7180. font-size: 20px;color: #ffffff;
  7181. margin-top: 5px;
  7182. span{
  7183. font-size: 14px;color: #b5b5b5;
  7184. text-decoration:underline;
  7185. margin-left: 10px;
  7186. }
  7187. }
  7188. }
  7189. }
  7190. >:nth-child(6){
  7191. padding: 37px 0;
  7192. color: #ffffff;
  7193. border-bottom: 1px solid #5b6065;
  7194. span{
  7195. float: right;
  7196. }
  7197. }
  7198. >:nth-child(7){
  7199. padding-top: 37px;
  7200. color: #ffffff;
  7201. span{
  7202. float: right;
  7203. }
  7204. }
  7205. }
  7206. .project_box{
  7207. // width: 524px;
  7208. height: calc(100% - 70px);
  7209. >ul{
  7210. margin:20px 30px 0;
  7211. height: calc(100% - 100px);
  7212. padding-bottom: 80px;
  7213. overflow: auto;
  7214. }
  7215. >ul li{
  7216. padding:17px 24px;
  7217. background: #575c61;
  7218. margin-bottom:20px;
  7219. color: #ffffff;
  7220. cursor: pointer;
  7221. p:first-child{
  7222. font-size: 22px;
  7223. margin-bottom: 30px;
  7224. >:nth-child(1){
  7225. float: left;
  7226. }
  7227. >:nth-child(2){
  7228. float: left;
  7229. display: inline-block;
  7230. width: 52%;
  7231. white-space: nowrap;
  7232. overflow: hidden;
  7233. text-overflow: ellipsis;
  7234. }
  7235. >:last-child{
  7236. float: right;
  7237. color: #fe7527;
  7238. span{
  7239. position: relative;
  7240. top: -3px;
  7241. margin-left: 10px;
  7242. color: #ffffff;
  7243. font-size: 14px;
  7244. opacity: 0.6;
  7245. }
  7246. }
  7247. }
  7248. p:last-child{
  7249. >span{
  7250. display: inline-block;
  7251. margin-right: 28px;
  7252. span{
  7253. display: inline-block;
  7254. margin-right: 20px;
  7255. font-size: 14px;
  7256. opacity: 0.6;
  7257. }
  7258. }
  7259. }
  7260. }
  7261. >div{
  7262. margin-top: 20px;
  7263. padding-top: 43px;
  7264. height: calc(100% - 63px);
  7265. width: 100%;
  7266. overflow: auto;
  7267. color: #ffffff;
  7268. >:nth-child(1){
  7269. height: 32px;
  7270. line-height: 32px;
  7271. margin: 0px 30px 36px 30px;
  7272. font-size: 22px;
  7273. position: relative;
  7274. >span:first-child{
  7275. white-space: nowrap;
  7276. overflow: hidden;
  7277. text-overflow: ellipsis;
  7278. width: 80%;
  7279. display: inline-block;
  7280. text-align: right;
  7281. }
  7282. span{
  7283. float: right;
  7284. color: #fe792e;font-size: 18px;
  7285. }
  7286. .streetLamp_data_button{
  7287. position: absolute;
  7288. top: -50px;
  7289. right: -10px;
  7290. margin: 0 25px 0 10px;
  7291. color: #fc8440;
  7292. cursor: pointer;
  7293. text-decoration: underline;
  7294. }
  7295. }
  7296. >:nth-child(2){
  7297. margin: 0 30px;
  7298. li{
  7299. float: left;
  7300. width: 20%;
  7301. margin-bottom: 27px;
  7302. text-align:center;
  7303. p:first-child{
  7304. opacity: 0.6;font-size: 14px;
  7305. }
  7306. p:last-child{
  7307. font-size: 20px;
  7308. margin-top: 5px;
  7309. word-break:break-all;
  7310. display:-webkit-box;
  7311. -webkit-line-clamp:2;
  7312. -webkit-box-orient:vertical;
  7313. overflow:hidden;
  7314. padding: 0 5px;
  7315. }
  7316. }
  7317. li:nth-child(2){
  7318. width: 40%;
  7319. }
  7320. }
  7321. >:nth-child(3){
  7322. margin: 0 30px;
  7323. opacity: 0.6;font-size: 14px;
  7324. margin-bottom: 5px;
  7325. }
  7326. >:nth-child(4){
  7327. margin: 0 30px;
  7328. font-size: 20px;
  7329. margin-bottom: 50px;
  7330. width: calc(100% - 60px);
  7331. white-space: nowrap;
  7332. overflow: hidden;
  7333. text-overflow: ellipsis;
  7334. }
  7335. >:nth-child(5){
  7336. height: 20px;
  7337. background: #4e5359;
  7338. margin-bottom: 36px;
  7339. }
  7340. >:nth-child(6){
  7341. margin: 0 30px;
  7342. >div{
  7343. >span{
  7344. display: inline-block;
  7345. cursor: pointer;
  7346. width: 95px;height: 50px;line-height: 50px;
  7347. background: #575c61;border-radius: 25px;
  7348. padding: 0 25px;
  7349. margin:0 27px 20px 0;
  7350. text-align: right;
  7351. >span{
  7352. float: left;
  7353. font-size: 14px;opacity: 0.6;
  7354. }
  7355. }
  7356. .groupingSpan{
  7357. margin:0 27px 0px 0;
  7358. }
  7359. .projectDataSee{
  7360. background: #373b44;
  7361. color:#fff;
  7362. }
  7363. >span:nth-child(3n+0){
  7364. margin-right: 0px;
  7365. }
  7366. >span:last-child{
  7367. img{
  7368. float: left;
  7369. margin-top: 15px;
  7370. }
  7371. >span{
  7372. margin-left: 10px;
  7373. }
  7374. }
  7375. }
  7376. .projectDataSeeList{
  7377. background: #373b44;
  7378. margin-bottom: 20px;
  7379. padding: 20px 0;
  7380. max-height: 370px;
  7381. overflow: auto;
  7382. li{
  7383. }
  7384. p{
  7385. margin-bottom: 18px;
  7386. margin-left: 32px;
  7387. span:first-child{
  7388. opacity: 0.6;
  7389. }
  7390. span:nth-child(2){
  7391. margin-left: 10px;
  7392. }
  7393. span:nth-child(3){
  7394. margin-left: 33px;
  7395. }
  7396. span:last-child{
  7397. float: right;
  7398. margin-right: 24px;
  7399. cursor: pointer;
  7400. }
  7401. .select{
  7402. color: #fc8440;
  7403. }
  7404. }
  7405. }
  7406. .grouping_list{
  7407. margin-top: 20px;
  7408. background:#494e54;
  7409. padding:0px;
  7410. li{
  7411. background: #373b44;
  7412. padding: 20px 0;
  7413. margin-bottom: 20px;
  7414. }
  7415. p{
  7416. margin-left: 32px;
  7417. }
  7418. p:first-child{
  7419. margin-bottom: 18px;
  7420. span:first-child{
  7421. opacity: 0.6;
  7422. }
  7423. }
  7424. p:last-child{
  7425. display: -webkit-box;
  7426. -webkit-box-orient: vertical;
  7427. -webkit-line-clamp: 3;
  7428. overflow: hidden;
  7429. }
  7430. span:nth-child(2){
  7431. float:right;
  7432. margin:0 25px 0 10px;
  7433. color:#fc8440;
  7434. cursor: pointer;
  7435. text-decoration:underline;
  7436. }
  7437. span:nth-child(3){
  7438. float:right;
  7439. margin:0;
  7440. }
  7441. }
  7442. }
  7443. >.calss_en{
  7444. >div{
  7445. >span{
  7446. width: calc(50% - 80px);
  7447. }
  7448. }
  7449. }
  7450. >:nth-child(7){
  7451. height: 20px;
  7452. background: #4e5359;
  7453. margin:38px 0 33px;
  7454. }
  7455. >:nth-child(8){
  7456. height: 32px;
  7457. line-height: 32px;
  7458. margin: 0px 30px 42px 30px;
  7459. font-size: 22px;
  7460. }
  7461. >:nth-child(9){
  7462. margin: 0 30px;
  7463. p{
  7464. margin-bottom: 24px;
  7465. span{
  7466. margin: 0 0px 0 20px;
  7467. }
  7468. >:last-child{
  7469. display: inline-block;
  7470. width: calc(100%);
  7471. // float: right;
  7472. margin-top: 8px;
  7473. .el-progress-bar{
  7474. padding: 0px;
  7475. }
  7476. .el-progress-bar__outer{
  7477. background:none;
  7478. }
  7479. }
  7480. }
  7481. }
  7482. .class9_en{
  7483. p{
  7484. >:last-child{
  7485. width: calc(100% - 330px);
  7486. }
  7487. }
  7488. }
  7489. }
  7490. }
  7491. .monitor_box{
  7492. width: 100%;
  7493. height: calc(100% - 70px);
  7494. overflow: auto;
  7495. color: #ffffff;
  7496. >div{
  7497. margin-top: 63px;
  7498. >:nth-child(1){
  7499. height: 32px;
  7500. line-height: 32px;
  7501. margin: 0px 30px 36px 30px;
  7502. font-size: 22px;
  7503. }
  7504. >:nth-child(2){
  7505. // width: 100%;
  7506. margin: 0 30px;
  7507. height: 318px;
  7508. background: #eeeeee;
  7509. margin-bottom: 46px
  7510. }
  7511. >:nth-child(3){
  7512. height: 20px;
  7513. background: #4e5359;
  7514. margin-bottom: 44px;
  7515. }
  7516. >:nth-child(4){
  7517. height: 32px;
  7518. line-height: 32px;
  7519. margin: 0px 30px 25px 30px;
  7520. font-size: 22px;
  7521. }
  7522. >ul{
  7523. margin: 0 30px;
  7524. margin-bottom: 30px;
  7525. li{
  7526. float: left;
  7527. width: 25%;
  7528. text-align: center;
  7529. >p:first-child{
  7530. font-size: 14px;opacity: 0.6;
  7531. margin-bottom: 5px;
  7532. }
  7533. >p:last-child{
  7534. font-size: 20px;
  7535. }
  7536. }
  7537. >:first-child{
  7538. text-align: left;
  7539. }
  7540. >:last-child{
  7541. text-align: right;
  7542. }
  7543. }
  7544. >:last-child{
  7545. margin: 0 30px;
  7546. >p:first-child{
  7547. font-size: 14px;opacity: 0.6;
  7548. margin-bottom: 5px;
  7549. }
  7550. >p:last-child{
  7551. font-size: 20px;
  7552. }
  7553. }
  7554. }
  7555. }
  7556. }
  7557. .sideBar_button{
  7558. position: absolute;
  7559. height: 56px;
  7560. top: 50%;margin-top: -28px;
  7561. left: -33px;
  7562. cursor: pointer;
  7563. }
  7564. }
  7565. }
  7566. </style>