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

list.vue 236 KiB

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