移动端
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.vue 145 KiB

há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
há 4 anos
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288
  1. <template>
  2. <div class="app-container" :style="{ height: windowHeight + 'px' }">
  3. <div style="display: none">
  4. <select id="zhen"></select>
  5. <select id="cun" autofocus></select>
  6. <input id="texiao_fang" type="button" value="特效农房" /> 
  7. <input id="texiao_di" type="button" value="特效农地" /> 
  8. <input id="qingchu" type="button" value="清除" /> 
  9. <button id="drawPolygon">绘制地图</button>
  10. <button id="drawRemove">清除画图</button>
  11. <button id="drawReset">还原之前图层</button>
  12. </div>
  13. <div class="map_area" id="mapWrap"></div>
  14. <!--列表 定位-->
  15. <div class="rightIcon_wrap">
  16. <!-- <div class="positioning_wrap">
  17. <div class="icon"></div>
  18. </div> -->
  19. <div class="selectionIcon_wrap" @click="selectionPush">
  20. <div class="icon"></div>
  21. <div class="text">列表</div>
  22. </div>
  23. </div>
  24. <van-overlay :show="selectionIconShow" @click="homesteadListShrink" />
  25. <!--放大缩小-->
  26. <div class="rightZoom_wrap">
  27. <div class="amplification" ref="sliderBig"></div>
  28. <div class="narrow" ref="sliderSmall"></div>
  29. </div>
  30. <!--列表拉取详情-->
  31. <div class="homesteadList_wrap" v-show="homesteadListStatus">
  32. <div class="main_m" v-if="statusList == 0">
  33. <div class="title_m">
  34. <div class="more_icon" @click="homesteadListShrink"></div>
  35. <div class="name">农房列表</div>
  36. </div>
  37. <!--1-->
  38. <div
  39. class="flex_block"
  40. v-for="(items, index) in hcBottonHouseArr"
  41. :key="index"
  42. :class="{ active: selectChooseOrder == index }"
  43. @click="housingSerial(items, index)"
  44. >
  45. <div class="name_text">{{ items.name }}</div>
  46. <div class="square_text">{{ items.mj }}㎡</div>
  47. <div class="operation_mian">
  48. <div
  49. class="describe"
  50. :class="[
  51. items.xzqk == '已盘活' ? 'yph' : '',
  52. items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
  53. //items.xzqk == '已流转' ? 'ylz' : '',
  54. //items.xzqk == '待流转' ? 'dlz' : '',
  55. items.xzqk == '已流转待盘活' ? 'ylzdph' : '',
  56. items.xzqk == '自用' ? 'zy' : '',
  57. items.xzqk == '闲置' ? 'xz' : '',
  58. items.xzqk == '残垣断壁' ? 'chdb' : '',
  59. ]"
  60. >
  61. {{ items.xzqk }}
  62. </div>
  63. </div>
  64. </div>
  65. <div v-if="hcBottonHouseArr.length == 0" class="noInfo_data">
  66. 暂无农房信息
  67. </div>
  68. </div>
  69. <div class="main_m" v-if="statusList == 1">
  70. <div class="title_m">
  71. <div class="more_icon" @click="homesteadListShrink"></div>
  72. <div class="name">农地列表</div>
  73. </div>
  74. <!--1-->
  75. <div
  76. class="flex_block"
  77. v-for="(items, index) in hcBottonLandArr"
  78. :key="index"
  79. :class="{ active: selectChooseOrder == index }"
  80. @click="housingSerial(items, index)"
  81. >
  82. <div class="name_text">{{ items.name }}</div>
  83. <div class="square_text">{{ items.mj }}亩</div>
  84. <div class="operation_mian">
  85. <div
  86. class="describe"
  87. :class="[
  88. items.xzqk == '已盘活' ? 'yph' : '',
  89. items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
  90. items.xzqk == '已流转' ? 'ylz' : '',
  91. items.xzqk == '待流转' ? 'dlz' : '',
  92. ]"
  93. >
  94. {{ items.xzqk }}
  95. </div>
  96. </div>
  97. </div>
  98. <div v-if="hcBottonLandArr.length == 0" class="noInfo_data">
  99. 暂无农地信息
  100. </div>
  101. </div>
  102. <!-- //待租列表 房
  103. hcBottonHouseArr: [],
  104. //待租列表 地
  105. hcBottonLandArr: [], -->
  106. <div class="footerBtn_wrap">
  107. <div
  108. class="options"
  109. :class="{ active: statusList == 0 }"
  110. @click="housingTypes('0')"
  111. >
  112. 农房
  113. </div>
  114. <div
  115. class="options"
  116. :class="{ active: statusList == 1 }"
  117. @click="housingTypes('1')"
  118. >
  119. 农地
  120. </div>
  121. </div>
  122. </div>
  123. <!--选择地址-->
  124. <div class="address_wrap">
  125. <div class="address_item">
  126. <div class="portrait cun" @click="villageVisbileFun">村</div>
  127. <div class="name" @click="villageVisbileFun">
  128. {{ villageDataObj.deptName }}
  129. </div>
  130. </div>
  131. </div>
  132. <van-popup v-model="villageVisbile" round position="bottom">
  133. <van-cascader
  134. v-model="villageValue"
  135. title="请选择所在村"
  136. :options="hcAreaInfoOption"
  137. @close="hcAreaInfoClose"
  138. @finish="hcAreaInfoFinish"
  139. active-color="#1989fa"
  140. :field-names="hcAreaInfoFieldName"
  141. />
  142. </van-popup>
  143. <!--搜索栏目-->
  144. <div class="searchBar_wrap">
  145. <div class="actionBar_wrap" v-if="searchBarOperVisbile">
  146. <!-- <div class="m_list">
  147. <div class="positioning">
  148. <div class="icon"></div>
  149. </div>
  150. </div>
  151. <div class="m_list">
  152. <div class="spacing">
  153. <div class="icon"></div>
  154. </div>
  155. </div>
  156. <div class="m_list">
  157. <div class="scale">
  158. <div class="icon"></div>
  159. </div>
  160. </div> -->
  161. <div class="m_list">
  162. <div class="closes gray" @click="searchBarOperFun('false')">
  163. <div class="icon"></div>
  164. </div>
  165. </div>
  166. <div class="m_list">
  167. <div
  168. class="tensile"
  169. :class="{ active: draw.drawMapPolygon }"
  170. @click="drawMapPolygonFun"
  171. >
  172. <div class="icon"></div>
  173. </div>
  174. </div>
  175. <div class="m_list" @click="farmlandEditSwitchFun">
  176. <div class="correct"></div>
  177. </div>
  178. </div>
  179. <div class="searchBar_area">
  180. <div class="bar_icon"></div>
  181. <div class="bar_ipt">
  182. <input
  183. type="text"
  184. v-model="seachText"
  185. placeholder="请输入宗地或权利人信息"
  186. />
  187. </div>
  188. <div id="query" class="bar_text">搜索</div>
  189. </div>
  190. <div class="searchBar_more" @click="searchBarOperFun('true')"></div>
  191. </div>
  192. <!--点击房地-显示的搜索--->
  193. <div class="landHomestead_wrap">
  194. <div class="landHomestead_search">
  195. <div class="bar_icon"></div>
  196. <div class="bar_ipt">
  197. <input
  198. type="text"
  199. v-model="seachText"
  200. placeholder="请输入宗地或权利人信息"
  201. />
  202. </div>
  203. <div class="bar_text" @click="toggleSearch">搜索</div>
  204. </div>
  205. <div class="landHomestead_body">
  206. <!--0-农房-->
  207. <div class="body_flex" v-if="farmhouseStatus == 0">
  208. <div class="attribute" @click="houseLandLookInfo('show', 'house')">
  209. <div class="names">{{ houseInfoList.fwsyrmc }}</div>
  210. <div class="address">{{ houseInfoList.dz }}</div>
  211. <div class="nature">性质:{{ houseInfoList.tdxz }}</div>
  212. </div>
  213. <div class="distance" @click="houseLandLookInfo('show', 'house')">
  214. <div class="size">{{ houseInfoList.xh }}</div>
  215. <div class="probably">大约{{ houseInfoList.jzmj }}㎡</div>
  216. </div>
  217. <div class="others">
  218. <div class="information">
  219. <!-- <div
  220. class="location"
  221. @click="landHomeSerial('house', houseInfoList)"
  222. ></div> -->
  223. <div class="status_text">{{ houseInfoList.xzqk }}</div>
  224. </div>
  225. <div class="editor">
  226. <div class="editor_icon" @click="editnfdInfo"></div>
  227. </div>
  228. </div>
  229. </div>
  230. <!--1-农地-->
  231. <div class="body_flex" v-if="farmhouseStatus == 1">
  232. <div class="attribute" @click="houseLandLookInfo('show', 'land')">
  233. <div class="names">{{ landInfoList.syrmc }}</div>
  234. <div class="address">{{ landInfoList.cm }}</div>
  235. <div class="nature">性质:{{ landInfoList.nydlx }}</div>
  236. </div>
  237. <div class="distance" @click="houseLandLookInfo('show', 'land')">
  238. <div class="size">{{ landInfoList.xh }}</div>
  239. <div class="probably">大约{{ landInfoList.mj }}㎡</div>
  240. </div>
  241. <div class="others">
  242. <div class="information">
  243. <!-- <div
  244. class="location"
  245. @click="landHomeSerial('land', landInfoList)"
  246. ></div> -->
  247. <div class="status_text">{{ landInfoList.xzqk }}</div>
  248. </div>
  249. <div class="editor">
  250. <div class="editor_icon" @click="editnfdInfo"></div>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. <div id="info" style="display: none"></div>
  257. <!--房地全部信息展示-->
  258. <div
  259. class="landHomesteadDetails_wrap"
  260. v-show="landHomesteadDetailsVisibile"
  261. >
  262. <!---农房-->
  263. <div class="content_mian" v-if="farmhouseStatus == 0">
  264. <!--内容-->
  265. <div class="serial_flex">
  266. <div class="number">
  267. 农房编号<span>{{ houseInfoLookList.xh }}</span>
  268. </div>
  269. <div class="localhref" @click="houseLandLookInfo('hide')"></div>
  270. </div>
  271. <!--1-->
  272. <div class="flex_block">
  273. <span class="describe">房屋所有人名称</span
  274. ><span class="content">{{ houseInfoLookList.fwsyrmc }}</span>
  275. </div>
  276. <!--1-->
  277. <div class="flex_block">
  278. <span class="describe">村名</span
  279. ><span class="content">{{ houseInfoLookList.cm }}</span>
  280. </div>
  281. <!--1-->
  282. <div class="flex_block">
  283. <span class="describe">地址</span
  284. ><span class="content">{{ houseInfoLookList.dz }}</span>
  285. </div>
  286. <!--1-->
  287. <div class="flex_block">
  288. <span class="describe">是否有审批手续</span
  289. ><span class="content">{{ houseInfoLookList.sfyspsx }}</span>
  290. </div>
  291. <!--1-->
  292. <div class="flex_block">
  293. <span class="describe">房屋所有权证号</span
  294. ><span class="content">{{ houseInfoLookList.fwsyqh }}</span>
  295. </div>
  296. <!--1-->
  297. <div class="flex_block">
  298. <span class="describe">建筑面积</span
  299. ><span class="content">大约{{ houseInfoLookList.jzmj }}㎡</span>
  300. </div>
  301. <!--1-->
  302. <div class="flex_block">
  303. <span class="describe">土地证号</span
  304. ><span class="content">{{ houseInfoLookList.tdzh }}</span>
  305. </div>
  306. <!--1-->
  307. <div class="flex_block">
  308. <span class="describe">土地性质</span
  309. ><span class="content">{{ houseInfoLookList.tdxz }}</span>
  310. </div>
  311. <!--1-->
  312. <div class="flex_block">
  313. <span class="describe">土地面积</span
  314. ><span class="content">大约{{ houseInfoLookList.tdmj }}㎡</span>
  315. </div>
  316. <!--1-->
  317. <div class="flex_block">
  318. <span class="describe">现状情况</span
  319. ><span class="content">{{ houseInfoLookList.xzqk }}</span>
  320. </div>
  321. <!--1-->
  322. <div class="flex_block">
  323. <span class="describe">是否有流转意向</span
  324. ><span class="content">{{ houseInfoLookList.xzfwsfylzy }}</span>
  325. </div>
  326. <!--1-->
  327. <div class="flex_block">
  328. <span class="describe">租赁人</span
  329. ><span class="content">{{ houseInfoLookList.zlrxm }}</span>
  330. </div>
  331. <!--1-->
  332. <div class="flex_block">
  333. <span class="describe">租赁剩余年限</span
  334. ><span class="content">{{ houseInfoLookList.zlsynx }}年</span>
  335. </div>
  336. <!--1-->
  337. <div class="flex_block">
  338. <span class="describe">租赁合同截止日期</span
  339. ><span class="content">{{ houseInfoLookList.zlhtjzrq }}</span>
  340. </div>
  341. <!--上传图片-->
  342. <div class="uploadPictures_block">
  343. <div class="statusQuo">
  344. <div
  345. class="picture"
  346. v-if="houseInfoLookList.behindHouse == ''"
  347. ></div>
  348. <div class="picture" v-if="houseInfoLookList.behindHouse != ''">
  349. <img :src="houseInfoLookList.behindHouse" />
  350. </div>
  351. <div class="describe">现<br />状<br />图<br />片</div>
  352. </div>
  353. <div class="statusQuo">
  354. <div
  355. class="picture"
  356. v-if="houseInfoLookList.frontHouse == ''"
  357. ></div>
  358. <div class="picture" v-if="houseInfoLookList.frontHouse != ''">
  359. <img :src="houseInfoLookList.frontHouse" />
  360. </div>
  361. <div class="describe">历<br />史<br />图<br />片</div>
  362. </div>
  363. </div>
  364. <!--编辑-->
  365. <div class="editor_block">
  366. <div class="editor_icon" @click="editnfdInfo"></div>
  367. </div>
  368. </div>
  369. <!---农地-->
  370. <div class="content_mian" v-else-if="farmhouseStatus == 1">
  371. <!--内容-->
  372. <div class="serial_flex">
  373. <div class="number">
  374. 农地编号<span>{{ landInfoLookList.xh }}</span>
  375. </div>
  376. <div class="localhref" @click="houseLandLookInfo('hide')"></div>
  377. </div>
  378. <!--1-->
  379. <div class="flex_block">
  380. <span class="describe">农地使用人名称</span
  381. ><span class="content">{{ landInfoLookList.syrmc }}</span>
  382. </div>
  383. <!--1-->
  384. <div class="flex_block">
  385. <span class="describe">村名</span
  386. ><span class="content">{{ landInfoLookList.cm }}</span>
  387. </div>
  388. <!--1-->
  389. <div class="flex_block">
  390. <span class="describe">是否有流转意向</span
  391. ><span class="content">{{ landInfoLookList.sfylzyx }}</span>
  392. </div>
  393. <!--1-->
  394. <div class="flex_block">
  395. <span class="describe">土地面积</span
  396. ><span class="content">大约{{ landInfoLookList.mj }}亩</span>
  397. </div>
  398. <!--1-->
  399. <div class="flex_block">
  400. <span class="describe">农用地类型</span
  401. ><span class="content">大约{{ landInfoLookList.nydlx }}</span>
  402. </div>
  403. <!--1-->
  404. <div class="flex_block">
  405. <span class="describe">现状情况</span
  406. ><span class="content">{{ landInfoLookList.xzqk }}</span>
  407. </div>
  408. <!--1-->
  409. <div class="flex_block">
  410. <span class="describe">承包人</span
  411. ><span class="content">{{ landInfoLookList.cbrmc }}</span>
  412. </div>
  413. <!--1-->
  414. <div class="flex_block">
  415. <span class="describe">流转剩余年限</span
  416. ><span class="content">{{ landInfoLookList.lzsynx }}年</span>
  417. </div>
  418. <!--1-->
  419. <div class="flex_block">
  420. <span class="describe">流转合同截止日期</span
  421. ><span class="content">{{ landInfoLookList.lzhtjzrq }}</span>
  422. </div>
  423. <!--上传图片-->
  424. <div class="uploadPictures_block">
  425. <div class="statusQuo">
  426. <div class="picture" v-if="landInfoLookList.behindland == ''"></div>
  427. <div class="picture" v-if="landInfoLookList.behindland != ''">
  428. <img :src="landInfoLookList.behindland" />
  429. </div>
  430. <div class="describe">现<br />状<br />图<br />片</div>
  431. </div>
  432. <div class="statusQuo">
  433. <div class="picture" v-if="landInfoLookList.frontland == ''"></div>
  434. <div class="picture" v-if="landInfoLookList.frontland != ''">
  435. <img :src="landInfoLookList.frontland" />
  436. </div>
  437. <div class="describe">历<br />史<br />图<br />片</div>
  438. </div>
  439. </div>
  440. <!--编辑-->
  441. <div class="editor_block">
  442. <div class="editor_icon" @click="editnfdInfo"></div>
  443. </div>
  444. </div>
  445. </div>
  446. <!--房地全部信息编辑-->
  447. <van-overlay
  448. :show="landHomesteadEditVisbile"
  449. @click="landHomesteadEditCancel"
  450. />
  451. <div
  452. class="landHomesteadEdit_wrap"
  453. v-show="landHomesteadEditVisbile"
  454. style="bottom: 0"
  455. >
  456. <div class="content_mian" ref="landHomesteadEditWrap">
  457. <div class="info_title">
  458. {{ this.farmhouseStatus == 0 ? "录入宗地信息" : "录入农地信息" }}
  459. </div>
  460. <!-- 农房 -->
  461. <div
  462. class="flex_main"
  463. v-if="this.farmhouseStatus == 0"
  464. :style="{ height: landHomesteadEditWrapHeight + 'px' }"
  465. >
  466. <div class="flex_block">
  467. <div class="number_s50 mr50">
  468. <div class="title_m">农房编号</div>
  469. <div class="input_m">
  470. <van-field
  471. v-model="houseInfoList.xh"
  472. placeholder="农房编号"
  473. class="landHomesteadEdit_input"
  474. />
  475. </div>
  476. </div>
  477. <div class="number_s50">
  478. <div class="title_m">房屋所有人名称</div>
  479. <div class="input_m">
  480. <van-field
  481. v-model="houseInfoList.fwsyrmc"
  482. placeholder="房屋所有人名称"
  483. class="landHomesteadEdit_input"
  484. />
  485. </div>
  486. </div>
  487. </div>
  488. <!--1-->
  489. <div class="flex_block">
  490. <div class="number_s60 mr50">
  491. <div class="title_m">地址</div>
  492. <div class="input_m">
  493. <van-field
  494. v-model="houseInfoList.dz"
  495. placeholder="地址"
  496. class="landHomesteadEdit_input"
  497. />
  498. </div>
  499. </div>
  500. <div class="number_s40">
  501. <div class="title_m">土地性质</div>
  502. <div class="input_m select">
  503. <i class="dropDown_icon"></i>
  504. <van-field
  505. v-model="houseInfoList.tdxz"
  506. readonly
  507. clickable
  508. name="picker"
  509. placeholder="土地性质"
  510. class="landHomesteadEdit_input"
  511. @click="tdxzOptionsVibile = true"
  512. />
  513. <van-popup v-model="tdxzOptionsVibile" position="bottom">
  514. <van-picker
  515. show-toolbar
  516. :columns="tdxzOptions"
  517. value-key="dictLabel"
  518. @confirm="tdxzOptionsFun"
  519. @cancel="tdxzOptionsVibile = false"
  520. />
  521. </van-popup>
  522. </div>
  523. </div>
  524. </div>
  525. <!--1-->
  526. <div class="flex_block">
  527. <div class="number_s35 mr50">
  528. <div class="title_m">是否有审批手续</div>
  529. <div class="input_m select">
  530. <i class="dropDown_icon"></i>
  531. <van-field
  532. v-model="houseInfoList.sfyspsx"
  533. readonly
  534. clickable
  535. name="picker"
  536. placeholder="审批手续"
  537. class="landHomesteadEdit_input"
  538. @click="xfCirculationVisbile = true"
  539. />
  540. <van-popup v-model="xfCirculationVisbile" position="bottom">
  541. <van-picker
  542. show-toolbar
  543. :columns="xfApprovalOptions"
  544. @confirm="xfCirculationFun"
  545. @cancel="xfCirculationVisbile = false"
  546. />
  547. </van-popup>
  548. </div>
  549. </div>
  550. <div class="number_s35 mr50">
  551. <div class="title_m">建筑面积</div>
  552. <div class="input_m about">
  553. <span class="about_symbol">≈</span>
  554. <van-field
  555. v-model="houseInfoList.jzmj"
  556. placeholder="建筑面积"
  557. type="number"
  558. class="landHomesteadEdit_input"
  559. />
  560. </div>
  561. </div>
  562. <div class="number_s30">
  563. <div class="title_m">现状情况</div>
  564. <div class="input_m select">
  565. <i class="dropDown_icon"></i>
  566. <!-- -->
  567. <van-field
  568. v-model="houseInfoList.xzqk"
  569. readonly
  570. clickable
  571. name="picker"
  572. placeholder="现状情况"
  573. class="landHomesteadEdit_input"
  574. @click="xzqkOptionsVisbile = true"
  575. />
  576. <van-popup v-model="xzqkOptionsVisbile" position="bottom">
  577. <van-picker
  578. show-toolbar
  579. :columns="xzqkOptions"
  580. @confirm="xzqkOptionsFun"
  581. value-key="dictLabel"
  582. @cancel="xzqkOptionsVisbile = false"
  583. />
  584. </van-popup>
  585. </div>
  586. </div>
  587. </div>
  588. <!--1-->
  589. <div class="flex_block">
  590. <div class="number_s50 mr50">
  591. <div class="title_m">房屋所有权证号</div>
  592. <div class="input_m">
  593. <van-field
  594. v-model="houseInfoList.fwsyqh"
  595. placeholder="房屋所有权证号"
  596. class="landHomesteadEdit_input"
  597. />
  598. </div>
  599. </div>
  600. <div class="number_s50">
  601. <div class="title_m">土地证号</div>
  602. <div class="input_m">
  603. <van-field
  604. v-model="houseInfoList.tdzh"
  605. placeholder="土地证号"
  606. class="landHomesteadEdit_input"
  607. />
  608. </div>
  609. </div>
  610. </div>
  611. <!--1-->
  612. <div class="flex_block">
  613. <div class="number_s35 mr50">
  614. <div class="title_m">房屋类型</div>
  615. <div class="input_m select">
  616. <i class="dropDown_icon"></i>
  617. <van-field
  618. v-model="houseInfoList.tdfl"
  619. readonly
  620. clickable
  621. name="picker"
  622. placeholder="房屋类型"
  623. class="landHomesteadEdit_input"
  624. @click="fwdlxOptionsVibile = true"
  625. />
  626. <van-popup v-model="fwdlxOptionsVibile" position="bottom">
  627. <van-picker
  628. show-toolbar
  629. :columns="fwdlxOptions"
  630. value-key="dictLabel"
  631. @confirm="fwdlxOptionsFun"
  632. @cancel="fwdlxOptionsVibile = false"
  633. />
  634. </van-popup>
  635. </div>
  636. </div>
  637. <div class="number_s35 mr50">
  638. <div class="title_m">土地面积</div>
  639. <div class="input_m about">
  640. <span class="about_symbol">≈</span>
  641. <van-field
  642. v-model="houseInfoList.tdmj"
  643. placeholder="土地面积"
  644. type="number"
  645. class="landHomesteadEdit_input"
  646. />
  647. </div>
  648. </div>
  649. <div class="number_s30">
  650. <div class="title_m">是否有流转意向</div>
  651. <div class="input_m select">
  652. <i class="dropDown_icon"></i>
  653. <van-field
  654. v-model="houseInfoList.xzfwsfylzy"
  655. readonly
  656. clickable
  657. name="picker"
  658. placeholder="是否有流转意向"
  659. class="landHomesteadEdit_input"
  660. @click="xflzCirculationVisbile = true"
  661. />
  662. <van-popup v-model="xflzCirculationVisbile" position="bottom">
  663. <van-picker
  664. show-toolbar
  665. :columns="xfCirculationOptions"
  666. @confirm="xflzCirculationFun"
  667. @cancel="xflzCirculationVisbile = false"
  668. />
  669. </van-popup>
  670. </div>
  671. </div>
  672. </div>
  673. <!--1-->
  674. <div class="flex_block">
  675. <div class="number_s50 mr50">
  676. <div class="title_m">租赁人</div>
  677. <div class="input_m">
  678. <van-field
  679. v-model="houseInfoList.zlrxm"
  680. placeholder="租赁人"
  681. class="landHomesteadEdit_input"
  682. />
  683. </div>
  684. </div>
  685. <div class="number_s50">
  686. <div class="title_m">租赁年限</div>
  687. <div class="input_m">
  688. <van-field
  689. v-model="houseInfoList.zlsynx"
  690. placeholder="租赁年限"
  691. class="landHomesteadEdit_input"
  692. />
  693. </div>
  694. </div>
  695. </div>
  696. <!--1-->
  697. <div class="flex_block">
  698. <div class="number_s100">
  699. <div class="title_m">租赁合同截止日期</div>
  700. <div class="input_m">
  701. <van-field
  702. v-model="houseInfoList.zlhtjzrq"
  703. placeholder="流转合同截止日期"
  704. class="landHomesteadEdit_input"
  705. readonly
  706. @click="houseHomesteadEditcalendar = true"
  707. />
  708. <van-calendar
  709. v-model="houseHomesteadEditcalendar"
  710. @confirm="houseHomesteadEdConfirm"
  711. :max-date="new Date(2025, 0, 31)"
  712. />
  713. </div>
  714. </div>
  715. </div>
  716. <!--2-->
  717. <div class="uploadPicturesFlex_block">
  718. <div class="title_m">上传图片</div>
  719. <div class="main_m">
  720. <van-uploader
  721. v-model="nfAddfileList"
  722. :after-read="nfAddimgonRead"
  723. :max-count="1"
  724. accept="image/gif, image/jpeg, image/png"
  725. />
  726. </div>
  727. </div>
  728. </div>
  729. <!-- 农地 -->
  730. <div
  731. class="flex_main"
  732. v-else-if="this.farmhouseStatus == 1"
  733. :style="{ height: landHomesteadEditWrapHeight + 'px' }"
  734. >
  735. <!--1-->
  736. <div class="flex_block">
  737. <div class="number_s50 mr50">
  738. <div class="title_m">农地编号</div>
  739. <div class="input_m">
  740. <van-field
  741. v-model="landInfoList.xh"
  742. placeholder="农地编号"
  743. class="landHomesteadEdit_input"
  744. />
  745. </div>
  746. </div>
  747. <div class="number_s50">
  748. <div class="title_m">农地使用人名称</div>
  749. <div class="input_m">
  750. <van-field
  751. v-model="landInfoList.syrmc"
  752. placeholder="农地使用人名称"
  753. class="landHomesteadEdit_input"
  754. />
  755. </div>
  756. </div>
  757. </div>
  758. <!--1-->
  759. <div class="flex_block">
  760. <div class="number_s60 mr50">
  761. <div class="title_m">现状情况</div>
  762. <div class="input_m select">
  763. <i class="dropDown_icon"></i>
  764. <van-field
  765. v-model="landInfoList.xzqk"
  766. readonly
  767. clickable
  768. name="picker"
  769. placeholder="现状情况"
  770. class="landHomesteadEdit_input"
  771. @click="ndxzqkOptionsVisbile = true"
  772. />
  773. <van-popup v-model="ndxzqkOptionsVisbile" position="bottom">
  774. <van-picker
  775. show-toolbar
  776. :columns="ndxzqkOptions"
  777. @confirm="ndxzqkOptionsFun"
  778. value-key="dictLabel"
  779. @cancel="ndxzqkOptionsVisbile = false"
  780. />
  781. </van-popup>
  782. </div>
  783. </div>
  784. <div class="number_s40">
  785. <div class="title_m">农用地类型</div>
  786. <div class="input_m select">
  787. <i class="dropDown_icon"></i>
  788. <van-field
  789. v-model="landInfoList.nydlx"
  790. readonly
  791. clickable
  792. name="picker"
  793. placeholder="农用地类型"
  794. class="landHomesteadEdit_input"
  795. @click="nydlxOptionsVibile = true"
  796. />
  797. <van-popup v-model="nydlxOptionsVibile" position="bottom">
  798. <van-picker
  799. show-toolbar
  800. :columns="nydlxOptions"
  801. value-key="dictLabel"
  802. @confirm="nydlxOptionsFun"
  803. @cancel="nydlxOptionsVibile = false"
  804. />
  805. </van-popup>
  806. </div>
  807. </div>
  808. </div>
  809. <!--1-->
  810. <div class="flex_block">
  811. <div class="number_s50 mr50">
  812. <div class="title_m">土地面积</div>
  813. <div class="input_m about">
  814. <span class="about_symbol">≈</span>
  815. <van-field
  816. v-model="landInfoList.mj"
  817. placeholder="土地面积"
  818. type="number"
  819. class="landHomesteadEdit_input"
  820. />
  821. </div>
  822. </div>
  823. <div class="number_s50">
  824. <div class="title_m">是否有流转意向</div>
  825. <div class="input_m select">
  826. <i class="dropDown_icon"></i>
  827. <van-field
  828. v-model="landInfoList.sfylzyx"
  829. readonly
  830. clickable
  831. name="picker"
  832. placeholder="是否有流转意向"
  833. class="landHomesteadEdit_input"
  834. @click="xdlzCirculationVisbile = true"
  835. />
  836. <van-popup v-model="xdlzCirculationVisbile" position="bottom">
  837. <van-picker
  838. show-toolbar
  839. :columns="xdCirculationOptions"
  840. @confirm="xdCirculationOptionsFun"
  841. @cancel="xdlzCirculationVisbile = false"
  842. />
  843. </van-popup>
  844. </div>
  845. </div>
  846. </div>
  847. <!--1-->
  848. <div class="flex_block">
  849. <div class="number_s50 mr50">
  850. <div class="title_m">承包人</div>
  851. <div class="input_m">
  852. <van-field
  853. v-model="landInfoList.cbrmc"
  854. placeholder="承包人"
  855. class="landHomesteadEdit_input"
  856. />
  857. </div>
  858. </div>
  859. <div class="number_s50">
  860. <div class="title_m">流转剩余年限</div>
  861. <div class="input_m">
  862. <van-field
  863. v-model="landInfoList.lzsynx"
  864. placeholder="流转剩余年限"
  865. class="landHomesteadEdit_input"
  866. />
  867. </div>
  868. </div>
  869. </div>
  870. <!--1-->
  871. <div class="flex_block">
  872. <div class="number_s100">
  873. <div class="title_m">流转合同截止日期</div>
  874. <div class="input_m">
  875. <van-field
  876. v-model="landInfoList.lzhtjzrq"
  877. placeholder="流转合同截止日期"
  878. class="landHomesteadEdit_input"
  879. readonly
  880. @click="landHomesteadEditcalendar = true"
  881. />
  882. <van-calendar
  883. v-model="landHomesteadEditcalendar"
  884. @confirm="landHomesteadEdConfirm"
  885. :max-date="new Date(2025, 0, 31)"
  886. />
  887. </div>
  888. </div>
  889. </div>
  890. <!--2-->
  891. <div class="uploadPicturesFlex_block">
  892. <div class="title_m">上传图片</div>
  893. <div class="main_m">
  894. <van-uploader
  895. v-model="ndAddfileList"
  896. :after-read="ndAddimgonRead"
  897. :max-count="1"
  898. accept="image/gif, image/jpeg, image/png"
  899. />
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. <div class="footer_main">
  905. <div class="cancel" @click="landHomesteadEditCancel">取消</div>
  906. <div class="save" @click="landHomesteadEditSave">保存</div>
  907. </div>
  908. </div>
  909. <!--农地农房选择-->
  910. <div class="farmlandEditSwitch_wrap" v-show="farmlandEditSwitchVisbule">
  911. <div class="mains">
  912. <div class="close_btn" @click="farmlandEditFun"></div>
  913. <div class="farmhouse" @click="addNewPlot('farmhouse')">
  914. <div class="icons"></div>
  915. <p class="names">农房</p>
  916. </div>
  917. <div class="farmland" @click="addNewPlot('land')">
  918. <div class="icons"></div>
  919. <p class="names">农地</p>
  920. </div>
  921. </div>
  922. </div>
  923. </div>
  924. </template>
  925. <script>
  926. import $ from "jquery";
  927. import {
  928. hcBottomSearch,
  929. commonUpload,
  930. houseAdd,
  931. landAdd,
  932. treeselectByUser,
  933. deptGetId,
  934. houseEdit,
  935. landEdit,
  936. getLand,
  937. getHouse,
  938. currentLocation,
  939. coordinatesUpdateGeo,
  940. } from "@/api/homestead/index";
  941. import {uploadFileBase} from "../../api/authenticRight";
  942. import request from '@/utils/request'
  943. export default {
  944. name: "homesteadLogin",
  945. data() {
  946. return {
  947. //搜索
  948. seachText: "",
  949. selectionIconShow: false,
  950. //省市区区级list
  951. hcAreaInfoOption: [],
  952. //省市区区级显示
  953. villageVisbile: false,
  954. //选中的值
  955. villageValue: "",
  956. //选中村相关信息
  957. villageDataObj: {
  958. deptName: "  ", //村名
  959. },
  960. hcAreaInfoFieldName: {
  961. text: "label",
  962. value: "value",
  963. children: "children",
  964. },
  965. tGeoOrganization:{
  966. orgCode: ""
  967. },
  968. // 待租列表显示
  969. ishcBotton: false,
  970. // 待租列表 类型 0 农房 1 农地
  971. statusList: 0,
  972. //待租列表 房
  973. hcBottonHouseArr: [],
  974. //待租列表 地
  975. hcBottonLandArr: [],
  976. //搜索栏目-操作栏显隐
  977. searchBarOperVisbile: false,
  978. //地图绘制状态
  979. draw: {
  980. drawMapPolygon: false, //绘制地图
  981. },
  982. //地图绘制坐标存储
  983. coordinateList: "",
  984. //判断新增还是编辑 0 新增 1编辑
  985. currentType: 0,
  986. //新建选择农房土地弹窗 显隐
  987. farmlandEditSwitchVisbule: false, //false
  988. //编辑房屋土地块高度
  989. landHomesteadEditWrapHeight: 0,
  990. //编辑房屋土地信息--显隐
  991. landHomesteadEditVisbile: false,
  992. //查看编辑房屋、土地--类型 0 农房 1 农地
  993. farmhouseStatus: 0,
  994. //新增农房日历显影
  995. houseHomesteadEditcalendar: false,
  996. //新增农地日历显影
  997. landHomesteadEditcalendar: false,
  998. //选择顺序
  999. selectChooseOrder: 0,
  1000. //农地新增、修改保存数据
  1001. landInfoList: {
  1002. id: "", //String 是 主键id
  1003. orgCode: "", // String 否 行政区代码
  1004. cdm: "", // String 否 村代码
  1005. cm: "", //String 否 村名
  1006. xh: "", // String 否 序号
  1007. cbrmc: "", //String 否 承包人名称
  1008. syrmc: "", //String 否 使用人名称
  1009. nydlx: "", // String 否 农用地类型
  1010. mj: "", // String 否 面积
  1011. lzsynx: "", // String 否 流转剩余年限
  1012. lzhtjzrq: "", // String 否 日期
  1013. sfylzyx: "", // String 否 是否流转意向
  1014. xzqk: "", // String 否 现状情况
  1015. theGeom: "", //String 否 空间坐标
  1016. xzqkKey: "", // String 否 忽略
  1017. nydlxKey: "", // String 否 忽略
  1018. frontland: "", //String 否 图片前
  1019. behindland: "", //String 否 图片后
  1020. },
  1021. //农房新增、修改保存数据
  1022. houseInfoList: {
  1023. id: "", // String 是 主键id
  1024. orgCode: "", // String 否 行政区代码
  1025. cdm: "", // String 否 村代码
  1026. cm: "", // String 否 村名
  1027. xh: "", // String 否 序号
  1028. tdxz: "", //土地性质
  1029. fwsyrmc: "", // String 否 房屋所有人名称
  1030. fwsyqh: "", // String 否 房屋所有权证号
  1031. tdzh: "", // String 否 土地证号
  1032. jzmj: "", // String 否 建筑面积
  1033. tdmj: "", // String 否 土地面积
  1034. sfyspsx: "", // String 否 是否有审批手续
  1035. xzqk: "", // String 否 现状情况
  1036. theGeom: "", // String 否 空间坐标
  1037. xzqkKey: "", // String 否 忽略传null
  1038. tdxzKey: "", // String 否 忽略传null
  1039. frontHouse: "", // String 否 图片前
  1040. behindHouse: "", // String 否 图片后
  1041. dz: "", // String 否 地址
  1042. zlrxm: "", // String 否 租赁人姓名
  1043. zlhtjzrq: "", // 租赁合同截止日期
  1044. zlsynx: "", // 租赁剩余年限
  1045. xzfwsfylzy: "", // 闲置房屋是否有流转意愿
  1046. tdfl: "", // 集体/个人
  1047. },
  1048. //农地查看数据
  1049. landInfoLookList: {},
  1050. //农房查看数据
  1051. houseInfoLookList: {},
  1052. //农房 - 农房权属
  1053. tdxzOptions: [],
  1054. tdxzOptionsVibile: false, //农房 - 农房权属 -弹窗
  1055. tdxzOptionsValue: "", //农房 - 农房权属 值
  1056. //农房 - 房屋类型
  1057. fwdlxOptions: ["个人", "集体"],
  1058. fwdlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗
  1059. //农房 - 现状情况
  1060. xzqkOptions: [],
  1061. xzqkOptionsVisbile: false, //农房 - 现状情况 弹窗
  1062. //农房 - 是否有流转
  1063. xfCirculationOptions: ["是", "否"],
  1064. xflzCirculationVisbile: false, //农房 - 是否有流转 弹窗
  1065. //农房 - 是否有审批
  1066. xfApprovalOptions: ["是", "否"],
  1067. xfCirculationVisbile: false, //农房 - 是否有审批 -弹窗
  1068. //农地 -- 现状情况
  1069. ndxzqkOptions: [],
  1070. ndxzqkOptionsVisbile: false,
  1071. //农地 -- 农用地类型
  1072. nydlxOptions: [],
  1073. nydlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗
  1074. nydlxOptionsValue: "", // 农地 -- 农用地类型--值
  1075. //农地 -- 是否有流转意向
  1076. xdCirculationOptions: ["是", "否"],
  1077. xdlzCirculationVisbile: false, //农房 - 是否有流转 弹窗
  1078. //农房上传图片附件
  1079. nfAddfileList: [],
  1080. //农地上传图片附件
  1081. ndAddfileList: [],
  1082. // 当前是否地图点击状态
  1083. hasTable: false,
  1084. //查看农地\农房 显隐
  1085. landHomesteadDetailsVisibile: false,
  1086. windowHeight: 0,
  1087. //农房列表 显影
  1088. homesteadListStatus: false,
  1089. geoJson: "",
  1090. };
  1091. },
  1092. mounted() {
  1093. this.initAxios();
  1094. let windowHeight = document.documentElement.clientHeight;
  1095. this.windowHeight = windowHeight;
  1096. },
  1097. methods: {
  1098. //编辑农地信息
  1099. editnfdInfo(type) {
  1100. this.currentType = 1;
  1101. this.farmlandEditSwitchVisbuleFun("hide");
  1102. this.landHomesteadEditVisbileFun("show");
  1103. },
  1104. //显示农地\农房详情
  1105. houseLandLookInfo(type, status) {
  1106. if (type == "show") {
  1107. if (status == "house") {
  1108. $("#texiao_fang").val(this.houseInfoList.fwsyrmc);
  1109. $("#texiao_fang").trigger("click");
  1110. } else {
  1111. $("#texiao_di").val(this.landInfoList.syrmc);
  1112. $("#texiao_di").trigger("click");
  1113. }
  1114. this.houseLandLookAnmitFun("show");
  1115. } else {
  1116. this.houseLandLookAnmitFun("hide");
  1117. }
  1118. },
  1119. toggleSearch() {
  1120. $("#query").trigger("click");
  1121. },
  1122. //显示农地\农房详情 动画
  1123. houseLandLookAnmitFun(type) {
  1124. if (type == "show") {
  1125. this.landHomesteadDetailsVisibile = true;
  1126. $(".landHomesteadDetails_wrap").css({ bottom: "-100vh" });
  1127. $(".landHomesteadDetails_wrap").animate(
  1128. {
  1129. bottom: "0",
  1130. },
  1131. 300
  1132. );
  1133. } else {
  1134. $(".landHomesteadDetails_wrap").css({ bottom: "0" });
  1135. $(".landHomesteadDetails_wrap").animate(
  1136. {
  1137. bottom: "-100vh",
  1138. },
  1139. 300
  1140. );
  1141. setTimeout(() => {
  1142. this.landHomesteadDetailsVisibile = false;
  1143. }, 300);
  1144. }
  1145. },
  1146. //绘制多边形地图
  1147. drawMapPolygonFun() {
  1148. let drawMapPolygon = this.draw.drawMapPolygon;
  1149. if (drawMapPolygon == false) {
  1150. if (this.coordinateList == "") {
  1151. this.$set(this.draw, "drawMapPolygon", true);
  1152. $("#drawPolygon").trigger("click");
  1153. } else {
  1154. this.$dialog
  1155. .confirm({
  1156. title: "提示",
  1157. message: "是否重新绘制画图",
  1158. })
  1159. .then(() => {
  1160. // on confirm
  1161. this.coordinateList = "";
  1162. this.$set(this.draw, "drawMapPolygon", true);
  1163. $("#drawPolygon").trigger("click");
  1164. })
  1165. .catch(() => {
  1166. // on cancel
  1167. });
  1168. }
  1169. } else {
  1170. $("#drawRemove").trigger("click");
  1171. this.$set(this.draw, "drawMapPolygon", false);
  1172. }
  1173. },
  1174. //新建选择农房土地弹窗
  1175. farmlandEditSwitchFun() {
  1176. if (this.coordinateList == "") {
  1177. this.$toast("请先完成绘制");
  1178. return false;
  1179. }
  1180. this.currentType = 0;
  1181. this.farmlandEditSwitchVisbuleFun("show");
  1182. // this.searchBarOperVisbile = false;
  1183. },
  1184. //关闭选择农房土地
  1185. farmlandEditFun() {
  1186. this.farmlandEditSwitchVisbuleFun("hide");
  1187. //初始化地图
  1188. this.initDraw();
  1189. },
  1190. addNewPlot(type) {
  1191. this.farmlandEditSwitchVisbuleFun("hide");
  1192. this.landHomesteadEditVisbileFun("show");
  1193. //farmhouse农房 land农地
  1194. if (type == "farmhouse") {
  1195. this.farmhouseStatus = 0;
  1196. } else if (type == "land") {
  1197. this.farmhouseStatus = 1;
  1198. }
  1199. },
  1200. //新增地块 编辑页 显影
  1201. landHomesteadEditVisbileFun(type) {
  1202. if (type == "show") {
  1203. this.landHomesteadEditVisbile = true;
  1204. $(".landHomesteadEdit_wrap").css({ bottom: "-100vh" });
  1205. $(".landHomesteadEdit_wrap").animate(
  1206. {
  1207. bottom: "0",
  1208. },
  1209. 300
  1210. );
  1211. } else {
  1212. $(".landHomesteadEdit_wrap").css({ bottom: "0" });
  1213. $(".landHomesteadEdit_wrap").animate(
  1214. {
  1215. bottom: "-100vh",
  1216. },
  1217. 300
  1218. );
  1219. setTimeout(() => {
  1220. this.landHomesteadEditVisbile = false;
  1221. }, 300);
  1222. }
  1223. setTimeout(() => {
  1224. //新建土地、房屋高度
  1225. let landHomesteadEditWrap =
  1226. this.$refs.landHomesteadEditWrap.offsetHeight;
  1227. let landHomesteadEditWrapPdg = $(
  1228. ".landHomesteadEdit_wrap .content_mian"
  1229. )
  1230. .css("paddingTop")
  1231. .replace("px", "");
  1232. let landHomesteadEditWrapTitHei = $(
  1233. ".landHomesteadEdit_wrap .info_title"
  1234. )
  1235. .css("height")
  1236. .replace("px", "");
  1237. if (
  1238. landHomesteadEditWrap &&
  1239. landHomesteadEditWrapPdg &&
  1240. landHomesteadEditWrapTitHei
  1241. ) {
  1242. this.landHomesteadEditWrapHeight =
  1243. landHomesteadEditWrap -
  1244. landHomesteadEditWrapPdg * 2 -
  1245. landHomesteadEditWrapTitHei -
  1246. 10;
  1247. }
  1248. }, 301);
  1249. },
  1250. //选择农地 农房显影
  1251. farmlandEditSwitchVisbuleFun(type) {
  1252. if (type == "show") {
  1253. this.farmlandEditSwitchVisbule = true;
  1254. $(".farmlandEditSwitch_wrap").css({ opacity: "0" });
  1255. $(".farmlandEditSwitch_wrap").animate(
  1256. {
  1257. opacity: "1",
  1258. },
  1259. 300
  1260. );
  1261. } else {
  1262. $(".farmlandEditSwitch_wrap").css({ opacity: "1" });
  1263. $(".farmlandEditSwitch_wrap").animate(
  1264. {
  1265. opacity: "0",
  1266. },
  1267. 300
  1268. );
  1269. setTimeout(() => {
  1270. this.farmlandEditSwitchVisbule = false;
  1271. }, 300);
  1272. }
  1273. },
  1274. //新增地块 编辑页 取消
  1275. landHomesteadEditCancel() {
  1276. this.landHomesteadEditVisbileFun("hide");
  1277. //新增信息显示
  1278. if (this.currentType == 0) {
  1279. this.farmlandEditSwitchVisbuleFun("show");
  1280. }
  1281. },
  1282. //新增地块 编辑页 保存
  1283. landHomesteadEditSave() {
  1284. if (this.farmhouseStatus == 0) {
  1285. //农房
  1286. let houseInfoList = this.houseInfoList;
  1287. houseInfoList.theGeom = this.coordinateList;
  1288. houseInfoList.orgCode = this.villageDataObj.orgCode;
  1289. houseInfoList.cdm = this.villageDataObj.orgCode;
  1290. houseInfoList.cm = this.villageDataObj.deptName;
  1291. if (houseInfoList.xh == undefined || houseInfoList.xh == "") {
  1292. this.$toast("请填写农房编号");
  1293. return false;
  1294. } else if (
  1295. houseInfoList.fwsyrmc == undefined ||
  1296. houseInfoList.fwsyrmc == ""
  1297. ) {
  1298. this.$toast("请填写房屋所有人名称");
  1299. return false;
  1300. } else if (houseInfoList.dz == undefined || houseInfoList.dz == "") {
  1301. this.$toast("请填写地址");
  1302. return false;
  1303. } else if (
  1304. houseInfoList.tdxz == undefined ||
  1305. houseInfoList.tdxz == ""
  1306. ) {
  1307. this.$toast("请选择土地性质");
  1308. return false;
  1309. } else if (
  1310. houseInfoList.sfyspsx == undefined ||
  1311. houseInfoList.sfyspsx == ""
  1312. ) {
  1313. this.$toast("请选择是否有审批手续");
  1314. return false;
  1315. } else if (
  1316. houseInfoList.jzmj == undefined ||
  1317. houseInfoList.jzmj == ""
  1318. ) {
  1319. this.$toast("请填写建筑面积");
  1320. return false;
  1321. } else if (
  1322. houseInfoList.xzqk == undefined ||
  1323. houseInfoList.xzqk == ""
  1324. ) {
  1325. this.$toast("请选择现状情况");
  1326. return false;
  1327. } else if (
  1328. houseInfoList.fwsyqh == undefined ||
  1329. houseInfoList.fwsyqh == ""
  1330. ) {
  1331. this.$toast("请填写房屋所有权证号");
  1332. return false;
  1333. } else if (
  1334. houseInfoList.tdzh == undefined ||
  1335. houseInfoList.tdzh == ""
  1336. ) {
  1337. this.$toast("请填写土地证号");
  1338. return false;
  1339. } else if (
  1340. houseInfoList.tdmj == undefined ||
  1341. houseInfoList.tdmj == ""
  1342. ) {
  1343. this.$toast("请填写土地面积");
  1344. return false;
  1345. } else if (
  1346. houseInfoList.xzfwsfylzy == undefined ||
  1347. houseInfoList.xzfwsfylzy == ""
  1348. ) {
  1349. this.$toast("请选择是否有流转意愿");
  1350. return false;
  1351. } else if (
  1352. houseInfoList.tdfl == undefined ||
  1353. houseInfoList.tdfl == ""
  1354. ) {
  1355. this.$toast("请选择房屋类型");
  1356. return false;
  1357. }
  1358. //新增
  1359. if (this.currentType == 0) {
  1360. if (houseInfoList.theGeom == "") {
  1361. this.$toast("请选择地图坐标");
  1362. return false;
  1363. }
  1364. this.$dialog
  1365. .confirm({
  1366. title: "新建农房信息",
  1367. message: "是否保存信息或修改信息",
  1368. })
  1369. .then(() => {
  1370. // on confirm
  1371. houseInfoList.theGeom ="["+houseInfoList.theGeom+"]"
  1372. //houseInfoList.frontHouse = location.protocol+"//"+location.host+request.defaults.baseURL+ this.houseInfoList.frontHouse;
  1373. //console.log("地址"+houseInfoList.frontHouse);
  1374. houseAdd(houseInfoList).then((res) => {
  1375. if (res.code == 200) {
  1376. this.landHomesteadEditVisbileFun("hide");
  1377. //新增
  1378. this.$toast("新建农房信息成功");
  1379. this.initDraw();
  1380. $("#drawRemove").trigger("click");
  1381. $("#drawReset").trigger("click");
  1382. this.coordinateList = "";
  1383. // getHouse(houseInfoList.id).then((res) => {
  1384. // if (res.code == 200) {
  1385. // this.farmhouseStatus=0;
  1386. // this.houseInfoList.frontHouse =res.data.frontHouse;
  1387. // this.houseInfoList.behindHouse =res.data.behindHouse;
  1388. // }
  1389. // })
  1390. this.switchLoad();
  1391. this.tGeoOrganization.orgCode = houseInfoList.orgCode;
  1392. coordinatesUpdateGeo(this.tGeoOrganization).then((res) => {
  1393. });
  1394. }
  1395. });
  1396. })
  1397. .catch(() => {
  1398. // on cancel
  1399. });
  1400. } else {
  1401. this.$dialog
  1402. .confirm({
  1403. title: "修改农房信息",
  1404. message: "是否保存信息或修改信息",
  1405. })
  1406. .then(() => {
  1407. // on confirm
  1408. //houseInfoList.frontHouse = location.protocol+"//"+location.host+request.defaults.baseURL+ this.houseInfoList.frontHouse;
  1409. houseEdit(houseInfoList).then((res) => {
  1410. if (res.code == 200) {
  1411. this.landHomesteadEditVisbileFun("hide");
  1412. this.$toast("修改农房信息成功");
  1413. getHouse(houseInfoList.id).then((res) => {
  1414. if (res.code == 200) {
  1415. this.farmhouseStatus = 0;
  1416. this.houseInfoList.frontHouse = res.data.frontHouse;
  1417. this.houseInfoList.behindHouse = res.data.behindHouse;
  1418. }
  1419. });
  1420. this.houseInfoLookList = this.houseInfoList;
  1421. // this.initDraw();
  1422. $("#drawRemove").trigger("click");
  1423. $("#drawReset").trigger("click");
  1424. this.coordinateList = "";
  1425. }
  1426. });
  1427. })
  1428. .catch(() => {
  1429. // on cancel
  1430. });
  1431. //编辑
  1432. }
  1433. } else if (this.farmhouseStatus == 1) {
  1434. // orgCode: "", // String 否 行政区代码
  1435. // cdm: "", // String 否 村代码
  1436. // cm: "", //String 否 村名
  1437. //农地
  1438. let landInfoList = this.landInfoList;
  1439. landInfoList.theGeom = this.coordinateList;
  1440. landInfoList.orgCode = this.villageDataObj.orgCode;
  1441. landInfoList.cdm = this.villageDataObj.orgCode;
  1442. landInfoList.cm = this.villageDataObj.deptName;
  1443. if (landInfoList.xh == undefined || landInfoList.xh == "") {
  1444. this.$toast("请填写农地编号");
  1445. return false;
  1446. } else if (
  1447. landInfoList.syrmc == undefined ||
  1448. landInfoList.syrmc == ""
  1449. ) {
  1450. this.$toast("请填写农地使用人名称");
  1451. return false;
  1452. } else if (landInfoList.xzqk == undefined || landInfoList.xzqk == "") {
  1453. this.$toast("请填写现状情况");
  1454. return false;
  1455. } else if (
  1456. landInfoList.nydlx == undefined ||
  1457. landInfoList.nydlx == ""
  1458. ) {
  1459. this.$toast("请选择农用地类型");
  1460. return false;
  1461. } else if (landInfoList.mj == undefined || landInfoList.mj == "") {
  1462. this.$toast("请填写土地面积");
  1463. return false;
  1464. } else if (
  1465. landInfoList.sfylzyx == undefined ||
  1466. landInfoList.sfylzyx == ""
  1467. ) {
  1468. this.$toast("请选择是否流转意向");
  1469. return false;
  1470. }
  1471. //新增
  1472. if (this.currentType == 0) {
  1473. if (landInfoList.theGeom == "") {
  1474. this.$toast("请选择空间坐标");
  1475. return false;
  1476. }
  1477. this.$dialog
  1478. .confirm({
  1479. title: "新建农地信息",
  1480. message: "是否保存信息或修改信息",
  1481. })
  1482. .then(() => {
  1483. // on confirm
  1484. landInfoList.theGeom ="["+landInfoList.theGeom+"]"
  1485. //landInfoList.frontland = location.protocol+"//"+location.host+request.defaults.baseURL+ this.landInfoList.frontland;
  1486. //console.log("修改新增"+landInfoList.frontland)
  1487. landAdd(landInfoList).then((res) => {
  1488. if (res.code == 200) {
  1489. this.landHomesteadEditVisbileFun("hide");
  1490. //新增
  1491. this.initDraw();
  1492. $("#drawRemove").trigger("click");
  1493. $("#drawReset").trigger("click");
  1494. this.coordinateList = "";
  1495. this.$toast("新建农地信息成功");
  1496. //查询图层
  1497. // if(landInfoList.id !=null && landInfoList.id != ""){
  1498. // console.log(landInfoList.id );
  1499. // getLand(landInfoList.id).then((res) => {
  1500. // console.log(res);
  1501. // console.log(res.data.frontland);
  1502. // if (res.code == 200) {
  1503. // this.farmhouseStatus=1;
  1504. // this.landInfoList.frontland =res.data.frontland;
  1505. // this.landInfoList.behindland =res.data.behindland;
  1506. // }
  1507. // })
  1508. // }
  1509. //列表更新
  1510. this.switchLoad();
  1511. this.tGeoOrganization.orgCode = landInfoList.orgCode;
  1512. coordinatesUpdateGeo(this.tGeoOrganization).then((res) => {
  1513. });
  1514. }
  1515. });
  1516. })
  1517. .catch(() => {
  1518. // on cancel
  1519. });
  1520. } else {
  1521. this.$dialog
  1522. .confirm({
  1523. title: "修改农地信息",
  1524. message: "是否保存信息或修改信息",
  1525. })
  1526. .then(() => {
  1527. // on confirm
  1528. //landInfoList.frontland = location.protocol+"//"+location.host+request.defaults.baseURL+ this.landInfoList.frontland;
  1529. console.log("修改农地"+landInfoList.frontland)
  1530. landEdit(landInfoList).then((res) => {
  1531. if (res.code == 200) {
  1532. this.landHomesteadEditVisbileFun("hide");
  1533. this.$toast("修改农地信息成功");
  1534. //this.initDraw();
  1535. getLand(landInfoList.id).then((res) => {
  1536. if (res.code == 200) {
  1537. this.farmhouseStatus = 1;
  1538. this.landInfoList.frontland = res.data.frontland;
  1539. this.landInfoList.behindland = res.data.behindland;
  1540. }
  1541. });
  1542. this.landInfoLookList = this.landInfoList;
  1543. $("#drawRemove").trigger("click");
  1544. $("#drawReset").trigger("click");
  1545. this.coordinateList = "";
  1546. }
  1547. });
  1548. })
  1549. .catch(() => {
  1550. // on cancel
  1551. });
  1552. }
  1553. }
  1554. //保存成功触发
  1555. },
  1556. landHomesteadEdConfirm(value) {
  1557. //农地
  1558. this.landHomesteadEditcalendar = false;
  1559. this.landInfoList.lzhtjzrq = this.getDate(new Date(value));
  1560. },
  1561. houseHomesteadEdConfirm(value) {
  1562. //农房
  1563. this.houseHomesteadEditcalendar = false;
  1564. this.houseInfoList.zlhtjzrq = this.getDate(new Date(value));
  1565. },
  1566. getDate(date) {
  1567. //date是传过来的时间戳,注意需为13位,10位需*1000
  1568. //也可以不传,获取的就是当前时间
  1569. var time = new Date(date);
  1570. var year = time.getFullYear(); //年
  1571. var month = ("0" + (time.getMonth() + 1)).slice(-2); //月
  1572. var day = ("0" + time.getDate()).slice(-2); //日
  1573. var mydate = year + "-" + month + "-" + day;
  1574. return mydate;
  1575. },
  1576. //初始化绘制
  1577. initDraw() {
  1578. //清除数据
  1579. // $("#drawRemove").trigger("click");
  1580. // $("#drawReset").trigger("click");
  1581. // this.coordinateList = "";
  1582. //农地数据初始化
  1583. this.landInfoList = {
  1584. id: "", //String 是 主键id
  1585. orgCode: "", // String 否 行政区代码
  1586. cdm: "", // String 否 村代码
  1587. cm: "", //String 否 村名
  1588. xh: "", // String 否 序号
  1589. cbrmc: "", //String 否 承包人名称
  1590. syrmc: "", //String 否 使用人名称
  1591. nydlx: "", // String 否 农用地类型
  1592. mj: "", // String 否 面积
  1593. lzsynx: "", // String 否 流转剩余年限
  1594. zlhtjzrq: "", // String 否 日期
  1595. sfylzyx: "", // String 否 是否流转意向
  1596. xzqk: "", // String 否 现状情况
  1597. theGeom: "", //String 否 空间坐标
  1598. xzqkKey: "", // String 否 忽略
  1599. nydlxKey: "", // String 否 忽略
  1600. frontland: "", //String 否 图片前
  1601. behindland: "", //String 否 图片后
  1602. };
  1603. //农房数据初始化
  1604. this.houseInfoList = {
  1605. id: "", // String 是 主键id
  1606. orgCode: "", // String 否 行政区代码
  1607. cdm: "", // String 否 村代码
  1608. cm: "", // String 否 村名
  1609. xh: "", // String 否 序号
  1610. tdxz: "", //土地性质
  1611. fwsyrmc: "", // String 否 房屋所有人名称
  1612. fwsyqh: "", // String 否 房屋所有权证号
  1613. tdzh: "", // String 否 土地证号
  1614. jzmj: "", // String 否 建筑面积
  1615. tdmj: "", // String 否 土地面积
  1616. sfyspsx: "", // String 否 是否有审批手续
  1617. xzqk: "", // String 否 现状情况
  1618. theGeom: "", // String 否 空间坐标
  1619. xzqkKey: "", // String 否 忽略传null
  1620. tdxzKey: "", // String 否 忽略传null
  1621. frontHouse: "", // String 否 图片前
  1622. behindHouse: "", // String 否 图片后
  1623. dz: "", // String 否 地址
  1624. zlrxm: "", // String 否 租赁人姓名
  1625. zlhtjzrq: "", // 租赁合同截止日期
  1626. zlsynx: "", // 租赁剩余年限
  1627. xzfwsfylzy: "", // 闲置房屋是否有流转意愿
  1628. tdfl: "", // 集体/个人
  1629. };
  1630. //农房上传图片附件
  1631. this.nfAddfileList = [];
  1632. //农地上传图片附件
  1633. this.ndAddfileList = [];
  1634. //隐藏下方绘制地图操作栏
  1635. this.searchBarOperVisbile = false;
  1636. this.draw.drawMapPolygon = false; //绘制地图
  1637. },
  1638. initAxios() {
  1639. //获取区镇村
  1640. this.mapAreaSelectValue();
  1641. //农房---字典项
  1642. this.nfDictionary();
  1643. //农地---字典项
  1644. this.ndDictionary();
  1645. },
  1646. nfDictionary() {
  1647. //农房权属
  1648. this.getDicts("build_land_type").then((response) => {
  1649. this.tdxzOptions = response.data;
  1650. });
  1651. //农房情况
  1652. this.getDicts("geo_hc_house").then((response) => {
  1653. this.xzqkOptions = response.data;
  1654. });
  1655. },
  1656. ndDictionary() {
  1657. //农用地类型
  1658. this.getDicts("sub_object_type").then((response) => {
  1659. this.nydlxOptions = response.data;
  1660. });
  1661. //现状情况
  1662. this.getDicts("geo_hc_land").then((response) => {
  1663. this.ndxzqkOptions = response.data;
  1664. });
  1665. },
  1666. styleSteup() {
  1667. let smallTop = this.$refs.sliderSmall.getBoundingClientRect().top;
  1668. let smallLeft = this.$refs.sliderSmall.getBoundingClientRect().left;
  1669. $(".ol-zoom-out").css({
  1670. position: "absolute",
  1671. left: smallLeft + "px",
  1672. top: smallTop + "px",
  1673. width: "40px",
  1674. height: "26px",
  1675. zIndex: "999999",
  1676. cursor: "pointer",
  1677. opacity: "0",
  1678. });
  1679. $(".ol-overlaycontainer-stopevent").css({
  1680. zIndex: 9999,
  1681. });
  1682. let bigTop = this.$refs.sliderBig.getBoundingClientRect().top;
  1683. let bigLeft = this.$refs.sliderBig.getBoundingClientRect().left;
  1684. $(".ol-zoom-in").css({
  1685. position: "absolute",
  1686. left: bigLeft + "px",
  1687. top: bigTop + "px",
  1688. width: "40px",
  1689. height: "26px",
  1690. zIndex: "1005",
  1691. cursor: "pointer",
  1692. opacity: "0",
  1693. });
  1694. $(".ol-hidden ,.ol-collapsed").hide();
  1695. },
  1696. switchLoad() {
  1697. let objData = {
  1698. orgCode: this.villageDataObj.orgCode,
  1699. statusList: "1,2,3,4,5,6,7,8",
  1700. };
  1701. // //右侧详情农房农地列表
  1702. hcBottomSearch(objData).then((res) => {
  1703. let content = res.data;
  1704. //房
  1705. let houseArr = [];
  1706. let landArr = [];
  1707. //地
  1708. content.forEach((v, i) => {
  1709. if (v.type == "house") {
  1710. houseArr.push({
  1711. geo: v.geo,
  1712. mj: v.mj,
  1713. name: v.name,
  1714. type: v.type,
  1715. xh: v.xh,
  1716. xzqk: v.xzqk,
  1717. });
  1718. } else {
  1719. landArr.push({
  1720. geo: v.geo,
  1721. mj: v.mj,
  1722. name: v.name,
  1723. type: v.type,
  1724. xh: v.xh,
  1725. xzqk: v.xzqk,
  1726. });
  1727. }
  1728. });
  1729. this.hcBottonHouseArr = houseArr;
  1730. this.hcBottonLandArr = landArr;
  1731. this.ishcBotton = true;
  1732. });
  1733. },
  1734. mapAreaSelectValue() {
  1735. treeselectByUser().then((res) => {
  1736. if (res.code == 200) {
  1737. let content = res.data;
  1738. this.hcAreaInfoOption = content;
  1739. let currDeptId; //;= "169"
  1740. if (content[0].children && content[0].children.length != 0) {
  1741. if (
  1742. content[0].children[0].children &&
  1743. content[0].children[0].children.length != 0
  1744. ) {
  1745. if (
  1746. content[0].children[0].children[0].children &&
  1747. content[0].children[0].children[0].children.length != 0
  1748. ) {
  1749. currDeptId =
  1750. content[0].children[0].children[0].children[0].value;
  1751. } else {
  1752. currDeptId = content[0].children[0].children[0].value;
  1753. }
  1754. } else {
  1755. currDeptId = content[0].children[0].value;
  1756. }
  1757. } else {
  1758. currDeptId = content[0].value;
  1759. }
  1760. // console.log(currDeptId);
  1761. currentLocation().then((res) => {
  1762. if (res.code == 200) {
  1763. let content = res.data;
  1764. this.geoJson = content.geoJson;
  1765. //获取村详细信息
  1766. this.deptGetFun(currDeptId);
  1767. //获取地图
  1768. this.mapBackground();
  1769. //设置缩放按钮位置
  1770. this.styleSteup();
  1771. }
  1772. });
  1773. }
  1774. });
  1775. },
  1776. //选择村
  1777. hcAreaInfoFinish({ value, selectedOptions, tabIndex }) {
  1778. this.deptGetFun(value);
  1779. },
  1780. //通过deptId获取经纬度
  1781. deptGetFun(value) {
  1782. deptGetId(value).then((res) => {
  1783. this.villageVisbile = false;
  1784. let content = res.data;
  1785. this.villageDataObj = content;
  1786. this.initDraw();
  1787. $("#cun").trigger("change");
  1788. this.switchLoad();
  1789. });
  1790. },
  1791. searchBarOperFun(statue) {
  1792. if (statue == "true") {
  1793. this.searchBarOperVisbile = true;
  1794. } else {
  1795. this.searchBarOperVisbile = false;
  1796. //初始化绘制
  1797. // this.coordinateList = "";
  1798. this.initDraw();
  1799. }
  1800. },
  1801. /*右侧列表 --展开收缩*/
  1802. selectionPush() {
  1803. this.selectionIconShow = true;
  1804. this.homesteadListStatus = true;
  1805. $(".homesteadList_wrap").animate(
  1806. {
  1807. right: "0",
  1808. },
  1809. 300
  1810. );
  1811. },
  1812. homesteadListShrink() {
  1813. this.selectionIconShow = false;
  1814. $(".homesteadList_wrap").animate(
  1815. {
  1816. right: "-300px",
  1817. },
  1818. 300
  1819. );
  1820. setTimeout(() => {
  1821. this.homesteadListStatus = false;
  1822. }, 300);
  1823. },
  1824. villageVisbileFun() {
  1825. this.villageVisbile = true;
  1826. },
  1827. housingTypes(type) {
  1828. // if (type == "0") {
  1829. this.statusList = type;
  1830. this.selectChooseOrder = 0;
  1831. },
  1832. housingSerial(item, index) {
  1833. this.selectChooseOrder = index;
  1834. if (item.type == "house") {
  1835. $("#texiao_fang").val(item.name);
  1836. $("#texiao_fang").trigger("click");
  1837. } else {
  1838. $("#texiao_di").val(item.name);
  1839. $("#texiao_di").trigger("click");
  1840. }
  1841. },
  1842. //关闭选择地址弹窗
  1843. hcAreaInfoClose() {
  1844. this.villageVisbile = false;
  1845. },
  1846. //加载地图
  1847. mapBackground() {
  1848. let _this = this;
  1849. var projection = new ol.proj.Projection({
  1850. //地图投影类型
  1851. code: "EPSG:3857",
  1852. units: "degrees",
  1853. //extent:extent
  1854. });
  1855. //影像图 -----------------------------start
  1856. var attributions =
  1857. '<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> ' +
  1858. '<a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>';
  1859. var aerial = new ol.layer.Tile({
  1860. source: new ol.source.XYZ({
  1861. attributions: attributions,
  1862. url: "http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  1863. }),
  1864. isGroup: true,
  1865. visible: true,
  1866. name: "天地图路网-卫星影像图",
  1867. });
  1868. var map = new ol.Map({
  1869. layers: [aerial],
  1870. //layers: [newwms],
  1871. projection: projection,
  1872. target: "mapWrap",
  1873. view: new ol.View({
  1874. center: ol.proj.fromLonLat([122.145662, 37.369575]),
  1875. zoom: 10.2,
  1876. minZoom: 10, //地图缩小限制
  1877. maxZoom: 18.9, //地图放大限制
  1878. }),
  1879. });
  1880. //地图属性定义
  1881. var nongZt = ["house", "land"];
  1882. var texiao_layer_fang;
  1883. var texiao_layer_di;
  1884. var delete_map = ["mapHouse", "mapLand"];
  1885. //业务图层 wfs服务 属性查询开始 ------------------start
  1886. /**
  1887. * @api wfs服务空间查询
  1888. * @param {*} wfsurl
  1889. * @param {*} srsName
  1890. * @param {*} typeName
  1891. * @param {*} drawType
  1892. * @param {option 可选} geometryField
  1893. */
  1894. var wmsSource = new ol.source.TileWMS({
  1895. //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
  1896. url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
  1897. //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
  1898. params: {
  1899. LAYERS: "nsgk_hc:nsgk_hc_all",
  1900. //'LAYERS': 'mywork_mysql:t_geo_hc_land',
  1901. TILED: true,
  1902. SRID: 3857,
  1903. serverType: "geoserver",
  1904. crossOrigin: "anonymous",
  1905. },
  1906. });
  1907. map.on("pointermove", function (evt) {
  1908. if (evt.dragging) {
  1909. return;
  1910. }
  1911. var pixel = map.getEventPixel(evt.originalEvent);
  1912. var hit = map.forEachLayerAtPixel(pixel, function () {
  1913. return true;
  1914. });
  1915. map.getTargetElement().style.cursor = hit ? "pointer" : "";
  1916. });
  1917. //属性查询结束 ------------------end
  1918. var shitu;
  1919. require(["@/assets/maps/plotPremises_" + _this.geoJson], function (data) {
  1920. shitu = new ol.layer.Vector({
  1921. title: "add Layer",
  1922. source: new ol.source.Vector({
  1923. projection: projection,
  1924. // url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变
  1925. // format: new ol.format.GeoJSON(),
  1926. features: new ol.format.GeoJSON().readFeatures(data),
  1927. }),
  1928. style: new ol.style.Style({
  1929. fill: new ol.style.Fill({
  1930. //矢量图层填充颜色,以及透明度
  1931. color: "rgba(0,0,0,0)",
  1932. }),
  1933. stroke: new ol.style.Stroke({
  1934. //边界样式
  1935. color: "#47c68f",
  1936. width: 3,
  1937. }),
  1938. }),
  1939. });
  1940. // console.log(shitu);
  1941. map.addLayer(shitu);
  1942. });
  1943. var huancui_zhen;
  1944. require(["@/assets/maps/qu_" + _this.geoJson], function (data) {
  1945. huancui_zhen = new ol.layer.Vector({
  1946. title: "add huancui_zhen",
  1947. source: new ol.source.Vector({
  1948. projection: projection,
  1949. features: new ol.format.GeoJSON().readFeatures(data),
  1950. }),
  1951. style: new ol.style.Style({
  1952. fill: new ol.style.Fill({
  1953. //矢量图层填充颜色,以及透明度
  1954. color: "rgba(27,50,56,0.8)",
  1955. }),
  1956. }),
  1957. });
  1958. map.addLayer(huancui_zhen);
  1959. });
  1960. // var shitu = new ol.layer.Vector({
  1961. // title: "add Layer",
  1962. // source: new ol.source.Vector({
  1963. // projection: projection,
  1964. // url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变
  1965. // format: new ol.format.GeoJSON(),
  1966. // }),
  1967. // style: new ol.style.Style({
  1968. // fill: new ol.style.Fill({
  1969. // //矢量图层填充颜色,以及透明度
  1970. // color: "rgba(0,0,0,0)",
  1971. // }),
  1972. // stroke: new ol.style.Stroke({
  1973. // //边界样式
  1974. // color: "#47c68f",
  1975. // width: 3,
  1976. // }),
  1977. // }),
  1978. // });
  1979. // map.addLayer(shitu);
  1980. // var huancui_zhen = new ol.layer.Vector({
  1981. // title: "add huancui_zhen",
  1982. // source: new ol.source.Vector({
  1983. // projection: projection,
  1984. // url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变
  1985. // format: new ol.format.GeoJSON(),
  1986. // }),
  1987. // style: new ol.style.Style({
  1988. // fill: new ol.style.Fill({
  1989. // //矢量图层填充颜色,以及透明度
  1990. // color: "rgba(27,50,56,0.8)",
  1991. // }),
  1992. // }),
  1993. // });
  1994. // map.addLayer(huancui_zhen);
  1995. ///-----------乡---------------------------------------------------------------------------------------------------------
  1996. var villageVectorLayer; //村标记
  1997. async function villageDiagram() {
  1998. villageDataFun(_this.villageDataObj);
  1999. }
  2000. //村数据处理
  2001. function villageDataFun(villageMapData) {
  2002. let arrDatas = [];
  2003. // for (let i = 0; i < villageMapData.length; i++) {
  2004. let varName = "iconFeature0";
  2005. window[varName] = new ol.Feature({
  2006. geometry: new ol.geom.Point(
  2007. ol.proj.fromLonLat([villageMapData.lng, villageMapData.lat])
  2008. ),
  2009. name:
  2010. villageMapData.name == undefined
  2011. ? villageMapData.deptName
  2012. : villageMapData.name, //名称属性
  2013. orgCode: villageMapData.orgCode, //人口数(万)
  2014. lat: villageMapData.lat,
  2015. lng: villageMapData.lng,
  2016. type: "村",
  2017. zhenOrgCode: villageMapData.zhenOrgCode,
  2018. });
  2019. window[varName].setStyle(visCreateLabelStyle(window[varName]));
  2020. arrDatas.push(window[varName]);
  2021. // }
  2022. var vectorSource = new ol.source.Vector({
  2023. features: arrDatas,
  2024. });
  2025. // //矢量标注图层
  2026. villageVectorLayer = new ol.layer.Vector({
  2027. source: vectorSource,
  2028. });
  2029. map.addLayer(villageVectorLayer);
  2030. }
  2031. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  2032. function visCreateLabelStyle(feature) {
  2033. return new ol.style.Style({
  2034. image: new ol.style.Icon({
  2035. //设置图标偏移
  2036. anchor: [0.5, 1],
  2037. //标注样式的起点位置
  2038. anchorOrigin: "top-right",
  2039. //X方向单位:分数
  2040. anchorXUnits: "fraction",
  2041. //Y方向单位:像素
  2042. anchorYUnits: "pixels",
  2043. //偏移起点位置的方向
  2044. offsetOrigin: "top-right",
  2045. //透明度
  2046. opacity: 0.9,
  2047. //图片路径
  2048. //src: 'images/map.png'
  2049. src: "https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",
  2050. }),
  2051. text: new ol.style.Text({
  2052. textAlign: "center", //位置
  2053. textBaseline: "bottom", //基准线
  2054. font: "normal 12px 微软雅黑", //文字样式
  2055. text: feature.get("name"), //文本内容
  2056. fill: new ol.style.Fill({
  2057. //文本填充样式(即文字颜色)
  2058. color: "#ffffff",
  2059. }),
  2060. }),
  2061. zIndex: 9999,
  2062. });
  2063. }
  2064. // map.on("moveend", function (evt) {
  2065. // var zoom = map.getView().getZoom();
  2066. // if (zoom < 13) {
  2067. // if (villageVectorLayer != undefined) {
  2068. // map.removeLayer(villageVectorLayer);
  2069. // map.removeLayer(shitu);
  2070. // map.addLayer(shitu);
  2071. // map.removeLayer(townVectorLayer);
  2072. // townDiagram();
  2073. // }
  2074. // }
  2075. // });
  2076. map.on("singleclick", function (evt) {
  2077. let feature = map.forEachFeatureAtPixel(
  2078. evt.pixel,
  2079. (feature) => feature
  2080. );
  2081. if (feature) {
  2082. }
  2083. document.getElementById("info").innerHTML = "";
  2084. var viewResolution = map.getView().getResolution(); ///** @type {number} */ (view.getResolution());
  2085. var zb = evt.coordinate;
  2086. var url = wmsSource.getFeatureInfoUrl(
  2087. evt.coordinate,
  2088. viewResolution,
  2089. "EPSG:3857",
  2090. { INFO_FORMAT: "text/html" }
  2091. );
  2092. if (url) {
  2093. fetch(url)
  2094. .then(function (response) {
  2095. return response.text();
  2096. })
  2097. .then(function (html) {
  2098. //农房上传图片附件
  2099. _this.nfAddfileList = [];
  2100. //农地上传图片附件
  2101. _this.ndAddfileList = [];
  2102. if (html.indexOf("<table") != -1) {
  2103. setTimeout(() => {
  2104. map.removeLayer(texiao_layer_fang);
  2105. map.removeLayer(texiao_layer_di);
  2106. //特效动画实现 -----------------------------start
  2107. texiao_layer_fang = new ol.layer.Vector({
  2108. source: new ol.source.Vector(),
  2109. });
  2110. map.addLayer(texiao_layer_fang);
  2111. var deptmap = [zb[0], zb[1]];
  2112. //var center = ol.extent.getCenter(deptmap); //获取边界区域的中心位置
  2113. var circle = new ol.Feature({
  2114. geometry: new ol.geom.Point(deptmap), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2115. });
  2116. //var out =new ol.coordinate.Coordinate(datamap);
  2117. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2118. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2119. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2120. circle.setStyle(
  2121. new ol.style.Style({
  2122. image: new ol.style.Circle({
  2123. radius: 0,
  2124. stroke: new ol.style.Stroke({
  2125. color: "yellow",
  2126. size: 1,
  2127. }),
  2128. }),
  2129. })
  2130. );
  2131. texiao_layer_fang.getSource().addFeature(circle);
  2132. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  2133. var radius = 0;
  2134. map.on("postcompose", function () {
  2135. // 增大半径,最大20
  2136. radius++;
  2137. radius = radius % 10;
  2138. // 设置样式
  2139. circle.setStyle(
  2140. new ol.style.Style({
  2141. image: new ol.style.Circle({
  2142. radius: radius,
  2143. stroke: new ol.style.Stroke({
  2144. color: "yellow",
  2145. size: 1,
  2146. }),
  2147. }),
  2148. })
  2149. );
  2150. });
  2151. //特效动画实现 -----------------------------end
  2152. _this.hasTable = true;
  2153. document.getElementById("info").innerHTML = html;
  2154. if (html.indexOf("house") != -1) {
  2155. //农房
  2156. _this.farmhouseStatus = 0;
  2157. let obj = {};
  2158. let trs = $("#info .featureInfo").find("tr:eq(1)");
  2159. let zjId = trs.find("td").eq(0).text();
  2160. let zjIdNum = zjId.replace("t_geo_hc_house.", "");
  2161. obj.id = zjIdNum; // 主键id
  2162. obj.fwsyrmc = trs.find("td").eq(1).text(); //房屋所有人名称
  2163. obj.cm = trs.find("td").eq(2).text(); //村名
  2164. obj.cdm = trs.find("td").eq(3).text(); //村代码
  2165. obj.dz = trs.find("td").eq(4).text(); //地址
  2166. obj.sfyspsx = trs.find("td").eq(5).text(); //是否有审批手续
  2167. obj.fwsyqh = trs.find("td").eq(6).text(); //房屋所有权证号
  2168. obj.jzmj = trs.find("td").eq(7).text(); //建筑面积
  2169. obj.tdzh = trs.find("td").eq(8).text(); //建筑面积
  2170. obj.tdxz = trs.find("td").eq(9).text(); //土地性质
  2171. obj.tdmj = trs.find("td").eq(10).text(); //土地面积
  2172. obj.xzqk = trs.find("td").eq(11).text(); //现状情况
  2173. obj.zlrxm = trs.find("td").eq(12).text(); //租赁人姓名
  2174. obj.zlhtjzrq = trs.find("td").eq(13).text(); //租赁合同截止日期
  2175. obj.zlsynx = trs.find("td").eq(14).text(); //租赁剩余年限
  2176. obj.xzfwsfylzy = trs.find("td").eq(15).text(); //闲置房屋是否有流转意愿
  2177. obj.xh = trs.find("td").eq(16).text(); //农房编号
  2178. obj.orgCode = trs.find("td").eq(20).text(); //行政区代码
  2179. obj.tdfl = trs.find("td").eq(23).text(); //集体/个人
  2180. obj.frontHouse = trs.find("td").eq(24).text(); //图片前
  2181. obj.behindHouse = trs.find("td").eq(25).text(); //图片后
  2182. let cloneObj = JSON.parse(JSON.stringify(obj));
  2183. _this.houseInfoList = cloneObj;
  2184. _this.houseInfoList.frontland = "";
  2185. _this.houseInfoList.behindland = "";
  2186. _this.houseInfoLookList = obj;
  2187. } else {
  2188. _this.farmhouseStatus = 1;
  2189. //农地
  2190. let obj = {};
  2191. let trs = $("#info .featureInfo").find("tr:eq(1)");
  2192. let zjId = trs.find("td").eq(0).text();
  2193. let zjIdNum = zjId.replace("t_geo_hc_land.", "");
  2194. obj.id = zjIdNum; // 主键id
  2195. obj.xh = trs.find("td").eq(1).text(); //序号
  2196. obj.cm = trs.find("td").eq(2).text(); //村名
  2197. obj.cbrmc = trs.find("td").eq(3).text(); //承包人名称
  2198. obj.syrmc = trs.find("td").eq(4).text(); //使用人名称
  2199. obj.nydlx = trs.find("td").eq(5).text(); //农用地类型
  2200. obj.mj = trs.find("td").eq(6).text(); //面积
  2201. obj.xzqk = trs.find("td").eq(7).text(); //现状情况
  2202. obj.lzhtjzrq = trs.find("td").eq(8).text(); //流转合同截止时间
  2203. obj.lzsynx = trs.find("td").eq(9).text(); //流转剩余年限
  2204. obj.sfylzyx = trs.find("td").eq(10).text(); //是否流转意向
  2205. obj.cdm = trs.find("td").eq(11).text(); //村代码
  2206. obj.orgCode = trs.find("td").eq(15).text(); //行政区化代码
  2207. obj.frontland = trs.find("td").eq(18).text(); //图片前
  2208. obj.behindland = trs.find("td").eq(19).text(); //图片后
  2209. _this.nydlxOptionsValue = trs.find("td").eq(5).text(); //农用地类型
  2210. let cloneObj = JSON.parse(JSON.stringify(obj));
  2211. _this.landInfoList = cloneObj;
  2212. //编辑图片清空
  2213. _this.landInfoList.frontland = "";
  2214. _this.landInfoList.behindland = "";
  2215. _this.landInfoLookList = obj;
  2216. }
  2217. }, 300);
  2218. if (
  2219. _this.draw.drawMapPolygon == false &&
  2220. _this.searchBarOperVisbile == false
  2221. ) {
  2222. //判断不在绘制地图进入
  2223. if ($(".landHomestead_wrap").css("bottom") != "0px") {
  2224. $(".searchBar_wrap").css({ bottom: "0" });
  2225. $(".searchBar_wrap").animate(
  2226. {
  2227. bottom: "-100%",
  2228. },
  2229. 300
  2230. );
  2231. $(".landHomestead_wrap").css({ bottom: "-100%" });
  2232. $(".landHomestead_wrap").animate(
  2233. {
  2234. bottom: "0",
  2235. },
  2236. 400
  2237. );
  2238. $(".rightIcon_wrap").animate(
  2239. {
  2240. bottom: $(".landHomestead_wrap").height() + 10 + "px",
  2241. },
  2242. 200
  2243. );
  2244. }
  2245. }
  2246. } else {
  2247. _this.hasTable = false;
  2248. if ($(".searchBar_wrap").css("bottom") != "0px") {
  2249. $(".landHomestead_wrap").css({ bottom: "0" });
  2250. $(".landHomestead_wrap").animate(
  2251. {
  2252. bottom: "-100%",
  2253. },
  2254. 300
  2255. );
  2256. $(".searchBar_wrap").css({ bottom: "-100%" });
  2257. $(".searchBar_wrap").animate(
  2258. {
  2259. bottom: "0",
  2260. },
  2261. 400
  2262. );
  2263. let searchBarWrapPadding = $(".searchBar_wrap")
  2264. .css("paddingTop")
  2265. .replace("px", "");
  2266. let searchBarWrapHeight = $(".searchBar_wrap").height();
  2267. $(".rightIcon_wrap").animate(
  2268. {
  2269. bottom:
  2270. searchBarWrapHeight +
  2271. searchBarWrapPadding * 2 +
  2272. 10 +
  2273. "px",
  2274. },
  2275. 200
  2276. );
  2277. }
  2278. //非编辑情况初始化
  2279. if (_this.landHomesteadEditVisbile == false) {
  2280. //农地数据初始化
  2281. _this.landInfoList = {
  2282. id: "", //String 是 主键id
  2283. orgCode: "", // String 否 行政区代码
  2284. cdm: "", // String 否 村代码
  2285. cm: "", //String 否 村名
  2286. xh: "", // String 否 序号
  2287. cbrmc: "", //String 否 承包人名称
  2288. syrmc: "", //String 否 使用人名称
  2289. nydlx: "", // String 否 农用地类型
  2290. mj: "", // String 否 面积
  2291. lzsynx: "", // String 否 流转剩余年限
  2292. zlhtjzrq: "", // String 否 日期
  2293. sfylzyx: "", // String 否 是否流转意向
  2294. xzqk: "", // String 否 现状情况
  2295. theGeom: "", //String 否 空间坐标
  2296. xzqkKey: "", // String 否 忽略
  2297. nydlxKey: "", // String 否 忽略
  2298. frontland: "", //String 否 图片前
  2299. behindland: "", //String 否 图片后
  2300. };
  2301. //农房数据初始化
  2302. _this.houseInfoList = {
  2303. id: "", // String 是 主键id
  2304. orgCode: "", // String 否 行政区代码
  2305. cdm: "", // String 否 村代码
  2306. cm: "", // String 否 村名
  2307. xh: "", // String 否 序号
  2308. tdxz: "", //土地性质
  2309. fwsyrmc: "", // String 否 房屋所有人名称
  2310. fwsyqh: "", // String 否 房屋所有权证号
  2311. tdzh: "", // String 否 土地证号
  2312. jzmj: "", // String 否 建筑面积
  2313. tdmj: "", // String 否 土地面积
  2314. sfyspsx: "", // String 否 是否有审批手续
  2315. xzqk: "", // String 否 现状情况
  2316. theGeom: "", // String 否 空间坐标
  2317. xzqkKey: "", // String 否 忽略传null
  2318. tdxzKey: "", // String 否 忽略传null
  2319. frontHouse: "", // String 否 图片前
  2320. behindHouse: "", // String 否 图片后
  2321. dz: "", // String 否 地址
  2322. zlrxm: "", // String 否 租赁人姓名
  2323. zlhtjzrq: "", // 租赁合同截止日期
  2324. zlsynx: "", // 租赁剩余年限
  2325. xzfwsfylzy: "", // 闲置房屋是否有流转意愿
  2326. tdfl: "", // 集体/个人
  2327. };
  2328. }
  2329. }
  2330. });
  2331. }
  2332. });
  2333. map.on("pointermove", function (evt) {
  2334. if (evt.dragging) {
  2335. return;
  2336. }
  2337. var pixel = map.getEventPixel(evt.originalEvent);
  2338. var hit = map.forEachLayerAtPixel(pixel, function () {
  2339. return true;
  2340. });
  2341. map.getTargetElement().style.cursor = hit ? "pointer" : "";
  2342. });
  2343. //属性查询结束 ------------------end
  2344. //按照分类查询 村定位地图-----------------start
  2345. $("#cun").on("change", function () {
  2346. /**
  2347. * @api wfs服务空间查询
  2348. * @param {*} wfsurl
  2349. * @param {*} srsName
  2350. * @param {*} typeName
  2351. * @param {*} drawType
  2352. * @param {option 可选} geometryField
  2353. */
  2354. var cun = _this.villageDataObj.deptName;
  2355. //定位个人地图
  2356. map.removeLayer(texiao_layer_fang);
  2357. map.removeLayer(texiao_layer_di);
  2358. //删除之前加载的图层
  2359. let currObjNum = _this.villageDataObj;
  2360. map.getView().animate({
  2361. // 只设置需要的属性即可
  2362. center: ol.proj.fromLonLat([currObjNum.lng, currObjNum.lat]), // 中心点
  2363. zoom: 14.5, // 缩放级别
  2364. rotation: undefined, // 缩放完成view视图旋转弧度
  2365. duration: 1000, // 缩放持续时间,默认不需要设置
  2366. });
  2367. map.removeLayer(nongZt[0]);
  2368. map.removeLayer(nongZt[1]);
  2369. map.removeLayer(delete_map[0]);
  2370. map.removeLayer(delete_map[1]);
  2371. //村的数据判断
  2372. map.removeLayer(villageVectorLayer);
  2373. villageDiagram();
  2374. setTimeout(() => {
  2375. //map.removeLayer(shitu);
  2376. }, 1000);
  2377. //查询条件
  2378. var cql_filter;
  2379. //图层加载
  2380. //地的数据判断
  2381. var difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"];
  2382. //业务图层 wms服务
  2383. for (var i = 0; i < difang.length; i++) {
  2384. if (difang[i] == "nsgk_hc:t_geo_hc_house") {
  2385. cql_filter = "CM='" + cun + "'";
  2386. } else {
  2387. cql_filter = "CM='" + cun + "'";
  2388. }
  2389. nongZt[i] = new ol.layer.Tile({
  2390. source: new ol.source.TileWMS({
  2391. //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
  2392. url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
  2393. //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
  2394. //url: 'http://localhost:8888/geoserver/new_shp/wms',
  2395. params: {
  2396. LAYERS: difang[i],
  2397. //'LAYERS': 'new_shp:new_shp_all',
  2398. TILED: true,
  2399. cql_filter: cql_filter,
  2400. SRID: 3857,
  2401. },
  2402. }),
  2403. });
  2404. //}
  2405. //定位查询位置
  2406. let param_dw = {
  2407. srsName: "EPSG:3857",
  2408. service: "WFS",
  2409. version: "1.0.0",
  2410. request: "GetFeature",
  2411. typename: difang[i],
  2412. //featureNS: 'nsgk_hc',//命名空间 URI
  2413. cql_filter: cql_filter,
  2414. //featurePrefix: 'nationalwater',//工作区名称
  2415. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2416. outputFormat: "application/json",
  2417. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2418. };
  2419. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2420. url_dw = url_dw + "?";
  2421. for (let key in param_dw) {
  2422. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2423. }
  2424. url_dw = url_dw.substr(0, url_dw.length - 1);
  2425. fetch(url_dw, {
  2426. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2427. })
  2428. .then((res) => {
  2429. var geojsonmap = res.json();
  2430. return geojsonmap;
  2431. })
  2432. .then((data) => {
  2433. //var datamap = data.bbox;
  2434. // var datamap = data.features[0].bbox;
  2435. // map.getView().animate({
  2436. // // 只设置需要的属性即可
  2437. // center: datamap, // 中心点
  2438. // zoom: 15, // 缩放级别
  2439. // rotation: undefined, // 缩放完成view视图旋转弧度
  2440. // duration: 1000, // 缩放持续时间,默认不需要设置
  2441. // });
  2442. })
  2443. .catch((error) => {
  2444. console.log("【异常】", error);
  2445. });
  2446. map.addLayer(nongZt[i]);
  2447. //切换村底部盒子隐藏
  2448. _this.hasTable = false;
  2449. if ($(".searchBar_wrap").css("bottom") != "0px") {
  2450. $(".landHomestead_wrap").css({ bottom: "0" });
  2451. $(".landHomestead_wrap").animate(
  2452. {
  2453. bottom: "-100%",
  2454. },
  2455. 300
  2456. );
  2457. $(".searchBar_wrap").css({ bottom: "-100%" });
  2458. $(".searchBar_wrap").animate(
  2459. {
  2460. bottom: "0",
  2461. },
  2462. 400
  2463. );
  2464. let searchBarWrapPadding = $(".searchBar_wrap")
  2465. .css("paddingTop")
  2466. .replace("px", "");
  2467. let searchBarWrapHeight = $(".searchBar_wrap").height();
  2468. $(".rightIcon_wrap").animate(
  2469. {
  2470. bottom:
  2471. searchBarWrapHeight + searchBarWrapPadding * 2 + 10 + "px",
  2472. },
  2473. 200
  2474. );
  2475. }
  2476. }
  2477. });
  2478. //村定位查询-------------------------------------end
  2479. //按照查询条件人名 定位地图-----------------start
  2480. $("#query").on("click", function () {
  2481. /**
  2482. * @api wfs服务空间查询
  2483. * @param {*} wfsurl
  2484. * @param {*} srsName
  2485. * @param {*} typeName
  2486. * @param {*} drawType
  2487. * @param {option 可选} geometryField
  2488. */
  2489. var val = _this.seachText;
  2490. if (val == "") {
  2491. alert("请填写查询条件在查询");
  2492. } else {
  2493. //分类查询查询农地、农房
  2494. var difang;
  2495. //var di = document.getElementById('di');
  2496. //删除矢量图层json
  2497. //map.removeLayer(shitu);
  2498. //删除之前图层 --------------------start
  2499. //属性查询删除
  2500. //map.removeLayer(nongZt[0]);
  2501. //map.removeLayer(nongZt[1]);
  2502. //map.removeLayer(delete_map[0]);
  2503. //map.removeLayer(delete_map[1]);
  2504. map.removeLayer(texiao_layer_fang);
  2505. map.removeLayer(texiao_layer_di);
  2506. //删除之前图层 -------------------end
  2507. //查询条件
  2508. var cql_filter;
  2509. var cun = _this.villageDataObj.deptName;
  2510. difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"];
  2511. var tach = 0;
  2512. var once = 0;
  2513. for (var i = 0; i < difang.length; i++) {
  2514. map.removeLayer(delete_map[i]);
  2515. // 数字验证!
  2516. var reg = /\d/;
  2517. //验证汉子
  2518. //var han = /^[\u4e00-\u9fa5]+$/;
  2519. if (reg.test(val)) {
  2520. //循环判断查询条件
  2521. cql_filter = "XH='" + val + "'" + "and CM='" + cun + "'";
  2522. } else {
  2523. //循环判断查询条件
  2524. if (cun != "all" && cun != "") {
  2525. if (difang[i] == "nsgk_hc:t_geo_hc_house") {
  2526. cql_filter = "FWSYRMC='" + val + "'" + "and CM='" + cun + "'";
  2527. } else {
  2528. cql_filter = "SYRMC='" + val + "'" + "and CM='" + cun + "'";
  2529. }
  2530. } else {
  2531. if (difang[i] == "nsgk_hc:t_geo_hc_house") {
  2532. cql_filter = "FWSYRMC='" + val + "'";
  2533. } else {
  2534. cql_filter = "SYRMC='" + val + "'";
  2535. }
  2536. }
  2537. }
  2538. //for(var i=0; i< difang.length; i++){
  2539. //cql_filter = "CM='"+cun +"'"+ "and XZQK='待流转待盘活'";
  2540. //图层加载
  2541. //业务图层 wms服务
  2542. delete_map[i] = new ol.layer.Tile({
  2543. source: new ol.source.TileWMS({
  2544. //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
  2545. url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
  2546. //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
  2547. //url: 'http://localhost:8888/geoserver/new_shp/wms',
  2548. params: {
  2549. LAYERS: difang[i],
  2550. //'LAYERS': 'new_shp:new_shp_all',
  2551. TILED: true,
  2552. cql_filter: cql_filter,
  2553. SRID: 3857,
  2554. },
  2555. }),
  2556. });
  2557. //}
  2558. //定位查询位置
  2559. let param_dw = {
  2560. srsName: "EPSG:3857",
  2561. service: "WFS",
  2562. version: "1.0.0",
  2563. request: "GetFeature",
  2564. typename: difang[i],
  2565. //featureNS: 'nsgk_hc',//命名空间 URI
  2566. cql_filter: cql_filter,
  2567. //featurePrefix: 'nationalwater',//工作区名称
  2568. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2569. outputFormat: "application/json",
  2570. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2571. };
  2572. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2573. url_dw = url_dw + "?";
  2574. for (let key in param_dw) {
  2575. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2576. }
  2577. url_dw = url_dw.substr(0, url_dw.length - 1);
  2578. fetch(url_dw, {
  2579. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2580. })
  2581. .then((res) => {
  2582. var geojsonmap = res.json();
  2583. return geojsonmap;
  2584. })
  2585. .then((data) => {
  2586. tach = tach + 1;
  2587. if (data.features != null && data.features != "") {
  2588. //var datamap = data.bbox;
  2589. var datamap = data.features[0].bbox;
  2590. map.getView().animate({
  2591. // 只设置需要的属性即可
  2592. center: datamap, // 中心点
  2593. zoom: 17, // 缩放级别
  2594. rotation: undefined, // 缩放完成view视图旋转弧度
  2595. duration: 1000, // 缩放持续时间,默认不需要设置
  2596. });
  2597. //特效动画实现 -----------------------------start
  2598. if (tach == 1 && once == 0) {
  2599. texiao_layer_fang = new ol.layer.Vector({
  2600. source: new ol.source.Vector(),
  2601. });
  2602. map.addLayer(texiao_layer_fang);
  2603. var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  2604. var circle = new ol.Feature({
  2605. geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2606. });
  2607. //var out =new ol.coordinate.Coordinate(datamap);
  2608. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2609. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2610. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2611. circle.setStyle(
  2612. new ol.style.Style({
  2613. image: new ol.style.Circle({
  2614. radius: 0,
  2615. stroke: new ol.style.Stroke({
  2616. color: "yellow",
  2617. size: 1,
  2618. }),
  2619. }),
  2620. })
  2621. );
  2622. texiao_layer_fang.getSource().addFeature(circle);
  2623. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  2624. var radius = 0;
  2625. map.on("postcompose", function () {
  2626. // 增大半径,最大20
  2627. radius++;
  2628. radius = radius % 10;
  2629. // 设置样式
  2630. circle.setStyle(
  2631. new ol.style.Style({
  2632. image: new ol.style.Circle({
  2633. radius: radius,
  2634. stroke: new ol.style.Stroke({
  2635. color: "yellow",
  2636. size: 1,
  2637. }),
  2638. }),
  2639. })
  2640. );
  2641. });
  2642. } else {
  2643. texiao_layer_di = new ol.layer.Vector({
  2644. source: new ol.source.Vector(),
  2645. });
  2646. map.addLayer(texiao_layer_di);
  2647. var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  2648. var circle = new ol.Feature({
  2649. geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2650. });
  2651. //var out =new ol.coordinate.Coordinate(datamap);
  2652. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2653. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2654. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2655. circle.setStyle(
  2656. new ol.style.Style({
  2657. image: new ol.style.Circle({
  2658. radius: 0,
  2659. stroke: new ol.style.Stroke({
  2660. color: "yellow",
  2661. size: 1,
  2662. }),
  2663. }),
  2664. })
  2665. );
  2666. texiao_layer_di.getSource().addFeature(circle);
  2667. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  2668. var radius = 0;
  2669. map.on("postcompose", function () {
  2670. // 增大半径,最大20
  2671. radius++;
  2672. radius = radius % 10;
  2673. // 设置样式
  2674. circle.setStyle(
  2675. new ol.style.Style({
  2676. image: new ol.style.Circle({
  2677. radius: radius,
  2678. stroke: new ol.style.Stroke({
  2679. color: "yellow",
  2680. size: 1,
  2681. }),
  2682. }),
  2683. })
  2684. );
  2685. });
  2686. }
  2687. //特效动画实现 -----------------------------end
  2688. } else if (tach == 1) {
  2689. once = once + 1;
  2690. } else {
  2691. if (tach == 2 && once == 1) {
  2692. alert("没有找到相关人员农房农地信息");
  2693. }
  2694. }
  2695. })
  2696. .catch((error) => {
  2697. console.log("【异常】", error);
  2698. });
  2699. map.addLayer(delete_map[i]);
  2700. }
  2701. }
  2702. });
  2703. //按照查询 定位地图-----------------end
  2704. //开始绘制地图 ------------------- start
  2705. var vector_drawing;
  2706. var draw;
  2707. //开始绘制地图
  2708. $("#drawPolygon").click(function () {
  2709. //map.removeLayer(zjd_land);
  2710. map.removeLayer(vector_drawing);
  2711. //var source = new ol.source.Vector({wrapX: false});
  2712. vector_drawing = new ol.layer.Vector({
  2713. source: new ol.source.Vector(),
  2714. });
  2715. map.addLayer(vector_drawing);
  2716. function addInteraction() {
  2717. draw = new ol.interaction.Draw({
  2718. source: vector_drawing.getSource(),
  2719. type: "Polygon",
  2720. });
  2721. draw.on("drawend", function (evt) {
  2722. var feature = evt.feature;
  2723. var geometry = feature.getGeometry();
  2724. var coordinate = geometry.getCoordinates();
  2725. _this.coordinateList = coordinate.toString();
  2726. $("#drawRemove").trigger("click");
  2727. _this.$set(_this.draw, "drawMapPolygon", false);
  2728. //that.drawInsert = coordinate;
  2729. });
  2730. map.addInteraction(draw);
  2731. }
  2732. addInteraction();
  2733. });
  2734. //清除画图鼠标点击事件
  2735. $("#drawRemove").click(function () {
  2736. map.removeInteraction(draw);
  2737. });
  2738. //还原之前图层
  2739. $("#drawReset").click(function () {
  2740. map.removeLayer(vector_drawing);
  2741. //map.addLayer(zjd_land);
  2742. });
  2743. //开始绘制地图 ------------------- end
  2744. //特效实现
  2745. $("#texiao_fang").on("click", function () {
  2746. /**
  2747. * @api wfs服务空间查询
  2748. * @param {*} wfsurl
  2749. * @param {*} srsName
  2750. * @param {*} typeName
  2751. * @param {*} drawType
  2752. * @param {option 可选} geometryField
  2753. */
  2754. //alert("进入分类");
  2755. //删除之前加载的图层
  2756. map.removeLayer(texiao_layer_fang);
  2757. map.removeLayer(texiao_layer_di);
  2758. var cun = _this.villageDataObj.deptName;
  2759. _this.homesteadListShrink();
  2760. //删除之前加载的图层
  2761. //map.removeLayer(dishitu);
  2762. //map.removeLayer(cunshitu);
  2763. //分类查询查询农地、农房
  2764. var difang;
  2765. //地的数据判断
  2766. difang = "nsgk_hc:t_geo_hc_house";
  2767. //查询条件
  2768. var cql_filter;
  2769. //村的数据判断
  2770. var val = $("#texiao_fang").val();
  2771. if (val == "") {
  2772. alert("请填写查询条件在查询");
  2773. }
  2774. //for(var i=0; i< difang.length; i++){
  2775. //cql_filter = "CM='"+cun +"'"+ "and FWSYRMC='"+query_mz.value;
  2776. cql_filter = "FWSYRMC='" + val + "' and CM='" + cun + "'";
  2777. //图层加载
  2778. //地的数据判断
  2779. //定位查询位置
  2780. let param_dw = {
  2781. srsName: "EPSG:3857",
  2782. service: "WFS",
  2783. version: "1.0.0",
  2784. request: "GetFeature",
  2785. typename: difang,
  2786. //featureNS: 'nsgk_hc',//命名空间 URI
  2787. cql_filter: cql_filter,
  2788. //featurePrefix: 'nationalwater',//工作区名称
  2789. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2790. outputFormat: "application/json",
  2791. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2792. };
  2793. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2794. url_dw = url_dw + "?";
  2795. for (let key in param_dw) {
  2796. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2797. }
  2798. url_dw = url_dw.substr(0, url_dw.length - 1);
  2799. fetch(url_dw, {
  2800. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2801. })
  2802. .then((res) => {
  2803. var geojsonmap = res.json();
  2804. return geojsonmap;
  2805. })
  2806. .then((data) => {
  2807. //关联查询农房信息---------------start
  2808. document.getElementById("info").innerHTML = "";
  2809. var select_fang = (document.getElementById("info").innerHTML =
  2810. data.features[0].properties);
  2811. _this.farmhouseStatus = 0;
  2812. let obj = {};
  2813. let zjId = data.features[0].id;
  2814. let zjIdNum = zjId.replace("t_geo_hc_house.", "");
  2815. obj.id = zjIdNum; // 主键id
  2816. obj.fwsyrmc = select_fang.FWSYRMC; //房屋所有人名称
  2817. obj.cm = select_fang.CM; //村名
  2818. obj.cdm = select_fang.CDM; //村代码
  2819. obj.dz = select_fang.DZ; //地址
  2820. obj.sfyspsx = select_fang.SFYSPSX; //是否有审批手续
  2821. obj.fwsyqh = select_fang.FWSYQH; //房屋所有权证号
  2822. obj.jzmj = select_fang.JZMJ; //建筑面积
  2823. obj.tdzh = select_fang.TDZH; //建筑面积
  2824. obj.tdxz = select_fang.TDXZ; //土地性质
  2825. obj.tdmj = select_fang.TDMJ; //土地面积
  2826. obj.xzqk = select_fang.XZQK; //现状情况
  2827. obj.zlrxm = select_fang.ZLRXM; //租赁人姓名
  2828. obj.zlhtjzrq = select_fang.ZLHTJZRQ; //租赁合同截止日期
  2829. obj.zlsynx = select_fang.ZLSYNX; //租赁剩余年限
  2830. obj.xzfwsfylzy = select_fang.XZFWSFYLZY; //闲置房屋是否有流转意愿
  2831. obj.xh = select_fang.XH; //农房编号
  2832. obj.orgCode = select_fang.org_code; //行政区代码
  2833. obj.tdfl = select_fang.TDFL; //集体/个人
  2834. obj.frontHouse = select_fang.front_house; //图片前
  2835. obj.behindHouse = select_fang.behind_house; //图片后
  2836. let cloneObj = JSON.parse(JSON.stringify(obj));
  2837. _this.houseInfoList = cloneObj;
  2838. _this.houseInfoList.frontland = "";
  2839. _this.houseInfoList.behindland = "";
  2840. _this.houseInfoLookList = obj;
  2841. //关联查询农房信息---------------end
  2842. //定位结束 --------------start
  2843. //var datamap = data.bbox;
  2844. var datamap = data.features[0].bbox;
  2845. map.getView().animate({
  2846. // 只设置需要的属性即可
  2847. center: datamap, // 中心点
  2848. zoom: 18, // 缩放级别
  2849. rotation: undefined, // 缩放完成view视图旋转弧度
  2850. duration: 1000, // 缩放持续时间,默认不需要设置
  2851. });
  2852. //定位结束 --------------end
  2853. //特效动画实现 -----------------------------start
  2854. texiao_layer_fang = new ol.layer.Vector({
  2855. source: new ol.source.Vector(),
  2856. });
  2857. map.addLayer(texiao_layer_fang);
  2858. var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  2859. var circle = new ol.Feature({
  2860. geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2861. });
  2862. //var out =new ol.coordinate.Coordinate(datamap);
  2863. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2864. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2865. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2866. circle.setStyle(
  2867. new ol.style.Style({
  2868. image: new ol.style.Circle({
  2869. radius: 0,
  2870. stroke: new ol.style.Stroke({
  2871. color: "yellow",
  2872. size: 1,
  2873. }),
  2874. }),
  2875. })
  2876. );
  2877. texiao_layer_fang.getSource().addFeature(circle);
  2878. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  2879. var radius = 0;
  2880. map.on("postcompose", function () {
  2881. // 增大半径,最大20
  2882. radius++;
  2883. radius = radius % 10;
  2884. // 设置样式
  2885. circle.setStyle(
  2886. new ol.style.Style({
  2887. image: new ol.style.Circle({
  2888. radius: radius,
  2889. stroke: new ol.style.Stroke({
  2890. color: "yellow",
  2891. size: 1,
  2892. }),
  2893. }),
  2894. })
  2895. );
  2896. });
  2897. //特效动画实现 -----------------------------end
  2898. })
  2899. .catch((error) => {
  2900. console.log("【异常】", error);
  2901. });
  2902. });
  2903. //-----------------------------------------------------------------------------特效农房加载结束 end
  2904. //-----------------------------------------------------------------------------特效农地加载开始 start
  2905. //特效实现
  2906. $("#texiao_di").on("click", function () {
  2907. /**
  2908. * @api wfs服务空间查询
  2909. * @param {*} wfsurl
  2910. * @param {*} srsName
  2911. * @param {*} typeName
  2912. * @param {*} drawType
  2913. * @param {option 可选} geometryField
  2914. */
  2915. //alert("进入分类");
  2916. //删除之前加载的图层
  2917. map.removeLayer(texiao_layer_di);
  2918. map.removeLayer(texiao_layer_fang);
  2919. _this.homesteadListShrink();
  2920. var cun = _this.villageDataObj.deptName;
  2921. //删除之前加载的图层
  2922. //map.removeLayer(dishitu);
  2923. //map.removeLayer(cunshitu);
  2924. //分类查询查询农地、农房
  2925. var difang;
  2926. //地的数据判断
  2927. difang = "nsgk_hc:t_geo_hc_land";
  2928. //查询条件
  2929. var cql_filter;
  2930. //村的数据判断
  2931. var val = $("#texiao_di").val();
  2932. if (val == "") {
  2933. alert("请填写查询条件在查询");
  2934. }
  2935. //for(var i=0; i< difang.length; i++){
  2936. //cql_filter = "CM='"+cun +"'"+ "and FWSYRMC='"+query_mz.value;
  2937. cql_filter = "SYRMC='" + val + "' and CM='" + cun + "'";
  2938. //图层加载
  2939. //定位查询位置
  2940. let param_dw = {
  2941. srsName: "EPSG:3857",
  2942. service: "WFS",
  2943. version: "1.0.0",
  2944. request: "GetFeature",
  2945. typename: difang,
  2946. INFO_FORMAT: "text/html",
  2947. //featureNS: 'nsgk_hc',//命名空间 URI
  2948. cql_filter: cql_filter,
  2949. //featurePrefix: 'nationalwater',//工作区名称
  2950. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2951. outputFormat: "application/json",
  2952. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2953. };
  2954. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2955. url_dw = url_dw + "?";
  2956. for (let key in param_dw) {
  2957. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2958. }
  2959. url_dw = url_dw.substr(0, url_dw.length - 1);
  2960. fetch(url_dw, {
  2961. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2962. })
  2963. .then((res) => {
  2964. var geojsonmap = res.json();
  2965. return geojsonmap;
  2966. })
  2967. .then((data) => {
  2968. //获取坐标定位开始----------start
  2969. //var datamap = data.bbox;
  2970. var datamap = data.features[0].bbox;
  2971. map.getView().animate({
  2972. // 只设置需要的属性即可
  2973. center: datamap, // 中心点
  2974. zoom: 16, // 缩放级别
  2975. rotation: undefined, // 缩放完成view视图旋转弧度
  2976. duration: 1000, // 缩放持续时间,默认不需要设置
  2977. });
  2978. //获取坐标定位开始----------end
  2979. //特效动画实现 -----------------------------start
  2980. texiao_layer_di = new ol.layer.Vector({
  2981. source: new ol.source.Vector(),
  2982. });
  2983. map.addLayer(texiao_layer_di);
  2984. var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  2985. var circle = new ol.Feature({
  2986. geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2987. });
  2988. //var out =new ol.coordinate.Coordinate(datamap);
  2989. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2990. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2991. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2992. circle.setStyle(
  2993. new ol.style.Style({
  2994. image: new ol.style.Circle({
  2995. radius: 0,
  2996. stroke: new ol.style.Stroke({
  2997. color: "#ef5b9c",
  2998. size: 1,
  2999. }),
  3000. }),
  3001. })
  3002. );
  3003. texiao_layer_di.getSource().addFeature(circle);
  3004. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  3005. var radius = 0;
  3006. map.on("postcompose", function () {
  3007. // 增大半径,最大20
  3008. radius++;
  3009. radius = radius % 10;
  3010. // 设置样式
  3011. circle.setStyle(
  3012. new ol.style.Style({
  3013. image: new ol.style.Circle({
  3014. radius: radius,
  3015. stroke: new ol.style.Stroke({
  3016. color: "#ef5b9c",
  3017. size: 1,
  3018. }),
  3019. }),
  3020. })
  3021. );
  3022. });
  3023. //特效动画实现 -----------------------------end
  3024. //关联查询农地信息 ----------start
  3025. document.getElementById("info").innerHTML = "";
  3026. var select_di = (document.getElementById("info").innerHTML =
  3027. data.features[0].properties);
  3028. _this.farmhouseStatus = 1;
  3029. let obj = {};
  3030. let zjId = data.features[0].id;
  3031. let zjIdNum = zjId.replace("t_geo_hc_land.", "");
  3032. obj.id = zjIdNum; // 主键id
  3033. obj.xh = select_di.XH; //序号
  3034. obj.cm = select_di.CM; //村名
  3035. obj.cbrmc = select_di.CBRMC; //承包人名称
  3036. obj.syrmc = select_di.SYRMC; //使用人名称
  3037. obj.nydlx = select_di.NYDLX; //农用地类型
  3038. obj.mj = select_di.MJ; //面积
  3039. obj.xzqk = select_di.XZQK; //现状情况
  3040. obj.lzhtjzrq = select_di.LZHTJZRQ; //流转合同截止时间
  3041. obj.lzsynx = select_di.LZSYNX; //流转剩余年限
  3042. obj.sfylzyx = select_di.SFYLZYX; //是否流转意向
  3043. obj.cdm = select_di.CDM; //村代码
  3044. obj.orgCode = select_di.org_code; //行政区化代码
  3045. obj.frontland = select_di.front_land; //图片前
  3046. obj.behindland = select_di.behind_land; //图片后
  3047. // // _this.nydlxOptionsValue = trs.find("td").eq(5).text(); //农用地类型
  3048. let cloneObj = JSON.parse(JSON.stringify(obj));
  3049. _this.landInfoList = cloneObj;
  3050. _this.landInfoLookList = obj;
  3051. //关联查询农地信息 ----------end
  3052. })
  3053. .catch((error) => {
  3054. console.log("【异常】", error);
  3055. });
  3056. });
  3057. //-----------------------------------------------------------------------------特效农地加载结束 end
  3058. },
  3059. //农房 - 土地性质 选择值
  3060. tdxzOptionsFun(value) {
  3061. this.houseInfoList.tdxz = value.dictLabel;
  3062. this.tdxzOptionsVibile = false;
  3063. },
  3064. //农房 - 是否有审批 选择值
  3065. xfCirculationFun(value) {
  3066. this.xfCirculationVisbile = false;
  3067. this.houseInfoList.sfyspsx = value;
  3068. },
  3069. //农房 - 现状情况 选择值
  3070. xzqkOptionsFun(value) {
  3071. this.houseInfoList.xzqk = value.dictValue;
  3072. this.xzqkOptionsVisbile = false;
  3073. },
  3074. //农房 - 是否有流转 选择值
  3075. xflzCirculationFun(value) {
  3076. this.xflzCirculationVisbile = false;
  3077. this.houseInfoList.xzfwsfylzy = value;
  3078. },
  3079. //农房 - 房屋类型
  3080. fwdlxOptionsFun(value) {
  3081. this.houseInfoList.tdfl = value;
  3082. this.fwdlxOptionsVibile = false;
  3083. },
  3084. //农地 - 现状情况 选择值
  3085. ndxzqkOptionsFun(value) {
  3086. this.landInfoList.xzqk = value.dictValue;
  3087. this.ndxzqkOptionsVisbile = false;
  3088. },
  3089. //农地 - 农用地类型 选择值
  3090. nydlxOptionsFun(value) {
  3091. this.landInfoList.nydlx = value.dictLabel;
  3092. // this.nydlxOptionsValue = value.dictLabel;
  3093. this.nydlxOptionsVibile = false;
  3094. },
  3095. //农地 - 是否有流转 选择值
  3096. xdCirculationOptionsFun(value) {
  3097. this.xdlzCirculationVisbile = false;
  3098. this.landInfoList.sfylzyx = value;
  3099. },
  3100. //农房 -- 新建 上传图片方法
  3101. // nfAddimgonRead(file) {
  3102. // var formData = new FormData(); //构造一个 FormData,把后台需要发送的参数添加
  3103. // formData.append("file", file.file); //接口需要传的参数
  3104. // console.log(formData);
  3105. // commonUpload(formData).then((res) => {
  3106. // this.houseInfoList.frontHouse = res.url;
  3107. // });
  3108. // },
  3109. nfAddimgonRead(file) {
  3110. // 创建Canvas对象(画布)
  3111. let canvas = document.createElement('canvas')
  3112. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3113. let context = canvas.getContext('2d')
  3114. // 创建新的图片对象
  3115. let img = new Image()
  3116. // 指定图片的DataURL(图片的base64编码数据)
  3117. img.src = file.content
  3118. img.onload = () => {
  3119. const h = img.height
  3120. const w = img.width
  3121. let ch = img.height/4
  3122. let cw = img.width/4
  3123. let canvas = document.createElement('canvas')
  3124. let ctx = canvas.getContext('2d')
  3125. canvas.height = ch
  3126. canvas.width = cw
  3127. ctx.clearRect(0,0,cw,ch)
  3128. ctx.drawImage(img,0,0,cw,ch)
  3129. let base_img = canvas.toDataURL('image/jpeg')
  3130. const blobBin = atob(base_img.split(',')[1])
  3131. let d = []
  3132. for (let i=0;i<blobBin.length;i++){
  3133. d.push(blobBin.charCodeAt(i))
  3134. }
  3135. const data2 = new FormData();
  3136. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3137. uploadFileBase(data2).then(res => {
  3138. //this.houseInfoList.frontHouse =res.fileName
  3139. if(res.code ==200){
  3140. this.houseInfoList.frontHouse = location.protocol+"//"+location.host+request.defaults.baseURL+ res.fileName;
  3141. }else{
  3142. return "图片上传失败"
  3143. }
  3144. })
  3145. }
  3146. },
  3147. //农地 -- 新建 上传图片方法
  3148. // ndAddimgonRead(file) {
  3149. // var formData = new FormData(); //构造一个 FormData,把后台需要发送的参数添加
  3150. // formData.append("file", file.file); //接口需要传的参数
  3151. // commonUpload(formData).then((res) => {
  3152. // this.landInfoList.frontland = res.url;
  3153. // console.log(this.landInfoList.frontland);
  3154. // });
  3155. // },
  3156. ndAddimgonRead(file) {
  3157. // 创建Canvas对象(画布)
  3158. let canvas = document.createElement('canvas')
  3159. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3160. let context = canvas.getContext('2d')
  3161. // 创建新的图片对象
  3162. let img = new Image()
  3163. // 指定图片的DataURL(图片的base64编码数据)
  3164. img.src = file.content
  3165. img.onload = () => {
  3166. const h = img.height
  3167. const w = img.width
  3168. let ch = img.height/4
  3169. let cw = img.width/4
  3170. let canvas = document.createElement('canvas')
  3171. let ctx = canvas.getContext('2d')
  3172. canvas.height = ch
  3173. canvas.width = cw
  3174. ctx.clearRect(0,0,cw,ch)
  3175. ctx.drawImage(img,0,0,cw,ch)
  3176. let base_img = canvas.toDataURL('image/jpeg')
  3177. const blobBin = atob(base_img.split(',')[1])
  3178. let d = []
  3179. for (let i=0;i<blobBin.length;i++){
  3180. d.push(blobBin.charCodeAt(i))
  3181. }
  3182. const data2 = new FormData();
  3183. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3184. uploadFileBase(data2).then(res => {
  3185. if(res.code ==200){
  3186. this.landInfoList.frontland = location.protocol+"//"+location.host+request.defaults.baseURL+ res.fileName;
  3187. }else{
  3188. return "图片上传失败"
  3189. }
  3190. })
  3191. }
  3192. },
  3193. },
  3194. };
  3195. </script>
  3196. <style scoped lang="scss">
  3197. .app-container {
  3198. width: 100vw;
  3199. height: 100vh;
  3200. position: relative;
  3201. .rightIcon_wrap {
  3202. position: absolute;
  3203. right: 16px;
  3204. bottom: 160px;
  3205. .selectionIcon_wrap {
  3206. width: 74px;
  3207. background: #fff;
  3208. border-radius: 10px;
  3209. padding: 14px 0;
  3210. .icon {
  3211. width: 38px;
  3212. height: 38px;
  3213. background: url("../../assets/images/homestead/selection_icon.png")
  3214. no-repeat;
  3215. background-size: 100% 100%;
  3216. margin: 0 auto 4px;
  3217. }
  3218. .text {
  3219. font-size: 24px;
  3220. text-align: center;
  3221. }
  3222. }
  3223. .positioning_wrap {
  3224. width: 74px;
  3225. background: #fff;
  3226. margin-bottom: 16px;
  3227. border-radius: 10px;
  3228. height: 74px;
  3229. display: flex;
  3230. justify-content: center; /* 相对父元素水平居中 */
  3231. align-items: center; /* 子元素相对父元素垂直居中*/
  3232. .icon {
  3233. width: 38px;
  3234. height: 38px;
  3235. background: url("../../assets/images/homestead/positioning_icon.png")
  3236. no-repeat;
  3237. background-size: 100% 100%;
  3238. margin: 0 auto;
  3239. }
  3240. }
  3241. }
  3242. .rightZoom_wrap {
  3243. position: absolute;
  3244. right: 16px;
  3245. top: 50%;
  3246. width: 74px;
  3247. margin-top: -200px;
  3248. background: #fff;
  3249. margin-bottom: 16px;
  3250. border-radius: 10px;
  3251. height: 100px;
  3252. .amplification,
  3253. .narrow {
  3254. height: 50px;
  3255. width: 74px;
  3256. }
  3257. .amplification {
  3258. background: url("../../assets/images/homestead/jia.png") center center
  3259. no-repeat;
  3260. // background-size: 40% auto;
  3261. }
  3262. .narrow {
  3263. background: url("../../assets/images/homestead/jian.png") center center
  3264. no-repeat;
  3265. // background-size: 40% auto;
  3266. }
  3267. }
  3268. // <div class="rightZoom_wrap">
  3269. // <div class="amplification"></div>
  3270. // <div class="narrow"></div>
  3271. // </div>
  3272. .homesteadList_wrap {
  3273. // display: none;
  3274. display: flex;
  3275. position: absolute;
  3276. right: -536px;
  3277. top: 20px;
  3278. bottom: 160px;
  3279. width: 536px;
  3280. background: #fff;
  3281. z-index: 999;
  3282. border-top-left-radius: 15px;
  3283. border-bottom-left-radius: 15px;
  3284. flex-direction: column;
  3285. .noInfo_data {
  3286. font-size: 28px;
  3287. text-align: center;
  3288. height: 300px;
  3289. line-height: 300px;
  3290. color: #666;
  3291. }
  3292. .title_m {
  3293. color: #333;
  3294. line-height: 36px;
  3295. padding: 20px 40px 22px;
  3296. .name {
  3297. font-size: 40px;
  3298. line-height: 42px;
  3299. height: 42px;
  3300. }
  3301. .more_icon {
  3302. width: 38px;
  3303. height: 38px;
  3304. background: url("../../assets/images/homestead/selectionNext_icon.png")
  3305. no-repeat;
  3306. float: right;
  3307. margin-top: 2px;
  3308. }
  3309. }
  3310. .main_m {
  3311. overflow-y: auto;
  3312. padding: 10px 0;
  3313. // height: 300px;
  3314. flex: 1;
  3315. .flex_block {
  3316. height: 70px;
  3317. display: flex;
  3318. // justify-content: center; /* 相对父元素水平居中 */
  3319. align-items: center; /* 子元素相对父元素垂直居中 */
  3320. padding: 0 40px;
  3321. &.active {
  3322. box-shadow: 0px 0px 10px rgba(24, 45, 51, 0.5);
  3323. }
  3324. .name_text {
  3325. font-size: 28px;
  3326. flex: 0.5;
  3327. overflow: hidden; /*超出部分隐藏*/
  3328. white-space: nowrap; /*不换行*/
  3329. text-overflow: ellipsis; /*超出部分文字以...显示*/
  3330. }
  3331. .square_text {
  3332. font-size: 28px;
  3333. flex: 0.4;
  3334. }
  3335. .operation_mian {
  3336. flex: 0 0 150px;
  3337. .describe {
  3338. font-size: 20px;
  3339. padding: 6px 5px;
  3340. float: right;
  3341. color: #fff;
  3342. border-radius: 30px;
  3343. overflow: hidden;
  3344. text-overflow: ellipsis;
  3345. white-space: nowrap;
  3346. max-width: 150px;
  3347. &.yph {
  3348. background: #b026ff;
  3349. }
  3350. &.dlzdph {
  3351. background: #ff6f36;
  3352. }
  3353. &.ylz {
  3354. background: #7fff4c;
  3355. }
  3356. &.dlz {
  3357. background: rgb(255, 232, 76);
  3358. }
  3359. &.ylzdph {
  3360. background: #ff7dd0;
  3361. }
  3362. &.zy {
  3363. background: rgb(100, 30, 100);
  3364. }
  3365. &.xz {
  3366. background: rgb(60, 100, 180);
  3367. }
  3368. &.chdb {
  3369. background: #fe0303;
  3370. }
  3371. }
  3372. }
  3373. }
  3374. }
  3375. .footerBtn_wrap {
  3376. flex: 0 0 90px;
  3377. display: flex;
  3378. justify-content: center; /* 相对父元素水平居中 */
  3379. align-items: center; /* 子元素相对父元素垂直居中 */
  3380. .options {
  3381. flex: 1;
  3382. font-size: 38px;
  3383. display: flex;
  3384. justify-content: center; /* 相对父元素水平居中 */
  3385. align-items: center; /* 子元素相对父元素垂直居中 */
  3386. height: 90px;
  3387. &:first-child {
  3388. border-bottom-left-radius: 15px;
  3389. }
  3390. &.active {
  3391. background: #3cbf5b;
  3392. color: #fff;
  3393. }
  3394. }
  3395. }
  3396. }
  3397. .map_area {
  3398. width: 100vw;
  3399. height: 100vh;
  3400. background: #ddd;
  3401. position: absolute;
  3402. left: 0;
  3403. top: 0;
  3404. }
  3405. .address_wrap {
  3406. position: fixed;
  3407. // z-index: 9;
  3408. top: 24px;
  3409. left: 16px;
  3410. display: flex;
  3411. .address_item {
  3412. display: flex;
  3413. flex-direction: column;
  3414. margin-right: 8px;
  3415. justify-content: center; /* 相对父元素水平居中 */
  3416. align-items: center; /* 子元素相对父元素垂直居中 */
  3417. position: relative;
  3418. .portrait {
  3419. width: 86px;
  3420. height: 86px;
  3421. background: #000;
  3422. border-radius: 50%;
  3423. margin-bottom: 18px;
  3424. font-size: 30px;
  3425. color: #fff;
  3426. text-align: center;
  3427. line-height: 65px;
  3428. color: #fff;
  3429. &.zhen,
  3430. &.cun {
  3431. border: 5px solid rgba(255, 255, 255, 0.6);
  3432. }
  3433. &.zhen {
  3434. background: url("../../assets/images/homestead/zhen.jpg") top center
  3435. no-repeat;
  3436. background-size: 100% 100%;
  3437. }
  3438. &.cun {
  3439. background: url("../../assets/images/homestead/cun.jpg") top center
  3440. no-repeat;
  3441. background-size: 100% 100%;
  3442. }
  3443. }
  3444. .name {
  3445. font-size: 22px;
  3446. background: #fff;
  3447. padding: 4px 6px;
  3448. border-radius: 8px;
  3449. }
  3450. &.more {
  3451. .portrait {
  3452. width: 40px;
  3453. background: none;
  3454. }
  3455. .name {
  3456. background: url("../../assets/images/homestead/address_more.png")
  3457. no-repeat;
  3458. background-size: 100% 100%;
  3459. width: 40px;
  3460. height: 40px;
  3461. padding: 0;
  3462. &.shrink {
  3463. transform: rotate(180deg);
  3464. }
  3465. }
  3466. }
  3467. .address_suspension {
  3468. position: absolute;
  3469. left: calc(100% + 8px);
  3470. top: 100px;
  3471. z-index: 10;
  3472. padding: 10px 8px 10px 15px;
  3473. background: #fff;
  3474. border-radius: 10px;
  3475. width: auto;
  3476. .address_suspension_scroll {
  3477. height: 200px;
  3478. overflow-y: auto;
  3479. padding-right: 8px;
  3480. }
  3481. .items {
  3482. white-space: nowrap;
  3483. }
  3484. }
  3485. }
  3486. }
  3487. .searchBar_wrap {
  3488. // display: none;
  3489. display: flex;
  3490. position: fixed;
  3491. bottom: 0%;
  3492. left: 0;
  3493. width: 100%;
  3494. padding: 28px 16px 28px 13px;
  3495. background: #fff;
  3496. border-top-left-radius: 15px;
  3497. border-top-right-radius: 15px;
  3498. .actionBar_wrap {
  3499. display: flex;
  3500. position: absolute;
  3501. top: 0;
  3502. left: 0;
  3503. width: 100%;
  3504. height: 100%;
  3505. background: #fff;
  3506. border-top-left-radius: 15px;
  3507. border-top-right-radius: 15px;
  3508. .m_list {
  3509. flex: 1;
  3510. display: flex;
  3511. justify-content: center; /* 相对父元素水平居中 */
  3512. align-items: center; /* 子元素相对父元素垂直居中 */
  3513. .tensile,
  3514. .positioning,
  3515. .spacing,
  3516. .scale {
  3517. width: 76px;
  3518. height: 72px;
  3519. background: #ffffff;
  3520. border-radius: 8px;
  3521. box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.16);
  3522. .icon {
  3523. width: 76px;
  3524. height: 72px;
  3525. }
  3526. &.active {
  3527. background: #333;
  3528. &.tensile {
  3529. .icon {
  3530. background: url("../../assets/images/homestead/operation/tensile_active.png")
  3531. center center no-repeat;
  3532. background-size: 38px 50px;
  3533. }
  3534. }
  3535. &.positioning {
  3536. .icon {
  3537. background: url("../../assets/images/homestead/operation/positioning_active.png")
  3538. center center no-repeat;
  3539. background-size: 38px 48px;
  3540. }
  3541. }
  3542. &.spacing {
  3543. .icon {
  3544. background: url("../../assets/images/homestead/operation/spacing_active.png")
  3545. center center no-repeat;
  3546. background-size: 46px 46px;
  3547. }
  3548. }
  3549. &.scale {
  3550. .icon {
  3551. background: url("../../assets/images/homestead/operation/scale_active.png")
  3552. center center no-repeat;
  3553. background-size: 48px 48px;
  3554. }
  3555. }
  3556. }
  3557. }
  3558. .tensile {
  3559. .icon {
  3560. background: url("../../assets/images/homestead/operation/tensile.png")
  3561. center center no-repeat;
  3562. background-size: 38px 50px;
  3563. }
  3564. }
  3565. .positioning {
  3566. .icon {
  3567. background: url("../../assets/images/homestead/operation/positioning.png")
  3568. center center no-repeat;
  3569. background-size: 38px 48px;
  3570. }
  3571. }
  3572. .spacing {
  3573. .icon {
  3574. background: url("../../assets/images/homestead/operation/spacing.png")
  3575. center center no-repeat;
  3576. background-size: 46px 46px;
  3577. }
  3578. }
  3579. .scale {
  3580. .icon {
  3581. background: url("../../assets/images/homestead/operation/scale.png")
  3582. center center no-repeat;
  3583. background-size: 48px 48px;
  3584. }
  3585. }
  3586. .closes {
  3587. background: url("../../assets/images/homestead/searchBar_close.png")
  3588. no-repeat;
  3589. background-size: 100% 100%;
  3590. width: 72px;
  3591. height: 72px;
  3592. &.gray {
  3593. background: url("../../assets/images/homestead/searchBar_close_gray.png")
  3594. no-repeat;
  3595. background-size: 100% 100%;
  3596. }
  3597. }
  3598. .correct {
  3599. background: url("../../assets/images/homestead/searchBar_save.png")
  3600. no-repeat;
  3601. background-size: 100% 100%;
  3602. width: 72px;
  3603. height: 72px;
  3604. }
  3605. }
  3606. }
  3607. .searchBar_area {
  3608. flex: 1;
  3609. height: 80px;
  3610. background: #f1f1f1;
  3611. border: 1px solid #dfdfdf;
  3612. border-radius: 10px;
  3613. padding: 0 28px;
  3614. display: flex;
  3615. .bar_icon {
  3616. width: 50px;
  3617. height: 50px;
  3618. background: url("../../assets/images/homestead/searchBar_bar.png")
  3619. center center no-repeat;
  3620. background-size: 100% 100%;
  3621. margin-top: 14px;
  3622. margin-right: 15px;
  3623. }
  3624. .bar_ipt {
  3625. flex: 1;
  3626. input {
  3627. width: 100%;
  3628. height: 100%;
  3629. background: none;
  3630. border: 0 none;
  3631. font-size: 32px;
  3632. }
  3633. }
  3634. .bar_text {
  3635. flex: 0 0 80px;
  3636. font-size: 32px;
  3637. color: #333333;
  3638. font-family: PingFang SC, PingFang SC-Regular;
  3639. font-weight: 400;
  3640. display: flex;
  3641. justify-content: center; /* 相对父元素水平居中 */
  3642. align-items: center; /* 子元素相对父元素垂直居中 */
  3643. }
  3644. }
  3645. .searchBar_more {
  3646. flex: 0 0 80px;
  3647. background: url("../../assets/images/homestead/searchBar_add.png") center
  3648. center no-repeat;
  3649. background-size: 80% 80%;
  3650. margin-left: 15px;
  3651. }
  3652. }
  3653. .landHomestead_wrap {
  3654. position: fixed;
  3655. bottom: -100%;
  3656. left: 0;
  3657. width: 100%;
  3658. padding: 0 16px;
  3659. .landHomestead_search {
  3660. height: 80px;
  3661. background: #f1f1f1;
  3662. border: 1px solid #dfdfdf;
  3663. border-radius: 10px;
  3664. padding: 0 28px;
  3665. display: flex;
  3666. margin-bottom: 10px;
  3667. .bar_icon {
  3668. width: 50px;
  3669. height: 50px;
  3670. background: url("../../assets/images/homestead/searchBar_bar.png")
  3671. center center no-repeat;
  3672. background-size: 95% 95%;
  3673. margin-top: 14px;
  3674. margin-right: 15px;
  3675. }
  3676. .bar_ipt {
  3677. flex: 1;
  3678. input {
  3679. width: 100%;
  3680. height: 100%;
  3681. background: none;
  3682. border: 0 none;
  3683. font-size: 32px;
  3684. }
  3685. }
  3686. .bar_text {
  3687. flex: 0 0 80px;
  3688. font-size: 32px;
  3689. color: #333333;
  3690. font-family: PingFang SC, PingFang SC-Regular;
  3691. font-weight: 400;
  3692. display: flex;
  3693. justify-content: center; /* 相对父元素水平居中 */
  3694. align-items: center; /* 子元素相对父元素垂直居中 */
  3695. }
  3696. }
  3697. .landHomestead_body {
  3698. background: #fff;
  3699. padding: 30px 20px;
  3700. border-top-left-radius: 12px;
  3701. border-top-right-radius: 12px;
  3702. position: relative;
  3703. .body_flex {
  3704. display: block;
  3705. overflow: hidden;
  3706. .attribute {
  3707. width: 42%;
  3708. float: left;
  3709. .names {
  3710. height: 54px;
  3711. padding-left: 46px;
  3712. background: url("../../assets/images/homestead/landHomestead_home.png")
  3713. left center no-repeat;
  3714. background-size: 38px 36px;
  3715. font-size: 32px;
  3716. line-height: 54px;
  3717. color: #333333;
  3718. margin-bottom: 12px;
  3719. overflow: hidden;
  3720. text-overflow: ellipsis;
  3721. white-space: nowrap;
  3722. }
  3723. .address {
  3724. height: 48px;
  3725. line-height: 48px;
  3726. font-size: 28px;
  3727. white-space: nowrap;
  3728. text-overflow: ellipsis;
  3729. overflow: hidden;
  3730. word-break: break-all;
  3731. margin-right: 8px;
  3732. }
  3733. .nature {
  3734. height: 48px;
  3735. font-size: 28px;
  3736. }
  3737. }
  3738. .distance {
  3739. width: 29%;
  3740. float: left;
  3741. .size {
  3742. height: 54px;
  3743. line-height: 54px;
  3744. font-size: 40px;
  3745. color: #333333;
  3746. margin-bottom: 12px;
  3747. }
  3748. .probably {
  3749. line-height: 48px;
  3750. font-size: 28px;
  3751. height: 48px;
  3752. }
  3753. }
  3754. .others {
  3755. width: 29%;
  3756. float: left;
  3757. .information {
  3758. height: 54px;
  3759. margin-bottom: 12px;
  3760. .status_text {
  3761. color: #fff;
  3762. font-size: 24px;
  3763. background: #3cbf5b;
  3764. border-radius: 20px;
  3765. padding: 8px 15px;
  3766. float: right;
  3767. max-width: calc(100% - 56px);
  3768. overflow: hidden;
  3769. text-overflow: ellipsis;
  3770. white-space: nowrap;
  3771. }
  3772. .location {
  3773. width: 36px;
  3774. height: 36px;
  3775. background: url("../../assets/images/homestead/others_location.png")
  3776. no-repeat;
  3777. float: right;
  3778. margin: 8px 0 0 20px;
  3779. }
  3780. }
  3781. .editor {
  3782. height: 96px;
  3783. .editor_icon {
  3784. width: 72px;
  3785. height: 72px;
  3786. float: right;
  3787. background: url("../../assets/images/homestead/edit_icon.png")
  3788. no-repeat;
  3789. background-size: 100% 100%;
  3790. margin-top: 14px;
  3791. }
  3792. }
  3793. }
  3794. }
  3795. }
  3796. }
  3797. .landHomesteadDetails_wrap {
  3798. display: flex;
  3799. position: absolute;
  3800. left: 0;
  3801. bottom: 0;
  3802. width: 100%;
  3803. z-index: 99;
  3804. height: calc(100% - 190px);
  3805. .content_mian {
  3806. flex: 1;
  3807. margin: 0 16px;
  3808. padding: 28px 40px 28px 40px;
  3809. background: #fff;
  3810. border-top-left-radius: 15px;
  3811. border-top-right-radius: 15px;
  3812. display: flex;
  3813. flex-direction: column;
  3814. .serial_flex {
  3815. flex: 0 0 60px;
  3816. margin-bottom: 15px;
  3817. font-size: 40px;
  3818. justify-content: center; /* 相对父元素水平居中 */
  3819. align-items: center; /* 子元素相对父元素垂直居中 */
  3820. color: #333;
  3821. display: flex;
  3822. .number {
  3823. flex: 1;
  3824. span {
  3825. padding-left: 30px;
  3826. }
  3827. }
  3828. .localhref {
  3829. height: 36px;
  3830. flex: 0 0 36px;
  3831. background: url("../../assets/images/homestead/farmlandEditSwitch_close.png")
  3832. no-repeat;
  3833. background-size: 100% 100%;
  3834. }
  3835. }
  3836. .flex_block {
  3837. flex: 1;
  3838. font-size: 28px;
  3839. .describe {
  3840. color: #555;
  3841. padding-right: 30px;
  3842. }
  3843. .content {
  3844. font-size: #333;
  3845. }
  3846. }
  3847. .uploadPictures_block {
  3848. flex: 0 0 160px;
  3849. display: flex;
  3850. max-width: 90%;
  3851. .statusQuo {
  3852. flex: 1;
  3853. display: flex;
  3854. &:first-child {
  3855. margin-right: 36px;
  3856. }
  3857. .picture {
  3858. flex: 1;
  3859. background: url("../../assets/images/homestead/no_img.png") center
  3860. center no-repeat;
  3861. background-size: 90% auto;
  3862. img {
  3863. width: 100%;
  3864. height: 100%;
  3865. }
  3866. }
  3867. .describe {
  3868. flex: 0 0 32px;
  3869. display: flex;
  3870. justify-content: center; /* 相对父元素水平居中 */
  3871. align-items: center; /* 子元素相对父元素垂直居中 */
  3872. margin-left: 6px;
  3873. }
  3874. }
  3875. }
  3876. .editor_block {
  3877. flex: 0 0 72px;
  3878. margin-top: 20px;
  3879. display: flex;
  3880. justify-content: flex-end;
  3881. .editor_icon {
  3882. width: 70px;
  3883. height: 70px;
  3884. background: url("../../assets/images/homestead/edit_icon.png")
  3885. no-repeat;
  3886. background-size: 100% 100%;
  3887. }
  3888. }
  3889. }
  3890. }
  3891. .landHomesteadEdit_wrap {
  3892. display: flex;
  3893. position: absolute;
  3894. left: 0;
  3895. bottom: -100vh;
  3896. z-index: 100;
  3897. width: 100%;
  3898. height: calc(100% - 190px);
  3899. flex-direction: column;
  3900. .content_mian {
  3901. flex: 1;
  3902. margin: 0 16px;
  3903. padding: 28px 25px 28px 40px;
  3904. background: #fff;
  3905. border-top-left-radius: 15px;
  3906. border-top-right-radius: 15px;
  3907. display: flex;
  3908. flex-direction: column;
  3909. .info_title {
  3910. flex: 0 0 60px;
  3911. margin-bottom: 15px;
  3912. font-size: 40px;
  3913. justify-content: center; /* 相对父元素水平居中 */
  3914. align-items: center; /* 子元素相对父元素垂直居中 */
  3915. color: #333;
  3916. }
  3917. .flex_main {
  3918. height: 890px;
  3919. padding-right: 15px;
  3920. overflow-y: auto;
  3921. }
  3922. .flex_block {
  3923. height: 100px;
  3924. margin-bottom: 20px;
  3925. .number_s50 {
  3926. width: 50%;
  3927. display: flex;
  3928. float: left;
  3929. flex-direction: column;
  3930. }
  3931. .number_s100 {
  3932. width: 100%;
  3933. float: left;
  3934. display: flex;
  3935. flex-direction: column;
  3936. }
  3937. .number_s60 {
  3938. // flex: 0.6;
  3939. width: 60%;
  3940. float: left;
  3941. display: flex;
  3942. flex-direction: column;
  3943. }
  3944. .number_s40 {
  3945. // flex: 0.4;
  3946. width: 40%;
  3947. display: flex;
  3948. flex-direction: column;
  3949. }
  3950. .number_s35 {
  3951. width: 35%;
  3952. float: left;
  3953. display: flex;
  3954. flex-direction: column;
  3955. }
  3956. .number_s30 {
  3957. width: 30%;
  3958. display: flex;
  3959. float: left;
  3960. flex-direction: column;
  3961. }
  3962. .title_m {
  3963. font-size: 28px;
  3964. flex: 0 0 50px;
  3965. white-space: nowrap;
  3966. text-overflow: ellipsis;
  3967. overflow: hidden;
  3968. word-break: break-all;
  3969. align-items: center; /* 子元素相对父元素垂直居中 */
  3970. }
  3971. .input_m {
  3972. &.select {
  3973. position: relative;
  3974. .dropDown_icon {
  3975. width: 20px;
  3976. height: 16px;
  3977. background: url("../../assets/images/homestead/drop-down.png")
  3978. no-repeat;
  3979. background-size: 100% 100%;
  3980. display: block;
  3981. position: absolute;
  3982. right: 8px;
  3983. top: 12px;
  3984. z-index: 99;
  3985. }
  3986. }
  3987. &.about {
  3988. position: relative;
  3989. .about_symbol {
  3990. position: absolute;
  3991. left: 8px;
  3992. top: 5px;
  3993. z-index: 99;
  3994. }
  3995. /deep/ {
  3996. .van-field__control {
  3997. padding-left: 38px;
  3998. }
  3999. }
  4000. }
  4001. .van-cell {
  4002. padding: 0;
  4003. /deep/ {
  4004. .van-field__control {
  4005. border-bottom: 1px solid #707070;
  4006. &:focus {
  4007. border-color: #3cbf5b;
  4008. color: #3cbf5b;
  4009. }
  4010. }
  4011. }
  4012. }
  4013. }
  4014. .mr50 {
  4015. padding-right: 50px;
  4016. }
  4017. }
  4018. .uploadPicturesFlex_block {
  4019. .title_m {
  4020. font-size: 28px;
  4021. flex: 0 0 50px;
  4022. white-space: nowrap;
  4023. text-overflow: ellipsis;
  4024. overflow: hidden;
  4025. word-break: break-all;
  4026. align-items: center; /* 子元素相对父元素垂直居中 */
  4027. margin-bottom: 20px;
  4028. }
  4029. .main_m {
  4030. }
  4031. }
  4032. }
  4033. .footer_main {
  4034. flex: 0 0 120px;
  4035. background: #fff;
  4036. display: flex;
  4037. justify-content: center; /* 相对父元素水平居中 */
  4038. align-items: center; /* 子元素相对父元素垂直居中 */
  4039. .cancel,
  4040. .save {
  4041. width: 260px;
  4042. height: 75px;
  4043. border-radius: 75px;
  4044. background: #cccccc;
  4045. font-size: 32px;
  4046. color: #fff;
  4047. display: flex;
  4048. justify-content: center; /* 相对父元素水平居中 */
  4049. align-items: center; /* 子元素相对父元素垂直居中 */
  4050. }
  4051. .save {
  4052. background: #3cbf5b;
  4053. margin-left: 50px;
  4054. }
  4055. }
  4056. }
  4057. .farmlandEditSwitch_wrap {
  4058. width: 100vw;
  4059. height: 100vh;
  4060. background: url("../../assets/images/homestead/farmlandEditSwitch_bg.png")
  4061. no-repeat;
  4062. background-size: 100% 100%;
  4063. position: absolute;
  4064. left: 0;
  4065. top: 0;
  4066. z-index: 1001;
  4067. .mains {
  4068. width: 544px;
  4069. height: 480px;
  4070. background: #fff;
  4071. position: absolute;
  4072. left: 50%;
  4073. top: 50%;
  4074. margin: -272px 0 0 -272px;
  4075. z-index: 1002;
  4076. border-radius: 30px;
  4077. padding: 0 30px;
  4078. display: flex;
  4079. justify-content: center; /* 相对父元素水平居中 */
  4080. align-items: center; /* 子元素相对父元素垂直居中 */
  4081. .close_btn {
  4082. position: absolute;
  4083. width: 28px;
  4084. height: 28px;
  4085. background: url("../../assets/images/homestead/farmlandEditSwitch_close.png")
  4086. no-repeat;
  4087. background-size: 100% 100%;
  4088. right: 40px;
  4089. top: 40px;
  4090. }
  4091. .farmhouse {
  4092. flex: 1;
  4093. display: flex;
  4094. justify-content: center; /* 相对父元素水平居中 */
  4095. align-items: center; /* 子元素相对父元素垂直居中 */
  4096. }
  4097. .farmland {
  4098. flex: 1;
  4099. display: flex;
  4100. justify-content: center; /* 相对父元素水平居中 */
  4101. align-items: center; /* 子元素相对父元素垂直居中 */
  4102. }
  4103. .farmhouse,
  4104. .farmland {
  4105. flex-direction: column;
  4106. .icons {
  4107. width: 146px;
  4108. height: 146px;
  4109. margin-bottom: 14px;
  4110. }
  4111. .names {
  4112. font-size: 40px;
  4113. color: #3cbf5b;
  4114. }
  4115. }
  4116. .farmhouse {
  4117. .icons {
  4118. background: url("../../assets/images/homestead/nf.png") no-repeat;
  4119. background-size: 100% 100%;
  4120. }
  4121. }
  4122. .farmland {
  4123. .icons {
  4124. background: url("../../assets/images/homestead/nd.png") no-repeat;
  4125. background-size: 100% 100%;
  4126. }
  4127. }
  4128. // <div class="farmhouse">
  4129. // <div class="icons"></div>
  4130. // <p class="names">农房</p>
  4131. // </div>
  4132. // <div class="farmland">
  4133. // <div class="icons"></div>
  4134. // <p class="names">农地</p>
  4135. // </div>
  4136. }
  4137. }
  4138. }
  4139. ::-webkit-scrollbar {
  4140. -webkit-appearance: none;
  4141. }
  4142. ::-webkit-scrollbar:vertical {
  4143. width: 10px;
  4144. border-radius: 10px;
  4145. }
  4146. ::-webkit-scrollbar:horizontal {
  4147. height: 10px;
  4148. border-radius: 10px;
  4149. }
  4150. ::-webkit-scrollbar-thumb {
  4151. background-color: #eee;
  4152. border-radius: 10px;
  4153. border: 3px solid #ffffff;
  4154. }
  4155. ::-webkit-scrollbar-track {
  4156. border-radius: 10px;
  4157. background-color: #ffffff;
  4158. }
  4159. ::v-deep {
  4160. .van-overlay {
  4161. background-color: rgba(0, 0, 0, 0.2);
  4162. }
  4163. }
  4164. </style>