移动端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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