GISMap.vue 373 KB

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