移动端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016
  1. <template>
  2. <div class="app-container">
  3. <van-sticky>
  4. <div class="bannerBg" style="">
  5. <van-nav-bar
  6. style="background:transparent;border-bottom-width:0;"
  7. @click-left="onClickLeft"
  8. >
  9. <template #left>
  10. <van-icon name="arrow-left" size=".5rem" color="#fff" />
  11. </template>
  12. <template #title>
  13. <p style="color:#fff">{{item.deptName}}</p>
  14. </template>
  15. </van-nav-bar>
  16. <div style="display:flex;width:94%;margin:0 auto;justify-content:space-between;padding: 10px 0">
  17. <div style="display:flex;width:90%;margin:0 auto;">
  18. <div :class="{activeBtn : activeBtn==1,disactiveBtn :activeBtn!=1 }" @click="activeBtn=1,getDc()"
  19. ><van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn1'+(activeBtn!=1?'1':'')+'.png')" />
  20. 入户核查
  21. </div>
  22. <div :class="{activeBtn : activeBtn==2,disactiveBtn :activeBtn!=2 }" @click="activeBtn=2,getNh()">
  23. <van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn2'+(activeBtn!=2?'2':'')+'.png')" />
  24. 农户信息
  25. </div>
  26. <div :class="{activeBtn : activeBtn==3,disactiveBtn :activeBtn!=3 }" @click="activeBtn=3,getSyqr()">
  27. <van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn3'+(activeBtn!=3?'3':'')+'.png')" />
  28. 所有权人
  29. </div>
  30. <div :class="{activeBtn : activeBtn==4,disactiveBtn :activeBtn!=4 }" @click="activeBtn=4,mapShow()">
  31. <van-icon size=".3rem" style="vertical-align:middle;" :name="require('../../assets/images/housesteadSurvey/btn4'+(activeBtn!=4?'4':'')+'.png')" />
  32. 切换地图
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div style="background:#fff;padding:10px 0;">
  38. <div style="border:1px solid rgb(122, 201, 67);width:90%;margin:0 auto;border-radius:15px;height:.8rem;display:flex;font-size:.3rem;">
  39. <div style="flex:1;text-align:center;">
  40. <span style="color:rgb(122, 201, 67);line-height:.8rem;">总户数:</span>
  41. <span style="color:rgb(250, 83, 83);line-height:.8rem;">{{totalH}} <span style="font-size:12px;">户</span></span>
  42. </div>
  43. <div style="flex:1;text-align:center;">
  44. <span style="color:rgb(122, 201, 67);line-height:.8rem">总人数:</span>
  45. <span style="color:rgb(250, 83, 83);line-height:.8rem">{{totalR}} <span style="font-size:12px;">人</span></span>
  46. </div>
  47. </div>
  48. </div>
  49. </van-sticky>
  50. <div v-if="activeBtn==1">
  51. <van-search v-model="zjdvalue" placeholder="请输入搜索关键词" show-action @search="onSearchzjd">
  52. <template #action>
  53. <van-icon name="add" color="rgba(122,201,67,1)" size=".8rem" @click="onClickzjd" style="vertical-align:middle;"/>
  54. </template>
  55. </van-search>
  56. <van-tabs v-model="active" title-active-color="#7AC943" color="#7AC943" @click="getZjdList">
  57. <van-tab >
  58. <template #title>全部<van-badge v-if="qbNums>=0" :content="qbNums" /></template>
  59. <!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
  60. <van-list
  61. v-model:loading="loading1"
  62. :finished="finished1"
  63. finished-text="没有更多了"
  64. @load="onRefreshzjd"
  65. >
  66. <van-cell v-for="(item,index) in list" :key="index" size="small" :clickable="true" style="border-radius: 16px;
  67. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  68. <template #title>
  69. <p v-if="item.syqr!=null&&item.syqr!=''" style="color:#22B7F2">{{limitWords(item.syqr)}}
  70. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  71. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  72. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  73. </p>
  74. <p v-if="item.syqr==null||item.syqr==''" style="color:#878787">无
  75. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  76. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  77. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  78. </p>
  79. </template>
  80. <!--<template #default>
  81. </template>-->
  82. <template #label>
  83. <p>宅基地代码: {{item.zjddm}} </p>
  84. <p>宗地面积: {{item.zdmj}}㎡
  85. <span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='0'" style="color:#ff976a;float:right;">待审核</span>
  86. <span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='1'" style="color:#07c160;float:right;">已审核</span>
  87. <span v-if="item.houseDataConfirmStatus=='CONFIRMED'&&item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
  88. </p>
  89. </template>
  90. <template #icon>
  91. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  92. </template>
  93. </van-cell>
  94. </van-list>
  95. <!--</van-pull-refresh>-->
  96. </van-tab>
  97. <van-tab >
  98. <template #title>已核查<van-badge v-if="yhcNums>=0" :content="yhcNums" /></template>
  99. <!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
  100. <van-list
  101. v-model:loading="loading2"
  102. :finished="finished2"
  103. finished-text="没有更多了"
  104. @load="onRefreshzjd"
  105. >
  106. <van-cell v-for="(item,index) in list1" :key="index" size="small" @click.native="setCookies(item)" style="border-radius: 16px;
  107. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  108. <template #title>
  109. <p v-if="item.syqr!=null&&item.syqr!=''" style="color:#22B7F2">{{limitWords(item.syqr)}}
  110. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  111. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'" plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  112. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  113. </p>
  114. <p v-if="item.syqr==null||item.syqr==''" style="color:#878787">无
  115. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;">查看详情</van-button>
  116. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'" plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;">开始调查</van-button>
  117. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  118. </p>
  119. </template>
  120. <!--<template #default>
  121. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;margin-top:15px;">查看详情</van-button>
  122. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;margin-top:15px;">开始调查</van-button>
  123. </template>-->
  124. <template #label>
  125. <p>宅基地代码: {{item.zjddm}} </p>
  126. <p>宗地面积: {{item.zdmj}}㎡
  127. <span v-if="item.zjdAudit=='0'" style="color:#ff976a;float:right;">待审核</span>
  128. <span v-if="item.zjdAudit=='1'" style="color:#07c160;float:right;">已审核</span>
  129. <span v-if="item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
  130. </p>
  131. </template>
  132. <template #icon>
  133. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  134. </template>
  135. </van-cell>
  136. </van-list>
  137. <!--</van-pull-refresh>-->
  138. </van-tab>
  139. <van-tab >
  140. <template #title>未核查<van-badge v-if="whcNums>=0" :content="whcNums" /></template>
  141. <!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
  142. <van-list
  143. v-model:loading="loading3"
  144. :finished="finished3"
  145. finished-text="没有更多了"
  146. @load="onRefreshzjd"
  147. >
  148. <van-cell v-for="(item,index) in list2" :key="index" size="small" style="border-radius: 16px;
  149. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  150. <template #title>
  151. <p v-if="item.syqr!=null&&item.syqr!=''" style="color:#22B7F2">{{limitWords(item.syqr)}}
  152. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  153. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  154. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  155. </p>
  156. <p v-if="item.syqr==null||item.syqr==''" style="color:#878787">无
  157. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">查看详情</van-button>
  158. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;float:right;" @click="setCookies(item)">开始调查</van-button>
  159. <van-button plain round color="#FA5353" size="mini" v-if="item.houseDataConfirmStatus!='CONFIRMED'" style="vertical-align:middle;float:right;margin-right:10px" @click="deleteZjd(item,index)">删除</van-button>
  160. </p>
  161. </template>
  162. <!--<template #default>
  163. <van-button v-if="item.houseDataConfirmStatus=='CONFIRMED'" plain round color="#7AC943" size="mini" style="vertical-align:middle;margin-top:15px;">查看详情</van-button>
  164. <van-button v-if="item.houseDataConfirmStatus!='CONFIRMED'"plain round color="#FA5353" size="mini" style="vertical-align:middle;margin-top:15px;">开始调查</van-button>
  165. </template>-->
  166. <template #label>
  167. <p>宅基地代码: {{item.zjddm}} </p>
  168. <p>宗地面积: {{item.zdmj}}㎡
  169. <span v-if="item.zjdAudit=='2'" style="color:#ee0a24;float:right;">已驳回</span>
  170. </p>
  171. </template>
  172. <template #icon>
  173. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  174. </template>
  175. </van-cell>
  176. </van-list>
  177. <!--</van-pull-refresh>-->
  178. </van-tab>
  179. </van-tabs>
  180. </div>
  181. <div v-if="activeBtn==2" >
  182. <van-search v-model="nhvalue" placeholder="请输入农户姓名或证件号" show-action @search="onSearchnh">
  183. <template #action>
  184. <van-icon name="add" color="rgba(122,201,67,1)" size=".8rem" @click="onClicknh" style="vertical-align:middle;"/>
  185. </template>
  186. </van-search>
  187. <van-pull-refresh v-model="isLoadingnh" @refresh="onRefreshnh">
  188. <van-cell v-for="(item,index) in nhlist" :key="index" size="small" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
  189. <template #title>
  190. <p style="color:#22B7F2">{{item.hzxm}}
  191. <van-button plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;margin-left:10px;" @click="showPopuphncylist(item)">查看成员</van-button>
  192. <van-button plain round color="#7AC943" size="mini" style="vertical-align:middle;float:right;margin-left:10px;" @click="showPopupnh(item)">查看户主</van-button>
  193. <van-button plain round color="#FA5353" size="mini" v-if="!isFinished" style="vertical-align:middle;float:right;" @click="deletenh(item,index)">删除</van-button>
  194. </p>
  195. </template>
  196. <!-- <template #default>
  197. </template>-->
  198. <template #label>
  199. <p>证件号码:{{item.hzzjhm}}</p>
  200. <p>农户代码:{{item.nhdm}}</p>
  201. </template>
  202. <template #icon>
  203. <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
  204. </template>
  205. </van-cell>
  206. </van-pull-refresh>
  207. </div>
  208. <div v-if="activeBtn==3">
  209. <van-form @submit="onSubmitsyqr">
  210. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;padding:5px;background:#fff;">
  211. <van-field
  212. autocomplete="off"
  213. v-model="qlrform.qydm"
  214. name="区域代码"
  215. label="区域代码"
  216. placeholder="禁止修改"
  217. disabled
  218. input-align="right"
  219. />
  220. <van-field
  221. autocomplete="off"
  222. v-model="qlrform.suyqrdm"
  223. name="所有权人代码"
  224. label="所有权人代码"
  225. disabled
  226. placeholder="自动生成"
  227. input-align="right"
  228. />
  229. <van-field
  230. autocomplete="off"
  231. v-model="qlrform.suyqrmc"
  232. name="所有权人名称"
  233. label="所有权人名称"
  234. required
  235. placeholder="所有权人名称"
  236. input-align="right"
  237. :rules="[{ required: true, message: '所有权人名称不能为空' }]"
  238. />
  239. <van-field
  240. autocomplete="off"
  241. v-model="qlrform.suyqxzName"
  242. name="所有权性质"
  243. label="所有权性质"
  244. required
  245. placeholder="所有权性质"
  246. input-align="right"
  247. :rules="[{ required: true, message: '所有权性质不能为空' }]"
  248. @click="showsuyqxz = true"
  249. />
  250. <van-field
  251. autocomplete="off"
  252. v-model="qlrform.suyqxz"
  253. style="display:none"
  254. />
  255. <van-popup v-model="showsuyqxz" position="bottom" input-align="right">
  256. <van-picker
  257. show-toolbar
  258. :columns="suyqxzOptions"
  259. value-key="dictLabel"
  260. @confirm="onConfirmsuyqxz"
  261. @cancel="showsuyqxz = false"
  262. />
  263. </van-popup>
  264. <van-field
  265. autocomplete="off"
  266. v-model="qlrform.dbrxm"
  267. name="代表人姓名"
  268. label="代表人姓名"
  269. required
  270. placeholder="代表人姓名"
  271. input-align="right"
  272. :rules="[{ required: true, message: '代表人姓名不能为空' }]"
  273. />
  274. <van-field
  275. autocomplete="off"
  276. v-model="qlrform.dbrzjlx"
  277. style="display:none"
  278. />
  279. <van-field
  280. autocomplete="off"
  281. v-model="qlrform.dbrzjlxName"
  282. name="代表人证件类型"
  283. label="代表人证件类型"
  284. required
  285. placeholder="代表人证件类型"
  286. input-align="right"
  287. :rules="[{ required: true, message: '代表人证件类型不能为空' }]"
  288. @click="showdbrzjlx = true"
  289. />
  290. <van-popup v-model="showdbrzjlx" position="bottom" input-align="right">
  291. <van-picker
  292. show-toolbar
  293. :columns="zjlxOptions"
  294. value-key="dictLabel"
  295. @confirm="onConfirmdbrzjlx"
  296. @cancel="showdbrzjlx = false"
  297. />
  298. </van-popup>
  299. <van-field
  300. autocomplete="off"
  301. v-model="qlrform.dbrzjhm"
  302. name="代表人证件号码"
  303. label="代表人证件号码"
  304. required
  305. placeholder="代表人证件号码"
  306. input-align="right"
  307. :rules="[{ required: true, message: '代表人证件号码不能为空' },{validator:validatorIdcardqlr,message:'身份证号格式错误!'}]"
  308. />
  309. <van-field
  310. autocomplete="off"
  311. v-model="qlrform.dbrlxdh"
  312. name="代表人联系电话"
  313. label="代表人联系电话"
  314. placeholder="代表人联系电话"
  315. type="number"
  316. input-align="right"
  317. required
  318. :rules="[{ required: true, message: '代表人联系电话不能为空' }]"
  319. />
  320. <van-field
  321. autocomplete="off"
  322. v-model="qlrform.dbrtxdz"
  323. name="代表人通讯地址"
  324. label="代表人通讯地址"
  325. required
  326. placeholder="代表人通讯地址"
  327. input-align="right"
  328. :rules="[{ required: true, message: '代表人通讯地址不能为空' }]"
  329. />
  330. <van-field
  331. autocomplete="off"
  332. v-model="qlrform.dbryzbm"
  333. name="代表人邮政编码"
  334. label="代表人邮政编码"
  335. required
  336. placeholder="代表人邮政编码"
  337. input-align="right"
  338. maxlength="6"
  339. :rules="[{ required: true, message: '代表人邮政编码不能为空' }]"
  340. />
  341. <van-field name="radio" label="是否成立农村集体经济组织" required input-align="right" autocomplete="off">
  342. <template #input>
  343. <van-radio-group v-model="qlrform.sfclncjtjjzz" direction="horizontal">
  344. <van-radio name="Y">是</van-radio>
  345. <van-radio name="N">否 </van-radio>
  346. </van-radio-group>
  347. </template>
  348. </van-field>
  349. <van-field
  350. autocomplete="off"
  351. v-model="qlrform.dlrxm"
  352. name="代理人姓名"
  353. label="代理人姓名"
  354. placeholder="代理人姓名"
  355. input-align="right"
  356. />
  357. <van-field
  358. autocomplete="off"
  359. v-model="qlrform.dlrzjlx"
  360. style="display:none"
  361. />
  362. <van-field
  363. autocomplete="off"
  364. v-model="qlrform.dlrzjlxName"
  365. name="代理人证件类型"
  366. label="代理人证件类型"
  367. placeholder="代理人证件类型"
  368. input-align="right"
  369. @click="showdlrzjlx = true"
  370. />
  371. <van-popup v-model="showdlrzjlx" position="bottom" input-align="right">
  372. <van-picker
  373. show-toolbar
  374. :columns="zjlxOptions"
  375. value-key="dictLabel"
  376. @confirm="onConfirmdlrzjlx"
  377. @cancel="showdlrzjlx = false"
  378. />
  379. </van-popup>
  380. <van-field
  381. autocomplete="off"
  382. v-model="qlrform.dlrzjhm"
  383. name="代理人证件号码"
  384. label="代理人证件号码"
  385. placeholder="代理人证件号码"
  386. input-align="right"
  387. />
  388. <van-field
  389. autocomplete="off"
  390. v-model="qlrform.dlrlxdh"
  391. name="代理人联系电话"
  392. label="代理人联系电话"
  393. placeholder="代理人联系电话"
  394. input-align="right"
  395. />
  396. <van-field
  397. autocomplete="off"
  398. v-model="qlrform.dlrtxdz"
  399. name="代理人通讯地址"
  400. label="代理人通讯地址"
  401. placeholder="代理人通讯地址"
  402. input-align="right"
  403. />
  404. <van-field
  405. autocomplete="off"
  406. v-model="qlrform.dlryzbm"
  407. name="代理人邮政编码"
  408. label="代理人邮政编码"
  409. placeholder="代理人邮政编码"
  410. input-align="right"
  411. />
  412. </div>
  413. <div style="border-radius: 16px;
  414. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;padding:5px;background:#fff;">
  415. <van-field
  416. autocomplete="off"
  417. v-model="qlrform.ncjtjjzzdm"
  418. name="农村集体经济组织代码"
  419. label="农村集体经济组织代码"
  420. placeholder="农村集体经济组织代码"
  421. input-align="right"
  422. />
  423. <van-field
  424. autocomplete="off"
  425. v-model="qlrform.ncjtjjzzmc"
  426. name="农村集体经济组织名称"
  427. label="农村集体经济组织名称"
  428. placeholder="农村集体经济组织名称"
  429. input-align="right"
  430. />
  431. <van-field
  432. autocomplete="off"
  433. v-model="qlrform.fbfdm"
  434. name="发包方代码"
  435. label="发包方代码"
  436. placeholder="发包方代码"
  437. input-align="right"
  438. />
  439. <van-field
  440. autocomplete="off"
  441. v-model="qlrform.fbfmc"
  442. name="发包方名称"
  443. label="发包方名称"
  444. placeholder="发包方名称"
  445. input-align="right"
  446. />
  447. <van-field
  448. autocomplete="off"
  449. v-model="qlrform.sjlyName"
  450. name="数据来源"
  451. label="数据来源"
  452. placeholder="数据来源"
  453. input-align="right"
  454. @click="showsjly = true"
  455. required
  456. :rules="[{ required: true, message: '数据来源不能为空' }]"
  457. />
  458. <van-field
  459. autocomplete="off"
  460. v-model="qlrform.sjly"
  461. style="display:none"
  462. />
  463. <van-popup v-model="showsjly" position="bottom" input-align="right">
  464. <van-picker
  465. show-toolbar
  466. :columns="sjlyOptions"
  467. value-key="dictLabel"
  468. @confirm="onConfirmsjly"
  469. @cancel="showsjly = false"
  470. />
  471. </van-popup>
  472. <van-field
  473. autocomplete="off"
  474. v-model="qlrform.bz"
  475. name="备注"
  476. label="备注"
  477. placeholder="备注"
  478. input-align="right"
  479. />
  480. </div>
  481. <div style="margin: 16px;" v-if="!isFinished">
  482. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  483. </div>
  484. </van-form>
  485. </div>
  486. <div v-if="activeBtn==4" style="overflow:hidden">
  487. <!-- <van-search placeholder="请输入宅基地号查询" v-if="false">
  488. <template #action>
  489. </template>
  490. </van-search>-->
  491. <div id="mapWrapAll" style="width: 100%;height: calc(100vh - 247px);"></div>
  492. <div id="info" style="display: none"></div>
  493. <div id="deleteHistory" style="display: none"></div>
  494. <div id="deleteHistoryMap" style="display: none"></div>
  495. <van-overlay :show="showSearch" @click="closeSearchBox" />
  496. <!--搜索栏目-->
  497. <div class="searchBar_wrap" :style="{bottom : bottomHeight}">
  498. <van-search
  499. v-model="seachText"
  500. show-action
  501. placeholder="请输入宗地或权利人信息"
  502. >
  503. <template #action>
  504. <div id="query">搜索</div>
  505. </template>
  506. </van-search>
  507. <div class="searchBox" style="display: none;">
  508. <van-cell center v-for="(item,index) in mapDataAll" :key="index">
  509. <template #title>
  510. <p><van-icon name="manager" /><span>{{item.syqr}}</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.paceType}}</span>
  511. <!--<span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.typeTc}}</span>--></p>
  512. </template>
  513. <template #default>
  514. <p style="border: 1px solid #7ac943;color:#7ac943;" @click="zjdSs(item)">查看详情</p>
  515. </template>
  516. <template #label>
  517. <p style="font-size: 0.25rem;color: #666666;">宅基地代码 {{item.zjddm}}</p>
  518. <p style="font-size: 0.25rem;color: #666666;">宗地面积 {{item.zdmj}}㎡</p>
  519. </template>
  520. </van-cell>
  521. </div>
  522. </div>
  523. <!--图层-->
  524. <div class="rightZoom_wrap">
  525. <img src="../../assets/images/housesteadSurvey/tool1.png">
  526. <div class="amplification" @click="selectionPushMap">图层</div>
  527. </div>
  528. <!--放大缩小-->
  529. <div class="mapZoom_wrap">
  530. <div class="qtMap" id="mapAllQt">
  531. <img src="../../assets/images/housesteadSurvey/tool2.png">
  532. <p>全图</p>
  533. </div>
  534. <div class="clMap" @click="" id="area">
  535. <img src="../../assets/images/housesteadSurvey/tool3.png">
  536. <p>测量</p>
  537. </div>
  538. <div class="hcMap" @click="zjdHc">
  539. <img src="../../assets/images/housesteadSurvey/tool4.png">
  540. <p>核查</p>
  541. </div>
  542. <div class="htMap" @click="" id="htMapAll">
  543. <img src="../../assets/images/housesteadSurvey/tool5.png">
  544. <p>绘图</p>
  545. </div>
  546. <div class="dwMap" @click="" id="dwMapAll">
  547. <img src="../../assets/images/housesteadSurvey/tool6.png">
  548. <p>定位</p>
  549. </div>
  550. </div>
  551. <!--列表拉取详情-->
  552. <div class="homesteadList_wrap" v-show="homesteadListStatus">
  553. <div class="main_m">
  554. <div class="title_m">
  555. <div class="more_icon" @click="homesteadListShrink"></div>
  556. <div class="name">筛选列表</div>
  557. </div>
  558. <div style="padding: 10px 15px;">
  559. <van-checkbox name="all" shape="square" id="checkAll" v-model="checkAllFlag" @click="checkAllArray">全选</van-checkbox>
  560. <div style="height: 15px;"></div>
  561. <van-checkbox-group v-model="checked" @change="handleChecked" ref="checkboxGroup">
  562. <van-checkbox name="fsssSx" shape="square" style="margin-bottom: 5px;" id="fsssSx">
  563. <template #default>
  564. 附属设施<span style="display: inline-block;background: #00FFFF;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span>
  565. </template>
  566. </van-checkbox>
  567. <van-checkbox name="zrzSx" shape="square" style="margin-bottom: 5px;" id="zrzSx">
  568. <template #default>
  569. 自<i style="margin-right: 0.5em;"></i>然<i style="margin-right: 0.5em;"></i>幢<span style="display: inline-block;background: #FFD306;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span>
  570. </template>
  571. </van-checkbox>
  572. <van-checkbox name="zjdSx" shape="square" style="margin-bottom: 5px;" id="zjdSx">
  573. <template #default>
  574. 宅<i style="margin-right: 0.5em;"></i>基<i style="margin-right: 0.5em;"></i>地<span style="display: inline-block;background: #AE57A4;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span>
  575. </template>
  576. </van-checkbox>
  577. </van-checkbox-group>
  578. </div>
  579. </div>
  580. </div>
  581. <van-overlay :show="selectionIconShow" @click="homesteadListShrink" />
  582. </div>
  583. <van-popup v-model="shownh" style="height:100%;width:100%;">
  584. <div class="bannerBg">
  585. <van-nav-bar
  586. style="background:transparent;border-bottom-width:0;"
  587. @click-left="shownh=false"
  588. >
  589. <template #left>
  590. <van-icon name="arrow-left" size="18" color="#fff" />
  591. </template>
  592. <template #title>
  593. <p style="color:#fff">{{nhform.id?"":"新增"}}户主信息</p>
  594. </template>
  595. </van-nav-bar>
  596. </div>
  597. <div style="margin:20px;">
  598. <van-form @submit="onSubmitnh">
  599. <van-field
  600. autocomplete="off"
  601. input-align="right"
  602. v-model="nhform.suyqrdm"
  603. name="所有权人代码"
  604. label="所有权人代码"
  605. placeholder="所有权人代码"
  606. required
  607. disabled
  608. :rules="[{ required: true, message: '所有权人代码不能为空' }]"
  609. />
  610. <van-field
  611. autocomplete="off"
  612. input-align="right"
  613. v-model="nhform.nhdm"
  614. name="农户代码"
  615. label="农户代码"
  616. placeholder="自动生成"
  617. disabled
  618. />
  619. <van-field
  620. autocomplete="off"
  621. input-align="right"
  622. v-model="nhform.hzxm"
  623. name="户主姓名"
  624. label="户主姓名"
  625. placeholder="户主姓名"
  626. required
  627. :rules="[{ required: true, message: '户主姓名不能为空' }]"
  628. />
  629. <van-field
  630. autocomplete="off"
  631. input-align="right"
  632. v-model="nhform.hzzjlxName"
  633. name="户主证件类型"
  634. label="户主证件类型"
  635. placeholder="户主证件类型"
  636. required
  637. readonly
  638. :rules="[{ required: true, message: '户主证件类型不能为空' }]"
  639. @click="showhzzjlx = true"
  640. />
  641. <van-field
  642. autocomplete="off"
  643. v-model="nhform.hzzjlx"
  644. style="display:none"
  645. />
  646. <van-field
  647. autocomplete="off"
  648. v-model="nhform.hzzjhm"
  649. input-align="right"
  650. name="户主证件号码"
  651. label="户主证件号码"
  652. placeholder="户主证件号码"
  653. required
  654. :rules="[{ required: true, message: '户主证件号码不能为空' },{validator:validatorIdcardnh,message:'身份证号格式错误!'}]"
  655. />
  656. <van-field
  657. autocomplete="off"
  658. input-align="right"
  659. v-model="nhform.txdz"
  660. name="通讯地址"
  661. label="通讯地址"
  662. placeholder="通讯地址"
  663. required
  664. :rules="[{ required: true, message: '通讯地址不能为空' }]"
  665. />
  666. <van-field
  667. autocomplete="off"
  668. input-align="right"
  669. v-model="nhform.hncysl"
  670. name="户内成员数量"
  671. label="户内成员数量"
  672. placeholder="户内成员数量"
  673. required
  674. :rules="[{ required: true, message: '户内成员数量不能为空' }]"
  675. />
  676. <van-field name="radio" label="婚姻状况" input-align="right" autocomplete="off">
  677. <template #input>
  678. <van-radio-group v-model="nhform.hyzk" direction="horizontal">
  679. <van-radio v-for="dict in hyzkOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  680. </van-radio-group>
  681. </template>
  682. </van-field>
  683. <van-field
  684. autocomplete="off"
  685. input-align="right"
  686. v-model="nhform.phone"
  687. name="电话号码"
  688. label="电话号码"
  689. placeholder="电话号码"
  690. />
  691. <van-field
  692. autocomplete="off"
  693. input-align="right"
  694. v-model="nhform.occupationName"
  695. name="职业"
  696. label="职业"
  697. placeholder="职业"
  698. required
  699. readonly
  700. :rules="[{ required: true, message: '职业不能为空' }]"
  701. @click="showhzoccupation = true"
  702. />
  703. <van-field
  704. autocomplete="off"
  705. v-model="nhform.occupation"
  706. style="display:none"
  707. />
  708. <van-field
  709. autocomplete="off"
  710. input-align="right"
  711. v-model="nhform.jzqkName"
  712. name="居住情况"
  713. label="居住情况"
  714. placeholder="居住情况"
  715. required
  716. readonly
  717. :rules="[{ required: true, message: '居住情况不能为空' }]"
  718. @click="showhzjzqk = true"
  719. />
  720. <van-field
  721. autocomplete="off"
  722. v-model="nhform.jzqk"
  723. style="display:none"
  724. />
  725. <van-field
  726. autocomplete="off"
  727. input-align="right"
  728. v-model="nhform.jzhcssfyzfName"
  729. name="在集镇或城市是否有住房"
  730. label="在集镇或城市是否有住房"
  731. placeholder="在集镇或城市是否有住房"
  732. required
  733. readonly
  734. :rules="[{ required: true, message: '在集镇或城市是否有住房不能为空' }]"
  735. @click="showhzjzhcssfyzf = true"
  736. />
  737. <van-field
  738. autocomplete="off"
  739. v-model="nhform.jzhcssfyzf"
  740. style="display:none"
  741. />
  742. <van-field name="radio" label="在其他村庄是否有住房" input-align="right" autocomplete="off">
  743. <template #input>
  744. <van-radio-group v-model="nhform.zqtczsfyzf" direction="horizontal">
  745. <van-radio name="Y">是</van-radio>
  746. <van-radio name="N">否</van-radio>
  747. </van-radio-group>
  748. </template>
  749. </van-field>
  750. <van-field name="radio" label="是否本村村民" input-align="right" autocomplete="off">
  751. <template #input>
  752. <van-radio-group v-model="nhform.sfbccm" direction="horizontal">
  753. <van-radio name="Y">是</van-radio>
  754. <van-radio name="N">否</van-radio>
  755. </van-radio-group>
  756. </template>
  757. </van-field>
  758. <van-field name="radio" label="是否贫困户" input-align="right" autocomplete="off">
  759. <template #input>
  760. <van-radio-group v-model="nhform.sfpkh" direction="horizontal">
  761. <van-radio name="Y">是</van-radio>
  762. <van-radio name="N">否</van-radio>
  763. </van-radio-group>
  764. </template>
  765. </van-field>
  766. <van-field name="radio" label="是否五保户" input-align="right" autocomplete="off">
  767. <template #input>
  768. <van-radio-group v-model="nhform.sfwbh" direction="horizontal">
  769. <van-radio name="Y">是</van-radio>
  770. <van-radio name="N">否</van-radio>
  771. </van-radio-group>
  772. </template>
  773. </van-field>
  774. <van-field
  775. autocomplete="off"
  776. input-align="right"
  777. v-model="nhform.sjlyName"
  778. name="数据来源"
  779. label="数据来源"
  780. placeholder="数据来源"
  781. required
  782. readonly
  783. :rules="[{ required: true, message: '能为空' }]"
  784. @click="showhzsjly = true"
  785. />
  786. <van-field
  787. autocomplete="off"
  788. v-model="nhform.sjly"
  789. style="display:none"
  790. />
  791. <van-field
  792. autocomplete="off"
  793. input-align="right"
  794. v-model="nhform.bz"
  795. name="备注"
  796. label="备注"
  797. placeholder="备注"
  798. />
  799. <div style="text-align:center;overflow:auto;">
  800. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" native-type="button" @click="showPopuphncylist(nhform)">查看户内成员列表</van-button>
  801. </div>
  802. <div style="margin: 16px;" v-if="!isFinished">
  803. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  804. </div>
  805. </van-form>
  806. </div>
  807. </van-popup>
  808. <!--户主数据来源-->
  809. <van-popup v-model="showhzsjly" position="bottom">
  810. <van-picker
  811. show-toolbar
  812. :columns="sjlyOptions"
  813. value-key="dictLabel"
  814. @confirm="onConfirmhzsjly"
  815. @cancel="showhzsjly = false"
  816. />
  817. </van-popup>
  818. <!--户内成员数据来源-->
  819. <van-popup v-model="showhncysjly" position="bottom">
  820. <van-picker
  821. show-toolbar
  822. :columns="sjlyOptions"
  823. value-key="dictLabel"
  824. @confirm="onConfirmhncysjly"
  825. @cancel="showhncysjly = false"
  826. />
  827. </van-popup>
  828. <!--集市或城市是否有住房-->
  829. <van-popup v-model="showhzjzhcssfyzf" position="bottom">
  830. <van-picker
  831. show-toolbar
  832. :columns="jzhcssfyzfOptions"
  833. value-key="dictLabel"
  834. @confirm="onConfirmhzjzhcssfyzf"
  835. @cancel="showhzjzhcssfyzf = false"
  836. />
  837. </van-popup>
  838. <!--户主证件类型-->
  839. <van-popup v-model="showhzzjlx" position="bottom">
  840. <van-picker
  841. show-toolbar
  842. :columns="zjlxOptions"
  843. value-key="dictLabel"
  844. @confirm="onConfirmhzzjlx"
  845. @cancel="showhzzjlx = false"
  846. />
  847. </van-popup>
  848. <!--户内成员证件类型-->
  849. <van-popup v-model="showhncyzjlx" position="bottom">
  850. <van-picker
  851. show-toolbar
  852. :columns="zjlxOptions"
  853. value-key="dictLabel"
  854. @confirm="onConfirmhncyzjlx"
  855. @cancel="showhncyzjlx = false"
  856. />
  857. </van-popup>
  858. <!--户内成员与户主关系-->
  859. <van-popup v-model="showhncyyhzgx" position="bottom">
  860. <van-picker
  861. show-toolbar
  862. :columns="yhzgxOptions"
  863. value-key="dictLabel"
  864. @confirm="onConfirmhncyyhzgx"
  865. @cancel="showhncyyhzgx = false"
  866. />
  867. </van-popup>
  868. <!--户内成员职业-->
  869. <van-popup v-model="showhncyoccupation" position="bottom">
  870. <van-picker
  871. show-toolbar
  872. :columns="occupationOptions"
  873. value-key="dictLabel"
  874. @confirm="onConfirmhncyoccupation"
  875. @cancel="showhncyoccupation = false"
  876. />
  877. </van-popup>
  878. <!--户内成员成员备注-->
  879. <van-popup v-model="showhncycybz" position="bottom">
  880. <van-picker
  881. show-toolbar
  882. :columns="cybzOptions"
  883. value-key="dictLabel"
  884. @confirm="onConfirmhncycybz"
  885. @cancel="showhncycybz = false"
  886. />
  887. </van-popup>
  888. <!--户内成员居住情况-->
  889. <van-popup v-model="showhncyjzqk" position="bottom">
  890. <van-picker
  891. show-toolbar
  892. :columns="jzqkOptions"
  893. value-key="dictLabel"
  894. @confirm="onConfirmhncyjzqk"
  895. @cancel="showhncyjzqk = false"
  896. />
  897. </van-popup>
  898. <!--户主职业-->
  899. <van-popup v-model="showhzoccupation" position="bottom">
  900. <van-picker
  901. show-toolbar
  902. :columns="occupationOptions"
  903. value-key="dictLabel"
  904. @confirm="onConfirmhzoccupation"
  905. @cancel="showhzoccupation = false"
  906. />
  907. </van-popup>
  908. <!--户主居住情况-->
  909. <van-popup v-model="showhzjzqk" position="bottom">
  910. <van-picker
  911. show-toolbar
  912. :columns="jzqkOptions"
  913. value-key="dictLabel"
  914. @confirm="onConfirmhzjzqk"
  915. @cancel="showhzjzqk = false"
  916. />
  917. </van-popup>
  918. <van-popup v-model="showhncylist" style="height:100%;width:100%;">
  919. <div class="bannerBg">
  920. <van-nav-bar
  921. style="background:transparent;border-bottom-width:0;"
  922. @click-left="showhncylist=false"
  923. >
  924. <template #left>
  925. <van-icon name="arrow-left" size="18" color="#fff" />
  926. </template>
  927. <template #title>
  928. <p style="color:#fff">户内成员列表</p>
  929. </template>
  930. </van-nav-bar>
  931. </div>
  932. <van-swipe-cell v-for="(item,index) in hncylist" :key="index" @click.native="showPopuphncy(item)" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  933. <div style="padding:20px;">
  934. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>
  935. {{item.xm}}</p>
  936. <div style="display:flex;line-height:20px">
  937. <p style="flex:1;text-align:left;">证件号码</p>
  938. <p style="flex:1;text-align:right;">{{item.zjhm}}</p>
  939. </div>
  940. <div style="display:flex;line-height:20px">
  941. <p style="flex:1;text-align:left;">与户主关系</p>
  942. <p style="flex:1;text-align:right;">{{yhzgxfy(item.yhzgx)}}</p>
  943. </div>
  944. </div>
  945. <template #right v-if="!isFinished">
  946. <van-button square text="设为户主" type="primary" style="height:100%" @click="setNh(item,index)"/>
  947. <van-button square text="删除" type="danger" style="height:100%" @click="deletehncy(item.id,index)" />
  948. </template>
  949. </van-swipe-cell>
  950. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;" v-if="!isFinished">
  951. <div style="text-align:center;" >
  952. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopuphncy('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加户内成员信息</p>
  953. </div>
  954. </div>
  955. </van-popup>
  956. <van-popup v-model="showhncy" style="height:100%;width:100%;">
  957. <div class="bannerBg">
  958. <van-nav-bar
  959. style="background:transparent;border-bottom-width:0;"
  960. @click-left="showhncy=!showhncy"
  961. >
  962. <template #left>
  963. <van-icon name="arrow-left" size="18" color="#fff" />
  964. </template>
  965. <template #title>
  966. <p style="color:#fff">户内成员</p>
  967. </template>
  968. </van-nav-bar>
  969. </div>
  970. <div style="margin:20px;">
  971. <van-form @submit="onSubmithncy">
  972. <van-field
  973. autocomplete="off"
  974. input-align="right"
  975. v-model="form5.nhdm"
  976. name="农户代码"
  977. label="农户代码"
  978. placeholder="农户代码"
  979. disabled
  980. required
  981. :rules="[{ required: true, message: '农户代码不能为空' }]"
  982. />
  983. <van-field
  984. autocomplete="off"
  985. input-align="right"
  986. v-model="form5.xm"
  987. name="姓名"
  988. label="姓名"
  989. placeholder="姓名"
  990. required
  991. :rules="[{ required: true, message: '姓名不能为空' }]"
  992. />
  993. <van-field
  994. autocomplete="off"
  995. input-align="right"
  996. v-model="form5.zjlxName"
  997. name="证件类型"
  998. label="证件类型"
  999. placeholder="证件类型"
  1000. required
  1001. :rules="[{ required: true, message: '证件类型不能为空' }]"
  1002. readonly
  1003. @click="showhncyzjlx = true"
  1004. />
  1005. <van-field
  1006. autocomplete="off"
  1007. v-model="form5.zjlx"
  1008. style="display:none"
  1009. />
  1010. <van-field
  1011. autocomplete="off"
  1012. input-align="right"
  1013. v-model="form5.yhzgxName"
  1014. name="与户主关系"
  1015. label="与户主关系"
  1016. placeholder="与户主关系"
  1017. required
  1018. :rules="[{ required: true, message: '与户主关系不能为空' }]"
  1019. @click="showhncyyhzgx = true"
  1020. />
  1021. <van-field
  1022. autocomplete="off"
  1023. v-model="form5.yhzgx"
  1024. style="display:none"
  1025. />
  1026. <van-field
  1027. autocomplete="off"
  1028. input-align="right"
  1029. v-model="form5.zjhm"
  1030. name="证件号码"
  1031. label="证件号码"
  1032. placeholder="证件号码"
  1033. required
  1034. :rules="[{ required: true, message: '证件号码不能为空' },{validator:validatorIdcardhncy,message:'身份证号格式错误!'}]"
  1035. />
  1036. <van-field autocomplete="off" name="radio" label="性别" input-align="right" required
  1037. :rules="[{ required: true, message: '性别不能为空' }]">
  1038. <template #input>
  1039. <van-radio-group v-model="form5.xb" direction="horizontal">
  1040. <van-radio name="1">男</van-radio>
  1041. <van-radio name="0">女</van-radio>
  1042. <van-radio name="2">未知</van-radio>
  1043. </van-radio-group>
  1044. </template>
  1045. </van-field>
  1046. <van-field
  1047. autocomplete="off"
  1048. input-align="right"
  1049. v-model="form5.lxdh"
  1050. name="联系电话"
  1051. label="联系电话"
  1052. placeholder="联系电话"
  1053. />
  1054. <van-field name="radio" label="户口类型" input-align="right" autocomplete="off">
  1055. <template #input>
  1056. <van-radio-group v-model="form5.hklx" direction="horizontal">
  1057. <van-radio name="1">农业</van-radio>
  1058. <van-radio name="0">非农业</van-radio>
  1059. </van-radio-group>
  1060. </template>
  1061. </van-field>
  1062. <van-field name="radio" label="婚姻状况" input-align="right" autocomplete="off">
  1063. <template #input>
  1064. <van-radio-group v-model="form5.hyzk" direction="horizontal">
  1065. <van-radio v-for="dict in hyzkOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  1066. </van-radio-group>
  1067. </template>
  1068. </van-field>
  1069. <van-field name="radio" label="是否本集体经济组织成员" input-align="right" autocomplete="off">
  1070. <template #input>
  1071. <van-radio-group v-model="form5.sfbjtjjzzcy" direction="horizontal">
  1072. <van-radio name="Y">是</van-radio>
  1073. <van-radio name="N">否</van-radio>
  1074. </van-radio-group>
  1075. </template>
  1076. </van-field>
  1077. <van-field
  1078. autocomplete="off"
  1079. input-align="right"
  1080. v-model="form5.cybzName"
  1081. name="成员备注"
  1082. label="成员备注"
  1083. placeholder="成员备注"
  1084. @click="showhncycybz = true"
  1085. />
  1086. <van-field
  1087. autocomplete="off"
  1088. v-model="form5.cybz"
  1089. style="display:none"
  1090. />
  1091. <van-field
  1092. autocomplete="off"
  1093. input-align="right"
  1094. v-model="form5.cybzsm"
  1095. name="成员备注说明"
  1096. label="成员备注说明"
  1097. placeholder="成员备注说明"
  1098. />
  1099. <van-field
  1100. autocomplete="off"
  1101. input-align="right"
  1102. v-model="form5.occupationName"
  1103. name="职业"
  1104. label="职业"
  1105. placeholder="职业"
  1106. required
  1107. :rules="[{ required: true, message: '' }]"
  1108. @click="showhncyoccupation = true"
  1109. />
  1110. <van-field
  1111. autocomplete="off"
  1112. v-model="form5.occupation"
  1113. style="display:none"
  1114. />
  1115. <van-field
  1116. autocomplete="off"
  1117. input-align="right"
  1118. v-model="form5.jzqkName"
  1119. name="居住情况"
  1120. label="居住情况"
  1121. placeholder="居住情况"
  1122. required
  1123. :rules="[{ required: true, message: '' }]"
  1124. @click="showhncyjzqk = true"
  1125. />
  1126. <van-field
  1127. autocomplete="off"
  1128. v-model="form5.jzqk"
  1129. style="display:none"
  1130. />
  1131. <van-field name="radio" label="是否贫困户" input-align="right" autocomplete="off">
  1132. <template #input>
  1133. <van-radio-group v-model="form5.sfpkh" direction="horizontal">
  1134. <van-radio name="Y">是</van-radio>
  1135. <van-radio name="N">否</van-radio>
  1136. </van-radio-group>
  1137. </template>
  1138. </van-field>
  1139. <van-field name="radio" label="是否五保户" input-align="right" autocomplete="off">
  1140. <template #input>
  1141. <van-radio-group v-model="form5.sfwbh" direction="horizontal">
  1142. <van-radio name="Y">是</van-radio>
  1143. <van-radio name="N">否</van-radio>
  1144. </van-radio-group>
  1145. </template>
  1146. </van-field>
  1147. <van-field
  1148. autocomplete="off"
  1149. input-align="right"
  1150. v-model="form5.sjlyName"
  1151. name="数据来源"
  1152. label="数据来源"
  1153. placeholder="数据来源"
  1154. required
  1155. :rules="[{ required: true, message: '' }]"
  1156. @click="showhncysjly = true"
  1157. />
  1158. <van-field
  1159. autocomplete="off"
  1160. v-model="form5.sjly"
  1161. style="display:none"
  1162. />
  1163. <div style="margin: 16px;" v-if="!isFinished">
  1164. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  1165. </div>
  1166. </van-form>
  1167. </div>
  1168. </van-popup>
  1169. <!--绘制结束弹窗开始-->
  1170. <van-popup v-model:show="showhzht" style="width: 94%;border-radius: 15PX" :close-on-click-overlay="false">
  1171. <div style="padding: 5px 3% 3%;">
  1172. <h1 style="font-size: 0.35rem;font-weight: 400;border-bottom: 1px solid #ccc; line-height: 0.8rem;"><i style="display: inline-block;width: 1%;height: 0.4rem;background: #7ac943;vertical-align: middle;margin-right: 1%;"></i>是否完成绘制</h1>
  1173. <div style="text-align: center;margin-top: 3%;">
  1174. <p style="font-size: 0.3rem;display: inline-block;background: #ccc;padding: 2% 0;border-radius: 30PX;color: #FFF;margin-right: 10%;width: 40%" @click="deleteHistory">否</p>
  1175. <p style="font-size: 0.3rem;display: inline-block;background: #7ac943;padding: 2% 0;border-radius: 30PX;color: #FFF;width: 40%" @click="showhzlx = true,showhzht = false">是</p>
  1176. </div>
  1177. </div>
  1178. </van-popup>
  1179. <!-- background: #ccc -->
  1180. <van-popup v-model:show="showhzlx" style="width: 94%;border-radius: 15PX">
  1181. <div style="padding: 5px 3% 3%;">
  1182. <h1 style="font-size: 0.35rem;font-weight: 400;border-bottom: 1px solid #ccc; line-height: 0.8rem;"><i style="display: inline-block;width: 1%;height: 0.4rem;background: #7ac943;vertical-align: middle;margin-right: 1%;"></i>请选择绘制类型<van-icon name="cross" color="#666666" style="position: absolute;right: 2%;top: 0.1rem" @click="showhzlx = false,showhzht = true" /></h1>
  1183. <div style="text-align: center;margin-top: 3%;">
  1184. <p class="hzlxBtn" :style="{background: mapZjdData ? '#CCC':'#7ac943'}" @click="zjdTz">宅基地</p>
  1185. <p class="hzlxBtn" :style="{background: mapZjdData ? '#b026ff':'#CCC'}" @click="zrzTz">自然幢</p>
  1186. <p class="hzlxBtn" :style="{background: mapZjdData ? '#3ac2db':'#CCC'}" @click="fsssTz">附属设施</p>
  1187. </div>
  1188. </div>
  1189. </van-popup>
  1190. <!--绘制结束弹窗结束-->
  1191. </div>
  1192. </template>
  1193. <script>
  1194. import {listZjdzd,getQueryLand,getZjdzd,delZjdzdInfo} from "@/api/homesteadSurvey/zjdzd";
  1195. import {addNh, delNh, exportNh, getNh, listNh, updateNh,setNhInfo} from "@/api/homesteadSurvey/nh";
  1196. import {addNhhncy, delNhhncy, exportNhhncy, getNhhncy, listNhhncy, updateNhhncy} from "@/api/homesteadSurvey/nhhncy";
  1197. import {listShyqr,setSyqrInfo} from "@/api/homesteadSurvey/shyqr";
  1198. import {listSuyqr,updateSuyqr,addSuyqr} from "@/api/homesteadSurvey/suyqr";
  1199. import {listZrz,getZrzZjdDmList,getZrz} from "@/api/homesteadSurvey/zrz";
  1200. import {listFsss,getFsssZjdDmList,getFsss} from "@/api/homesteadSurvey/fsss";
  1201. import {getGeoServerConfigKey} from "@/api/system/config";
  1202. import { listTown, getTown } from "@/api/homesteadSurvey/town";
  1203. import { listVillage} from "@/api/homesteadSurvey/village";
  1204. import $ from "jquery";
  1205. import {Dialog} from "vant";
  1206. import {ref} from "vue";
  1207. export default {
  1208. name: "homesteadList",
  1209. data() {
  1210. return {
  1211. loading1:false,
  1212. finished1:false,
  1213. loading2:false,
  1214. finished2:false,
  1215. loading3:false,
  1216. finished3:false,
  1217. //全部
  1218. qbNums:0,
  1219. //已调查数量
  1220. yhcNums:0,
  1221. //未核查数量
  1222. whcNums:0,
  1223. // 总户数
  1224. totalH:0,
  1225. // 总人数
  1226. totalR:0,
  1227. zjdSx:true,
  1228. zrzSx :true,
  1229. fsssSx:true,
  1230. showhncysjly:false,
  1231. showhzsjly:false,
  1232. showhncycybz:false,
  1233. showhncyzjlx:false,
  1234. showhncyyhzgx:false,
  1235. showhzjzhcssfyzf:false,
  1236. showhncyoccupation:false,
  1237. showhncyjzqk:false,
  1238. showhzoccupation:false,
  1239. showhzjzqk:false,
  1240. // 下拉刷新
  1241. isLoadingnh:false,
  1242. countnh:0,
  1243. isLoadingzjd:false,
  1244. countqb:1,
  1245. countyhc:1,
  1246. countwhc:1,
  1247. // 使用权人表单弹出
  1248. shownh:false,
  1249. showhzht:false,
  1250. showhzlx:false,
  1251. showhncylist:false,
  1252. showhncy:false,
  1253. activeBtn:1,
  1254. value:'',
  1255. // 宅基地搜索框
  1256. zjdvalue:"",
  1257. // 使用权人搜索框
  1258. nhvalue:"",
  1259. active:2,
  1260. // 全部列表
  1261. list:[],
  1262. // 已核查列表
  1263. list1:[],
  1264. // 未核查列表
  1265. list2:[],
  1266. // 户主列表
  1267. nhlist:[],
  1268. // 户内成员表单
  1269. form5: {},
  1270. // 户内成员列表
  1271. hncylist:[],
  1272. currentRate:20,
  1273. // 使用权人
  1274. nhform:[],
  1275. // 户主列表
  1276. hzform:{},
  1277. // 权利人列表
  1278. qlrform:[],
  1279. // 权利人性质弹出框
  1280. showsuyqxz:false,
  1281. // 代理人证件类型弹出框
  1282. showdlrzjlx:false,
  1283. // 代表人证件类型弹出框
  1284. showdbrzjlx:false,
  1285. // 数据来源弹出框
  1286. showsjly:false,
  1287. // 证件类型字典
  1288. zjlxOptions: [],
  1289. // 所有权性质字典
  1290. suyqxzOption: [],
  1291. // 婚姻状况字典
  1292. hyzkOptions:[],
  1293. // 数据来源字典
  1294. sjlyOptions:[],
  1295. // 居住情况字典
  1296. jzqkOptions:[],
  1297. // 与户主关系字典
  1298. yhzgxOptions:[],
  1299. // 职业字典
  1300. occupationOptions:[],
  1301. // 集镇或城市是否有住房字典
  1302. jzhcssfyzfOptions:[],
  1303. // 成员备注字典
  1304. cybzOptions:[],
  1305. columns:[],
  1306. show1:false,
  1307. showhzzjlx: false,
  1308. // 路由传过来的任务基本信息。
  1309. item: {},
  1310. //地图使用 --start
  1311. openMap: false,
  1312. mapTheGeomZrzId: null,
  1313. mapTheGeomZjdId: null,
  1314. mapTheGeomFsssId: null,
  1315. drawInsert:null,
  1316. mapZjdData:"",
  1317. mapZrzData:"",
  1318. mapFsssData:"",
  1319. mapZjdDataTure:"",
  1320. mapZjdTeAll:{
  1321. active:"",
  1322. mapZjdAData:{},
  1323. mapZrzAData:{},
  1324. mapFsssAData:{},
  1325. },
  1326. mapHaDataValue:false,
  1327. mapHasDateStatus: 0, //0附属设施 1自然幢 2宅基地
  1328. selectionIconShow:false,
  1329. homesteadListStatus:false,
  1330. //地图绘制状态
  1331. draw: {
  1332. drawMapPolygon: false, //绘制地图
  1333. },
  1334. mapTownList: null,
  1335. mapVillageList: null,
  1336. coordinate:"",
  1337. checked:['zjdSx', 'zrzSx', 'fsssSx'],
  1338. checkAllMap: false,
  1339. sx:"",
  1340. drawingClick:true,
  1341. //搜索---start
  1342. seachText: "",
  1343. selectionIconShow: false,
  1344. //搜索栏目-操作栏显隐
  1345. searchBarOperVisbile: false,
  1346. mapDataAll: [],
  1347. showSearch:false,
  1348. bottomHeight:'0px',
  1349. //搜索---end
  1350. //测面
  1351. textMjAll:"",
  1352. clickBbox:"",
  1353. textMjAllNum:"",
  1354. //核查
  1355. zjdHcDy:"",
  1356. //绘图
  1357. htZjdZrzFsss:"",
  1358. //筛选
  1359. checkAllFlag: true,
  1360. CheckedAllArr: [],//全选数组
  1361. dataForm: {
  1362. imageUrl: []
  1363. },
  1364. dataList: [["fsssSx"],["zjdSx"],["zrzSx"]], //地图使用 --end
  1365. checkBoxAll:[],
  1366. //地图跳转存之
  1367. mapAddJump:"",
  1368. mapAddJumpNum:"",
  1369. nhdm:"",
  1370. backTheGeom:"",
  1371. //地图服务地址
  1372. mapGeoServerUrl:"",
  1373. // 任务完成标记
  1374. isFinished:false,
  1375. };
  1376. },
  1377. mounted(){
  1378. },
  1379. created(){
  1380. // if(location.href.indexOf("#reloaded")==-1){
  1381. // location.href=location.href+"#reloaded";
  1382. // location.reload();
  1383. // }
  1384. this.getDicts("zjlx").then(response => {
  1385. this.zjlxOptions = response.data;
  1386. });
  1387. this.getDicts("qsxz").then(response => {
  1388. this.suyqxzOptions = response.data;
  1389. });
  1390. this.getDicts("sjly").then(response => {
  1391. this.sjlyOptions = response.data;
  1392. });
  1393. this.getDicts("hyzk").then(response => {
  1394. this.hyzkOptions = response.data;
  1395. });
  1396. this.getDicts("occupation").then(response => {
  1397. this.occupationOptions = response.data;
  1398. });
  1399. this.getDicts("living_condition").then(response => {
  1400. this.jzqkOptions = response.data;
  1401. });
  1402. this.getDicts("jzhcssfyzf").then(response => {
  1403. this.jzhcssfyzfOptions = response.data;
  1404. });
  1405. this.getDicts("family_status").then(response => {
  1406. var arr = [];
  1407. response.data.forEach(function (item) {
  1408. if (item.dictLabel !== '户主') {
  1409. arr.push(item)
  1410. }
  1411. });
  1412. this.yhzgxOptions = arr;
  1413. /*this.yhzgxOptions = response.data;*/
  1414. });
  1415. this.getDicts("member_remark").then(response => {
  1416. this.cybzOptions = response.data;
  1417. });
  1418. if(this.$cookies.get("search") != null && this.$cookies.get("search") !="" && this.$cookies.get("search")!=undefined){
  1419. if(this.$cookies.get("search").activeBtn !=null){
  1420. if(this.$cookies.get("search").activeBtn == 4){
  1421. this.activeBtn = this.$cookies.get("search").activeBtn;
  1422. this.item = this.$cookies.get("item");
  1423. this.mapAddJump = this.$cookies.get("search").backMapZjdAData.deptId;
  1424. this.backTheGeom = this.$cookies.get("search").backMapZjdAData.theGeom;
  1425. this.mapZjdData = this.$cookies.get("search").backMapZjdAData;
  1426. this.mapZjdTeAll.mapZjdAData = this.$cookies.get("search").backMapZjdAData;
  1427. this.zjdHcDy = 1;
  1428. this.mapZjdDataTure = 1;
  1429. this.mapAddJumpNum =1;
  1430. this.mapShow();
  1431. this.getZjdList();
  1432. this.getTotalHR();
  1433. if(this.item.taskStatus=="FINISHED"){
  1434. this.isFinished = true
  1435. }else{
  1436. this.isFinished = false
  1437. }
  1438. }
  1439. }else {
  1440. this.item = this.$cookies.get("item");
  1441. this.getZjdList();
  1442. this.getTotalHR();
  1443. if(this.item.taskStatus=="FINISHED"){
  1444. this.isFinished = true
  1445. }else{
  1446. this.isFinished = false
  1447. }
  1448. }
  1449. }else {
  1450. this.item = this.$cookies.get("item");
  1451. this.getZjdList();
  1452. this.getTotalHR();
  1453. if(this.item.taskStatus=="FINISHED"){
  1454. this.isFinished = true
  1455. }else{
  1456. this.isFinished = false
  1457. }
  1458. }
  1459. },
  1460. methods: {
  1461. validatorIdcardqlr(val){
  1462. if(this.qlrform.dbrzjlx=='01'){
  1463. if(this.vcheckID(val)){
  1464. return true
  1465. }else {
  1466. return false
  1467. }
  1468. }else{
  1469. return true
  1470. }
  1471. },
  1472. validatorIdcardnh(val){
  1473. if(this.nhform.hzzjlx=='01'){
  1474. if(this.vcheckID(val)){
  1475. return true
  1476. }else {
  1477. return false
  1478. }
  1479. }else{
  1480. return true
  1481. }
  1482. },
  1483. validatorIdcardhncy(val){
  1484. if(this.form5.zjlx=='01'){
  1485. if(this.vcheckID(val)){
  1486. return true
  1487. }else {
  1488. return false
  1489. }
  1490. }else{
  1491. return true
  1492. }
  1493. },
  1494. checkCode(val) {
  1495. var p = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  1496. var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
  1497. var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
  1498. var code = val.substring(17);
  1499. if(p.test(val)) {
  1500. var sum = 0;
  1501. for(var i=0;i<17;i++) {
  1502. sum += val[i]*factor[i];
  1503. }
  1504. if(parity[sum % 11] == code.toUpperCase()) {
  1505. return true;
  1506. }
  1507. }
  1508. return false;
  1509. },
  1510. checkDate (val) {
  1511. var pattern = /^(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)$/;
  1512. if(pattern.test(val)) {
  1513. var year = val.substring(0, 4);
  1514. var month = val.substring(4, 6);
  1515. var date = val.substring(6, 8);
  1516. var date2 = new Date(year+"-"+month+"-"+date);
  1517. if(date2 && date2.getMonth() == (parseInt(month) - 1)) {
  1518. return true;
  1519. }
  1520. }
  1521. return false;
  1522. },
  1523. checkProv(val) {
  1524. var pattern = /^[1-9][0-9]/;
  1525. var provs = {11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门"};
  1526. if(pattern.test(val)) {
  1527. if(provs[val]) {
  1528. return true;
  1529. }
  1530. }
  1531. return false;
  1532. },
  1533. vcheckID(val){
  1534. if(this.checkCode(val)) {
  1535. var date = val.substring(6,14);
  1536. if(this.checkDate(date)) {
  1537. if(this.checkProv(val.substring(0,2))) {
  1538. return true;
  1539. }
  1540. }
  1541. }
  1542. return false;
  1543. },
  1544. deleteZjd(item,index){
  1545. Dialog.confirm({
  1546. title: '警告',
  1547. message: '将删除与此宅基地关联的使用权人,自然幢,房屋,附属设施等所有信息,同时删除后无法恢复,确认删除么?',
  1548. })
  1549. .then(() => {
  1550. // on confirm
  1551. delZjdzdInfo(item).then(res => {
  1552. if(res.code=="200"){
  1553. if(this.active==1){
  1554. this.list1.splice(index,1);
  1555. }else if(this.active==2){
  1556. this.list2.splice(index,1);
  1557. }else{
  1558. this.list.splice(index,1);
  1559. }
  1560. }
  1561. })
  1562. })
  1563. .catch(() => {
  1564. // on cancel
  1565. });
  1566. },
  1567. //删除户主
  1568. deletenh(item,index){
  1569. let yes = true
  1570. let params={
  1571. nhdm : item.nhdm,
  1572. deptId: item.deptId
  1573. }
  1574. listNhhncy(params).then((res) => {
  1575. console.log(res.rows.length)
  1576. if(res.rows.length>0){
  1577. yes = false
  1578. this.$toast({
  1579. icon: 'error', // 找到自己需要的图标
  1580. message: '无法删除,此户主存在户内成员!',
  1581. duration:"1000",
  1582. onClose:function(){
  1583. }
  1584. })
  1585. }else{
  1586. listShyqr(params).then((res) => {
  1587. if(res.rows.length>0){
  1588. yes = false
  1589. this.$toast({
  1590. icon: 'error', // 找到自己需要的图标
  1591. message: '无法删除,此户主已经成为使用权人!',
  1592. duration:"1000",
  1593. onClose:function(){
  1594. }
  1595. })
  1596. }else{
  1597. if(yes){
  1598. Dialog.confirm({
  1599. title: '警告',
  1600. message: '确认删除此使用权人么?',
  1601. })
  1602. .then(() => {
  1603. // on confirm
  1604. delNh(item.id).then(res => {
  1605. if(res.code=="200"){
  1606. this.nhlist.splice(index,1);
  1607. }
  1608. })
  1609. })
  1610. .catch(() => {
  1611. // on cancel
  1612. });
  1613. }
  1614. }
  1615. });
  1616. }
  1617. });
  1618. },
  1619. // 设为户主
  1620. setNh(item,index){
  1621. Dialog.confirm({
  1622. title: '警告',
  1623. message: '此操作将删除原户主,并将此成员设为新户主,是否确认操作?',
  1624. })
  1625. .then(() => {
  1626. // on confirm
  1627. delNhhncy(item.id).then(res => {
  1628. if(res.code=="200"){
  1629. this.hncylist.splice(index,1);
  1630. }
  1631. })
  1632. // 更新户主信息
  1633. let pnh = {
  1634. deptId : item.deptId,
  1635. nhdm : item.nhdm,
  1636. hzxm:item.xm,
  1637. hzzjlx :item.zjlx,
  1638. hzzjhm :item.zjhm
  1639. }
  1640. setNhInfo(pnh).then(res => {
  1641. })
  1642. // 更新使用权人
  1643. let psyqr = {
  1644. deptId : item.deptId,
  1645. nhdm : item.nhdm,
  1646. shyqrdbxm : item.xm,
  1647. shyqrdbzjlx : item.zjlx,
  1648. shyqrdbzjhm : item.zjhm,
  1649. xb : item.xb
  1650. }
  1651. setSyqrInfo(psyqr).then(res => {
  1652. })
  1653. })
  1654. .catch(() => {
  1655. // on cancel
  1656. });
  1657. },
  1658. //删除户内成员
  1659. deletehncy(id,index){
  1660. Dialog.confirm({
  1661. title: '警告',
  1662. message: '删除后无法恢复,确认删除此成员么?',
  1663. })
  1664. .then(() => {
  1665. // on confirm
  1666. delNhhncy(id).then(res => {
  1667. if(res.code=="200"){
  1668. this.hncylist.splice(index,1);
  1669. }
  1670. })
  1671. })
  1672. .catch(() => {
  1673. // on cancel
  1674. });
  1675. },
  1676. // 字数限制
  1677. limitWords(val){
  1678. if(val.length>11){
  1679. val = val.slice(0,10) +"..."
  1680. }
  1681. return val
  1682. },
  1683. // 与户主关系翻译
  1684. yhzgxfy(value){
  1685. let label
  1686. this.yhzgxOptions.map(res => {
  1687. if(res.dictValue == value){
  1688. label = res.dictLabel
  1689. }
  1690. })
  1691. return label
  1692. },
  1693. onRefreshzjd(){
  1694. this.isLoadingzjd = false;
  1695. let _this = this
  1696. if(this.active==1&&this.loading2){
  1697. let params = {
  1698. "deptId" : this.item.deptId,
  1699. "houseDataConfirmStatus" : "CONFIRMED",
  1700. "pageNum": this.countyhc+1,
  1701. "pageSize":10,
  1702. }
  1703. listZjdzd(params).then((response) => {
  1704. if(response.rows.length>0&&this.list1.length<response.total){
  1705. response.rows.map(res => {
  1706. this.list1.push(res)
  1707. })
  1708. this.countyhc++
  1709. this.loading2 = false
  1710. }else{
  1711. this.loading2 = false
  1712. this.finished2 = true
  1713. }
  1714. });
  1715. }else if(this.active==2&&this.loading3){
  1716. let params = {
  1717. "deptId" : this.item.deptId,
  1718. "houseDataConfirmStatus" : "UNCONFIRMED",
  1719. "pageNum": this.countwhc+1,
  1720. "pageSize":10,
  1721. }
  1722. listZjdzd(params).then((response) => {
  1723. if(response.rows.length>0&&this.list2.length<response.total){
  1724. response.rows.map(res => {
  1725. this.list2.push(res)
  1726. })
  1727. this.countwhc++
  1728. this.loading3 = false
  1729. }else{
  1730. this.finished3 = true
  1731. }
  1732. });
  1733. }else if(this.active==0&&this.loading1){
  1734. let params = {
  1735. "deptId" : this.item.deptId,
  1736. "pageNum": this.countqb+1,
  1737. "pageSize":10,
  1738. }
  1739. listZjdzd(params).then((response) => {
  1740. if(response.rows.length>0&&this.list.length<response.total){
  1741. response.rows.map(res => {
  1742. _this.list.push(res)
  1743. })
  1744. this.countqb++
  1745. this.loading1 = false
  1746. }else{
  1747. this.finished1 = true
  1748. }
  1749. });
  1750. }
  1751. },
  1752. getTotalHR(){
  1753. let params = {
  1754. "deptId" : this.item.deptId,
  1755. "pageNum": 1,
  1756. "pageSize":10,
  1757. }
  1758. listNh(params).then((response) => {
  1759. if(response.rows.length>=0){
  1760. this.totalH = response.total
  1761. }
  1762. listNhhncy(params).then((res) => {
  1763. if(res.rows.length>=0){
  1764. this.totalR = res.total + this.totalH
  1765. }
  1766. });
  1767. });
  1768. },
  1769. onRefreshnh(){
  1770. this.isLoadingnh = false
  1771. let params = {
  1772. "deptId" : this.item.deptId,
  1773. "pageNum": this.countnh+1,
  1774. "pageSize":10,
  1775. }
  1776. listNh(params).then((response) => {
  1777. if(response.rows.length>0&&this.nhlist.length<response.total){
  1778. response.rows.map(res => {
  1779. this.nhlist.unshift(res)
  1780. })
  1781. this.countnh++
  1782. }
  1783. });
  1784. },
  1785. setCookies(item){
  1786. this.$cookies.set("search",JSON.stringify(item));
  1787. this.$router.push({path:'/homesteadSurvey/add'});
  1788. },
  1789. // 入户核查搜索框新增。
  1790. onClickzjd(){
  1791. this.$cookies.remove("search");
  1792. this.$router.push({name:'homesteadAdd'});
  1793. },
  1794. // 农户信息搜索框新增。
  1795. onClicknh(){
  1796. this.shownh = true;
  1797. let params = {
  1798. "deptId" : this.item.deptId
  1799. }
  1800. this.qlrform={}
  1801. this.nhform={
  1802. "suyqrdm":null,
  1803. "deptId":this.item.deptId,
  1804. "hzzjlx":'01',
  1805. "hzzjlxName":"身份证",
  1806. "hyzk":'02',
  1807. "occupation":'1',
  1808. "occupationName":'务农',
  1809. "jzqk":'3',
  1810. "jzqkName":'常年居住',
  1811. "jzhcssfyzf":'1',
  1812. "jzhcssfyzfName":'无住房',
  1813. "zqtczsfyzf":'Y',
  1814. "sfbccm":'Y',
  1815. "sfpkh":'N',
  1816. "sfwbh":'N',
  1817. "sjly":'07',
  1818. "sjlyName":'农村集体产权制度改革',
  1819. }
  1820. listSuyqr(params).then((response) => {
  1821. if(response.rows.length>0){
  1822. this.qlrform = response.rows[0]
  1823. this.nhform.suyqrdm = this.qlrform.suyqrdm
  1824. this.nhform.txdz = response.rows[0].suyqrmc
  1825. }
  1826. });
  1827. },
  1828. // 返回
  1829. onClickLeft(){
  1830. this.$cookies.set("search","")
  1831. this.$router.push('/homesteadSurvey/index');
  1832. },
  1833. onConfirmhncysjly(value){
  1834. this.form5.sjlyName = value.dictLabel
  1835. this.form5.sjly = value.dictValue
  1836. this.showhncysjly= false
  1837. },
  1838. onConfirmhzsjly(value){
  1839. this.nhform.sjlyName = value.dictLabel
  1840. this.nhform.sjly = value.dictValue
  1841. this.showhzsjly= false
  1842. },
  1843. onConfirmhncycybz(value){
  1844. this.form5.cybzName = value.dictLabel
  1845. this.form5.cybz = value.dictValue
  1846. this.showhncycybz= false
  1847. },
  1848. onConfirmhzjzhcssfyzf(value){
  1849. this.nhform.jzhcssfyzfName = value.dictLabel
  1850. this.nhform.jzhcssfyzf = value.dictValue
  1851. this.showhzjzhcssfyzf= false
  1852. },
  1853. onConfirmhncyyhzgx(value){
  1854. this.form5.yhzgxName = value.dictLabel
  1855. this.form5.yhzgx = value.dictValue
  1856. this.showhncyyhzgx = false
  1857. },
  1858. onConfirmhncyzjlx(value){
  1859. this.form5.zjlxName = value.dictLabel
  1860. this.form5.zjlx = value.dictValue
  1861. this.showhncyzjlx = false
  1862. },
  1863. onConfirmhncyjzqk(value){
  1864. this.form5.jzqkName = value.dictLabel
  1865. this.form5.jzqk = value.dictValue
  1866. this.showhncyjzqk = false
  1867. },
  1868. onConfirmhzjzqk(value){
  1869. this.nhform.jzqkName = value.dictLabel
  1870. this.nhform.jzqk = value.dictValue
  1871. this.showhzjzqk = false
  1872. },
  1873. onConfirmhncyoccupation(value){
  1874. this.form5.occupationName = value.dictLabel
  1875. this.form5.occupation = value.dictValue
  1876. this.showhncyoccupation = false
  1877. },
  1878. onConfirmhzoccupation(value){
  1879. this.nhform.occupationName = value.dictLabel
  1880. this.nhform.occupation = value.dictValue
  1881. this.showhzoccupation = false
  1882. },
  1883. onConfirmhzzjlx(value){
  1884. this.nhform.hzzjlxName = value.dictLabel
  1885. this.nhform.hzzjlx = value.dictValue
  1886. this.showhzzjlx = false
  1887. },
  1888. onConfirmdbrzjlx(value){
  1889. this.qlrform.dbrzjlxName = value.dictLabel
  1890. this.qlrform.dbrzjlx = value.dictValue
  1891. this.showdbrzjlx = false
  1892. },
  1893. onConfirmsuyqxz(value){
  1894. this.qlrform.suyqxzName = value.dictLabel
  1895. this.qlrform.suyqxz = value.dictValue
  1896. this.showsuyqxz = false
  1897. },
  1898. onConfirmdlrzjlx(value){
  1899. this.qlrform.dlrzjlxName = value.dictLabel
  1900. this.qlrform.dlrzjlx = value.dictValue
  1901. this.showdlrzjlx = false
  1902. },
  1903. onConfirmsjly(value){
  1904. this.qlrform.sjlyName = value.dictLabel
  1905. this.qlrform.sjly = value.dictValue
  1906. this.showsjly = false
  1907. },
  1908. // 户主保存
  1909. onSubmitnh(){
  1910. if(this.nhform.id!=null){
  1911. updateNh(this.nhform).then(
  1912. response => {
  1913. let _this =this
  1914. this.$toast({
  1915. icon: 'success', // 找到自己需要的图标
  1916. message: '修改成功',
  1917. duration:"1000",
  1918. onClose:function(){
  1919. _this.getNh()
  1920. let psyqr = {
  1921. deptId : _this.nhform.deptId,
  1922. nhdm : _this.nhform.nhdm,
  1923. shyqrdbxm : _this.nhform.hzxm,
  1924. shyqrdbzjlx : _this.nhform.hzzjlx,
  1925. shyqrdbzjhm : _this.nhform.hzzjhm,
  1926. dh : _this.nhform.phone,
  1927. dz : _this.nhform.txdz
  1928. }
  1929. setSyqrInfo(psyqr).then(res => {
  1930. _this.shownh = false
  1931. })
  1932. }
  1933. })
  1934. }
  1935. );
  1936. }else{
  1937. this.nhform.deptId = this.item.deptId
  1938. addNh(this.nhform).then(
  1939. response => {
  1940. this.totalR+=1
  1941. this.totalH+=1
  1942. let _this =this
  1943. this.$toast({
  1944. icon: 'success', // 找到自己需要的图标
  1945. message: '保存成功',
  1946. duration:"1000",
  1947. onClose:function(){
  1948. _this.shownh = false
  1949. _this.getNh()
  1950. }
  1951. })
  1952. }
  1953. );
  1954. }
  1955. },
  1956. // 所有权人保存
  1957. onSubmitsyqr(){
  1958. if(this.qlrform.id!=null){
  1959. updateSuyqr(this.qlrform).then(
  1960. response => {
  1961. let _this =this
  1962. this.$toast({
  1963. icon: 'success', // 找到自己需要的图标
  1964. message: '修改成功',
  1965. duration:"1000"
  1966. })
  1967. }
  1968. );
  1969. }else{
  1970. this.qlrform.deptId = this.item.deptId
  1971. addSuyqr(this.qlrform).then(
  1972. response => {
  1973. let _this =this
  1974. this.$toast({
  1975. icon: 'success', // 找到自己需要的图标
  1976. message: '保存成功',
  1977. duration:"1000"
  1978. })
  1979. }
  1980. );
  1981. }
  1982. },
  1983. // 查询所有权人
  1984. getSyqr(){
  1985. //删除地图选中状态
  1986. $("#deleteHistoryMap").trigger("click");
  1987. let params = {
  1988. "deptId" : this.item.deptId
  1989. }
  1990. this.qlrform ={
  1991. "deptId":this.item.deptId,
  1992. "suyqxz":'40',
  1993. "suyqxzName":'集体土地所有权',
  1994. "dbrzjlx":'01',
  1995. "dbrzjlxName":'身份证',
  1996. "sfclncjtjjzz":'Y',
  1997. "sjly":'04',
  1998. "sjlyName":"农村宅基地使用权确权登记发证"
  1999. }
  2000. listSuyqr(params).then((response) => {
  2001. if(response.rows.length>0){
  2002. this.qlrform = response.rows[0]
  2003. if(this.qlrform.suyqxz==null||this.qlrform.suyqxz==""){
  2004. this.qlrform.suyqxz = "40"
  2005. this.qlrform.suyqxzName = "集体土地所有权"
  2006. }
  2007. if(this.qlrform.dbrzjlx==null||this.qlrform.dbrzjlx==""){
  2008. this.qlrform.dbrzjlx = "01"
  2009. this.qlrform.dbrzjlxName = "身份证"
  2010. }
  2011. if(this.qlrform.sfclncjtjjzz==null||this.qlrform.sfclncjtjjzz==""){
  2012. this.qlrform.sfclncjtjjzz = "Y"
  2013. }
  2014. if(this.qlrform.sjly==null||this.qlrform.sjly==""){
  2015. this.qlrform.sjly = "04"
  2016. this.qlrform.sjlyName = "农村宅基地使用权确权登记发证"
  2017. }
  2018. this.zjlxOptions.map(res => {
  2019. if(res.dictValue == this.qlrform.dbrzjlx){
  2020. this.qlrform.dbrzjlxName = res.dictLabel
  2021. }
  2022. if(res.dictValue == this.qlrform.dlrzjlx){
  2023. this.qlrform.dlrzjlxName = res.dictLabel
  2024. }
  2025. })
  2026. this.suyqxzOptions.map(res => {
  2027. if(res.dictValue == this.qlrform.suyqxz){
  2028. this.qlrform.suyqxzName = res.dictLabel
  2029. }
  2030. })
  2031. this.sjlyOptions.map(res => {
  2032. if(res.dictValue == this.qlrform.sjly){
  2033. this.qlrform.sjlyName = res.dictLabel
  2034. }
  2035. })
  2036. }
  2037. });
  2038. },
  2039. // 查询农户列表
  2040. getNh(){
  2041. //删除地图选中状态
  2042. $("#deleteHistoryMap").trigger("click");
  2043. let params = {
  2044. "deptId" : this.item.deptId
  2045. }
  2046. listNh(params).then((response) => {
  2047. this.nhlist = response.rows
  2048. this.totalN = response.total
  2049. });
  2050. },
  2051. //调查
  2052. getDc(){
  2053. //删除地图选中状态
  2054. $("#deleteHistoryMap").trigger("click");
  2055. },
  2056. // 农户信息搜索框
  2057. onSearchnh(){
  2058. let params = {
  2059. "deptId" : this.item.deptId,
  2060. "nhValue" : this.nhvalue
  2061. }
  2062. listNh(params).then((response) => {
  2063. this.nhlist = response.rows
  2064. });
  2065. },
  2066. // 宅基地搜索框
  2067. onSearchzjd(){
  2068. if(this.active==1){
  2069. let params = {
  2070. "deptId" : this.item.deptId,
  2071. "houseDataConfirmStatus" : "CONFIRMED",
  2072. "syqr" : this.zjdvalue
  2073. }
  2074. listZjdzd(params).then((response) => {
  2075. if (response.code == 200) {
  2076. this.list1 = response.rows
  2077. }
  2078. });
  2079. }else if(this.active==2){
  2080. let params = {
  2081. "deptId" : this.item.deptId,
  2082. "houseDataConfirmStatus" : "UNCONFIRMED",
  2083. "syqr" : this.zjdvalue
  2084. }
  2085. listZjdzd(params).then((response) => {
  2086. if (response.code == 200) {
  2087. this.list2 = response.rows
  2088. }
  2089. });
  2090. }else{
  2091. let params = {
  2092. "deptId" : this.item.deptId,
  2093. "syqr" : this.zjdvalue
  2094. }
  2095. listZjdzd(params).then((response) => {
  2096. if (response.code == 200) {
  2097. this.list = response.rows
  2098. }
  2099. });
  2100. }
  2101. },
  2102. // 户内成员弹窗
  2103. showPopuphncy(item){
  2104. this.showhncy = true
  2105. if(item.id==null||item.id==""){
  2106. this.form5 = {
  2107. "nhdm":this.nhdm,
  2108. "deptId":this.item.deptId,
  2109. "zjlx":'01',
  2110. "zjlxName":"身份证",
  2111. "yhzgx":"14",
  2112. "yhzgxName":"妻",
  2113. "hyzk":'02',
  2114. "hklx":'1',
  2115. "occupation":'1',
  2116. "occupationName":'务农',
  2117. "jzqk":'3',
  2118. "jzqkName":'常年居住',
  2119. "sfbjtjjzzcy":'Y',
  2120. "xb":'0',
  2121. "sfbccm":'Y',
  2122. "sfpkh":'N',
  2123. "sfwbh":'N',
  2124. "sjly":'07',
  2125. "sjlyName":'农村集体产权制度改革',
  2126. "cybz":'9',
  2127. "cybzName":'其他备注'
  2128. }
  2129. }else{
  2130. let _this = this
  2131. this.form5 = item
  2132. if(this.form5.nhdm==null||this.form5.nhdm==""){
  2133. this.form5.nhdm = this.nhform.nhdm
  2134. }
  2135. if(this.form5.deptId==null||this.form5.deptId==""){
  2136. this.form5.deptId = this.nhform.deptId
  2137. }
  2138. if(this.form5.zjlx==null||this.form5.zjlx==""){
  2139. this.form5.zjlx = "01"
  2140. this.form5.zjlxName = "身份证"
  2141. }
  2142. if(this.form5.yhzgx==null||this.form5.yhzgx==""){
  2143. this.form5.yhzgx = "14"
  2144. this.form5.yhzgxName = "妻"
  2145. }
  2146. if(this.form5.hyzk==null||this.form5.hyzk==""){
  2147. this.form5.hyzk = "02"
  2148. }
  2149. if(this.form5.hklx==null||this.form5.hklx==""){
  2150. this.form5.hklx = "1"
  2151. }
  2152. if(this.form5.occupation==null||this.form5.occupation==""){
  2153. this.form5.occupation = "1"
  2154. this.form5.occupationName = "务农"
  2155. }
  2156. if(this.form5.jzqk==null||this.form5.jzqk==""){
  2157. this.form5.jzqk = "3"
  2158. this.form5.jzqkName = "常年居住"
  2159. }
  2160. if(this.form5.sfbjtjjzzcy==null||this.form5.sfbjtjjzzcy==""){
  2161. this.form5.sfbjtjjzzcy = "Y"
  2162. }
  2163. if(this.form5.xb==null||this.form5.xb==""){
  2164. this.form5.xb = "0"
  2165. }
  2166. if(this.form5.sfbccm==null||this.form5.sfbccm==""){
  2167. this.form5.sfbccm = "Y"
  2168. }
  2169. if(this.form5.sfpkh==null||this.form5.sfpkh==""){
  2170. this.form5.sfpkh = "N"
  2171. }
  2172. if(this.form5.sfwbh==null||this.form5.sfwbh==""){
  2173. this.form5.sfwbh = "N"
  2174. }
  2175. if(this.form5.sjly==null||this.form5.sjly==""){
  2176. this.form5.sjly = "07"
  2177. this.form5.sjlyName = "农村集体产权制度改革"
  2178. }
  2179. if(this.form5.cybz==null||this.form5.cybz==""){
  2180. this.form5.cybz = "9"
  2181. this.form5.cybzName = "其他备注"
  2182. }
  2183. this.jzhcssfyzfOptions.map(res => {
  2184. if(res.dictValue == item.jzhcssfyzf){
  2185. this.form5.jzhcssfyzfName = res.dictLabel
  2186. }
  2187. })
  2188. this.zjlxOptions.map(res => {
  2189. if(res.dictValue == item.zjlx){
  2190. this.form5.zjlxName = res.dictLabel
  2191. }
  2192. })
  2193. this.occupationOptions.map(res => {
  2194. if(res.dictValue == item.occupation){
  2195. this.form5.occupationName = res.dictLabel
  2196. }
  2197. })
  2198. this.jzqkOptions.map(res => {
  2199. if(res.dictValue == item.jzqk){
  2200. this.form5.jzqkName = res.dictLabel
  2201. }
  2202. })
  2203. this.yhzgxOptions.map(res => {
  2204. if(res.dictValue == item.yhzgx){
  2205. this.form5.yhzgxName = res.dictLabel
  2206. }
  2207. })
  2208. this.cybzOptions.map(res => {
  2209. if(res.dictValue == item.cybz){
  2210. this.form5.cybzName = res.dictLabel
  2211. }
  2212. })
  2213. this.sjlyOptions.map(res => {
  2214. if(res.dictValue == item.sjly){
  2215. this.form5.sjlyName = res.dictLabel
  2216. }
  2217. })
  2218. }
  2219. },
  2220. // 户内成员列表
  2221. showPopuphncylist(item){
  2222. if(item.nhdm==null||item.nhdm==""){
  2223. this.$toast({
  2224. icon: 'error', // 找到自己需要的图标
  2225. message: '请先保存户主信息',
  2226. duration:"1000"
  2227. })
  2228. }else{
  2229. this.nhdm = item.nhdm
  2230. this.showhncylist = true
  2231. let params = {
  2232. "nhdm":item.nhdm,
  2233. "deptId":this.item.deptId
  2234. }
  2235. listNhhncy(params).then((response) => {
  2236. if (response.code == 200) {
  2237. this.hncylist = response.rows
  2238. }
  2239. });
  2240. }
  2241. },
  2242. showPopupnh(item){
  2243. this.shownh = true
  2244. this.nhform = item
  2245. this.jzhcssfyzfOptions.map(res => {
  2246. if(res.dictValue == item.jzhcssfyzf){
  2247. this.nhform.jzhcssfyzfName = res.dictLabel
  2248. }
  2249. })
  2250. this.zjlxOptions.map(res => {
  2251. if(res.dictValue == item.hzzjlx){
  2252. this.nhform.hzzjlxName = res.dictLabel
  2253. }
  2254. })
  2255. this.occupationOptions.map(res => {
  2256. if(res.dictValue == item.occupation){
  2257. this.nhform.occupationName = res.dictLabel
  2258. }
  2259. })
  2260. this.jzqkOptions.map(res => {
  2261. if(res.dictValue == item.jzqk){
  2262. this.nhform.jzqkName = res.dictLabel
  2263. }
  2264. })
  2265. this.sjlyOptions.map(res => {
  2266. if(res.dictValue == item.sjly){
  2267. this.nhform.sjlyName = res.dictLabel
  2268. }
  2269. })
  2270. },
  2271. getZjdList(){
  2272. /*if(this.active==1){
  2273. let params = {
  2274. "deptId" : this.item.deptId,
  2275. "houseDataConfirmStatus" : "CONFIRMED",
  2276. "pageNum": 1,
  2277. "pageSize":10,
  2278. }
  2279. listZjdzd(params).then((response) => {
  2280. if (response.code == 200) {
  2281. this.yhcNums = response.total
  2282. this.list1 = response.rows
  2283. }
  2284. });
  2285. }else if(this.active==2){
  2286. let params = {
  2287. "deptId" : this.item.deptId,
  2288. "houseDataConfirmStatus" : "UNCONFIRMED",
  2289. "pageNum": 1,
  2290. "pageSize":10,
  2291. }
  2292. listZjdzd(params).then((response) => {
  2293. if (response.code == 200) {
  2294. this.whcNums = response.total
  2295. this.list2 = response.rows
  2296. }
  2297. });
  2298. }else{*/
  2299. let params = {
  2300. "deptId" : this.item.deptId,
  2301. "pageNum": 1,
  2302. "pageSize":10,
  2303. }
  2304. listZjdzd(params).then((response) => {
  2305. if (response.code == 200) {
  2306. this.qbNums = response.total
  2307. this.list = response.rows
  2308. }
  2309. });
  2310. let params1 = {
  2311. "deptId" : this.item.deptId,
  2312. "houseDataConfirmStatus" : "CONFIRMED",
  2313. "pageNum": 1,
  2314. "pageSize":10,
  2315. }
  2316. listZjdzd(params1).then((response) => {
  2317. if (response.code == 200) {
  2318. this.yhcNums = response.total
  2319. this.list1 = response.rows
  2320. }
  2321. });
  2322. let params2 = {
  2323. "deptId" : this.item.deptId,
  2324. "houseDataConfirmStatus" : "UNCONFIRMED",
  2325. "pageNum": 1,
  2326. "pageSize":10,
  2327. }
  2328. listZjdzd(params2).then((response) => {
  2329. if (response.code == 200) {
  2330. this.whcNums = response.total
  2331. this.list2 = response.rows
  2332. }
  2333. });
  2334. /* }*/
  2335. },
  2336. onConfirm(){},
  2337. /*onSubmithncy(){
  2338. if (this.form5.id != null) {
  2339. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2340. if(this.form5.xb!='1'){
  2341. Dialog.confirm({
  2342. title: '警告',
  2343. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2344. })
  2345. .then(() => {
  2346. // on confirm
  2347. updateNhhncy(this.form5).then(response => {
  2348. let _this =this
  2349. this.$toast({
  2350. icon: 'success', // 找到自己需要的图标
  2351. message: '修改成功',
  2352. duration:"1000",
  2353. onClose:function(){
  2354. _this.showhncy = false
  2355. let params = {
  2356. "nhdm":_this.form5.nhdm,
  2357. deptId:_this.form5.deptId
  2358. }
  2359. listNhhncy(params).then((response) => {
  2360. _this.hncylist = response.rows
  2361. })
  2362. }
  2363. })
  2364. });
  2365. })
  2366. .catch(() => {
  2367. // on cancel
  2368. });
  2369. }else{
  2370. updateNhhncy(this.form5).then(response => {
  2371. let _this =this
  2372. this.$toast({
  2373. icon: 'success', // 找到自己需要的图标
  2374. message: '修改成功',
  2375. duration:"1000",
  2376. onClose:function(){
  2377. _this.showhncy = false
  2378. let params = {
  2379. "nhdm":_this.form5.nhdm,
  2380. deptId:_this.form5.deptId
  2381. }
  2382. listNhhncy(params).then((response) => {
  2383. _this.hncylist = response.rows
  2384. })
  2385. }
  2386. })
  2387. });
  2388. }
  2389. } else {
  2390. if(this.form5.xb=='1'){
  2391. Dialog.confirm({
  2392. title: '警告',
  2393. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2394. })
  2395. .then(() => {
  2396. // on confirm
  2397. updateNhhncy(this.form5).then(response => {
  2398. let _this =this
  2399. this.$toast({
  2400. icon: 'success', // 找到自己需要的图标
  2401. message: '修改成功',
  2402. duration:"1000",
  2403. onClose:function(){
  2404. _this.showhncy = false
  2405. let params = {
  2406. "nhdm":_this.form5.nhdm,
  2407. deptId:_this.form5.deptId
  2408. }
  2409. listNhhncy(params).then((response) => {
  2410. _this.hncylist = response.rows
  2411. })
  2412. }
  2413. })
  2414. });
  2415. })
  2416. .catch(() => {
  2417. // on cancel
  2418. });
  2419. }else{
  2420. updateNhhncy(this.form5).then(response => {
  2421. let _this =this
  2422. this.$toast({
  2423. icon: 'success', // 找到自己需要的图标
  2424. message: '修改成功',
  2425. duration:"1000",
  2426. onClose:function(){
  2427. _this.showhncy = false
  2428. let params = {
  2429. "nhdm":_this.form5.nhdm,
  2430. deptId:_this.form5.deptId
  2431. }
  2432. listNhhncy(params).then((response) => {
  2433. _this.hncylist = response.rows
  2434. })
  2435. }
  2436. })
  2437. });
  2438. }
  2439. }
  2440. } else {
  2441. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2442. if(this.form5.xb!='1'){
  2443. Dialog.confirm({
  2444. title: '警告',
  2445. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2446. })
  2447. .then(() => {
  2448. // on confirm
  2449. addNhhncy(this.form5).then(response => {
  2450. let _this =this
  2451. this.$toast({
  2452. icon: 'success', // 找到自己需要的图标
  2453. message: '保存成功',
  2454. duration:"1000",
  2455. onClose:function(){
  2456. _this.showhncy = false
  2457. _this.totalR+=1
  2458. _this.totalH+=1
  2459. let params = {
  2460. "nhdm":_this.form5.nhdm,
  2461. deptId:_this.form5.deptId
  2462. }
  2463. listNhhncy(params).then((response) => {
  2464. _this.hncylist = response.rows
  2465. })
  2466. }
  2467. })
  2468. });
  2469. })
  2470. .catch(() => {
  2471. // on cancel
  2472. });
  2473. }else{
  2474. addNhhncy(this.form5).then(response => {
  2475. let _this =this
  2476. this.$toast({
  2477. icon: 'success', // 找到自己需要的图标
  2478. message: '保存成功',
  2479. duration:"1000",
  2480. onClose:function(){
  2481. _this.showhncy = false
  2482. _this.totalR+=1
  2483. _this.totalH+=1
  2484. let params = {
  2485. "nhdm":_this.form5.nhdm,
  2486. deptId:_this.form5.deptId
  2487. }
  2488. listNhhncy(params).then((response) => {
  2489. _this.hncylist = response.rows
  2490. })
  2491. }
  2492. })
  2493. });
  2494. }
  2495. } else {
  2496. if(this.form5.xb=='1'){
  2497. Dialog.confirm({
  2498. title: '警告',
  2499. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2500. })
  2501. .then(() => {
  2502. // on confirm
  2503. addNhhncy(this.form5).then(response => {
  2504. let _this =this
  2505. this.$toast({
  2506. icon: 'success', // 找到自己需要的图标
  2507. message: '保存成功',
  2508. duration:"1000",
  2509. onClose:function(){
  2510. _this.showhncy = false
  2511. _this.totalR+=1
  2512. _this.totalH+=1
  2513. let params = {
  2514. "nhdm":_this.form5.nhdm,
  2515. deptId:_this.form5.deptId
  2516. }
  2517. listNhhncy(params).then((response) => {
  2518. _this.hncylist = response.rows
  2519. })
  2520. }
  2521. })
  2522. });
  2523. })
  2524. .catch(() => {
  2525. // on cancel
  2526. });
  2527. }else{
  2528. addNhhncy(this.form5).then(response => {
  2529. let _this =this
  2530. this.$toast({
  2531. icon: 'success', // 找到自己需要的图标
  2532. message: '保存成功',
  2533. duration:"1000",
  2534. onClose:function(){
  2535. _this.showhncy = false
  2536. _this.totalR+=1
  2537. _this.totalH+=1
  2538. let params = {
  2539. "nhdm":_this.form5.nhdm,
  2540. deptId:_this.form5.deptId
  2541. }
  2542. listNhhncy(params).then((response) => {
  2543. _this.hncylist = response.rows
  2544. })
  2545. }
  2546. })
  2547. });
  2548. }
  2549. }
  2550. }
  2551. },*/
  2552. onSubmithncy(){
  2553. if (this.form5.id != null) {
  2554. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2555. if(this.form5.xb!='1'){
  2556. Dialog.confirm({
  2557. title: '警告',
  2558. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2559. })
  2560. .then(() => {
  2561. // on confirm
  2562. updateNhhncy(this.form5).then(response => {
  2563. let _this =this
  2564. this.$toast({
  2565. icon: 'success', // 找到自己需要的图标
  2566. message: '修改成功',
  2567. duration:"1000",
  2568. onClose:function(){
  2569. _this.showhncy = false
  2570. let params = {
  2571. "nhdm":_this.form5.nhdm,
  2572. deptId:_this.form5.deptId
  2573. }
  2574. listNhhncy(params).then((response) => {
  2575. _this.hncylist = response.rows
  2576. })
  2577. }
  2578. })
  2579. });
  2580. })
  2581. .catch(() => {
  2582. // on cancel
  2583. });
  2584. }else{
  2585. updateNhhncy(this.form5).then(response => {
  2586. let _this =this
  2587. this.$toast({
  2588. icon: 'success', // 找到自己需要的图标
  2589. message: '修改成功',
  2590. duration:"1000",
  2591. onClose:function(){
  2592. _this.showhncy = false
  2593. let params = {
  2594. "nhdm":_this.form5.nhdm,
  2595. deptId:_this.form5.deptId
  2596. }
  2597. listNhhncy(params).then((response) => {
  2598. _this.hncylist = response.rows
  2599. })
  2600. }
  2601. })
  2602. });
  2603. }
  2604. } else if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 0){
  2605. if(this.form5.xb!='0'){
  2606. Dialog.confirm({
  2607. title: '警告',
  2608. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2609. })
  2610. .then(() => {
  2611. // on confirm
  2612. updateNhhncy(this.form5).then(response => {
  2613. let _this =this
  2614. this.$toast({
  2615. icon: 'success', // 找到自己需要的图标
  2616. message: '修改成功',
  2617. duration:"1000",
  2618. onClose:function(){
  2619. _this.showhncy = false
  2620. let params = {
  2621. "nhdm":_this.form5.nhdm,
  2622. deptId:_this.form5.deptId
  2623. }
  2624. listNhhncy(params).then((response) => {
  2625. _this.hncylist = response.rows
  2626. })
  2627. }
  2628. })
  2629. });
  2630. })
  2631. .catch(() => {
  2632. // on cancel
  2633. });
  2634. }else{
  2635. updateNhhncy(this.form5).then(response => {
  2636. let _this =this
  2637. this.$toast({
  2638. icon: 'success', // 找到自己需要的图标
  2639. message: '修改成功',
  2640. duration:"1000",
  2641. onClose:function(){
  2642. _this.showhncy = false
  2643. let params = {
  2644. "nhdm":_this.form5.nhdm,
  2645. deptId:_this.form5.deptId
  2646. }
  2647. listNhhncy(params).then((response) => {
  2648. _this.hncylist = response.rows
  2649. })
  2650. }
  2651. })
  2652. });
  2653. }
  2654. }else{
  2655. updateNhhncy(this.form5).then(response => {
  2656. let _this =this
  2657. this.$toast({
  2658. icon: 'success', // 找到自己需要的图标
  2659. message: '修改成功',
  2660. duration:"1000",
  2661. onClose:function(){
  2662. _this.showhncy = false
  2663. let params = {
  2664. "nhdm":_this.form5.nhdm,
  2665. deptId:_this.form5.deptId
  2666. }
  2667. listNhhncy(params).then((response) => {
  2668. _this.hncylist = response.rows
  2669. })
  2670. }
  2671. })
  2672. });
  2673. }
  2674. } else {
  2675. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  2676. if(this.form5.xb!='1'){
  2677. Dialog.confirm({
  2678. title: '警告',
  2679. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2680. })
  2681. .then(() => {
  2682. // on confirm
  2683. addNhhncy(this.form5).then(response => {
  2684. let _this =this
  2685. this.$toast({
  2686. icon: 'success', // 找到自己需要的图标
  2687. message: '保存成功',
  2688. duration:"1000",
  2689. onClose:function(){
  2690. _this.totalR+=1
  2691. _this.totalH+=1
  2692. _this.showhncy = false
  2693. let params = {
  2694. "nhdm":_this.form5.nhdm,
  2695. deptId:_this.form5.deptId
  2696. }
  2697. listNhhncy(params).then((response) => {
  2698. _this.hncylist = response.rows
  2699. })
  2700. }
  2701. })
  2702. });
  2703. })
  2704. .catch(() => {
  2705. // on cancel
  2706. });
  2707. }else{
  2708. addNhhncy(this.form5).then(response => {
  2709. let _this =this
  2710. this.$toast({
  2711. icon: 'success', // 找到自己需要的图标
  2712. message: '保存成功',
  2713. duration:"1000",
  2714. onClose:function(){
  2715. _this.totalR+=1
  2716. _this.totalH+=1
  2717. _this.showhncy = false
  2718. let params = {
  2719. "nhdm":_this.form5.nhdm,
  2720. deptId:_this.form5.deptId
  2721. }
  2722. listNhhncy(params).then((response) => {
  2723. _this.hncylist = response.rows
  2724. })
  2725. }
  2726. })
  2727. });
  2728. }
  2729. } else if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 0){
  2730. if(this.form5.xb!='0'){
  2731. Dialog.confirm({
  2732. title: '警告',
  2733. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  2734. })
  2735. .then(() => {
  2736. // on confirm
  2737. addNhhncy(this.form5).then(response => {
  2738. let _this =this
  2739. this.$toast({
  2740. icon: 'success', // 找到自己需要的图标
  2741. message: '保存成功',
  2742. duration:"1000",
  2743. onClose:function(){
  2744. _this.totalR+=1
  2745. _this.totalH+=1
  2746. _this.showhncy = false
  2747. let params = {
  2748. "nhdm":_this.form5.nhdm,
  2749. deptId:_this.form5.deptId
  2750. }
  2751. listNhhncy(params).then((response) => {
  2752. _this.hncylist = response.rows
  2753. })
  2754. }
  2755. })
  2756. });
  2757. })
  2758. .catch(() => {
  2759. // on cancel
  2760. });
  2761. }else{
  2762. addNhhncy(this.form5).then(response => {
  2763. let _this =this
  2764. this.$toast({
  2765. icon: 'success', // 找到自己需要的图标
  2766. message: '保存成功',
  2767. duration:"1000",
  2768. onClose:function(){
  2769. _this.totalR+=1
  2770. _this.totalH+=1
  2771. _this.showhncy = false
  2772. let params = {
  2773. "nhdm":_this.form5.nhdm,
  2774. deptId:_this.form5.deptId
  2775. }
  2776. listNhhncy(params).then((response) => {
  2777. _this.hncylist = response.rows
  2778. })
  2779. }
  2780. })
  2781. });
  2782. }
  2783. }else{
  2784. addNhhncy(this.form5).then(response => {
  2785. let _this =this
  2786. this.$toast({
  2787. icon: 'success', // 找到自己需要的图标
  2788. message: '保存成功',
  2789. duration:"1000",
  2790. onClose:function(){
  2791. _this.totalR+=1
  2792. _this.totalH+=1
  2793. _this.showhncy = false
  2794. let params = {
  2795. "nhdm":_this.form5.nhdm,
  2796. deptId:_this.form5.deptId
  2797. }
  2798. listNhhncy(params).then((response) => {
  2799. _this.hncylist = response.rows
  2800. })
  2801. }
  2802. })
  2803. });
  2804. }
  2805. }
  2806. },
  2807. mapShow() {
  2808. //删除地图选中状态
  2809. $("#deleteHistoryMap").trigger("click");
  2810. //通过数据直接查询方式--------加载较慢 start
  2811. //镇边界获取
  2812. // listTown().then(response => {
  2813. // if (response.code == 200) {
  2814. // this.mapTownList = response.rows;
  2815. // //村边界获取
  2816. // listVillage(this.queryParams).then(response => {
  2817. // this.mapVillageList = response.rows;
  2818. // listZjdzd().then((response) => {
  2819. // if (response.code == 200) {
  2820. // this.mapTheGeomZjdId= response.rows;
  2821. // listZrz().then((response) => {
  2822. // if (response.code == 200) {
  2823. // this.mapTheGeomZrzId = response.rows;
  2824. // listFsss().then((response) => {
  2825. // if (response.code == 200) {
  2826. // this.mapTheGeomFsssId = response.rows;
  2827. // }
  2828. // setTimeout(() => {
  2829. // this.GetMapsInit();
  2830. // }, 300);
  2831. // });
  2832. // }
  2833. // });
  2834. // }
  2835. // });
  2836. // });
  2837. // }
  2838. // });
  2839. //通过数据直接查询方式--------加载较慢 end
  2840. getGeoServerConfigKey().then(response => {
  2841. this.mapGeoServerUrl = response.msg;
  2842. setTimeout(() => {
  2843. this.GetMapsInit();
  2844. }, 300);
  2845. });
  2846. var that = this;
  2847. setTimeout(function () {
  2848. var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)
  2849. that.bottomHeight = -height+'px'
  2850. },500)
  2851. },
  2852. //地图加载 -----start
  2853. GetMapsInit() {
  2854. //加载地图编辑
  2855. var that = this;
  2856. var map;
  2857. //点击事件添加样式
  2858. var hc_land_on;
  2859. // document.getElementById("mapAll").innerHTML = '';
  2860. var hc_land;
  2861. var projection = new ol.proj.Projection({
  2862. //地图投影类型
  2863. code: "EPSG:3857",
  2864. units: "degrees",
  2865. //extent:extent
  2866. });
  2867. var aerial = new ol.layer.Tile({
  2868. source: new ol.source.XYZ({
  2869. // url: "http://t0.tianditu.gov.cn/img_w/wmts?" +
  2870. // "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  2871. // "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  2872. url: "http://t{0-7}.tianditu.com/img_w/wmts?" +
  2873. "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  2874. "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  2875. }),
  2876. isGroup: true,
  2877. name: "卫星影像图",
  2878. });
  2879. var yingxzi = new ol.layer.Tile({
  2880. source: new ol.source.XYZ({
  2881. url: "http://t{0-7}.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=cc4aba6e967096098249efa069733067",
  2882. }),
  2883. isGroup: true,
  2884. name: "天地图文字标注--卫星影像图",
  2885. });
  2886. //加载地图
  2887. map = new ol.Map({
  2888. controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮
  2889. layers: [aerial, yingxzi],
  2890. projection: projection,
  2891. target: "mapWrapAll",
  2892. view: new ol.View({
  2893. //center: ol.proj.fromLonLat([115.452752, 31.789033]),
  2894. //center: ol.proj.fromLonLat([115.452752, 31.789033]),
  2895. zoom: 10,
  2896. minZoom: 5, //地图缩小限制
  2897. maxZoom: 18.3, //地图放大限制
  2898. resolution:Math.random() * 0.00000001,
  2899. }),
  2900. interactions: ol.interaction.defaults({
  2901. pinchRotate: false // 移动端禁止地图旋转
  2902. }),
  2903. });
  2904. //使用geoserver服务查询开始 -------------------start
  2905. //镇边界查询开始 ------------------------------start
  2906. // var zhenTc= new ol.layer.Tile({
  2907. // source: new ol.source.TileWMS({
  2908. // url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  2909. // params: {
  2910. // LAYERS: 'zjd_dc:t_house_survey_border_town',
  2911. // TILED: true,
  2912. // //cql_filter: cql_filter,
  2913. // SRID: 3857,
  2914. // },
  2915. // }),
  2916. // });
  2917. // map.addLayer(zhenTc);
  2918. //镇边界查询开始 ------------------------------end
  2919. //村边界查询开始 ------------------------------start
  2920. var cql_filter
  2921. if(that.mapAddJumpNum == 1){
  2922. cql_filter = "dept_id='" + that.mapAddJump + "'";
  2923. } else {
  2924. cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'";
  2925. }
  2926. var cunTc= new ol.layer.Image({
  2927. source: new ol.source.ImageWMS({
  2928. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  2929. params: {
  2930. LAYERS: 'zjd_dc:t_house_survey_border_village',
  2931. TILED: true,
  2932. cql_filter: cql_filter,
  2933. SRID: 3857,
  2934. },
  2935. resolution:Math.random() * 0.00000001,
  2936. }),
  2937. });
  2938. //定位查询位置
  2939. let param_dw = {
  2940. srsName: "EPSG:3857",
  2941. service: "WFS",
  2942. version: "1.0.0",
  2943. request: "GetFeature",
  2944. typename: "zjd_dc:t_house_survey_border_village",
  2945. //featureNS: 'nsgk_hc',//命名空间 URI
  2946. cql_filter: cql_filter,
  2947. //featurePrefix: 'nationalwater',//工作区名称
  2948. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2949. outputFormat: "application/json",
  2950. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2951. };
  2952. let url_dw = that.mapGeoServerUrl+"/geoserver/zjd_dc/wfs"; //wfsurl;
  2953. url_dw = url_dw + "?";
  2954. for (let key in param_dw) {
  2955. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2956. }
  2957. url_dw = url_dw.substr(0, url_dw.length - 1);
  2958. fetch(url_dw, {
  2959. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2960. })
  2961. .then((res) => {
  2962. var geojsonmap = res.json();
  2963. return geojsonmap;
  2964. })
  2965. .then((data) => {
  2966. if(that.backTheGeom !="" && that.backTheGeom !=undefined && that.backTheGeom.substring(0,1) =="{"){
  2967. hc_land_on = new ol.layer.Vector({
  2968. title: "add Layer",
  2969. source: new ol.source.Vector({
  2970. projection: projection,
  2971. features: new ol.format.GeoJSON().readFeatures(that.backTheGeom),
  2972. }),
  2973. style: new ol.style.Style({
  2974. stroke: new ol.style.Stroke({
  2975. //边界样式
  2976. color: "#CCFF66",
  2977. width: 6,
  2978. }),
  2979. }),
  2980. });
  2981. map.addLayer(hc_land_on);
  2982. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  2983. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  2984. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  2985. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  2986. //定位查询位置
  2987. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  2988. map.getView().animate({
  2989. // 只设置需要的属性即可
  2990. center: center, // 中心点
  2991. zoom: 17.9, // 缩放级别
  2992. rotation: undefined, // 缩放完成view视图旋转弧度
  2993. duration: 1000, // 缩放持续时间,默认不需要设置
  2994. resolution:Math.random() * 0.00000001,
  2995. });
  2996. } else if(that.backTheGeom !="" && that.backTheGeom !=undefined && that.backTheGeom.substring(0,1) =="[") {
  2997. //that.newHt ="1";
  2998. var zbNew = JSON.stringify({"type": "MultiPolygon", "coordinates": [that.backTheGeom.replaceAll("\"","")]});
  2999. var leftJoin = zbNew.replace("\"[","[");
  3000. var rightJoin = leftJoin.replace("\"]","]");
  3001. hc_land_on = new ol.layer.Vector({
  3002. title: "add Layer",
  3003. source: new ol.source.Vector({
  3004. projection: projection,
  3005. features: new ol.format.GeoJSON().readFeatures("{\n" +
  3006. " \"type\": \"Feature\",\n" +
  3007. " \"geometry\":" + rightJoin + "}"),
  3008. }),
  3009. style: new ol.style.Style({
  3010. fill: new ol.style.Fill({
  3011. //矢量图层填充颜色,以及透明度
  3012. color: "rgba(204, 255, 204,0.3)",
  3013. }),
  3014. stroke: new ol.style.Stroke({
  3015. //边界样式
  3016. color: "#CCFF66",
  3017. width: 3,
  3018. }),
  3019. }),
  3020. });
  3021. map.addLayer(hc_land_on);
  3022. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  3023. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  3024. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  3025. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  3026. //定位查询位置
  3027. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3028. map.getView().animate({
  3029. // 只设置需要的属性即可
  3030. center: center, // 中心点
  3031. zoom: 16.9, // 缩放级别
  3032. rotation: undefined, // 缩放完成view视图旋转弧度
  3033. duration: 1000, // 缩放持续时间,默认不需要设置
  3034. resolution:Math.random() * 0.00000001,
  3035. });
  3036. }else {
  3037. let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize());
  3038. resolution:resolution + Math.random() * 0.00000001,
  3039. map.getView().fit(data.bbox);
  3040. map.getView().setResolution(resolution);
  3041. }
  3042. })
  3043. .catch((error) => {
  3044. console.log("【异常】", error);
  3045. });
  3046. map.addLayer(cunTc);
  3047. //村边界查询开始 ------------------------------end
  3048. //宅基地图层查询开始 ------------------start
  3049. //var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'";
  3050. var zjdTc= new ol.layer.Image({
  3051. source: new ol.source.ImageWMS({
  3052. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  3053. params: {
  3054. LAYERS: 'zjd_dc:t_house_survey_zjdzd',
  3055. TILED: true,
  3056. cql_filter: cql_filter,
  3057. SRID: 3857,
  3058. },
  3059. resolution:Math.random() * 0.00000001,
  3060. }),
  3061. });
  3062. map.addLayer(zjdTc);
  3063. //宅基地图层查询开始 ------------------start
  3064. //自然幢图层查询开始 ------------------start
  3065. var zrzTc= new ol.layer.Image({
  3066. source: new ol.source.ImageWMS({
  3067. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  3068. params: {
  3069. LAYERS: 'zjd_dc:t_house_survey_zrz',
  3070. TILED: true,
  3071. cql_filter: cql_filter,
  3072. SRID: 3857,
  3073. },
  3074. resolution:Math.random() * 0.00000001,
  3075. }),
  3076. });
  3077. map.addLayer(zrzTc);
  3078. //自然幢图层查询开始 ------------------start
  3079. //附属设施图层查询开始 ------------------start
  3080. var fsssTc= new ol.layer.Image({
  3081. source: new ol.source.ImageWMS({
  3082. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  3083. params: {
  3084. LAYERS: 'zjd_dc:t_house_survey_fsss',
  3085. TILED: true,
  3086. cql_filter: cql_filter,
  3087. SRID: 3857,
  3088. },
  3089. resolution:Math.random() * 0.00000001,
  3090. }),
  3091. });
  3092. map.addLayer(fsssTc);
  3093. //附属设施图层查询开始 ------------------start
  3094. //使用geoserver服务查询开始 -------------------end
  3095. //数据库直接加载数据渲染方式---------------------------------------------------start
  3096. //判断当前账套是否有数据
  3097. // var mapTalkAbout = true;
  3098. // //获取镇界线----start
  3099. // if(this.mapTownList.length >0){
  3100. // for (var i = 0; this.mapTownList.length > i; i++) {
  3101. // if (this.mapTownList[i] != null && this.mapTownList[i].theGeom != null && this.mapTownList[i].theGeom != "") {
  3102. // mapTalkAbout =false;
  3103. // this.mapTownList[i].createBy = 'mapTownList';
  3104. // var theGeomLine= this.mapTownList[i].theGeom.replaceAll("MultiPolygon","LineString");
  3105. // theGeomLine = theGeomLine.replaceAll("[[[[","[[");
  3106. // theGeomLine = theGeomLine.replaceAll("]]]]","]]");
  3107. // hc_land = new ol.layer.Vector({
  3108. // title: "add Layer",
  3109. // source: new ol.source.Vector({
  3110. // projection: projection,
  3111. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3112. // " \"type\": \"Feature\",\n" +
  3113. // " \"geometry\":" + theGeomLine + ", \"properties\":" + JSON.stringify(this.mapTownList[i]) + "}"),
  3114. // }),
  3115. // style: new ol.style.Style({
  3116. // fill: new ol.style.Fill({
  3117. // //矢量图层填充颜色,以及透明度
  3118. // color: "#AE57A4",
  3119. // }),
  3120. // stroke: new ol.style.Stroke({
  3121. // //边界样式
  3122. // color: "#FF0000",
  3123. // width: 3,
  3124. // }),
  3125. // // text: new ol.style.Text({
  3126. // // text: this.mapTownList[i].xzqmc,
  3127. // // font: '30px sans-serif',
  3128. // // textAlign: "center",
  3129. // // textBaseline: "middle",
  3130. // // //font: 'verdana',
  3131. // // fill: new ol.style.Fill({
  3132. // // color: "#ff0000"
  3133. // // }),
  3134. // // // backgroundFill: new ol.style.Fill({
  3135. // // // color: "#ff0000"
  3136. // // // }),
  3137. // // font: "30px sans-serif",
  3138. // // stroke: new ol.style.Stroke({
  3139. // // color: "#ffffff"
  3140. // // // width: 3
  3141. // // }),
  3142. // // offsetX: parseInt(0, 10),
  3143. // // offsetY: parseInt(0, 10),
  3144. // // placement: "line", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注
  3145. // // overflow: false //超出面的部分不显示
  3146. // //}),
  3147. // }),
  3148. // });
  3149. // map.addLayer(hc_land);
  3150. // //console.log(hc_land.values_.source.featuresRtree_.rbush_.data);
  3151. // var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX;
  3152. // var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY;
  3153. // var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX;
  3154. // var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY;
  3155. // // //定位查询位置
  3156. // var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3157. // // console.log(center);
  3158. // map.getView().animate({
  3159. // // 只设置需要的属性即可
  3160. // center: center, // 中心点
  3161. // zoom: 9.8, // 缩放级别
  3162. // rotation: undefined, // 缩放完成view视图旋转弧度
  3163. // duration: 1000, // 缩放持续时间,默认不需要设置
  3164. // });
  3165. // }
  3166. // }
  3167. // }
  3168. // //获取镇界线----end
  3169. // //获取村界线----start
  3170. // if(this.mapVillageList.length >0){
  3171. // for (var i = 0; this.mapVillageList.length > i; i++) {
  3172. // if (this.mapVillageList[i] != null && this.mapVillageList[i].theGeom != null && this.mapVillageList[i].theGeom != "") {
  3173. // mapTalkAbout =false;
  3174. // this.mapVillageList[i].createBy = 'mapVillageList';
  3175. // var theGeomLine= this.mapVillageList[i].theGeom.replaceAll("MultiPolygon","LineString");
  3176. // theGeomLine = theGeomLine.replaceAll("[[[[","[[");
  3177. // theGeomLine = theGeomLine.replaceAll("]]]]","]]");
  3178. // hc_land = new ol.layer.Vector({
  3179. // title: "add Layer",
  3180. // source: new ol.source.Vector({
  3181. // projection: projection,
  3182. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3183. // " \"type\": \"Feature\",\n" +
  3184. // " \"geometry\":" + theGeomLine + ", \"properties\":" + JSON.stringify(this.mapVillageList[i]) + "}"),
  3185. // }),
  3186. // style: new ol.style.Style({
  3187. // fill: new ol.style.Fill({
  3188. // //矢量图层填充颜色,以及透明度
  3189. // color: "#AE57A4",
  3190. // }),
  3191. // stroke: new ol.style.Stroke({
  3192. // //边界样式
  3193. // color: "#ff00ff",
  3194. // width: 3,
  3195. // }),
  3196. // // text: new ol.style.Text({
  3197. // // text: this.mapVillageList[i].dcmj,
  3198. // // font: '30px sans-serif',
  3199. // // textAlign: "center",
  3200. // // textBaseline: "middle",
  3201. // // //font: 'verdana',
  3202. // // fill: new ol.style.Fill({
  3203. // // color: "#ff00ff"
  3204. // // }),
  3205. // // // backgroundFill: new ol.style.Fill({
  3206. // // // color: "#ff0000"
  3207. // // // }),
  3208. // // font: "30px sans-serif",
  3209. // // stroke: new ol.style.Stroke({
  3210. // // color: "#ffffff"
  3211. // // // width: 3
  3212. // // }),
  3213. // // offsetX: parseInt(0, 10),
  3214. // // offsetY: parseInt(0, 10),
  3215. // // placement: "line", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注
  3216. // // overflow: false //超出面的部分不显示
  3217. // // }),
  3218. // }),
  3219. // });
  3220. // map.addLayer(hc_land);
  3221. // }
  3222. // }
  3223. // }
  3224. // // //获取村界线----end
  3225. // //宅基地定位开始 ---------start
  3226. // if(this.mapTheGeomZjdId.length >0) {
  3227. // for (var i = 0; this.mapTheGeomZjdId.length > i; i++) {
  3228. // if (this.mapTheGeomZjdId[i] !=null && this.mapTheGeomZjdId[i].theGeom != null && this.mapTheGeomZjdId[i].theGeom != "") {
  3229. // mapTalkAbout =false;
  3230. // this.mapTheGeomZjdId[i].createBy = 'mapTheGeomZjdId';
  3231. // var styleYqr = "";
  3232. // if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){
  3233. // styleYqr = new ol.style.Style({
  3234. // fill: new ol.style.Fill({
  3235. // //矢量图层填充颜色,以及透明度
  3236. // color: "#AE57A4",
  3237. // }),
  3238. // stroke: new ol.style.Stroke({
  3239. // //边界样式
  3240. // color: "#28FF28",
  3241. // width: 3,
  3242. // }),
  3243. // });
  3244. // } else {
  3245. // styleYqr = new ol.style.Style({
  3246. // fill: new ol.style.Fill({
  3247. // //矢量图层填充颜色,以及透明度
  3248. // color: "#AE57A4",
  3249. // }),
  3250. // stroke: new ol.style.Stroke({
  3251. // //边界样式
  3252. // color: "rgba(255, 45, 45,1)",
  3253. // width: 3,
  3254. // }),
  3255. // });
  3256. // }
  3257. // hc_land = new ol.layer.Vector({
  3258. // title: "add Layer",
  3259. // source: new ol.source.Vector({
  3260. // projection: projection,
  3261. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3262. // " \"type\": \"Feature\",\n" +
  3263. // " \"geometry\":" + this.mapTheGeomZjdId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomZjdId[i]) + "}"),
  3264. // }),
  3265. // style: styleYqr
  3266. // });
  3267. // map.addLayer(hc_land);
  3268. // // var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX;
  3269. // // var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY;
  3270. // // var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX;
  3271. // // var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY;
  3272. // // //定位查询位置
  3273. // // var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3274. // // map.getView().animate({
  3275. // // // 只设置需要的属性即可
  3276. // // center: center, // 中心点
  3277. // // zoom: 15.8, // 缩放级别
  3278. // // rotation: undefined, // 缩放完成view视图旋转弧度
  3279. // // duration: 1000, // 缩放持续时间,默认不需要设置
  3280. // // });
  3281. // //自然幢定位开始 ---------start
  3282. // getZrzZjdDmList(this.mapTheGeomZjdId[i].zjddm).then((response) => {
  3283. // if (response.code == 200) {
  3284. // this.mapTheGeomZrzId = response.data;
  3285. // if(this.mapTheGeomZrzId.length >0) {
  3286. // for (var i = 0; this.mapTheGeomZrzId.length > i; i++) {
  3287. // if (this.mapTheGeomZrzId[i] !=null && this.mapTheGeomZrzId[i].theGeom != null && this.mapTheGeomZrzId[i].theGeom != "") {
  3288. // this.mapTheGeomZrzId[i].createBy = 'mapTheGeomZrzId';
  3289. // var styleZrz = "";
  3290. // if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){
  3291. // styleZrz = new ol.style.Style({
  3292. // fill: new ol.style.Fill({
  3293. // //矢量图层填充颜色,以及透明度
  3294. // color: "#FFD306",
  3295. // }),
  3296. // stroke: new ol.style.Stroke({
  3297. // //边界样式
  3298. // color: "#28FF28",
  3299. // width: 3,
  3300. // }),
  3301. // });
  3302. // } else {
  3303. // styleZrz = new ol.style.Style({
  3304. // fill: new ol.style.Fill({
  3305. // //矢量图层填充颜色,以及透明度
  3306. // color: "#FFD306",
  3307. // }),
  3308. // stroke: new ol.style.Stroke({
  3309. // //边界样式
  3310. // color: "rgba(255, 45, 45,1)",
  3311. // width: 3,
  3312. // }),
  3313. // });
  3314. // }
  3315. // hc_land = new ol.layer.Vector({
  3316. // title: "add Layer",
  3317. // source: new ol.source.Vector({
  3318. // projection: projection,
  3319. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3320. // " \"type\": \"Feature\",\n" +
  3321. // " \"geometry\":" + this.mapTheGeomZrzId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomZrzId[i]) + "}"),
  3322. // }),
  3323. // style: styleZrz
  3324. // });
  3325. // map.addLayer(hc_land);
  3326. // }
  3327. // }
  3328. // }
  3329. // }
  3330. // });
  3331. // //自然幢定位结束 ---------end
  3332. //
  3333. // //附属设施定位开始 ---------start
  3334. // getFsssZjdDmList(this.mapTheGeomZjdId[i].zjddm).then((response) => {
  3335. // if (response.code == 200) {
  3336. // this.mapTheGeomFsssId = response.data;
  3337. // if(this.mapTheGeomFsssId.length >0) {
  3338. // for (var i = 0; this.mapTheGeomFsssId.length > i; i++) {
  3339. // if (this.mapTheGeomFsssId[i] !=null && this.mapTheGeomFsssId[i].theGeom != null && this.mapTheGeomFsssId[i].theGeom != "") {
  3340. // this.mapTheGeomFsssId[i].createBy = 'mapTheGeomFsssId';
  3341. // var styleFsss = "";
  3342. // if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){
  3343. // styleFsss = new ol.style.Style({
  3344. // fill: new ol.style.Fill({
  3345. // //矢量图层填充颜色,以及透明度
  3346. // color: "#00FFFF",
  3347. // }),
  3348. // stroke: new ol.style.Stroke({
  3349. // //边界样式
  3350. // color: "#28FF28",
  3351. // width: 3,
  3352. // }),
  3353. // });
  3354. // } else {
  3355. // styleFsss = new ol.style.Style({
  3356. // fill: new ol.style.Fill({
  3357. // //矢量图层填充颜色,以及透明度
  3358. // color: "#00FFFF",
  3359. // }),
  3360. // stroke: new ol.style.Stroke({
  3361. // //边界样式
  3362. // color: "rgba(255, 45, 45,1)",
  3363. // width: 3,
  3364. // }),
  3365. // });
  3366. // }
  3367. // hc_land = new ol.layer.Vector({
  3368. // title: "add Layer",
  3369. // source: new ol.source.Vector({
  3370. // projection: projection,
  3371. // features: new ol.format.GeoJSON().readFeatures("{\n" +
  3372. // " \"type\": \"Feature\",\n" +
  3373. // " \"geometry\":" + this.mapTheGeomFsssId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomFsssId[i]) + "}"),
  3374. // }),
  3375. // style: styleFsss
  3376. // });
  3377. // map.addLayer(hc_land);
  3378. // }
  3379. // }
  3380. // }
  3381. // }
  3382. // });
  3383. // //附属设施定位结束 ---------end
  3384. // }
  3385. // }
  3386. // }
  3387. // //宅基地定位结束 ---------end
  3388. //数据库直接加载数据渲染方式---------------------------------------------------end
  3389. //地图操作定义------------start
  3390. //定位定义------------start
  3391. var Zb;
  3392. var latitude;
  3393. var longitude;
  3394. var vector_drawing;
  3395. //定位定义------------end
  3396. //绘图定义---------------start
  3397. var drawing;
  3398. var draw_map;
  3399. //绘图定义---------------end
  3400. //测面绘图定义------------start
  3401. var draw_cm;
  3402. //定义矢量图层
  3403. var vector;
  3404. //创建一个帮助提示信息对象
  3405. var helpTooltip;
  3406. //创建一个测量提示信息对象
  3407. var measureTooltip;
  3408. //创建一个帮助提示框对象
  3409. var helpTooltipElement;
  3410. //测出距离
  3411. var measureTooltipElement;
  3412. //测面绘图定义-----------end
  3413. //地图操作定义------------end
  3414. //定位当前位置 ------start
  3415. $("#dwMapAll").on("click", function () {
  3416. //删除测量记录操作--------start
  3417. //将矢量图层从图中删除
  3418. //map.removeLayer(helpTooltip);
  3419. map.removeLayer(vector);
  3420. map.removeInteraction(draw_cm);
  3421. //map.removeOverlay(helpTooltipElement);
  3422. //map.removeLayer(measureTooltip);
  3423. //删除测量记录操作--------end
  3424. //删除绘制图层画图操作-------start
  3425. map.removeInteraction(draw_map);
  3426. map.removeLayer(drawing);
  3427. //删除绘制图层画图操作-------end
  3428. //开始定位当前位置
  3429. navigator.geolocation.getCurrentPosition(function(position) {
  3430. latitude = position.coords.latitude;// 获取纬度
  3431. longitude = position.coords.longitude;// 获取经度
  3432. });
  3433. if(latitude !=null && longitude !=null && latitude !="" && longitude !="" && latitude !=undefined && longitude !=undefined ){
  3434. Zb = [longitude,latitude];
  3435. }else {
  3436. Zb =[115.452752, 31.789033];
  3437. }
  3438. //获取坐标点LocationManager
  3439. // geoGps().then(response => {
  3440. //
  3441. // });
  3442. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  3443. function createLabelStyle() {
  3444. return new ol.style.Style({
  3445. image: new ol.style.Icon({
  3446. //设置图标偏移
  3447. anchor: [0.5, 1],
  3448. //标注样式的起点位置
  3449. anchorOrigin: "top-right",
  3450. //X方向单位:分数
  3451. anchorXUnits: "fraction",
  3452. //Y方向单位:像素
  3453. anchorYUnits: "pixels",
  3454. //偏移起点位置的方向
  3455. offsetOrigin: "top-right",
  3456. //透明度
  3457. opacity: 0.9,
  3458. //图片路径
  3459. src: require("../../assets/images/housesteadSurvey/mark.png"),
  3460. }),
  3461. text: new ol.style.Text({
  3462. textAlign: "center", //位置
  3463. textBaseline: "middle", //基准线
  3464. font: "normal 12px 微软雅黑", //文字样式
  3465. //text: "标注点", //文本内容
  3466. fill: new ol.style.Fill({
  3467. //文本填充样式(即文字颜色)
  3468. color: "#ff0000",
  3469. }),
  3470. }),
  3471. zIndex: 9999,
  3472. });
  3473. }
  3474. var newcenterFeature = new ol.Feature({
  3475. geometry: new ol.geom.Point(ol.proj.fromLonLat(Zb)), //几何信息
  3476. name: "标注点",
  3477. });
  3478. var sourceMapLook = new ol.source.Vector({wrapX: false});
  3479. vector_drawing = new ol.layer.Vector({
  3480. source: sourceMapLook,
  3481. });
  3482. map.addLayer(vector_drawing);
  3483. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  3484. sourceMapLook.addFeature(newcenterFeature);
  3485. map.getView().animate({
  3486. // 只设置需要的属性即可
  3487. center: ol.proj.fromLonLat(Zb), // 中心点
  3488. zoom: 17.8, // 缩放级别
  3489. rotation: undefined, // 缩放完成view视图旋转弧度
  3490. duration: 1000, // 缩放持续时间,默认不需要设置
  3491. resolution:Math.random() * 0.00000001,
  3492. });
  3493. });
  3494. //定位当前位置 ------end
  3495. //开始绘制图层- -----start
  3496. $("#htMapAll").on("click", function () {
  3497. if(that.drawingClick) {
  3498. that.drawingClick=false;
  3499. //删除之前 测距操作添加map中的绘图 --------start
  3500. //map.removeLayer(helpTooltip);
  3501. map.removeLayer(vector);
  3502. map.removeInteraction(draw_cm);
  3503. //map.removeOverlay(helpTooltipElement);
  3504. map.removeLayer(measureTooltipElement);
  3505. //删除之前 测距操作添加map中的绘图 --------end
  3506. //删除之前画图图层,重新绘制图层
  3507. map.removeInteraction(draw_map);
  3508. map.removeLayer(drawing);
  3509. //var source = new ol.source.Vector({wrapX: false});
  3510. drawing = new ol.layer.Vector({
  3511. source: new ol.source.Vector(),
  3512. });
  3513. map.addLayer(drawing);
  3514. function addInteraction() {
  3515. draw_map = new ol.interaction.Draw({
  3516. source: drawing.getSource(),
  3517. type: "Polygon",
  3518. });
  3519. draw_map.on("drawend", function (evt) {
  3520. var feature = evt.feature;
  3521. var geometry = feature.getGeometry();
  3522. that.coordinate = geometry.getCoordinates();
  3523. //_this.coordinateList = coordinate.toString();
  3524. //提示当前坐标是否绘制完成
  3525. if (that.coordinate != "" && that.coordinate != null) {
  3526. that.showhzht = true;
  3527. that.htZjdZrzFsss = JSON.stringify(that.coordinate);
  3528. console.log(that.mapZjdData);
  3529. // htMapAllFu();
  3530. } else {
  3531. $("#htMapAll").trigger("click");
  3532. }
  3533. });
  3534. map.addInteraction(draw_map);
  3535. }
  3536. function htMapAllFu() {
  3537. //that.drawMapPolygonFun();
  3538. //绘制多边形地图
  3539. that.$dialog
  3540. .confirm({
  3541. title: "提示",
  3542. message: "是否重新绘制画图",
  3543. })
  3544. .then(() => {
  3545. //$("#drawRemove").trigger("click");
  3546. map.removeInteraction(draw_map);
  3547. that.coordinate = "";
  3548. })
  3549. .catch(() => {
  3550. //删除画图点
  3551. map.removeInteraction(draw_map);
  3552. });
  3553. }
  3554. addInteraction();
  3555. } else {
  3556. that.drawingClick=true;
  3557. //删除之前 测距操作添加map中的绘图 --------start
  3558. //map.removeLayer(helpTooltip);
  3559. map.removeLayer(vector);
  3560. map.removeInteraction(draw_cm);
  3561. //map.removeOverlay(helpTooltipElement);
  3562. map.removeLayer(measureTooltipElement);
  3563. //删除之前 测距操作添加map中的绘图 --------end
  3564. //删除之前画图图层,重新绘制图层
  3565. map.removeInteraction(draw_map);
  3566. map.removeLayer(drawing);
  3567. //var source = new ol.source.Vector({wrapX: false});
  3568. }
  3569. });
  3570. //删除之前绘制图层
  3571. $("#deleteHistory").on("click", function () {
  3572. map.removeLayer(drawing);
  3573. that.showhzht = false;
  3574. });
  3575. //开始绘制图层- -----end
  3576. //切换功能删除之前选中状态
  3577. $("#deleteHistoryMap").on("click", function () {
  3578. map.removeLayer(hc_land_on);
  3579. that.mapZjdData = "";
  3580. that.mapZrzData = "";
  3581. that.mapFsssData = "";
  3582. //that.mapZjdTeAll.active ="1";
  3583. that.mapZjdTeAll.mapZjdAData = {};
  3584. that.mapZjdTeAll.mapZrzAData = {};
  3585. that.mapZjdTeAll.mapFsssAData = {};
  3586. that.mapZjdDataTure = "";
  3587. });
  3588. //清除画图鼠标点击事件
  3589. // $("#drawRemove").click(function () {
  3590. // map.removeLayer(drawing);
  3591. // });
  3592. //
  3593. //地图定义
  3594. var delete_map = ["mapZjd", "mapZrz","mapFsss"];
  3595. var hc_land_query;
  3596. var hc_land_queryList =[];
  3597. var texiao_layer_zjd;
  3598. var texiao_layer_zrz;
  3599. var texiao_layer_fsss;
  3600. //按照查询条件人名 定位地图-----------------start
  3601. $("#query").on("click", function () {
  3602. //数据库查询数据------------------------------------------------------start
  3603. $("#deleteHistoryMap").trigger("click");
  3604. var val = that.seachText;
  3605. //删除之前查询图层
  3606. //for(var i=0;hc_land_queryList>i;i++){
  3607. map.removeLayer(hc_land_query);
  3608. //}
  3609. that.mapDataAll =[];
  3610. if (val == "") {
  3611. that.$toast('请填写查询条件再查询');
  3612. } else {
  3613. var styleZjd = new ol.style.Style({
  3614. stroke: new ol.style.Stroke({
  3615. //边界样式
  3616. color: "#CCFF66",
  3617. width: 6,
  3618. }),
  3619. });
  3620. let params;
  3621. if(that.mapAddJumpNum == 1){
  3622. params = {
  3623. "deptId" : that.mapAddJump,
  3624. "syqr" : val
  3625. }
  3626. } else {
  3627. params = {
  3628. "deptId" : that.$cookies.get("item").deptId,
  3629. "syqr" : val
  3630. }
  3631. }
  3632. listZjdzd(params).then((response) => {
  3633. if(response.rows.length != 0){
  3634. that.mapDataAll = response.rows;
  3635. for(var hg=0; hg < that.mapDataAll.length; hg++){
  3636. var mapNum = that.mapDataAll[hg].houseDataConfirmStatus;
  3637. if(mapNum == "UNCONFIRMED"){
  3638. that.mapDataAll[hg].paceType = "未核查";
  3639. } else if (mapNum == "CONFIRMED"){
  3640. that.mapDataAll[hg].paceType = "已核查";
  3641. }else{
  3642. }
  3643. that.mapDataAll[hg].typeTc="宅基地";
  3644. if (that.mapDataAll[hg] !=null && that.mapDataAll[hg].theGeom != null && that.mapDataAll[hg].theGeom != "") {
  3645. //that.mapDataAll[hg].createBy = 'mapTheGeomZjdId';
  3646. hc_land_query =
  3647. new ol.layer.Vector({
  3648. title: "add Layer",
  3649. source: new ol.source.Vector({
  3650. projection: projection,
  3651. features: new ol.format.GeoJSON().readFeatures("{\n" +
  3652. " \"type\": \"Feature\",\n" +
  3653. " \"geometry\":" + that.mapDataAll[hg].theGeom + ", \"properties\":" + JSON.stringify(that.mapDataAll[hg]) + "}"),
  3654. }),
  3655. style: styleZjd
  3656. });
  3657. //hc_land_queryList.push(hc_land_query);
  3658. map.addLayer(hc_land_query);
  3659. var maxXMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.maxX;
  3660. var maxYMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.maxY;
  3661. var minXMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.minX;
  3662. var minYMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.minY;
  3663. //定位查询位置
  3664. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  3665. map.getView().animate({
  3666. // 只设置需要的属性即可
  3667. center: center, // 中心点
  3668. zoom: 15.8, // 缩放级别
  3669. rotation: undefined, // 缩放完成view视图旋转弧度
  3670. duration: 1000, // 缩放持续时间,默认不需要设置
  3671. resolution:Math.random() * 0.00000001,
  3672. });
  3673. }
  3674. // listFsss(paramsZrz).then((response) => {
  3675. // that.mapDataAll.push(response.rows);
  3676. // });
  3677. }
  3678. // map.addLayer(hc_land_queryList);
  3679. // var mapZrzFor = that.mapDataAll[0].length+1;
  3680. // console.log(mapZrzFor);
  3681. // for(var mapFor=0;mapZrzFor>mapFor;mapFor++){
  3682. // //查询自然幢
  3683. // let paramsZrz = {
  3684. // "deptId" : that.$cookies.get("item").deptId,
  3685. // "zjddm" : that.mapDataAll[0][mapFor].zjddm,
  3686. // "pageSize":20,
  3687. // }
  3688. // listZrz(paramsZrz).then((response) => {
  3689. // console.log(response);
  3690. // that.mapDataAll[0].
  3691. // that.mapDataAll[0].push(response.rows);
  3692. // });
  3693. // }
  3694. setTimeout(function () {
  3695. that.showSearch = true ;
  3696. $('.searchBox').css('display','block')
  3697. var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)
  3698. document.styleSheets[0].insertRule(
  3699. "@keyframes test" +
  3700. "{" +
  3701. "0%{bottom: -" + height + "px;}" +
  3702. "100%{bottom: 0px;}" +
  3703. "}"
  3704. )
  3705. $('.searchBar_wrap').css({'animation':'test 0.5s ease-in-out 0s 1 alternate forwards','-webkit-animation':'test 0.5s ease-in-out 0s 1 alternate forwards'});
  3706. //}
  3707. },500);
  3708. } else {
  3709. that.$toast("暂无数据")
  3710. }
  3711. });
  3712. }
  3713. //数据库查询数据------------------------------------------------------end
  3714. //地图查询------------------------------------------------------------start
  3715. /**
  3716. * @api wfs服务空间查询
  3717. * @param {*} wfsurl
  3718. * @param {*} srsName
  3719. * @param {*} typeName
  3720. * @param {*} drawType
  3721. * @param {option 可选} geometryField
  3722. */
  3723. // var val = that.seachText;
  3724. // if (val == "") {
  3725. // that.$toast('请填写查询条件再查询');
  3726. // } else {
  3727. // //清除之前查询数据
  3728. // that.mapDataAll =[];
  3729. // //分类查询查询农地、农房
  3730. // var difang;
  3731. // //查询条件
  3732. // var cql_filter_cun;
  3733. // var cun = that.$cookies.get("item").deptId;
  3734. // difang = ["zjd_dc:t_house_survey_zjdzd", "zjd_dc:t_house_survey_zrz","zjd_dc:t_house_survey_fsss"];
  3735. // var tach = 0;
  3736. // var once = 0;
  3737. // for (var i = 0; i < difang.length; i++) {
  3738. // map.removeLayer(delete_map[i]);
  3739. // // 数字验证!
  3740. // var reg = /\d/;
  3741. // //验证汉子
  3742. // //var han = /^[\u4e00-\u9fa5]+$/;
  3743. // if (reg.test(val)) {
  3744. // //循环判断查询条件
  3745. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3746. // } else {
  3747. // //循环判断查询条件
  3748. // if (difang[i] == "zjd_dc:t_house_survey_zjdzd") {
  3749. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3750. // } else if(difang[i] == "zjd_dc:t_house_survey_zrz") {
  3751. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3752. // } else if(difang[i] == "zjd_dc:t_house_survey_fsss") {
  3753. // cql_filter_cun = "zjddm='" + val + "'" + "and dept_id='" + cun + "'";
  3754. // }
  3755. // }
  3756. // //for(var i=0; i< difang.length; i++){
  3757. // //cql_filter = "CM='"+cun +"'"+ "and XZQK='待流转待盘活'";
  3758. //
  3759. // //图层加载
  3760. //
  3761. // //业务图层 wms服务
  3762. // delete_map[i] = new ol.layer.Tile({
  3763. // source: new ol.source.TileWMS({
  3764. // url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  3765. // params: {
  3766. // LAYERS: difang[i],
  3767. // //'LAYERS': 'new_shp:new_shp_all',
  3768. // TILED: true,
  3769. // cql_filter: cql_filter_cun,
  3770. // SRID: 3857,
  3771. // },
  3772. // }),
  3773. // });
  3774. //
  3775. // //}
  3776. // //定位查询位置
  3777. // let param_dw = {
  3778. // srsName: "EPSG:3857",
  3779. // service: "WFS",
  3780. // version: "1.0.0",
  3781. // request: "GetFeature",
  3782. // typename: difang[i],
  3783. // //featureNS: 'nsgk_hc',//命名空间 URI
  3784. // cql_filter: cql_filter_cun,
  3785. // //featurePrefix: 'nationalwater',//工作区名称
  3786. // //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  3787. // outputFormat: "application/json",
  3788. // //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  3789. // };
  3790. // let url_dw = that.mapGeoServerUrl+"/geoserver/zjd_dc/wfs"; //wfsurl;
  3791. // url_dw = url_dw + "?";
  3792. // for (let key in param_dw) {
  3793. // url_dw = url_dw + key + "=" + param_dw[key] + "&";
  3794. // }
  3795. // url_dw = url_dw.substr(0, url_dw.length - 1);
  3796. // fetch(url_dw, {
  3797. // method: "POST", // *GET, POST, PUT, DELETE, etc.
  3798. // })
  3799. // .then((res) => {
  3800. // var geojsonmap = res.json();
  3801. // return geojsonmap;
  3802. // })
  3803. // .then((data) => {
  3804. // tach = tach + 1;
  3805. // if (data.features != null && data.features != "") {
  3806. // for(var i=0; data.features.length >i; i++) {
  3807. // //特效动画实现 -----------------------------start
  3808. // console.log(tach,"++++++++++++++++++",once)
  3809. // var datamap = data.features[0].bbox;
  3810. // if (tach == 1 && once == 0) {
  3811. // console.log("zrz")
  3812. // texiao_layer_zjd = new ol.layer.Vector({
  3813. // source: new ol.source.Vector(),
  3814. // });
  3815. // map.addLayer(texiao_layer_zjd);
  3816. // var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  3817. // var circle = new ol.Feature({
  3818. // geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  3819. // });
  3820. //
  3821. // circle.setStyle(
  3822. // new ol.style.Style({
  3823. // image: new ol.style.Circle({
  3824. // radius: 0,
  3825. // stroke: new ol.style.Stroke({
  3826. // color: "yellow",
  3827. // size: 1,
  3828. // }),
  3829. // }),
  3830. // })
  3831. // );
  3832. // texiao_layer_zjd.getSource().addFeature(circle);
  3833. //
  3834. // // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  3835. // var radius = 0;
  3836. // map.on("postcompose", function () {
  3837. // // 增大半径,最大20
  3838. // radius++;
  3839. // radius = radius % 10;
  3840. // // 设置样式
  3841. // circle.setStyle(
  3842. // new ol.style.Style({
  3843. // image: new ol.style.Circle({
  3844. // radius: radius,
  3845. // stroke: new ol.style.Stroke({
  3846. // color: "yellow",
  3847. // size: 1,
  3848. // }),
  3849. // }),
  3850. // })
  3851. // );
  3852. // });
  3853. // } else if(tach == 2) {
  3854. // console.log("zrz")
  3855. // texiao_layer_zrz = new ol.layer.Vector({
  3856. // source: new ol.source.Vector(),
  3857. // });
  3858. // map.addLayer(texiao_layer_zrz);
  3859. // var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  3860. // var circle = new ol.Feature({
  3861. // geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  3862. // });
  3863. //
  3864. // circle.setStyle(
  3865. // new ol.style.Style({
  3866. // image: new ol.style.Circle({
  3867. // radius: 0,
  3868. // stroke: new ol.style.Stroke({
  3869. // color: "yellow",
  3870. // size: 1,
  3871. // }),
  3872. // }),
  3873. // })
  3874. // );
  3875. // texiao_layer_zrz.getSource().addFeature(circle);
  3876. //
  3877. // // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  3878. // var radius = 0;
  3879. // map.on("postcompose", function () {
  3880. // // 增大半径,最大20
  3881. // radius++;
  3882. // radius = radius % 10;
  3883. // // 设置样式
  3884. // circle.setStyle(
  3885. // new ol.style.Style({
  3886. // image: new ol.style.Circle({
  3887. // radius: radius,
  3888. // stroke: new ol.style.Stroke({
  3889. // color: "yellow",
  3890. // size: 1,
  3891. // }),
  3892. // }),
  3893. // })
  3894. // );
  3895. // });
  3896. // } else {
  3897. // console.log("fsss")
  3898. // texiao_layer_fsss = new ol.layer.Vector({
  3899. // source: new ol.source.Vector(),
  3900. // });
  3901. // map.addLayer(texiao_layer_fsss);
  3902. // var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  3903. // var circle = new ol.Feature({
  3904. // geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  3905. // });
  3906. //
  3907. // circle.setStyle(
  3908. // new ol.style.Style({
  3909. // image: new ol.style.Circle({
  3910. // radius: 0,
  3911. // stroke: new ol.style.Stroke({
  3912. // color: "yellow",
  3913. // size: 1,
  3914. // }),
  3915. // }),
  3916. // })
  3917. // );
  3918. // texiao_layer_fsss.getSource().addFeature(circle);
  3919. //
  3920. // // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  3921. // var radius = 0;
  3922. // map.on("postcompose", function () {
  3923. // // 增大半径,最大20
  3924. // radius++;
  3925. // radius = radius % 10;
  3926. // // 设置样式
  3927. // circle.setStyle(
  3928. // new ol.style.Style({
  3929. // image: new ol.style.Circle({
  3930. // radius: radius,
  3931. // stroke: new ol.style.Stroke({
  3932. // color: "yellow",
  3933. // size: 1,
  3934. // }),
  3935. // }),
  3936. // })
  3937. // );
  3938. // });
  3939. // }
  3940. // //特效动画实现 -----------------------------end
  3941. // that.mapDataAll.push(JSON.parse(JSON.stringify(data.features[i].properties)));
  3942. // }
  3943. // //定位实现
  3944. // let resolution = map.getView().getResolutionForExtent(data.bbox, map.getSize());
  3945. // map.getView().fit(data.bbox);
  3946. // map.getView().setResolution(resolution);
  3947. // console.log(that.mapDataAll);
  3948. // } else if (tach == 1) {
  3949. // once = once + 1;
  3950. // } else {
  3951. // if (once == 1 && tach == 3) {
  3952. // that.$toast("没有找到相关人员信息");
  3953. // //that.showSearch = false ;
  3954. // }else {
  3955. //
  3956. // }
  3957. // }
  3958. // })
  3959. // .catch((error) => {
  3960. // console.log("【异常】", error);
  3961. // });
  3962. // map.addLayer(delete_map[i]);
  3963. // }
  3964. //地图查询------------------------------------------------------------end
  3965. });
  3966. //按照查询 定位地图-----------------end
  3967. //筛选附属设施-----------------------------------start
  3968. $("#fsssSx").click(function () {
  3969. if(!that.fsssSx){
  3970. map.addLayer(fsssTc);
  3971. }else {
  3972. map.removeLayer(fsssTc);
  3973. }
  3974. });
  3975. $("#zrzSx").click(function () {
  3976. if(!that.zrzSx){
  3977. map.addLayer(zrzTc);
  3978. }else {
  3979. map.removeLayer(zrzTc);
  3980. }
  3981. });
  3982. $("#zjdSx").click(function () {
  3983. if(!that.zjdSx){
  3984. map.addLayer(zjdTc);
  3985. }else {
  3986. map.removeLayer(zjdTc);
  3987. }
  3988. });
  3989. $("#checkAll").click(function () {
  3990. if(!that.fsssSx && !that.zjdSx && !that.zrzSx){
  3991. map.addLayer(zjdTc);
  3992. map.addLayer(zrzTc);
  3993. map.addLayer(fsssTc);
  3994. }else {
  3995. map.removeLayer(zrzTc);
  3996. map.removeLayer(zjdTc);
  3997. map.removeLayer(fsssTc);
  3998. }
  3999. });
  4000. //筛选附属设施-----------------------------------end
  4001. // //获取类型开始 侧面-----------------------------------------------------------------start
  4002. //样式加载定义
  4003. var vector_drawing_delete;
  4004. $("#area").click(function () {
  4005. if(that.textMjAll != "" && that.clickBbox !=""){
  4006. // var styleFsss = new ol.style.Style({
  4007. // text: new ol.style.Text({
  4008. // text: that.textMjAll+"㎡",
  4009. // font: '30px sans-serif',
  4010. // textAlign: "center",
  4011. // textBaseline: "middle",
  4012. // //font: 'verdana',
  4013. // fill: new ol.style.Fill({
  4014. // color: "#ff00ff"
  4015. // }),
  4016. // // backgroundFill: new ol.style.Fill({
  4017. // // color: "#ff0000"
  4018. // // }),
  4019. // font: "30px sans-serif",
  4020. // stroke: new ol.style.Stroke({
  4021. // color: "#ffffff"
  4022. // // width: 3
  4023. // }),
  4024. // offsetX: parseInt(0, 10),
  4025. // offsetY: parseInt(0, 10),
  4026. // placement: "point", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注
  4027. // overflow: false //超出面的部分不显示
  4028. // }),
  4029. // });
  4030. map.removeLayer(vector_drawing_delete);
  4031. function createLabelStyle() {
  4032. return new ol.style.Style({
  4033. text: new ol.style.Text({
  4034. text: that.textMjAll+"㎡",
  4035. textAlign: "center", //位置
  4036. textBaseline: "middle", //基准线
  4037. font: "normal 12px 微软雅黑", //文字样式
  4038. //text: "标注点", //文本内容
  4039. fill: new ol.style.Fill({
  4040. //文本填充样式(即文字颜色)
  4041. color: "#FFFFFF",
  4042. width: 10,
  4043. }),
  4044. overflow: false //超出面的部分不显示
  4045. }),
  4046. zIndex: 9999,
  4047. });
  4048. }
  4049. var newcenterFeature = new ol.Feature({
  4050. geometry: new ol.geom.Point(that.clickBbox), //几何信息
  4051. //name: "标注点",
  4052. });
  4053. var sourceMapLook = new ol.source.Vector({wrapX: false});
  4054. vector_drawing_delete = new ol.layer.Vector({
  4055. source: sourceMapLook,
  4056. });
  4057. map.addLayer(vector_drawing_delete);
  4058. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  4059. sourceMapLook.addFeature(newcenterFeature);
  4060. that.clickBbox ="";
  4061. that.textMjAll = "";
  4062. //map.addLayer(styleFsss);
  4063. } else if(that.textMjAllNum == "1"){
  4064. that.$toast("该图层面积暂无信息");
  4065. } else {
  4066. that.$toast("选择图层进行面积显示");
  4067. }
  4068. });
  4069. // $("#area").click(function () {
  4070. // console.log("进入测面")
  4071. // //删除绘制图层画图操作-------start
  4072. // map.removeInteraction(draw_map);
  4073. // map.removeLayer(drawing);
  4074. // //删除绘制图层画图操作-------end
  4075. // //开始绘制 测面--------------------------------------------------------------start
  4076. // //定义矢量数据源
  4077. // var source = new ol.source.Vector();
  4078. //
  4079. // vector = new ol.layer.Vector({
  4080. // source: source,
  4081. // style: new ol.style.Style({
  4082. // fill: new ol.style.Fill({
  4083. // color: "rgba(255,255,255,0.2)",
  4084. // }),
  4085. // stroke: new ol.style.Stroke({
  4086. // color: "#e21e0a",
  4087. // width: 2,
  4088. // }),
  4089. // //image: new ol.style.Circle({
  4090. // // radius: 7,
  4091. // // fill: new ol.style.Fill({
  4092. // // color:'#ffcc33'
  4093. // // })
  4094. // //})
  4095. // }),
  4096. // });
  4097. //
  4098. // //将矢量图层添加到地图中 线的颜色加入map中
  4099. // map.addLayer(vector);
  4100. //
  4101. // var sketch;
  4102. //
  4103. // var continuePolygonMsg = "单击以继续绘制多边形";
  4104. //
  4105. // /**
  4106. // * Message to show when the user is drawing a line.
  4107. // * @type {string}
  4108. // */
  4109. // //var continueLineMsg = '单击继续绘制直线';
  4110. //
  4111. // //鼠标移动触发的函数
  4112. // var pointerMoveHandler = function (evt) {
  4113. // //Indicates if the map is currently being dragged.
  4114. // //Only set for POINTERDRAG and POINTERMOVE events. Default is false.
  4115. // //如果是平移地图则直接结束
  4116. // if (evt.dragging) {
  4117. // return;
  4118. // }
  4119. // //帮助提示信息
  4120. // var helpMsg = "单击开始绘图";
  4121. //
  4122. // if (sketch) {
  4123. // //Get the feature's default geometry.
  4124. // //A feature may have any number of named geometries.
  4125. // //获取绘图对象的几何要素
  4126. // var geom = sketch.getGeometry();
  4127. // //如果当前绘制的几何要素是多边形,则将绘制提示信息设置为多边形绘制提示信息
  4128. // //如果当前绘制的几何要素是多线段,则将绘制提示信息设置为多线段绘制提示信息
  4129. // helpMsg = continuePolygonMsg;
  4130. // }
  4131. // //设置帮助提示要素的内标签为帮助提示信息
  4132. // helpTooltipElement.innerHTML = helpMsg;
  4133. // //设置帮助提示信息的位置
  4134. // //The coordinate in view projection corresponding to the original browser event.
  4135. // helpTooltip.setPosition(evt.coordinate);
  4136. // //移除帮助提示要素的隐藏样式
  4137. // $(helpTooltipElement).removeClass("hidden");
  4138. // };
  4139. //
  4140. // map.on("pointermove", pointerMoveHandler);
  4141. //
  4142. // map.getViewport().addEventListener("mouseout", function () {
  4143. // helpTooltipElement.classList.add("hidden");
  4144. // });
  4145. //
  4146. // //添加交互式绘图对象的函数
  4147. // function addInteraction() {
  4148. // // 获取当前选择的绘制类型
  4149. // //var type = typeSelect.value == 'length' ? 'Polygon' : 'LineString';
  4150. // //创建一个交互式绘图对象
  4151. // var type = "Polygon";
  4152. // draw_cm = new ol.interaction.Draw({
  4153. // //绘制的数据源
  4154. // source: source,
  4155. // //绘制类型
  4156. // type: type,
  4157. // //样式
  4158. // style: new ol.style.Style({
  4159. // fill: new ol.style.Fill({
  4160. // color: "rgba(255,255,255,0.2)",
  4161. // }),
  4162. // stroke: new ol.style.Stroke({
  4163. // color: "rgba(0,0,0,0.5)",
  4164. // lineDash: [10, 10],
  4165. // width: 2,
  4166. // }),
  4167. // // image: new ol.style.Circle({
  4168. // // radius: 5,
  4169. // // stroke: new ol.style.Stroke({
  4170. // // color:'rgba(0,0,0,0.7)'
  4171. // // }),
  4172. // // fill: new ol.style.Fill({
  4173. // //color: 'rgba(255,255,255,0.2)'
  4174. // // })
  4175. // //})
  4176. // }),
  4177. // });
  4178. // //将交互绘图对象添加到地图中
  4179. // map.addInteraction(draw_cm);
  4180. //
  4181. // //创建测量提示框
  4182. // createMeasureTooltip();
  4183. // //创建帮助提示框
  4184. // createHelpTooltip();
  4185. //
  4186. // //定义一个事件监听
  4187. // var listener;
  4188. // //定义一个控制鼠标点击次数的变量
  4189. // var count = 0;
  4190. // //绘制开始事件
  4191. // draw_cm.on(
  4192. // "drawstart",
  4193. // function (evt) {
  4194. // //The feature being drawn.
  4195. // sketch = evt.feature;
  4196. // //提示框的坐标
  4197. // var tooltipCoord = evt.coordinate;
  4198. // //监听几何要素的change事件
  4199. // //Increases the revision counter and dispatches a 'change' event.
  4200. //
  4201. // listener = sketch.getGeometry().on("change", function (evt) {
  4202. // //The event target.
  4203. // //获取绘制的几何对象
  4204. // var geom = evt.target;
  4205. // //定义一个输出对象,用于记录面积和长度
  4206. // var output;
  4207. // map.removeEventListener("singleclick");
  4208. // map.removeEventListener("dblclick");
  4209. // //输出多边形的面积
  4210. // output = formatArea(geom);
  4211. // //Return an interior point of the polygon.
  4212. // //获取多变形内部点的坐标
  4213. // tooltipCoord = geom.getInteriorPoint().getCoordinates();
  4214. //
  4215. // //设置测量提示框的内标签为最终输出结果
  4216. // measureTooltipElement.innerHTML = output;
  4217. // //设置测量提示信息的位置坐标
  4218. // measureTooltip.setPosition(tooltipCoord);
  4219. // });
  4220. //
  4221. // //地图单击事件
  4222. // map.on("singleclick", function (evt) {
  4223. // //设置测量提示信息的位置坐标,用来确定鼠标点击后测量提示框的位置
  4224. // measureTooltip.setPosition(evt.coordinate);
  4225. // //如果是第一次点击,则设置测量提示框的文本内容为起点
  4226. // if (count == 0) {
  4227. // measureTooltipElement.innerHTML = "起点";
  4228. // }
  4229. // //根据鼠标点击位置生成一个点
  4230. // var point = new ol.geom.Point(evt.coordinate);
  4231. // //将该点要素添加到矢量数据源中
  4232. // source.addFeature(new ol.Feature(point));
  4233. // //更改测量提示框的样式,使测量提示框可见
  4234. // measureTooltipElement.className = "tooltip tooltip-static";
  4235. // //创建测量提示框
  4236. // createMeasureTooltip();
  4237. // //点击次数增加
  4238. // count++;
  4239. // });
  4240. //
  4241. // //地图双击事件
  4242. // map.on("dblclick", function (evt) {
  4243. // //根据
  4244. // var point = new ol.geom.Point(evt.coordinate);
  4245. // source.addFeature(new ol.Feature(point));
  4246. // });
  4247. // },
  4248. // this
  4249. // );
  4250. // //绘制结束事件
  4251. // draw_cm.on(
  4252. // "drawend",
  4253. // function (evt) {
  4254. // count = 0;
  4255. // //设置测量提示框的样式
  4256. // measureTooltipElement.className = "tooltip tooltip-static";
  4257. // //Set the offset for this overlay.
  4258. // //设置偏移量
  4259. // measureTooltip.setOffset([0, -7]);
  4260. // //清空绘制要素
  4261. // sketch = null;
  4262. // //清空测量提示要素
  4263. // measureTooltipElement = null;
  4264. // //创建测量提示框
  4265. // createMeasureTooltip();
  4266. // //Removes an event listener using the key returned by on() or once().
  4267. // //移除事件监听
  4268. // ol.Observable.unByKey(listener);
  4269. // //移除地图单击事件
  4270. // map.removeEventListener("singleclick");
  4271. // },
  4272. // this
  4273. // );
  4274. // }
  4275. // /**
  4276. // * Creates a new help tooltip
  4277. // */
  4278. // function createHelpTooltip() {
  4279. // if (helpTooltipElement) {
  4280. // helpTooltipElement.parentNode.removeChild(helpTooltipElement);
  4281. // }
  4282. // helpTooltipElement = document.createElement("div");
  4283. // helpTooltipElement.className = "ol-tooltip hidden";
  4284. // helpTooltip = new ol.Overlay({
  4285. // element: helpTooltipElement,
  4286. // offset: [15, 0],
  4287. // positioning: "center-left",
  4288. // });
  4289. // map.addOverlay(helpTooltip);
  4290. // }
  4291. //
  4292. // /**
  4293. // * Creates a new measure tooltip
  4294. // */
  4295. // function createMeasureTooltip() {
  4296. // if (measureTooltipElement) {
  4297. // measureTooltipElement.parentNode.removeChild(measureTooltipElement);
  4298. // }
  4299. // measureTooltipElement = document.createElement("div");
  4300. // measureTooltipElement.className = "ol-tooltip ol-tooltip-measure";
  4301. // measureTooltip = new ol.Overlay({
  4302. // element: measureTooltipElement,
  4303. // offset: [0, -15],
  4304. // positioning: "bottom-center",
  4305. // });
  4306. // map.addOverlay(measureTooltip);
  4307. // }
  4308. //
  4309. // //格式化测量面积
  4310. // var formatArea = function (polygon) {
  4311. // //定义面积变量
  4312. // var area;
  4313. // //获取平面面积
  4314. // area = polygon.getArea();
  4315. // //定义输出变量
  4316. // var output;
  4317. // //当面积大于10000时,转换为平方千米,否则为平方米
  4318. // if (area > 10000) {
  4319. // output =
  4320. // Math.round((area / 1000000) * 100) / 100 + " " + "km<sup>2</sup>";
  4321. // } else {
  4322. // output = Math.round(area * 100) / 100 + " " + "m<sup>2</sup>";
  4323. // }
  4324. // return output;
  4325. // };
  4326. //
  4327. // addInteraction();
  4328. // });
  4329. // //侧面结束-----------------------------------------------------------------end
  4330. //全图展示-----------------start
  4331. $("#mapAllQt").click(function (){
  4332. //定位查询位置
  4333. let param_dw = {
  4334. srsName: "EPSG:3857",
  4335. service: "WFS",
  4336. version: "1.0.0",
  4337. request: "GetFeature",
  4338. typename: "zjd_dc:t_house_survey_border_village",
  4339. //featureNS: 'nsgk_hc',//命名空间 URI
  4340. cql_filter: cql_filter,
  4341. //featurePrefix: 'nationalwater',//工作区名称
  4342. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  4343. outputFormat: "application/json",
  4344. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  4345. };
  4346. let url_dw = that.mapGeoServerUrl+"/geoserver/zjd_dc/wfs"; //wfsurl;
  4347. url_dw = url_dw + "?";
  4348. for (let key in param_dw) {
  4349. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  4350. }
  4351. url_dw = url_dw.substr(0, url_dw.length - 1);
  4352. fetch(url_dw, {
  4353. method: "POST", // *GET, POST, PUT, DELETE, etc.
  4354. })
  4355. .then((res) => {
  4356. var geojsonmap = res.json();
  4357. return geojsonmap;
  4358. })
  4359. .then((data) => {
  4360. let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize());
  4361. resolution:resolution + Math.random() * 0.00000001,
  4362. map.getView().fit(data.bbox);
  4363. map.getView().setResolution(resolution);
  4364. // var datamap = data.bbox;
  4365. // var center = ol.extent.getCenter(datamap);
  4366. // map.getView().animate({
  4367. // // 只设置需要的属性即可
  4368. // center: center, // 中心点
  4369. // rotation: undefined, // 缩放完成view视图旋转弧度
  4370. // });
  4371. })
  4372. .catch((error) => {
  4373. console.log("【异常】", error);
  4374. });
  4375. });
  4376. //业务图层 wfs服务 属性查询开始 ------------------start
  4377. /**
  4378. * @api wfs服务空间查询
  4379. * @param {*} wfsurl
  4380. * @param {*} srsName
  4381. * @param {*} typeName
  4382. * @param {*} drawType
  4383. * @param {option 可选} geometryField
  4384. */
  4385. //查询全部图层 -------查询叠加图层出现覆盖问题
  4386. var wmsSource = new ol.source.TileWMS({
  4387. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4388. params: {
  4389. LAYERS: "zjd_dc:t_house_survey_all",
  4390. TILED: true,
  4391. SRID: 3857,
  4392. serverType: "geoserver",
  4393. crossOrigin: "anonymous",
  4394. },
  4395. resolution:Math.random() * 0.00000001,
  4396. });
  4397. //查询宅基地图层
  4398. var ZjdwmsSource = new ol.source.TileWMS({
  4399. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4400. params: {
  4401. LAYERS: "zjd_dc:t_house_survey_zjdzd",
  4402. TILED: true,
  4403. SRID: 3857,
  4404. serverType: "geoserver",
  4405. crossOrigin: "anonymous",
  4406. },
  4407. resolution:Math.random() * 0.00000001,
  4408. });
  4409. //查询自然幢图层
  4410. var ZrzwmsSource = new ol.source.TileWMS({
  4411. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4412. params: {
  4413. LAYERS: "zjd_dc:t_house_survey_zrz",
  4414. TILED: true,
  4415. SRID: 3857,
  4416. serverType: "geoserver",
  4417. crossOrigin: "anonymous",
  4418. },
  4419. resolution:Math.random() * 0.00000001,
  4420. });
  4421. //查询附属设施图层
  4422. var FssswmsSource = new ol.source.TileWMS({
  4423. url: that.mapGeoServerUrl+"/geoserver/zjd_dc/wms",
  4424. params: {
  4425. LAYERS: "zjd_dc:t_house_survey_fsss",
  4426. TILED: true,
  4427. SRID: 3857,
  4428. serverType: "geoserver",
  4429. crossOrigin: "anonymous",
  4430. },
  4431. resolution:Math.random() * 0.00000001,
  4432. });
  4433. map.on("pointermove", function (evt) {
  4434. if (evt.dragging) {
  4435. return;
  4436. }
  4437. var pixel = map.getEventPixel(evt.originalEvent);
  4438. var hit = map.forEachLayerAtPixel(pixel, function () {
  4439. return true;
  4440. });
  4441. map.getTargetElement().style.cursor = hit ? "pointer" : "";
  4442. });
  4443. //属性查询结束 ------------------end
  4444. //点击查询详细信息
  4445. map.on("singleclick", function (evt) {
  4446. let feature = map.forEachFeatureAtPixel(
  4447. evt.pixel,
  4448. (feature) => feature
  4449. );
  4450. var viewResolution = map.getView().getResolution(); ///** @type {number} */ (view.getResolution());
  4451. var zb = evt.coordinate;
  4452. var url;
  4453. var url_bbox;
  4454. if(that.drawingClick) {
  4455. //点击空白删除之前图层
  4456. map.removeLayer(hc_land_on);
  4457. //map.removeLayer(hc_land_query);
  4458. //for(var i=0;hc_land_query>i;i++){
  4459. map.removeLayer(hc_land_query);
  4460. //}c
  4461. if (that.fsssSx && that.zjdSx && that.zrzSx) {
  4462. url = wmsSource.getFeatureInfoUrl(
  4463. evt.coordinate,
  4464. viewResolution,
  4465. "EPSG:3857",
  4466. {INFO_FORMAT: "text/html"}
  4467. );
  4468. url_bbox = wmsSource.getFeatureInfoUrl(
  4469. evt.coordinate,
  4470. viewResolution,
  4471. "EPSG:3857",
  4472. {INFO_FORMAT: "application/json"}
  4473. );
  4474. } else {
  4475. if (that.zjdSx) {
  4476. url = ZjdwmsSource.getFeatureInfoUrl(
  4477. evt.coordinate,
  4478. viewResolution,
  4479. "EPSG:3857",
  4480. {INFO_FORMAT: "text/html"}
  4481. );
  4482. url_bbox = ZjdwmsSource.getFeatureInfoUrl(
  4483. evt.coordinate,
  4484. viewResolution,
  4485. "EPSG:3857",
  4486. {INFO_FORMAT: "application/json"}
  4487. );
  4488. } else if (that.fsssSx) {
  4489. url = FssswmsSource.getFeatureInfoUrl(
  4490. evt.coordinate,
  4491. viewResolution,
  4492. "EPSG:3857",
  4493. {INFO_FORMAT: "text/html"}
  4494. );
  4495. url_bbox = FssswmsSource.getFeatureInfoUrl(
  4496. evt.coordinate,
  4497. viewResolution,
  4498. "EPSG:3857",
  4499. {INFO_FORMAT: "application/json"}
  4500. );
  4501. } else if (that.zrzSx) {
  4502. url = ZrzwmsSource.getFeatureInfoUrl(
  4503. evt.coordinate,
  4504. viewResolution,
  4505. "EPSG:3857",
  4506. {INFO_FORMAT: "text/html"}
  4507. );
  4508. url_bbox = ZrzwmsSource.getFeatureInfoUrl(
  4509. evt.coordinate,
  4510. viewResolution,
  4511. "EPSG:3857",
  4512. {INFO_FORMAT: "application/json"}
  4513. );
  4514. } else {
  4515. url = wmsSource.getFeatureInfoUrl(
  4516. evt.coordinate,
  4517. viewResolution,
  4518. "EPSG:3857",
  4519. {INFO_FORMAT: "text/html"}
  4520. );
  4521. url_bbox = wmsSource.getFeatureInfoUrl(
  4522. evt.coordinate,
  4523. viewResolution,
  4524. "EPSG:3857",
  4525. {INFO_FORMAT: "application/json"}
  4526. );
  4527. }
  4528. }
  4529. if (url_bbox) {
  4530. fetch(url_bbox).then((res) => {
  4531. var geojsonmap = res.json();
  4532. return geojsonmap;
  4533. })
  4534. .then((data) => {
  4535. var center = ol.extent.getCenter(data.bbox); //获取边界区域的中心位置
  4536. center = [center[0], center[1] - 16];
  4537. that.clickBbox = center;
  4538. })
  4539. .catch((error) => {
  4540. console.log("【异常】", error);
  4541. });
  4542. }
  4543. if (url) {
  4544. fetch(url)
  4545. .then(function (response) {
  4546. return response.text();
  4547. })
  4548. .then(function (html) {
  4549. document.getElementById("info").innerHTML = html;
  4550. if (html.indexOf("<table") != -1) {
  4551. that.mapZjdData = "";
  4552. that.mapZrzData = "";
  4553. that.mapFsssData = "";
  4554. //that.mapZjdTeAll.active ="1";
  4555. that.mapZjdTeAll.mapZjdAData = {};
  4556. that.mapZjdTeAll.mapZrzAData = {};
  4557. that.mapZjdTeAll.mapFsssAData = {};
  4558. that.mapZjdDataTure = "";
  4559. setTimeout(() => {
  4560. if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_zjdzd") {
  4561. map.removeLayer(hc_land_on);
  4562. that.mapHasDateStatus = 2;
  4563. let obj = {};
  4564. let trs = $("#info .featureInfo").find("tr:eq(1)");
  4565. let zjdXq = trs.find("td").eq(0).text();
  4566. let zjdIdNum = zjdXq.replace("t_house_survey_zjdzd.", "");
  4567. obj.id = zjdIdNum; // 主键id
  4568. obj.deptName = trs.find("td").eq(3).text();//行政区划名称
  4569. obj.zjddm = trs.find("td").eq(6).text();//宅基地代码
  4570. obj.zdmj = trs.find("td").eq(11).text();//宗地面积
  4571. obj.active = 1;
  4572. var vector_drawing_map;
  4573. let params = {
  4574. "deptId": that.$cookies.get("item").deptId,
  4575. "zjddm": obj.zjddm,
  4576. }
  4577. that.$cookies.set("search", "")
  4578. //that.$cookies.set("map", "")
  4579. console.log(document.cookie.split(';').length)
  4580. console.log(params);
  4581. listZjdzd(params).then((response) => {
  4582. if (response.rows[0].zdmj != "") {
  4583. that.textMjAll = response.rows[0].zdmj;
  4584. } else {
  4585. that.textMjAllNum = "1";
  4586. }
  4587. that.mapZjdData = response.rows[0];
  4588. that.mapZjdData.active = 1;
  4589. that.mapZjdTeAll.mapZjdAData = that.mapZjdData;
  4590. that.mapZjdDataTure = 1;
  4591. that.zjdHcDy = obj.zjddm;
  4592. var styleZjd = new ol.style.Style({
  4593. stroke: new ol.style.Stroke({
  4594. //边界样式
  4595. color: "#CCFF66",
  4596. width: 6,
  4597. }),
  4598. });
  4599. hc_land_on = new ol.layer.Vector({
  4600. title: "add Layer",
  4601. source: new ol.source.Vector({
  4602. projection: projection,
  4603. features: new ol.format.GeoJSON().readFeatures("{\n" +
  4604. " \"type\": \"Feature\",\n" +
  4605. " \"geometry\":" + that.mapZjdData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZjdData) + "}"),
  4606. }),
  4607. style: styleZjd
  4608. });
  4609. map.addLayer(hc_land_on);
  4610. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  4611. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  4612. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  4613. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  4614. //定位查询位置
  4615. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  4616. map.getView().animate({
  4617. // 只设置需要的属性即可
  4618. center: center, // 中心点
  4619. zoom: 17.8, // 缩放级别
  4620. rotation: undefined, // 缩放完成view视图旋转弧度
  4621. duration: 1000, // 缩放持续时间,默认不需要设置
  4622. resolution:Math.random() * 0.00000001,
  4623. });
  4624. function createLabelStyleMap() {
  4625. return new ol.style.Style({
  4626. text: new ol.style.Text({
  4627. text: that.mapZjdData.syqr,
  4628. textAlign: "center", //位置
  4629. textBaseline: "middle", //基准线
  4630. font: "normal 16px 微软雅黑", //文字样式
  4631. //text: "标注点", //文本内容
  4632. fill: new ol.style.Fill({
  4633. //文本填充样式(即文字颜色)
  4634. color: "#0099FF",
  4635. width: 10,
  4636. }),
  4637. overflow: false //超出面的部分不显示
  4638. }),
  4639. zIndex: 9999,
  4640. });
  4641. }
  4642. var newcenterFeatureMap = new ol.Feature({
  4643. geometry: new ol.geom.Point(center), //几何信息
  4644. //name: "标注点",
  4645. });
  4646. var sourceMapLookMap = new ol.source.Vector({wrapX: false});
  4647. vector_drawing_map = new ol.layer.Vector({
  4648. source: sourceMapLookMap,
  4649. });
  4650. map.addLayer(vector_drawing_map);
  4651. newcenterFeatureMap.setStyle(createLabelStyleMap()); //设置要素样式
  4652. sourceMapLookMap.addFeature(newcenterFeatureMap);
  4653. });
  4654. //let cloneObj = JSON.parse(JSON.stringify(obj));
  4655. //that.mapZjdData = cloneObj;
  4656. } else if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_zrz") {
  4657. //that.mapZjdTeAll.mapZjdAData ={};
  4658. that.mapZjdDataTure = "";
  4659. that.mapZjdTeAll.mapFsssAData = {};
  4660. map.removeLayer(hc_land_on);
  4661. let obj = {};
  4662. that.mapHasDateStatus = 1;
  4663. let trs = $("#info .featureInfo").find("tr:eq(1)");
  4664. let zrzXq = trs.find("td").eq(0).text();
  4665. let zrzIdNum = zrzXq.replace("t_house_survey_zrz.", "");
  4666. obj.id = zrzIdNum; // 主键id
  4667. obj.deptName = trs.find("td").eq(3).text();//行政区划名称
  4668. obj.zjddm = trs.find("td").eq(4).text();//宅基地代码
  4669. obj.scjzmj = trs.find("td").eq(12).text();//实测建筑面积
  4670. let params = {
  4671. "deptId": that.$cookies.get("item").deptId,
  4672. "zjddm": obj.zjddm,
  4673. }
  4674. that.$cookies.set("search", "")
  4675. //that.$cookies.set("map", "")
  4676. listZjdzd(params).then((response) => {
  4677. that.mapZjdData = response.rows[0];
  4678. //that.mapZjdAData.active = 1;
  4679. that.mapZjdTeAll.mapZjdAData = that.mapZjdData;
  4680. getZrz(obj.id).then((response) => {
  4681. if (response.data.scjzmj != "") {
  4682. that.textMjAll = response.data.scjzmj;
  4683. } else {
  4684. that.textMjAllNum = "1";
  4685. }
  4686. that.mapZrzData = response.data;
  4687. that.mapZrzData.active = 3;
  4688. that.mapZjdTeAll.mapZrzAData = that.mapZrzData;
  4689. that.zjdHcDy = obj.zjddm;
  4690. var styleZjd = new ol.style.Style({
  4691. stroke: new ol.style.Stroke({
  4692. //边界样式
  4693. color: "#CCFF66",
  4694. width: 6,
  4695. }),
  4696. });
  4697. hc_land_on = new ol.layer.Vector({
  4698. title: "add Layer",
  4699. source: new ol.source.Vector({
  4700. projection: projection,
  4701. features: new ol.format.GeoJSON().readFeatures("{\n" +
  4702. " \"type\": \"Feature\",\n" +
  4703. " \"geometry\":" + that.mapZrzData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZrzData) + "}"),
  4704. }),
  4705. style: styleZjd
  4706. });
  4707. map.addLayer(hc_land_on);
  4708. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  4709. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  4710. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  4711. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  4712. //定位查询位置
  4713. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  4714. map.getView().animate({
  4715. // 只设置需要的属性即可
  4716. center: center, // 中心点
  4717. zoom: 17.8, // 缩放级别
  4718. rotation: undefined, // 缩放完成view视图旋转弧度
  4719. duration: 1000, // 缩放持续时间,默认不需要设置
  4720. resolution:Math.random() * 0.00000001,
  4721. });
  4722. });
  4723. });
  4724. } else if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_fsss") {
  4725. that.mapZjdTeAll.mapZrzAData = {};
  4726. that.mapZjdDataTure = "";
  4727. //that.mapZjdTeAll.mapZjdAData ={};
  4728. map.removeLayer(hc_land_on);
  4729. let obj = {};
  4730. that.mapHasDateStatus = 0;
  4731. let trs = $("#info .featureInfo").find("tr:eq(1)");
  4732. let fsssXq = trs.find("td").eq(0).text();
  4733. let fsssIdNum = fsssXq.replace("t_house_survey_fsss.", "");
  4734. obj.id = fsssIdNum; // 主键id
  4735. obj.deptName = trs.find("td").eq(4).text();//行政区划名称
  4736. obj.zjddm = trs.find("td").eq(1).text();//宅基地代码
  4737. // obj.houseDataConfirmStatus = trs.find("td").eq(6).text(); //状态
  4738. // obj.fssslx = trs.find("td").eq(7).text(); //附属设施类型
  4739. obj.jzmj = trs.find("td").eq(8).text(); //建筑面积
  4740. let params = {
  4741. "deptId": that.$cookies.get("item").deptId,
  4742. "zjddm": obj.zjddm,
  4743. "pageSize": 20,
  4744. }
  4745. that.$cookies.remove("search")
  4746. //that.$cookies.set("map", "")
  4747. listZjdzd(params).then((response) => {
  4748. that.mapZjdData = response.rows[0];
  4749. that.mapZjdData.active = 1;
  4750. that.mapZjdTeAll.mapZjdAData = that.mapZjdData;
  4751. getFsss(obj.id).then((response) => {
  4752. if (response.data.jzmj != "") {
  4753. that.textMjAll = response.data.jzmj;
  4754. } else {
  4755. that.textMjAllNum = "1";
  4756. }
  4757. //that.mapfsssData.active = 4;
  4758. that.mapfsssData = response.data;
  4759. console.log(that.mapfsssData);
  4760. that.mapZjdTeAll.mapFsssAData = that.mapfsssData;
  4761. that.zjdHcDy = obj.zjddm;
  4762. var styleZjd = new ol.style.Style({
  4763. stroke: new ol.style.Stroke({
  4764. //边界样式
  4765. color: "#CCFF66",
  4766. width: 6,
  4767. }),
  4768. });
  4769. hc_land_on = new ol.layer.Vector({
  4770. title: "add Layer",
  4771. source: new ol.source.Vector({
  4772. projection: projection,
  4773. features: new ol.format.GeoJSON().readFeatures("{\n" +
  4774. " \"type\": \"Feature\",\n" +
  4775. " \"geometry\":" + that.mapfsssData.theGeom + ", \"properties\":" + JSON.stringify(that.mapfsssData) + "}"),
  4776. }),
  4777. style: styleZjd
  4778. });
  4779. map.addLayer(hc_land_on);
  4780. var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX;
  4781. var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY;
  4782. var minXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minX;
  4783. var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY;
  4784. //定位查询位置
  4785. var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
  4786. map.getView().animate({
  4787. // 只设置需要的属性即可
  4788. center: center, // 中心点
  4789. zoom: 17.8, // 缩放级别
  4790. rotation: undefined, // 缩放完成view视图旋转弧度
  4791. duration: 1000, // 缩放持续时间,默认不需要设置
  4792. resolution:Math.random() * 0.00000001,
  4793. });
  4794. });
  4795. });
  4796. // if(obj.jzmj != ""){
  4797. // that.textMjAll = obj.jzmj;
  4798. // } else {
  4799. // that.textMjAllNum = "1";
  4800. // }
  4801. } else {
  4802. }
  4803. }, 300);
  4804. } else {
  4805. }
  4806. });
  4807. }
  4808. }
  4809. //数据库查询详情时使用----------------------------------------start
  4810. // if(feature) {
  4811. // //document.getElementById("info").innerHTML = "";
  4812. // that.mapHaDataValue = true;
  4813. // var ifConsole = feature.values_.createBy;
  4814. // if (ifConsole =="mapTheGeomFsssId") {
  4815. // let obj = {};
  4816. // that.mapHasDateStatus = 0;
  4817. // obj.deptName = feature.values_.deptName;//行政区划名称
  4818. // obj.zjddm = feature.values_.zjddm;//宅基地代码
  4819. // obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus; //状态
  4820. // obj.fssslx = feature.values_.fssslx; //附属设施类型
  4821. // obj.jzmj = feature.values_.jzmj; //建筑面积
  4822. // obj.qsly = feature.values_.qsly;//权属来源
  4823. // obj.fwzt = feature.values_.fwzt; //房屋状态
  4824. // obj.sfsp = feature.values_.sfsp; //是否审批
  4825. // obj.sffz = feature.values_.sffz; //是否发证
  4826. // obj.jglx = feature.values_.jglx; //结构类型
  4827. // obj.sfzzsy = feature.values_.sfzzsy; //是否正在使用
  4828. // obj.jzwqk = feature.values_.jzwqk; //建筑物情况
  4829. // obj.tdzk = feature.values_.tdzk; //审批或建设前土地状况
  4830. // obj.sfsgcf = feature.values_.sfsgcf; //是否受过处罚
  4831. // obj.sysNormalDisable = feature.values_.sysNormalDisable; //是否停用
  4832. // //附属设施类型字典项
  4833. // that.getDicts("fsss_type").then((response) => {
  4834. // var assetTypeOptions = response.data;
  4835. // if(obj.fssslx !=null && obj.fssslx !=""){
  4836. // for(var i=0;assetTypeOptions.length >i; i++){
  4837. // if(obj.fssslx == assetTypeOptions[i].dictValue) {
  4838. // obj.fssslx = assetTypeOptions[i].dictLabel;
  4839. // break;
  4840. // }
  4841. // }
  4842. // }
  4843. // });
  4844. // //权属类型字典项
  4845. // that.getDicts("acquisition_method").then((response) => {
  4846. // var assetTypeOptions = response.data;
  4847. // if(obj.qsly !=null && obj.qsly !=""){
  4848. // for(var i=0;assetTypeOptions.length >i; i++){
  4849. // if(obj.qsly == assetTypeOptions[i].dictValue) {
  4850. // obj.qsly = assetTypeOptions[i].dictLabel;
  4851. // break;
  4852. // }
  4853. // }
  4854. // }
  4855. // });
  4856. // //房屋状态字典项
  4857. // that.getDicts("fwzt").then((response) => {
  4858. // var assetTypeOptions = response.data;
  4859. // if(obj.fwzt !=null && obj.fwzt !=""){
  4860. // for(var i=0;assetTypeOptions.length >i; i++){
  4861. // if(obj.fwzt == assetTypeOptions[i].dictValue) {
  4862. // obj.fwzt = assetTypeOptions[i].dictLabel;
  4863. // break;
  4864. // }
  4865. // }
  4866. // }
  4867. // });
  4868. // //是否审批字典项
  4869. // that.getDicts("sys_yes_no").then((response) => {
  4870. // var assetTypeOptions = response.data;
  4871. // if(obj.sfsp !=null && obj.sfsp !=""){
  4872. // for(var i=0;assetTypeOptions.length >i; i++){
  4873. // if(obj.sfsp == assetTypeOptions[i].dictValue) {
  4874. // obj.sfsp = assetTypeOptions[i].dictLabel;
  4875. // break;
  4876. // }
  4877. // }
  4878. // }
  4879. // });
  4880. // //是否发证字典项
  4881. // that.getDicts("sys_yes_no").then((response) => {
  4882. // var assetTypeOptions = response.data;
  4883. // if(obj.sffz !=null && obj.sffz !=""){
  4884. // for(var i=0;assetTypeOptions.length >i; i++){
  4885. // if(obj.sffz == assetTypeOptions[i].dictValue) {
  4886. // obj.sffz = assetTypeOptions[i].dictLabel;
  4887. // break;
  4888. // }
  4889. // }
  4890. // }
  4891. // });
  4892. // //结构类型字典项
  4893. // that.getDicts("house_jglx").then((response) => {
  4894. // var assetTypeOptions = response.data;
  4895. // if(obj.jglx !=null && obj.jglx !=""){
  4896. // for(var i=0;assetTypeOptions.length >i; i++){
  4897. // if(obj.jglx == assetTypeOptions[i].dictValue) {
  4898. // obj.jglx = assetTypeOptions[i].dictLabel;
  4899. // break;
  4900. // }
  4901. // }
  4902. // }
  4903. // });
  4904. // //是否正在使用字典项
  4905. // that.getDicts("sys_yes_no").then((response) => {
  4906. // var assetTypeOptions = response.data;
  4907. // if(obj.sfzzsy !=null && obj.sfzzsy !=""){
  4908. // for(var i=0;assetTypeOptions.length >i; i++){
  4909. // if(obj.sfzzsy == assetTypeOptions[i].dictValue) {
  4910. // obj.sfzzsy = assetTypeOptions[i].dictLabel;
  4911. // break;
  4912. // }
  4913. // }
  4914. // }
  4915. // });
  4916. // //房屋状态字典项
  4917. // that.getDicts("fwzt").then((response) => {
  4918. // var assetTypeOptions = response.data;
  4919. // if(obj.fwzt !=null && obj.fwzt !=""){
  4920. // for(var i=0;assetTypeOptions.length >i; i++){
  4921. // if(obj.fwzt == assetTypeOptions[i].dictValue) {
  4922. // obj.fwzt = assetTypeOptions[i].dictLabel;
  4923. // break;
  4924. // }
  4925. // }
  4926. // }
  4927. // });
  4928. // //土地状况字典项
  4929. // that.getDicts("land_state").then((response) => {
  4930. // var assetTypeOptions = response.data;
  4931. // if(obj.tdzk !=null && obj.tdzk !=""){
  4932. // for(var i=0;assetTypeOptions.length >i; i++){
  4933. // if(obj.tdzk == assetTypeOptions[i].dictValue) {
  4934. // obj.tdzk = assetTypeOptions[i].dictLabel;
  4935. // break;
  4936. // }
  4937. // }
  4938. // }
  4939. // });
  4940. // //是否受过处罚字典项
  4941. // that.getDicts("land_state").then((response) => {
  4942. // var assetTypeOptions = response.data;
  4943. // if(obj.sfsgcf !=null && obj.sfsgcf !=""){
  4944. // for(var i=0;assetTypeOptions.length >i; i++){
  4945. // if(obj.sfsgcf == assetTypeOptions[i].dictValue) {
  4946. // obj.sfsgcf = assetTypeOptions[i].dictLabel;
  4947. // break;
  4948. // }
  4949. // }
  4950. // }
  4951. // });
  4952. // that.mapFsssData = obj;
  4953. // } else if(ifConsole =="mapTheGeomZrzId"){
  4954. // let obj = {};
  4955. // that.mapHasDateStatus = 1;
  4956. // obj.deptName = feature.values_.deptName;//部门名称
  4957. // obj.zjddm = feature.values_.zjddm;//宅基地代码
  4958. // obj.nmfwzh = feature.values_.nmfwzh;//农民房屋幢号
  4959. // obj.zrzh = feature.values_.zrzh;//自然幢号
  4960. // obj.jgrq = feature.values_.jgrq;//竣工日期
  4961. // obj.jzwgd = feature.values_.jzwgd;//建筑物高度
  4962. // obj.zzdmj = feature.values_.zzdmj;//幢占地面积
  4963. // obj.zydmj = feature.values_.zydmj;//幢用地面积
  4964. // obj.scjzmj = feature.values_.scjzmj;//实测建筑面积
  4965. // obj.zcs = feature.values_.zcs;//总层数
  4966. // obj.dscs = feature.values_.dscs;//地上层数
  4967. // obj.dxcs = feature.values_.dxcs;//地下层数
  4968. // obj.fwjg = feature.values_.fwjg;//房屋结构
  4969. // obj.sjly = feature.values_.sjly;//数据来源
  4970. // obj.status = feature.values_.status;//状态
  4971. // obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus;//数据调查确认状态
  4972. // //字典项转化
  4973. // //房屋结构字典项
  4974. // that.getDicts("housing_structure").then((response) => {
  4975. // var assetTypeOptions = response.data;
  4976. // if(obj.fwjg !=null && obj.fwjg !=""){
  4977. // for(var i=0;assetTypeOptions.length >i; i++){
  4978. // if(obj.fwjg == assetTypeOptions[i].dictValue) {
  4979. // obj.fwjg = assetTypeOptions[i].dictLabel;
  4980. // break;
  4981. // }
  4982. // }
  4983. // }
  4984. // });
  4985. // //房屋结构字典项
  4986. // that.getDicts("sjly").then((response) => {
  4987. // var assetTypeOptions = response.data;
  4988. // if(obj.sjly !=null && obj.sjly !=""){
  4989. // for(var i=0;assetTypeOptions.length >i; i++){
  4990. // if(obj.sjly == assetTypeOptions[i].dictValue) {
  4991. // obj.sjly = assetTypeOptions[i].dictLabel;
  4992. // break;
  4993. // }
  4994. // }
  4995. // }
  4996. // });
  4997. // that.mapZrzData = obj;
  4998. // } else if(ifConsole =="mapTheGeomZjdId"){
  4999. // let obj = {};
  5000. // that.mapHasDateStatus = 2;
  5001. // obj.deptName = feature.values_.deptName;//行政区划名称
  5002. // obj.suyqrdm = feature.values_.suyqrdm;//所有权人代码
  5003. // obj.nhdm = feature.values_.nhdm;//农户代码
  5004. // obj.zjddm = feature.values_.zjddm;//宅基地代码
  5005. // obj.zdbh = feature.values_.zdbh;//宗地编号
  5006. // obj.zddm = feature.values_.zddm;//宗地代码
  5007. // obj.zl = feature.values_.zl;//坐落
  5008. // obj.zldwdm = feature.values_.zldwdm;//坐落单位代码
  5009. // obj.zdmj = feature.values_.zdmj;//宗地面积
  5010. // obj.yt = feature.values_.yt;//用途
  5011. // obj.ytmc = feature.values_.ytmc;//用途名称
  5012. // obj.dj = feature.values_.dj;//宗地编号
  5013. // obj.jg = feature.values_.jg;//价格万元
  5014. // obj.qllx = feature.values_.qllx;//权利类型
  5015. // obj.qlxz = feature.values_.qlxz;//权利性质
  5016. // obj.qlsdfs = feature.values_.qlsdfs;//权利设定方式
  5017. // obj.rjl = feature.values_.rjl;//容积率
  5018. // obj.jzmd = feature.values_.jzmd;//建筑密度
  5019. // obj.jzxg = feature.values_.jzxg;//建筑限高
  5020. // obj.zdszd = feature.values_.zdszd;//宗地四至-东
  5021. // obj.zdszn = feature.values_.zdszn;//宗地四至-南
  5022. // obj.zdszx = feature.values_.zdszx;//宗地四至-西
  5023. // obj.zdszb = feature.values_.zdszb;//宗地四至-北
  5024. // obj.zdt = feature.values_.zdt;//宗地图
  5025. // obj.tfh = feature.values_.tfh;//图幅号
  5026. // obj.djh = feature.values_.djh;//地籍号
  5027. // obj.sjly = feature.values_.sjly;//数据来源
  5028. // obj.lyzk = feature.values_.lyzk;//当前利用状况
  5029. // obj.xzkssj = feature.values_.xzkssj;//闲置开始时间
  5030. // obj.sffz = feature.values_.sffz;//是否发证
  5031. // obj.zjdzsh = feature.values_.zjdzsh;//宅基地证书号
  5032. // obj.zjdxctp = feature.values_.zjdxctp;//宅基地现场图片
  5033. // obj.zjdqdfs = feature.values_.zjdqdfs;//宅基地取得方式
  5034. // obj.bccjl = feature.values_.bccjl;//被惩处经历
  5035. // obj.bccbz = feature.values_.bccbz;//被惩处备注
  5036. // obj.yctcyx = feature.values_.yctcyx;//有偿退出意向
  5037. // obj.zjdpzmj = feature.values_.zjdpzmj;//宅基地批准面积
  5038. // obj.zjdxzyy = feature.values_.zjdxzyy;//宅基地闲置原因
  5039. // obj.lzyx = feature.values_.lzyx;//流转意向
  5040. // obj.sysNormalDisable = feature.values_.sysNormalDisable;//是否停用
  5041. // obj.active = 1;
  5042. // //字典项转化
  5043. // //是否发证字典项
  5044. // that.getDicts("sys_yes_no").then((response) => {
  5045. // var assetTypeOptions = response.data;
  5046. // if(obj.sffz !=null && obj.sffz !=""){
  5047. // for(var i=0;assetTypeOptions.length >i; i++){
  5048. // if(obj.sffz == assetTypeOptions[i].dictValue) {
  5049. // obj.sffz = assetTypeOptions[i].dictLabel;
  5050. // break;
  5051. // }
  5052. // }
  5053. // }
  5054. // });
  5055. // //利用状态字典项
  5056. // that.getDicts("zjdlyzk").then((response) => {
  5057. // var assetTypeOptions = response.data;
  5058. // if(obj.lyzk !=null && obj.lyzk !=""){
  5059. // for(var i=0;assetTypeOptions.length >i; i++){
  5060. // if(obj.lyzk == assetTypeOptions[i].dictValue) {
  5061. // obj.lyzk = assetTypeOptions[i].dictLabel;
  5062. // break;
  5063. // }
  5064. // }
  5065. // }
  5066. // });
  5067. // //流转意向字典项
  5068. // that.getDicts("is_have").then((response) => {
  5069. // var assetTypeOptions = response.data;
  5070. // if(obj.lzyx !=null && obj.lzyx !=""){
  5071. // for(var i=0;assetTypeOptions.length >i; i++){
  5072. // if(obj.lzyx == assetTypeOptions[i].dictValue) {
  5073. // obj.lzyx = assetTypeOptions[i].dictLabel;
  5074. // break;
  5075. // }
  5076. // }
  5077. // }
  5078. // });
  5079. // //有偿退出意向字典项
  5080. // that.getDicts("is_have").then((response) => {
  5081. // var assetTypeOptions = response.data;
  5082. // if(obj.yctcyx !=null && obj.yctcyx !=""){
  5083. // for(var i=0;assetTypeOptions.length >i; i++){
  5084. // if(obj.yctcyx == assetTypeOptions[i].dictValue) {
  5085. // obj.yctcyx = assetTypeOptions[i].dictLabel;
  5086. // break;
  5087. // }
  5088. // }
  5089. // }
  5090. // });
  5091. // //被惩处经历字典项
  5092. // that.getDicts("is_have").then((response) => {
  5093. // var assetTypeOptions = response.data;
  5094. // if(obj.bccjl !=null && obj.bccjl !=""){
  5095. // for(var i=0;assetTypeOptions.length >i; i++){
  5096. // if(obj.bccjl == assetTypeOptions[i].dictValue) {
  5097. // obj.bccjl = assetTypeOptions[i].dictLabel;
  5098. // break;
  5099. // }
  5100. // }
  5101. // }
  5102. // });
  5103. // //宅基地取得方式字典项
  5104. // that.getDicts("acquisition_method").then((response) => {
  5105. // var assetTypeOptions = response.data;
  5106. // if(obj.zjdqdfs !=null && obj.zjdqdfs !=""){
  5107. // for(var i=0;assetTypeOptions.length >i; i++){
  5108. // if(obj.zjdqdfs == assetTypeOptions[i].dictValue) {
  5109. // obj.zjdqdfs = assetTypeOptions[i].dictLabel;
  5110. // break;
  5111. // }
  5112. // }
  5113. // }
  5114. // });
  5115. // //权利设定方式字典项
  5116. // that.getDicts("right_setting_mode").then((response) => {
  5117. // var assetTypeOptions = response.data;
  5118. // if(obj.qlsdfs !=null && obj.qlsdfs !=""){
  5119. // for(var i=0;assetTypeOptions.length >i; i++){
  5120. // if(obj.qlsdfs == assetTypeOptions[i].dictValue) {
  5121. // obj.qlsdfs = assetTypeOptions[i].dictLabel;
  5122. // break;
  5123. // }
  5124. // }
  5125. // }
  5126. // });
  5127. // //数据来源字典项
  5128. // that.getDicts("sjly").then((response) => {
  5129. // var assetTypeOptions = response.data;
  5130. // if(obj.sjly !=null && obj.sjly !=""){
  5131. // for(var i=0;assetTypeOptions.length >i; i++){
  5132. // if(obj.sjly == assetTypeOptions[i].dictValue) {
  5133. // obj.sjly = assetTypeOptions[i].dictLabel;
  5134. // break;
  5135. // }
  5136. // }
  5137. // }
  5138. // });
  5139. // that.mapZjdData = obj;
  5140. // console.log(obj.zjddm);
  5141. // that.zjdHcDy = obj.zjddm;
  5142. // } else {
  5143. // that.mapHaDataValue = false;
  5144. // }
  5145. // }else {
  5146. // that.mapHaDataValue = false;
  5147. // }
  5148. //数据库查询详情时使用----------------------------------------end
  5149. });
  5150. //数据库循环加载时使用 --------------------加载较慢 ------start
  5151. //当前账套没有任何空间数据
  5152. // if(mapTalkAbout){
  5153. // let deptName = this.$store.state.user.loginDeptId + "";
  5154. // getQueryLand(deptName).then((response) => {
  5155. // if (response.code == 200) {
  5156. // let InsertCode = response.data;
  5157. // if (InsertCode != null) {
  5158. // var lat = InsertCode.lat;
  5159. // var lng = InsertCode.lng;
  5160. // var center;
  5161. // if(lat !=null && lng !=null && lat !="" && lng !=""){
  5162. // center = [lng,lat];
  5163. // }else {
  5164. // center =[115.452752, 31.789033];
  5165. // }
  5166. // map.getView().animate({
  5167. // // 只设置需要的属性即可
  5168. // center: ol.proj.fromLonLat(center), // 中心点
  5169. // zoom: 17.9, // 缩放级别
  5170. // rotation: undefined, // 缩放完成view视图旋转弧度
  5171. // duration: 1000, // 缩放持续时间,默认不需要设置
  5172. // });
  5173. // }
  5174. // }
  5175. // });
  5176. // }
  5177. //数据库循环加载时使用 --------------------加载较慢 ------start
  5178. },
  5179. /*右侧列表 --展开收缩*/
  5180. selectionPushMap() {
  5181. this.selectionIconShow = true;
  5182. this.homesteadListStatus = true;
  5183. $(".homesteadList_wrap").animate(
  5184. {
  5185. right: "0",
  5186. },
  5187. 300
  5188. );
  5189. },
  5190. homesteadListShrink() {
  5191. this.selectionIconShow = false;
  5192. // this.checked =["zjdSx","zrzSx","fsssSx"];
  5193. $(".homesteadList_wrap").animate(
  5194. {
  5195. right: "-300px",
  5196. },
  5197. 300
  5198. );
  5199. setTimeout(() => {
  5200. this.homesteadListStatus = false;
  5201. }, 300);
  5202. },
  5203. checkClick(res){
  5204. // 1、全选与不全选模块
  5205. $(".checkall").change(function() {
  5206. $(".item-list-checkbox .checkitem").prop("checked", $(this).prop("checked"));
  5207. if($(this).prop("checked")){
  5208. }else {
  5209. }
  5210. });
  5211. // 2、小复选框模块
  5212. $(".checkitem").change(function() {
  5213. if ($(".checkitem:checked").length === $(".checkitem").length) {
  5214. $(".checkall").prop("checked", true);
  5215. } else {
  5216. $(".checkall").prop("checked", false);
  5217. }
  5218. })
  5219. },
  5220. //绘制多边形地图
  5221. drawMapPolygonFun() {
  5222. },
  5223. guidProduct(){
  5224. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  5225. var r = Math.random() * 16 | 0,
  5226. v = c == 'x' ? r : (r & 0x3 | 0x8);
  5227. return v.toString(16);
  5228. });
  5229. },
  5230. //宅基地点击地图核查
  5231. zjdHc(){
  5232. console.log(this.mapZjdTeAll);
  5233. if(this.zjdHcDy != "" && this.zjdHcDy != "undefined"){
  5234. if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
  5235. console.log("ggggggggg")
  5236. this.mapZjdTeAll.active =1;
  5237. this.$cookies.set("search",this.mapZjdTeAll);
  5238. this.$router.push({path:'/homesteadSurvey/add'});
  5239. }else if(this.mapZrzData !=undefined && this.mapZrzData !=""){
  5240. if(this.mapZjdTeAll.mapZjdAData !=""){
  5241. this.mapZjdTeAll.active = 3;
  5242. this.$cookies.set("search",this.mapZjdTeAll);
  5243. this.$router.push({path:'/homesteadSurvey/add'});
  5244. } else {
  5245. this.$toast("必须有宅基地数据才能进入自然幢核查");
  5246. }
  5247. }else {
  5248. if(this.mapZjdTeAll.mapZjdAData !="") {
  5249. this.mapZjdTeAll.active = 4;
  5250. this.$cookies.set("search", this.mapZjdTeAll);
  5251. this.$router.push({path: '/homesteadSurvey/add'});
  5252. } else {
  5253. this.$toast("必须有宅基地数据才能进入附属设施核查");
  5254. }
  5255. }
  5256. } else {
  5257. this.$dialog.alert({
  5258. title: '宅基地核查',
  5259. message: "请从地图中选择图层并点击核查",
  5260. theme: 'round-button',
  5261. }).then(() => {
  5262. // on close
  5263. });
  5264. }
  5265. },
  5266. //搜索详情跳转
  5267. zjdSs(item){
  5268. this.mapZjdTeAll.mapZjdAData ={};
  5269. this.mapZjdTeAll.mapZrzAData ={};
  5270. this.mapZjdTeAll.mapFsssAData ={};
  5271. //this.mapZjdTeAll.active =1;
  5272. if(item.typeTc =="宅基地"){
  5273. getZjdzd(item.id).then((response) => {
  5274. this.mapZjdData = response.data;
  5275. this.mapZjdTeAll.active = 1;
  5276. this.mapZjdTeAll.mapZjdAData = this.mapZjdData;
  5277. this.$cookies.set("search",this.mapZjdTeAll);
  5278. setTimeout(() => {
  5279. this.$router.push({path:'/homesteadSurvey/add'});
  5280. }, 500);
  5281. });
  5282. }else if(item.typeTc =="自然幢"){
  5283. //let =
  5284. getZjdzd(item.id).then((response) => {
  5285. this.mapZrzData = response.data;
  5286. this.mapZjdTeAll.active = 3;
  5287. this.mapZjdTeAll.mapZrzAData = this.mapZrzData;
  5288. this.$cookies.set("search",this.mapZjdTeAll);
  5289. setTimeout(() => {
  5290. this.$router.push({path:'/homesteadSurvey/add'});
  5291. }, 500);
  5292. });
  5293. }else if(item.typeTc =="附属设施"){
  5294. getFsss(item.id).then((response) => {
  5295. this.mapFsssData = response.data;
  5296. this.mapZjdTeAll.active = 4;
  5297. this.mapZjdTeAll.mapFsssAData = this.mapFsssData;
  5298. this.$cookies.set("search",this.mapZjdTeAll);
  5299. setTimeout(() => {
  5300. this.$router.push({path:'/homesteadSurvey/add'});
  5301. }, 500);
  5302. });
  5303. }else{
  5304. this.$toast("无数据请检查后进入核查页面");
  5305. }
  5306. },
  5307. //地图查询
  5308. toggleSearch() {
  5309. $("#query").trigger("click");
  5310. },
  5311. //
  5312. checkAllArray(value){
  5313. if(this.checked.length<3){
  5314. this.$refs.checkboxGroup.toggleAll(true);
  5315. }else{
  5316. this.$refs.checkboxGroup.toggleAll(false);
  5317. }
  5318. },
  5319. //筛选//全选
  5320. checkAll(val) {
  5321. this.$refs.checkboxGroup.value.toggleAll(true);
  5322. return;
  5323. let checkedCount = this.CheckedAllArr.length
  5324. if (val) {
  5325. //全选
  5326. this.CheckedAllArr = this.dataList.map(item => item.id)
  5327. } else{
  5328. //取消全选
  5329. if (checkedCount === this.dataList.length) {
  5330. //如果不增加这个条件判断点击某一项时会全部取消
  5331. this.CheckedAllArr = []
  5332. }
  5333. }
  5334. },
  5335. //单选
  5336. handleChecked(value) {
  5337. // this.checkAllFlag = this.CheckedAllArr.length == this.dataList.length;
  5338. if (value.length<3){
  5339. this.checkAllFlag = false;
  5340. }else{
  5341. this.checkAllFlag = true;
  5342. }
  5343. value.indexOf('zjdSx') == -1 ? this.zjdSx = false : this.zjdSx = true;
  5344. value.indexOf('zrzSx') == -1 ? this.zrzSx = false : this.zrzSx = true;
  5345. value.indexOf('fsssSx') == -1 ? this.fsssSx = false : this.fsssSx = true;
  5346. },
  5347. closeSearchBox(){
  5348. this.showSearch = false ;
  5349. var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true)
  5350. document.styleSheets[0].insertRule(
  5351. "@keyframes test2" +
  5352. "{" +
  5353. "0%{bottom: 0px}" +
  5354. "100%{bottom: -" + height + "px;}" +
  5355. "}"
  5356. )
  5357. $('.searchBar_wrap').css({'animation':'test2 0.5s ease-in-out 0s 1 alternate forwards','-webkit-animation':'test2 0.5s ease-in-out 0s 1 alternate forwards'});
  5358. },
  5359. zjdTz(){
  5360. if(this.mapZjdData =="" && this.mapZjdDataTure =="" && this.mapZjdData !=undefined){
  5361. this.mapZjdTeAll.active =1;
  5362. this.mapZjdTeAll.mapZjdAData.theGeom =this.htZjdZrzFsss;
  5363. this.mapZjdTeAll.mapZjdAData.deptId = this.$cookies.get("item").deptId;
  5364. this.$cookies.set("search",this.mapZjdTeAll);
  5365. this.$router.push({path:'/homesteadSurvey/add'});
  5366. }else {
  5367. this.$toast("已选择宅基地,请选择自然幢或附属设施按钮");
  5368. }
  5369. },
  5370. zrzTz(){
  5371. if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
  5372. this.mapZjdTeAll.active =3;
  5373. this.mapZjdTeAll.mapZrzAData.theGeom =this.htZjdZrzFsss;
  5374. this.mapZjdTeAll.mapZrzAData.deptId = this.$cookies.get("item").deptId;
  5375. this.$cookies.set("search",this.mapZjdTeAll);
  5376. this.$router.push({path:'/homesteadSurvey/add'});
  5377. }else {
  5378. this.$toast("请先在地图上选择宅基地后,再选择自然幢按钮");
  5379. }
  5380. },
  5381. fsssTz(){
  5382. if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
  5383. this.mapZjdTeAll.active =4;
  5384. this.mapZjdTeAll.mapFsssAData.theGeom =this.htZjdZrzFsss;
  5385. this.mapZjdTeAll.mapFsssAData.deptId = this.$cookies.get("item").deptId;
  5386. this.$cookies.set("search",this.mapZjdTeAll);
  5387. this.$router.push({path:'/homesteadSurvey/add'});
  5388. }else {
  5389. this.$toast("请先在地图上选择宅基地后,再选择附属设施按钮");
  5390. }
  5391. },
  5392. //绘图重置清除之前图层
  5393. deleteHistory(){
  5394. $("#deleteHistory").trigger("click");
  5395. }
  5396. },
  5397. }
  5398. </script>
  5399. <style scoped lang="scss">
  5400. /deep/ .van-swipe-cell__wrapper{
  5401. margin-right:-3px;
  5402. }
  5403. .hzlxBtn{
  5404. font-size: 0.3rem;
  5405. display: inline-block;
  5406. padding: 2% 0;
  5407. border-radius: 30PX;
  5408. color: #FFF;
  5409. margin-right: 2%;
  5410. width: 30%;
  5411. &:last-child{
  5412. margin: 0;
  5413. }
  5414. }
  5415. .van-cell__title{
  5416. flex:2
  5417. }
  5418. .bannerBg{
  5419. width: 100%;
  5420. color:#fff;
  5421. /*padding:10px;*/
  5422. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  5423. }
  5424. .van-hairline--bottom::after {
  5425. border-bottom-width: 0;
  5426. }
  5427. .activeBtn{
  5428. background:#fff;
  5429. height:50px;
  5430. border-radius:25px;
  5431. color:#7AC943;
  5432. line-height:50px;
  5433. text-align:center;
  5434. font-size:20px;
  5435. width: 26%;
  5436. margin:0 10px;
  5437. box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16);
  5438. }
  5439. .disactiveBtn{
  5440. background:rgba(255,255,255,.4);
  5441. height:50px;
  5442. border-radius:25px;
  5443. color:#fff;
  5444. line-height:50px;
  5445. text-align:center;
  5446. font-size:20px;
  5447. width: 26%;
  5448. margin:0 10px;
  5449. box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16);
  5450. }
  5451. /*.van-cell__label{*/
  5452. /* color: #969799;*/
  5453. /* font-size: 12px;*/
  5454. /* line-height: 20px;*/
  5455. /* margin:0*/
  5456. /*}*/
  5457. .map_area {
  5458. width: 50vw;
  5459. height: 50vh;
  5460. z-index:1;
  5461. background:#000;
  5462. position: fixed;
  5463. left: 0;
  5464. top: 0;
  5465. }
  5466. .van-field__label{
  5467. width:50%;
  5468. }
  5469. .rightZoom_wrap {
  5470. position: absolute;
  5471. right: 3%;
  5472. top: 35%;
  5473. margin-top: -200px;
  5474. background: #fff;
  5475. margin-bottom: 16px;
  5476. border-radius: 10px;
  5477. text-align: center;
  5478. padding: 15px 20px;
  5479. img{
  5480. margin: 0 auto;
  5481. }
  5482. .amplification {
  5483. line-height: 1;
  5484. font-size: 18px;
  5485. text-align: center;
  5486. margin-top: 5px;
  5487. }
  5488. }
  5489. .mapZoom_wrap {
  5490. position: absolute;
  5491. right: 3%;
  5492. top: 50%;
  5493. margin-top: -200px;
  5494. background: #fff;
  5495. margin-bottom: 16px;
  5496. border-radius: 10px;
  5497. padding: 0px 20px;
  5498. div{
  5499. padding: 15px 0;
  5500. border-bottom: 1px solid #C9C9C9;
  5501. &:last-child{
  5502. border: none;
  5503. }
  5504. p{
  5505. margin-top: 5px;
  5506. }
  5507. }
  5508. .qtMap {
  5509. font-size: 18px;
  5510. text-align: center;
  5511. line-height: 1;
  5512. }
  5513. .clMap {
  5514. font-size: 18px;
  5515. text-align: center;
  5516. line-height: 1;
  5517. }
  5518. .hcMap {
  5519. font-size: 18px;
  5520. text-align: center;
  5521. line-height: 1;
  5522. }
  5523. .htMap {
  5524. font-size: 18px;
  5525. text-align: center;
  5526. line-height: 1;
  5527. }
  5528. .dwMap {
  5529. font-size: 18px;
  5530. text-align: center;
  5531. line-height: 1;
  5532. }
  5533. }
  5534. .rightIcon_wrap {
  5535. position: absolute;
  5536. right: 16px;
  5537. bottom: 160px;
  5538. .selectionIcon_wrap {
  5539. width: 74px;
  5540. background: #fff;
  5541. border-radius: 10px;
  5542. padding: 14px 0;
  5543. .icon {
  5544. width: 38px;
  5545. height: 38px;
  5546. background: url("../../assets/images/homestead/selection_icon.png")
  5547. no-repeat;
  5548. background-size: 100% 100%;
  5549. margin: 0 auto 4px;
  5550. }
  5551. .text {
  5552. font-size: 24px;
  5553. text-align: center;
  5554. }
  5555. }
  5556. .positioning_wrap {
  5557. width: 74px;
  5558. background: #fff;
  5559. margin-bottom: 16px;
  5560. border-radius: 10px;
  5561. height: 74px;
  5562. display: flex;
  5563. justify-content: center; /* 相对父元素水平居中 */
  5564. align-items: center; /* 子元素相对父元素垂直居中*/
  5565. .icon {
  5566. width: 38px;
  5567. height: 38px;
  5568. background: url("../../assets/images/homestead/positioning_icon.png")
  5569. no-repeat;
  5570. background-size: 100% 100%;
  5571. margin: 0 auto;
  5572. }
  5573. }
  5574. }
  5575. .homesteadList_wrap {
  5576. // display: none;
  5577. display: flex;
  5578. position: absolute;
  5579. right: -200px;
  5580. top: 0px;
  5581. bottom: 0px;
  5582. width: 300px;
  5583. background: #fff;
  5584. z-index: 999;
  5585. border-top-left-radius: 15px;
  5586. border-bottom-left-radius: 15px;
  5587. flex-direction: column;
  5588. .noInfo_data {
  5589. font-size: 28px;
  5590. text-align: center;
  5591. height: 300px;
  5592. line-height: 300px;
  5593. color: #666;
  5594. }
  5595. .title_m {
  5596. color: #333;
  5597. line-height: 36px;
  5598. padding: 20px 40px 22px;
  5599. .name {
  5600. font-size: 36px;
  5601. line-height: 42px;
  5602. height: 42px;
  5603. }
  5604. .more_icon {
  5605. width: 38px;
  5606. height: 38px;
  5607. background: url("../../assets/images/homestead/selectionNext_icon.png")
  5608. no-repeat;
  5609. float: right;
  5610. margin-top: 2px;
  5611. }
  5612. }
  5613. .main_m {
  5614. overflow-y: auto;
  5615. padding: 10px 0;
  5616. // height: 300px;
  5617. flex: 1;
  5618. .flex_block {
  5619. height: 70px;
  5620. display: flex;
  5621. // justify-content: center; /* 相对父元素水平居中 */
  5622. align-items: center; /* 子元素相对父元素垂直居中 */
  5623. padding: 0 40px;
  5624. &.active {
  5625. box-shadow: 0px 0px 10px rgba(24, 45, 51, 0.5);
  5626. }
  5627. .name_text {
  5628. font-size: 28px;
  5629. flex: 0.5;
  5630. overflow: hidden; /*超出部分隐藏*/
  5631. white-space: nowrap; /*不换行*/
  5632. text-overflow: ellipsis; /*超出部分文字以...显示*/
  5633. }
  5634. .square_text {
  5635. font-size: 28px;
  5636. flex: 0.4;
  5637. }
  5638. .operation_mian {
  5639. flex: 0 0 150px;
  5640. .describe {
  5641. font-size: 20px;
  5642. padding: 6px 5px;
  5643. float: right;
  5644. color: #fff;
  5645. border-radius: 30px;
  5646. overflow: hidden;
  5647. text-overflow: ellipsis;
  5648. white-space: nowrap;
  5649. max-width: 150px;
  5650. &.yph {
  5651. background: #b026ff;
  5652. }
  5653. &.dlzdph {
  5654. background: #ff6f36;
  5655. }
  5656. &.ylz {
  5657. background: #7fff4c;
  5658. }
  5659. &.dlz {
  5660. background: rgb(255, 232, 76);
  5661. }
  5662. &.ylzdph {
  5663. background: #ff7dd0;
  5664. }
  5665. &.zy {
  5666. background: rgb(100, 30, 100);
  5667. }
  5668. &.xz {
  5669. background: rgb(60, 100, 180);
  5670. }
  5671. &.chdb {
  5672. background: #fe0303;
  5673. }
  5674. }
  5675. }
  5676. }
  5677. }
  5678. .footerBtn_wrap {
  5679. flex: 0 0 90px;
  5680. display: flex;
  5681. justify-content: center; /* 相对父元素水平居中 */
  5682. align-items: center; /* 子元素相对父元素垂直居中 */
  5683. .options {
  5684. flex: 1;
  5685. font-size: 38px;
  5686. display: flex;
  5687. justify-content: center; /* 相对父元素水平居中 */
  5688. align-items: center; /* 子元素相对父元素垂直居中 */
  5689. height: 90px;
  5690. &:first-child {
  5691. border-bottom-left-radius: 15px;
  5692. }
  5693. &.active {
  5694. background: #3cbf5b;
  5695. color: #fff;
  5696. }
  5697. }
  5698. }
  5699. }
  5700. .checkbox {
  5701. width: 200px;
  5702. margin: 30px auto;
  5703. }
  5704. .thead-checkbox {
  5705. background-color: lightgray;
  5706. }
  5707. .item-checkbox {
  5708. border: 1px solid darkgray;
  5709. }
  5710. .van-sticky{position: fixed;top: 0;right: 0; left: 0;z-index: 9999;}
  5711. .searchBar_wrap {
  5712. // display: none;
  5713. position: fixed;
  5714. left: 0;
  5715. bottom: 0;
  5716. width: 100%;
  5717. padding: 0px 16px 0px 13px;
  5718. background: #fff;
  5719. border-top-left-radius: 15px;
  5720. border-top-right-radius: 15px;
  5721. z-index: 9;
  5722. .searchBox{
  5723. height: 40vh;
  5724. overflow-y: scroll;
  5725. .van-cell{
  5726. /*&:first-child{*/
  5727. /* box-shadow: none;*/
  5728. /* margin:0;*/
  5729. /*}*/
  5730. box-shadow: 0px 0px 5px #cccccc;
  5731. border-radius: 15PX;
  5732. width: 98%;
  5733. margin: 0 auto;
  5734. margin-bottom: 0.35rem;
  5735. &:first-child{
  5736. margin-top: 5px;
  5737. }
  5738. }
  5739. .van-cell__title{
  5740. flex: 0.8;
  5741. p{
  5742. color: rgb(34, 183, 242);
  5743. .van-icon{
  5744. vertical-align: middle;
  5745. }
  5746. span{
  5747. vertical-align: middle;
  5748. &:nth-child(2){
  5749. overflow: hidden;
  5750. white-space: nowrap;
  5751. text-overflow: ellipsis;
  5752. display: inline-block;
  5753. width: 60%;
  5754. }
  5755. &:nth-child(3){
  5756. font-size: 0.25rem;
  5757. border-radius: 5PX;
  5758. padding: 5PX 15PX;
  5759. margin-left: 5%;
  5760. }
  5761. }
  5762. }
  5763. }
  5764. .van-cell__value{
  5765. flex: 0.2;
  5766. p{
  5767. font-size: 0.25rem;
  5768. display: inline-block;
  5769. border-radius: 1rem;
  5770. line-height: 1;
  5771. padding: 10%;
  5772. }
  5773. }
  5774. }
  5775. .actionBar_wrap {
  5776. display: flex;
  5777. position: absolute;
  5778. top: 0;
  5779. left: 0;
  5780. width: 100%;
  5781. height: 100%;
  5782. background: #fff;
  5783. border-top-left-radius: 15px;
  5784. border-top-right-radius: 15px;
  5785. .m_list {
  5786. flex: 1;
  5787. display: flex;
  5788. justify-content: center; /* 相对父元素水平居中 */
  5789. align-items: center; /* 子元素相对父元素垂直居中 */
  5790. .tensile,
  5791. .positioning,
  5792. .spacing,
  5793. .scale {
  5794. width: 76px;
  5795. height: 72px;
  5796. background: #ffffff;
  5797. border-radius: 8px;
  5798. box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.16);
  5799. .icon {
  5800. width: 76px;
  5801. height: 72px;
  5802. }
  5803. &.active {
  5804. background: #333;
  5805. &.tensile {
  5806. .icon {
  5807. background: url("../../assets/images/homestead/operation/tensile_active.png")
  5808. center center no-repeat;
  5809. background-size: 38px 50px;
  5810. }
  5811. }
  5812. &.positioning {
  5813. .icon {
  5814. background: url("../../assets/images/homestead/operation/positioning_active.png")
  5815. center center no-repeat;
  5816. background-size: 38px 48px;
  5817. }
  5818. }
  5819. &.spacing {
  5820. .icon {
  5821. background: url("../../assets/images/homestead/operation/spacing_active.png")
  5822. center center no-repeat;
  5823. background-size: 46px 46px;
  5824. }
  5825. }
  5826. &.scale {
  5827. .icon {
  5828. background: url("../../assets/images/homestead/operation/scale_active.png")
  5829. center center no-repeat;
  5830. background-size: 48px 48px;
  5831. }
  5832. }
  5833. }
  5834. }
  5835. .tensile {
  5836. .icon {
  5837. background: url("../../assets/images/homestead/operation/tensile.png")
  5838. center center no-repeat;
  5839. background-size: 38px 50px;
  5840. }
  5841. }
  5842. .positioning {
  5843. .icon {
  5844. background: url("../../assets/images/homestead/operation/positioning.png")
  5845. center center no-repeat;
  5846. background-size: 38px 48px;
  5847. }
  5848. }
  5849. .spacing {
  5850. .icon {
  5851. background: url("../../assets/images/homestead/operation/spacing.png")
  5852. center center no-repeat;
  5853. background-size: 46px 46px;
  5854. }
  5855. }
  5856. .scale {
  5857. .icon {
  5858. background: url("../../assets/images/homestead/operation/scale.png")
  5859. center center no-repeat;
  5860. background-size: 48px 48px;
  5861. }
  5862. }
  5863. .closes {
  5864. background: url("../../assets/images/homestead/searchBar_close.png")
  5865. no-repeat;
  5866. background-size: 100% 100%;
  5867. width: 72px;
  5868. height: 72px;
  5869. &.gray {
  5870. background: url("../../assets/images/homestead/searchBar_close_gray.png")
  5871. no-repeat;
  5872. background-size: 100% 100%;
  5873. }
  5874. }
  5875. .correct {
  5876. background: url("../../assets/images/homestead/searchBar_save.png")
  5877. no-repeat;
  5878. background-size: 100% 100%;
  5879. width: 72px;
  5880. height: 72px;
  5881. }
  5882. }
  5883. }
  5884. .searchBar_area {
  5885. flex: 1;
  5886. height: 80px;
  5887. background: #f1f1f1;
  5888. border: 1px solid #dfdfdf;
  5889. border-radius: 10px;
  5890. padding: 0 28px;
  5891. display: flex;
  5892. .bar_icon {
  5893. width: 50px;
  5894. height: 50px;
  5895. background: url("../../assets/images/homestead/searchBar_bar.png")
  5896. center center no-repeat;
  5897. background-size: 100% 100%;
  5898. margin-top: 14px;
  5899. margin-right: 15px;
  5900. }
  5901. .bar_ipt {
  5902. flex: 1;
  5903. input {
  5904. width: 100%;
  5905. height: 100%;
  5906. background: none;
  5907. border: 0 none;
  5908. font-size: 32px;
  5909. }
  5910. }
  5911. .bar_text {
  5912. flex: 0 0 80px;
  5913. font-size: 32px;
  5914. color: #333333;
  5915. font-family: PingFang SC, PingFang SC-Regular;
  5916. font-weight: 400;
  5917. display: flex;
  5918. justify-content: center; /* 相对父元素水平居中 */
  5919. align-items: center; /* 子元素相对父元素垂直居中 */
  5920. }
  5921. }
  5922. .searchBar_more {
  5923. flex: 0 0 80px;
  5924. background: url("../../assets/images/homestead/searchBar_add.png") center
  5925. center no-repeat;
  5926. background-size: 80% 80%;
  5927. margin-left: 15px;
  5928. }
  5929. }
  5930. </style>