移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list.vue 202 KiB

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