GISMap.vue 362 KB

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