|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095 |
- <template>
- <div class="app-container" :style="{ height: windowHeight + 'px' }">
- <div style="display: none">
- <select id="zhen"></select>
- <select id="cun" autofocus></select>
- <input id="texiao_fang" type="button" value="特效农房" />
- <input id="texiao_di" type="button" value="特效农地" />
- <input id="qingchu" type="button" value="清除" />
- <button id="drawPolygon">绘制地图</button>
- <button id="drawRemove">清除画图</button>
- <button id="drawReset">还原之前图层</button>
- </div>
- <div class="map_area" id="mapWrap"></div>
- <!--列表 定位-->
- <div class="rightIcon_wrap">
- <!-- <div class="positioning_wrap">
- <div class="icon"></div>
- </div> -->
- <div class="selectionIcon_wrap" @click="selectionPush">
- <div class="icon"></div>
- <div class="text">列表</div>
- </div>
- </div>
- <van-overlay :show="selectionIconShow" @click="homesteadListShrink" />
-
- <!--放大缩小-->
- <div class="rightZoom_wrap">
- <div class="amplification" ref="sliderBig"></div>
- <div class="narrow" ref="sliderSmall"></div>
- </div>
-
- <!--列表拉取详情-->
- <div class="homesteadList_wrap">
- <div class="main_m" v-if="statusList == 0">
- <div class="title_m">
- <div class="more_icon" @click="homesteadListShrink"></div>
- <div class="name">农房列表</div>
- </div>
- <!--1-->
- <div
- class="flex_block"
- v-for="(items, index) in hcBottonHouseArr"
- :key="index"
- :class="{ active: selectChooseOrder == index }"
- @click="housingSerial(items, index)"
- >
- <div class="name_text">{{ items.name }}</div>
- <div class="square_text">{{ items.mj }}㎡</div>
- <div class="operation_mian">
- <div
- class="describe"
- :class="[
- items.xzqk == '已盘活' ? 'yph' : '',
- items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
- items.xzqk == '已流转' ? 'ylz' : '',
- items.xzqk == '待流转' ? 'dlz' : '',
- items.xzqk == '已流转待盘活' ? 'ylzdph' : '',
- ]"
- >
- {{ items.xzqk }}
- </div>
- </div>
- </div>
-
- <div v-if="hcBottonHouseArr.length == 0" class="noInfo_data">
- 暂无农房信息
- </div>
- </div>
- <div class="main_m" v-if="statusList == 1">
- <div class="title_m">
- <div class="more_icon" @click="homesteadListShrink"></div>
- <div class="name">农地列表</div>
- </div>
- <!--1-->
- <div
- class="flex_block"
- v-for="(items, index) in hcBottonLandArr"
- :key="index"
- :class="{ active: selectChooseOrder == index }"
- @click="housingSerial(items, index)"
- >
- <div class="name_text">{{ items.name }}</div>
- <div class="square_text">{{ items.mj }}亩</div>
- <div class="operation_mian">
- <div
- class="describe"
- :class="[
- items.xzqk == '已盘活' ? 'yph' : '',
- items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
- items.xzqk == '已流转' ? 'ylz' : '',
- items.xzqk == '待流转' ? 'dlz' : '',
- ]"
- >
- {{ items.xzqk }}
- </div>
- </div>
- </div>
- <div v-if="hcBottonLandArr.length == 0" class="noInfo_data">
- 暂无农地信息
- </div>
- </div>
-
- <!-- //待租列表 房
- hcBottonHouseArr: [],
- //待租列表 地
- hcBottonLandArr: [], -->
- <div class="footerBtn_wrap">
- <div
- class="options"
- :class="{ active: statusList == 0 }"
- @click="housingTypes('0')"
- >
- 农房
- </div>
- <div
- class="options"
- :class="{ active: statusList == 1 }"
- @click="housingTypes('1')"
- >
- 农地
- </div>
- </div>
- </div>
-
- <!--选择地址-->
- <div class="address_wrap">
- <div class="address_item">
- <div class="portrait cun" @click="villageVisbileFun">村</div>
- <div class="name" @click="villageVisbileFun">
- {{ villageDataObj.deptName }}
- </div>
- </div>
- </div>
- <van-popup v-model="villageVisbile" round position="bottom">
- <van-cascader
- v-model="villageValue"
- title="请选择所在村"
- :options="hcAreaInfoOption"
- @close="hcAreaInfoClose"
- @finish="hcAreaInfoFinish"
- active-color="#1989fa"
- :field-names="hcAreaInfoFieldName"
- />
- </van-popup>
-
- <!--搜索栏目-->
- <div class="searchBar_wrap">
- <div class="actionBar_wrap" v-if="searchBarOperVisbile">
- <!-- <div class="m_list">
- <div class="positioning">
- <div class="icon"></div>
- </div>
- </div>
- <div class="m_list">
- <div class="spacing">
- <div class="icon"></div>
- </div>
- </div>
- <div class="m_list">
- <div class="scale">
- <div class="icon"></div>
- </div>
- </div> -->
-
- <div class="m_list">
- <div class="closes gray" @click="searchBarOperFun('false')">
- <div class="icon"></div>
- </div>
- </div>
- <div class="m_list">
- <div
- class="tensile"
- :class="{ active: draw.drawMapPolygon }"
- @click="drawMapPolygonFun"
- >
- <div class="icon"></div>
- </div>
- </div>
- <div class="m_list" @click="farmlandEditSwitchFun">
- <div class="correct"></div>
- </div>
- </div>
- <div class="searchBar_area">
- <div class="bar_icon"></div>
- <div class="bar_ipt">
- <input
- type="text"
- v-model="seachText"
- placeholder="请输入宗地或权利人信息"
- />
- </div>
- <div id="query" class="bar_text">搜索</div>
- </div>
- <div class="searchBar_more" @click="searchBarOperFun('true')"></div>
- </div>
- <!--点击房地-显示的搜索--->
- <div class="landHomestead_wrap">
- <div class="landHomestead_search">
- <div class="bar_icon"></div>
- <div class="bar_ipt">
- <input
- type="text"
- v-model="seachText"
- placeholder="请输入宗地或权利人信息"
- />
- </div>
- <div class="bar_text" @click="toggleSearch">搜索</div>
- </div>
- <div class="landHomestead_body">
- <!--0-农房-->
- <div class="body_flex" v-if="farmhouseStatus == 0">
- <div class="attribute" @click="houseLandLookInfo('show', 'house')">
- <div class="names">{{ houseInfoList.fwsyrmc }}</div>
- <div class="address">{{ houseInfoList.dz }}</div>
- <div class="nature">性质:{{ houseInfoList.tdxz }}</div>
- </div>
- <div class="distance" @click="houseLandLookInfo('show', 'house')">
- <div class="size">{{ houseInfoList.xh }}</div>
- <div class="probably">大约{{ houseInfoList.jzmj }}㎡</div>
- </div>
- <div class="others">
- <div class="information">
- <!-- <div
- class="location"
- @click="landHomeSerial('house', houseInfoList)"
- ></div> -->
- <div class="status_text">{{ houseInfoList.xzqk }}</div>
- </div>
- <div class="editor">
- <div class="editor_icon" @click="editnfdInfo"></div>
- </div>
- </div>
- </div>
- <!--1-农地-->
- <div class="body_flex" v-if="farmhouseStatus == 1">
- <div class="attribute" @click="houseLandLookInfo('show', 'land')">
- <div class="names">{{ landInfoList.syrmc }}</div>
- <div class="address">{{ landInfoList.cm }}</div>
- <div class="nature">性质:{{ landInfoList.nydlx }}</div>
- </div>
- <div class="distance" @click="houseLandLookInfo('show', 'land')">
- <div class="size">{{ landInfoList.xh }}</div>
- <div class="probably">大约{{ landInfoList.mj }}㎡</div>
- </div>
- <div class="others">
- <div class="information">
- <!-- <div
- class="location"
- @click="landHomeSerial('land', landInfoList)"
- ></div> -->
- <div class="status_text">{{ landInfoList.xzqk }}</div>
- </div>
- <div class="editor">
- <div class="editor_icon" @click="editnfdInfo"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="info" style="display: none"></div>
- <!--房地全部信息展示-->
- <div
- class="landHomesteadDetails_wrap"
- v-show="landHomesteadDetailsVisibile"
- >
- <!---农房-->
- <div class="content_mian" v-if="farmhouseStatus == 0">
- <!--内容-->
- <div class="serial_flex">
- <div class="number">
- 农房编号<span>{{ houseInfoLookList.xh }}</span>
- </div>
- <div class="localhref" @click="houseLandLookInfo('hide')"></div>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">房屋所有人名称</span
- ><span class="content">{{ houseInfoLookList.fwsyrmc }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">村名</span
- ><span class="content">{{ houseInfoLookList.cm }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">地址</span
- ><span class="content">{{ houseInfoLookList.dz }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">是否有审批手续</span
- ><span class="content">{{ houseInfoLookList.sfyspsx }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">房屋所有权证号</span
- ><span class="content">{{ houseInfoLookList.fwsyqh }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">建筑面积</span
- ><span class="content">大约{{ houseInfoLookList.jzmj }}㎡</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">土地证号</span
- ><span class="content">{{ houseInfoLookList.tdzh }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">土地性质</span
- ><span class="content">{{ houseInfoLookList.tdxz }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">土地面积</span
- ><span class="content">大约{{ houseInfoLookList.tdmj }}㎡</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">现状情况</span
- ><span class="content">{{ houseInfoLookList.xzqk }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">是否有流转意向</span
- ><span class="content">{{ houseInfoLookList.xzfwsfylzy }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">租赁人</span
- ><span class="content">{{ houseInfoLookList.zlrxm }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">租赁剩余年限</span
- ><span class="content">{{ houseInfoLookList.zlsynx }}年</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">租赁合同截止日期</span
- ><span class="content">{{ houseInfoLookList.zlhtjzrq }}</span>
- </div>
- <!--上传图片-->
- <div class="uploadPictures_block">
- <div class="statusQuo">
- <div
- class="picture"
- v-if="houseInfoLookList.behindHouse == ''"
- ></div>
- <div class="picture" v-if="houseInfoLookList.behindHouse != ''">
- <img :src="houseInfoLookList.behindHouse" />
- </div>
- <div class="describe">现<br />状<br />图<br />片</div>
- </div>
- <div class="statusQuo">
- <div
- class="picture"
- v-if="houseInfoLookList.frontHouse == ''"
- ></div>
- <div class="picture" v-if="houseInfoLookList.frontHouse != ''">
- <img :src="houseInfoLookList.frontHouse" />
- </div>
- <div class="describe">历<br />史<br />图<br />片</div>
- </div>
- </div>
- <!--编辑-->
- <div class="editor_block">
- <div class="editor_icon" @click="editnfdInfo"></div>
- </div>
- </div>
- <!---农地-->
- <div class="content_mian" v-else-if="farmhouseStatus == 1">
- <!--内容-->
- <div class="serial_flex">
- <div class="number">
- 农地编号<span>{{ landInfoLookList.xh }}</span>
- </div>
- <div class="localhref" @click="houseLandLookInfo('hide')"></div>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">农地使用人名称</span
- ><span class="content">{{ landInfoLookList.syrmc }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">村名</span
- ><span class="content">{{ landInfoLookList.cm }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">是否有流转意向</span
- ><span class="content">{{ landInfoLookList.sfylzyx }}</span>
- </div>
-
- <!--1-->
- <div class="flex_block">
- <span class="describe">土地面积</span
- ><span class="content">大约{{ landInfoLookList.mj }}亩</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">农用地类型</span
- ><span class="content">大约{{ landInfoLookList.nydlx }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">现状情况</span
- ><span class="content">{{ landInfoLookList.xzqk }}</span>
- </div>
-
- <!--1-->
- <div class="flex_block">
- <span class="describe">承包人</span
- ><span class="content">{{ landInfoLookList.cbrmc }}</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">流转剩余年限</span
- ><span class="content">{{ landInfoLookList.lzsynx }}年</span>
- </div>
- <!--1-->
- <div class="flex_block">
- <span class="describe">流转合同截止日期</span
- ><span class="content">{{ landInfoLookList.lzhtjzrq }}</span>
- </div>
-
- <!--上传图片-->
- <div class="uploadPictures_block">
- <div class="statusQuo">
- <div class="picture" v-if="landInfoLookList.behindland == ''"></div>
- <div class="picture" v-if="landInfoLookList.behindland != ''">
- <img :src="landInfoLookList.behindland" />
- </div>
- <div class="describe">现<br />状<br />图<br />片</div>
- </div>
- <div class="statusQuo">
- <div class="picture" v-if="landInfoLookList.frontland == ''"></div>
- <div class="picture" v-if="landInfoLookList.frontland != ''">
- <img :src="landInfoLookList.frontland" />
- </div>
- <div class="describe">历<br />史<br />图<br />片</div>
- </div>
- </div>
- <!--编辑-->
- <div class="editor_block">
- <div class="editor_icon" @click="editnfdInfo"></div>
- </div>
- </div>
- </div>
- <!--房地全部信息编辑-->
- <van-overlay
- :show="landHomesteadEditVisbile"
- @click="landHomesteadEditCancel"
- />
- <div
- class="landHomesteadEdit_wrap"
- v-show="landHomesteadEditVisbile"
- style="bottom: 0"
- >
- <div class="content_mian" ref="landHomesteadEditWrap">
- <div class="info_title">
- {{ this.farmhouseStatus == 0 ? "录入宗地信息" : "录入农地信息" }}
- </div>
- <!-- 农房 -->
- <div
- class="flex_main"
- v-if="this.farmhouseStatus == 0"
- :style="{ height: landHomesteadEditWrapHeight + 'px' }"
- >
- <div class="flex_block">
- <div class="number_s50 mr50">
- <div class="title_m">农房编号</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.xh"
- placeholder="农房编号"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s50">
- <div class="title_m">房屋所有人名称</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.fwsyrmc"
- placeholder="房屋所有人名称"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s60 mr50">
- <div class="title_m">地址</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.dz"
- placeholder="地址"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s40">
- <div class="title_m">土地性质</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="houseInfoList.tdxz"
- readonly
- clickable
- name="picker"
- placeholder="土地性质"
- class="landHomesteadEdit_input"
- @click="tdxzOptionsVibile = true"
- />
- <van-popup v-model="tdxzOptionsVibile" position="bottom">
- <van-picker
- show-toolbar
- :columns="tdxzOptions"
- value-key="dictLabel"
- @confirm="tdxzOptionsFun"
- @cancel="tdxzOptionsVibile = false"
- />
- </van-popup>
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s35 mr50">
- <div class="title_m">是否有审批手续</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="houseInfoList.sfyspsx"
- readonly
- clickable
- name="picker"
- placeholder="审批手续"
- class="landHomesteadEdit_input"
- @click="xfCirculationVisbile = true"
- />
- <van-popup v-model="xfCirculationVisbile" position="bottom">
- <van-picker
- show-toolbar
- :columns="xfApprovalOptions"
- @confirm="xfCirculationFun"
- @cancel="xfCirculationVisbile = false"
- />
- </van-popup>
- </div>
- </div>
- <div class="number_s35 mr50">
- <div class="title_m">建筑面积</div>
- <div class="input_m about">
- <span class="about_symbol">≈</span>
- <van-field
- v-model="houseInfoList.jzmj"
- placeholder="建筑面积"
- type="number"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s30">
- <div class="title_m">现状情况</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <!-- -->
- <van-field
- v-model="houseInfoList.xzqk"
- readonly
- clickable
- name="picker"
- placeholder="现状情况"
- class="landHomesteadEdit_input"
- @click="xzqkOptionsVisbile = true"
- />
- <van-popup v-model="xzqkOptionsVisbile" position="bottom">
- <van-picker
- show-toolbar
- :columns="xzqkOptions"
- @confirm="xzqkOptionsFun"
- value-key="dictLabel"
- @cancel="xzqkOptionsVisbile = false"
- />
- </van-popup>
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s50 mr50">
- <div class="title_m">房屋所有权证号</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.fwsyqh"
- placeholder="房屋所有权证号"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s50">
- <div class="title_m">土地证号</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.tdzh"
- placeholder="土地证号"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s35 mr50">
- <div class="title_m">房屋类型</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="houseInfoList.tdfl"
- readonly
- clickable
- name="picker"
- placeholder="房屋类型"
- class="landHomesteadEdit_input"
- @click="fwdlxOptionsVibile = true"
- />
- <van-popup v-model="fwdlxOptionsVibile" position="bottom">
- <van-picker
- show-toolbar
- :columns="fwdlxOptions"
- value-key="dictLabel"
- @confirm="fwdlxOptionsFun"
- @cancel="fwdlxOptionsVibile = false"
- />
- </van-popup>
- </div>
- </div>
-
- <div class="number_s35 mr50">
- <div class="title_m">土地面积</div>
- <div class="input_m about">
- <span class="about_symbol">≈</span>
- <van-field
- v-model="houseInfoList.tdmj"
- placeholder="土地面积"
- type="number"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s30">
- <div class="title_m">是否有流转意向</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="houseInfoList.xzfwsfylzy"
- readonly
- clickable
- name="picker"
- placeholder="是否有流转意向"
- class="landHomesteadEdit_input"
- @click="xflzCirculationVisbile = true"
- />
- <van-popup v-model="xflzCirculationVisbile" position="bottom">
- <van-picker
- show-toolbar
- :columns="xfCirculationOptions"
- @confirm="xflzCirculationFun"
- @cancel="xflzCirculationVisbile = false"
- />
- </van-popup>
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s50 mr50">
- <div class="title_m">租赁人</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.zlrxm"
- placeholder="租赁人"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s50">
- <div class="title_m">租赁年限</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.zlsynx"
- placeholder="租赁年限"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s100">
- <div class="title_m">租赁合同截止日期</div>
- <div class="input_m">
- <van-field
- v-model="houseInfoList.zlhtjzrq"
- placeholder="流转合同截止日期"
- class="landHomesteadEdit_input"
- readonly
- @click="houseHomesteadEditcalendar = true"
- />
- <van-calendar
- v-model="houseHomesteadEditcalendar"
- @confirm="houseHomesteadEdConfirm"
- :max-date="new Date(2025, 0, 31)"
- />
- </div>
- </div>
- </div>
- <!--2-->
- <div class="uploadPicturesFlex_block">
- <div class="title_m">上传图片</div>
- <div class="main_m">
- <van-uploader
- v-model="nfAddfileList"
- :after-read="nfAddimgonRead"
- :max-count="1"
- accept="image/gif, image/jpeg, image/png"
- />
- </div>
- </div>
- </div>
- <!-- 农地 -->
- <div
- class="flex_main"
- v-else-if="this.farmhouseStatus == 1"
- :style="{ height: landHomesteadEditWrapHeight + 'px' }"
- >
- <!--1-->
- <div class="flex_block">
- <div class="number_s50 mr50">
- <div class="title_m">农地编号</div>
- <div class="input_m">
- <van-field
- v-model="landInfoList.xh"
- placeholder="农地编号"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s50">
- <div class="title_m">农地使用人名称</div>
- <div class="input_m">
- <van-field
- v-model="landInfoList.syrmc"
- placeholder="农地使用人名称"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- </div>
- <!--1-->
- <div class="flex_block">
- <div class="number_s60 mr50">
- <div class="title_m">现状情况</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="landInfoList.xzqk"
- readonly
- clickable
- name="picker"
- placeholder="现状情况"
- class="landHomesteadEdit_input"
- @click="ndxzqkOptionsVisbile = true"
- />
- <van-popup v-model="ndxzqkOptionsVisbile" position="bottom">
- <van-picker
- show-toolbar
- :columns="ndxzqkOptions"
- @confirm="ndxzqkOptionsFun"
- value-key="dictLabel"
- @cancel="ndxzqkOptionsVisbile = false"
- />
- </van-popup>
- </div>
- </div>
- <div class="number_s40">
- <div class="title_m">农用地类型</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="landInfoList.nydlx"
- readonly
- clickable
- name="picker"
- placeholder="农用地类型"
- class="landHomesteadEdit_input"
- @click="nydlxOptionsVibile = true"
- />
- <van-popup v-model="nydlxOptionsVibile" position="bottom">
- <van-picker
- show-toolbar
- :columns="nydlxOptions"
- value-key="dictLabel"
- @confirm="nydlxOptionsFun"
- @cancel="nydlxOptionsVibile = false"
- />
- </van-popup>
- </div>
- </div>
- </div>
-
- <!--1-->
- <div class="flex_block">
- <div class="number_s50 mr50">
- <div class="title_m">土地面积</div>
- <div class="input_m about">
- <span class="about_symbol">≈</span>
- <van-field
- v-model="landInfoList.mj"
- placeholder="土地面积"
- type="number"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s50">
- <div class="title_m">是否有流转意向</div>
- <div class="input_m select">
- <i class="dropDown_icon"></i>
- <van-field
- v-model="landInfoList.sfylzyx"
- readonly
- clickable
- name="picker"
- placeholder="是否有流转意向"
- class="landHomesteadEdit_input"
- @click="xdlzCirculationVisbile = true"
- />
- <van-popup v-model="xdlzCirculationVisbile" position="bottom">
- <van-picker
- show-toolbar
- :columns="xdCirculationOptions"
- @confirm="xdCirculationOptionsFun"
- @cancel="xdlzCirculationVisbile = false"
- />
- </van-popup>
- </div>
- </div>
- </div>
-
- <!--1-->
- <div class="flex_block">
- <div class="number_s50 mr50">
- <div class="title_m">承包人</div>
- <div class="input_m">
- <van-field
- v-model="landInfoList.cbrmc"
- placeholder="承包人"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- <div class="number_s50">
- <div class="title_m">流转剩余年限</div>
- <div class="input_m">
- <van-field
- v-model="landInfoList.lzsynx"
- placeholder="流转剩余年限"
- class="landHomesteadEdit_input"
- />
- </div>
- </div>
- </div>
-
- <!--1-->
- <div class="flex_block">
- <div class="number_s100">
- <div class="title_m">流转合同截止日期</div>
- <div class="input_m">
- <van-field
- v-model="landInfoList.lzhtjzrq"
- placeholder="流转合同截止日期"
- class="landHomesteadEdit_input"
- readonly
- @click="landHomesteadEditcalendar = true"
- />
- <van-calendar
- v-model="landHomesteadEditcalendar"
- @confirm="landHomesteadEdConfirm"
- :max-date="new Date(2025, 0, 31)"
- />
- </div>
- </div>
- </div>
-
- <!--2-->
- <div class="uploadPicturesFlex_block">
- <div class="title_m">上传图片</div>
- <div class="main_m">
- <van-uploader
- v-model="ndAddfileList"
- :after-read="ndAddimgonRead"
- :max-count="1"
- accept="image/gif, image/jpeg, image/png"
- />
- </div>
- </div>
- </div>
- </div>
- <div class="footer_main">
- <div class="cancel" @click="landHomesteadEditCancel">取消</div>
- <div class="save" @click="landHomesteadEditSave">保存</div>
- </div>
- </div>
- <!--农地农房选择-->
- <div class="farmlandEditSwitch_wrap" v-show="farmlandEditSwitchVisbule">
- <div class="mains">
- <div class="close_btn" @click="farmlandEditFun"></div>
- <div class="farmhouse" @click="addNewPlot('farmhouse')">
- <div class="icons"></div>
- <p class="names">农房</p>
- </div>
- <div class="farmland" @click="addNewPlot('land')">
- <div class="icons"></div>
- <p class="names">农地</p>
- </div>
- </div>
- </div>
- </div>
- </template>
-
- <script>
- import $ from "jquery";
- import {
- hcBottomSearch,
- commonUpload,
- houseAdd,
- landAdd,
- treeselectByUser,
- deptGetId,
- houseEdit,
- landEdit,
- getLand,
- getHouse,
- } from "@/api/homestead/index";
-
- export default {
- name: "homesteadLogin",
- data() {
- return {
- //搜索
- seachText: "",
- selectionIconShow: false,
- //省市区区级list
- hcAreaInfoOption: [],
- //省市区区级显示
- villageVisbile: false,
- //选中的值
- villageValue: "",
- //选中村相关信息
- villageDataObj: {
- deptName: " ", //村名
- },
- hcAreaInfoFieldName: {
- text: "label",
- value: "value",
- children: "children",
- },
- // 待租列表显示
- ishcBotton: false,
- // 待租列表 类型 0 农房 1 农地
- statusList: 0,
- //待租列表 房
- hcBottonHouseArr: [],
- //待租列表 地
- hcBottonLandArr: [],
- //搜索栏目-操作栏显隐
- searchBarOperVisbile: false,
- //地图绘制状态
- draw: {
- drawMapPolygon: false, //绘制地图
- },
- //地图绘制坐标存储
- coordinateList: "",
- //判断新增还是编辑 0 新增 1编辑
- currentType: 0,
- //新建选择农房土地弹窗 显隐
- farmlandEditSwitchVisbule: false, //false
- //编辑房屋土地块高度
- landHomesteadEditWrapHeight: 0,
- //编辑房屋土地信息--显隐
- landHomesteadEditVisbile: false,
- //查看编辑房屋、土地--类型 0 农房 1 农地
- farmhouseStatus: 0,
- //新增农房日历显影
- houseHomesteadEditcalendar: false,
- //新增农地日历显影
- landHomesteadEditcalendar: false,
- //选择顺序
- selectChooseOrder: 0,
-
- //农地新增、修改保存数据
- landInfoList: {
- id: "", //String 是 主键id
- orgCode: "", // String 否 行政区代码
- cdm: "", // String 否 村代码
- cm: "", //String 否 村名
- xh: "", // String 否 序号
- cbrmc: "", //String 否 承包人名称
- syrmc: "", //String 否 使用人名称
- nydlx: "", // String 否 农用地类型
- mj: "", // String 否 面积
- lzsynx: "", // String 否 流转剩余年限
- lzhtjzrq: "", // String 否 日期
- sfylzyx: "", // String 否 是否流转意向
- xzqk: "", // String 否 现状情况
- theGeom: "", //String 否 空间坐标
- xzqkKey: "", // String 否 忽略
- nydlxKey: "", // String 否 忽略
- frontland: "", //String 否 图片前
- behindland: "", //String 否 图片后
- },
-
- //农房新增、修改保存数据
- houseInfoList: {
- id: "", // String 是 主键id
- orgCode: "", // String 否 行政区代码
- cdm: "", // String 否 村代码
- cm: "", // String 否 村名
- xh: "", // String 否 序号
- tdxz: "", //土地性质
- fwsyrmc: "", // String 否 房屋所有人名称
- fwsyqh: "", // String 否 房屋所有权证号
- tdzh: "", // String 否 土地证号
- jzmj: "", // String 否 建筑面积
- tdmj: "", // String 否 土地面积
- sfyspsx: "", // String 否 是否有审批手续
- xzqk: "", // String 否 现状情况
- theGeom: "", // String 否 空间坐标
- xzqkKey: "", // String 否 忽略传null
- tdxzKey: "", // String 否 忽略传null
- frontHouse: "", // String 否 图片前
- behindHouse: "", // String 否 图片后
- dz: "", // String 否 地址
- zlrxm: "", // String 否 租赁人姓名
- zlhtjzrq: "", // 租赁合同截止日期
- zlsynx: "", // 租赁剩余年限
- xzfwsfylzy: "", // 闲置房屋是否有流转意愿
- tdfl: "", // 集体/个人
- },
-
- //农地查看数据
- landInfoLookList: {},
- //农房查看数据
- houseInfoLookList: {},
-
- //农房 - 农房权属
- tdxzOptions: [],
- tdxzOptionsVibile: false, //农房 - 农房权属 -弹窗
- tdxzOptionsValue: "", //农房 - 农房权属 值
- //农房 - 房屋类型
- fwdlxOptions: ["个人", "集体"],
- fwdlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗
- //农房 - 现状情况
- xzqkOptions: [],
- xzqkOptionsVisbile: false, //农房 - 现状情况 弹窗
- //农房 - 是否有流转
- xfCirculationOptions: ["是", "否"],
- xflzCirculationVisbile: false, //农房 - 是否有流转 弹窗
- //农房 - 是否有审批
- xfApprovalOptions: ["是", "否"],
- xfCirculationVisbile: false, //农房 - 是否有审批 -弹窗
-
- //农地 -- 现状情况
- ndxzqkOptions: [],
- ndxzqkOptionsVisbile: false,
- //农地 -- 农用地类型
- nydlxOptions: [],
- nydlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗
- nydlxOptionsValue: "", // 农地 -- 农用地类型--值
-
- //农地 -- 是否有流转意向
- xdCirculationOptions: ["是", "否"],
- xdlzCirculationVisbile: false, //农房 - 是否有流转 弹窗
-
- //农房上传图片附件
- nfAddfileList: [],
- //农地上传图片附件
- ndAddfileList: [],
- // 当前是否地图点击状态
- hasTable: false,
- //查看农地\农房 显隐
- landHomesteadDetailsVisibile: false,
-
- windowHeight: 0,
- };
- },
- mounted() {
- this.initAxios();
- let windowHeight = document.documentElement.clientHeight;
- this.windowHeight = windowHeight;
- },
- methods: {
- //编辑农地信息
- editnfdInfo(type) {
- this.currentType = 1;
- this.farmlandEditSwitchVisbuleFun("hide");
- this.landHomesteadEditVisbileFun("show");
- },
- //显示农地\农房详情
- houseLandLookInfo(type, status) {
- if (type == "show") {
- if (status == "house") {
- $("#texiao_fang").val(this.houseInfoList.fwsyrmc);
- $("#texiao_fang").trigger("click");
- } else {
- $("#texiao_di").val(this.landInfoList.syrmc);
- $("#texiao_di").trigger("click");
- }
- this.houseLandLookAnmitFun("show");
- } else {
- this.houseLandLookAnmitFun("hide");
- }
- },
- toggleSearch() {
- $("#query").trigger("click");
- },
- //显示农地\农房详情 动画
- houseLandLookAnmitFun(type) {
- if (type == "show") {
- this.landHomesteadDetailsVisibile = true;
- $(".landHomesteadDetails_wrap").css({ bottom: "-100vh" });
- $(".landHomesteadDetails_wrap").animate(
- {
- bottom: "0",
- },
- 300
- );
- } else {
- $(".landHomesteadDetails_wrap").css({ bottom: "0" });
- $(".landHomesteadDetails_wrap").animate(
- {
- bottom: "-100vh",
- },
- 300
- );
- setTimeout(() => {
- this.landHomesteadDetailsVisibile = false;
- }, 300);
- }
- },
- //绘制多边形地图
- drawMapPolygonFun() {
- let drawMapPolygon = this.draw.drawMapPolygon;
- if (drawMapPolygon == false) {
- console.log(this.coordinateList);
- if (this.coordinateList == "") {
- this.$set(this.draw, "drawMapPolygon", true);
- $("#drawPolygon").trigger("click");
- } else {
- this.$dialog
- .confirm({
- title: "提示",
- message: "是否重新绘制画图",
- })
- .then(() => {
- // on confirm
- this.coordinateList = "";
- this.$set(this.draw, "drawMapPolygon", true);
- $("#drawPolygon").trigger("click");
- })
- .catch(() => {
- // on cancel
- });
- }
- } else {
- $("#drawRemove").trigger("click");
- this.$set(this.draw, "drawMapPolygon", false);
- }
- },
- //新建选择农房土地弹窗
- farmlandEditSwitchFun() {
- if (this.coordinateList == "") {
- this.$toast("请先完成绘制");
- return false;
- }
- this.currentType = 0;
- this.farmlandEditSwitchVisbuleFun("show");
- // this.searchBarOperVisbile = false;
- },
- //关闭选择农房土地
- farmlandEditFun() {
- this.farmlandEditSwitchVisbuleFun("hide");
-
- //初始化地图
- this.initDraw();
- },
- addNewPlot(type) {
- this.farmlandEditSwitchVisbuleFun("hide");
- this.landHomesteadEditVisbileFun("show");
-
- //farmhouse农房 land农地
- if (type == "farmhouse") {
- this.farmhouseStatus = 0;
- } else if (type == "land") {
- this.farmhouseStatus = 1;
- }
- },
- //新增地块 编辑页 显影
- landHomesteadEditVisbileFun(type) {
- if (type == "show") {
- this.landHomesteadEditVisbile = true;
- $(".landHomesteadEdit_wrap").css({ bottom: "-100vh" });
- $(".landHomesteadEdit_wrap").animate(
- {
- bottom: "0",
- },
- 300
- );
- } else {
- $(".landHomesteadEdit_wrap").css({ bottom: "0" });
- $(".landHomesteadEdit_wrap").animate(
- {
- bottom: "-100vh",
- },
- 300
- );
- setTimeout(() => {
- this.landHomesteadEditVisbile = false;
- }, 300);
- }
- setTimeout(() => {
- //新建土地、房屋高度
- let landHomesteadEditWrap =
- this.$refs.landHomesteadEditWrap.offsetHeight;
- let landHomesteadEditWrapPdg = $(
- ".landHomesteadEdit_wrap .content_mian"
- )
- .css("paddingTop")
- .replace("px", "");
- let landHomesteadEditWrapTitHei = $(
- ".landHomesteadEdit_wrap .info_title"
- )
- .css("height")
- .replace("px", "");
- if (
- landHomesteadEditWrap &&
- landHomesteadEditWrapPdg &&
- landHomesteadEditWrapTitHei
- ) {
- this.landHomesteadEditWrapHeight =
- landHomesteadEditWrap -
- landHomesteadEditWrapPdg * 2 -
- landHomesteadEditWrapTitHei -
- 10;
- }
- }, 301);
- },
- //选择农地 农房显影
- farmlandEditSwitchVisbuleFun(type) {
- if (type == "show") {
- this.farmlandEditSwitchVisbule = true;
- $(".farmlandEditSwitch_wrap").css({ opacity: "0" });
- $(".farmlandEditSwitch_wrap").animate(
- {
- opacity: "1",
- },
- 300
- );
- } else {
- $(".farmlandEditSwitch_wrap").css({ opacity: "1" });
- $(".farmlandEditSwitch_wrap").animate(
- {
- opacity: "0",
- },
- 300
- );
- setTimeout(() => {
- this.farmlandEditSwitchVisbule = false;
- }, 300);
- }
- },
- //新增地块 编辑页 取消
- landHomesteadEditCancel() {
- this.landHomesteadEditVisbileFun("hide");
- //新增信息显示
- if (this.currentType == 0) {
- this.farmlandEditSwitchVisbuleFun("show");
- }
- },
- //新增地块 编辑页 保存
- landHomesteadEditSave() {
- if (this.farmhouseStatus == 0) {
- //农房
- let houseInfoList = this.houseInfoList;
- houseInfoList.theGeom = this.coordinateList;
- houseInfoList.orgCode = this.villageDataObj.orgCode;
- houseInfoList.cdm = this.villageDataObj.orgCode;
- houseInfoList.cm = this.villageDataObj.deptName;
-
- if (houseInfoList.xh == undefined || houseInfoList.xh == "") {
- this.$toast("请填写农房编号");
- return false;
- } else if (
- houseInfoList.fwsyrmc == undefined ||
- houseInfoList.fwsyrmc == ""
- ) {
- this.$toast("请填写房屋所有人名称");
- return false;
- } else if (houseInfoList.dz == undefined || houseInfoList.dz == "") {
- this.$toast("请填写地址");
- return false;
- } else if (
- houseInfoList.tdxz == undefined ||
- houseInfoList.tdxz == ""
- ) {
- this.$toast("请选择土地性质");
- return false;
- } else if (
- houseInfoList.sfyspsx == undefined ||
- houseInfoList.sfyspsx == ""
- ) {
- this.$toast("请选择是否有审批手续");
- return false;
- } else if (
- houseInfoList.jzmj == undefined ||
- houseInfoList.jzmj == ""
- ) {
- this.$toast("请填写建筑面积");
- return false;
- } else if (
- houseInfoList.xzqk == undefined ||
- houseInfoList.xzqk == ""
- ) {
- this.$toast("请选择现状情况");
- return false;
- } else if (
- houseInfoList.fwsyqh == undefined ||
- houseInfoList.fwsyqh == ""
- ) {
- this.$toast("请填写房屋所有权证号");
- return false;
- } else if (
- houseInfoList.tdzh == undefined ||
- houseInfoList.tdzh == ""
- ) {
- this.$toast("请填写土地证号");
- return false;
- } else if (
- houseInfoList.tdmj == undefined ||
- houseInfoList.tdmj == ""
- ) {
- this.$toast("请填写土地面积");
- return false;
- } else if (
- houseInfoList.xzfwsfylzy == undefined ||
- houseInfoList.xzfwsfylzy == ""
- ) {
- this.$toast("请选择是否有流转意愿");
- return false;
- } else if (
- houseInfoList.tdfl == undefined ||
- houseInfoList.tdfl == ""
- ) {
- this.$toast("请选择房屋类型");
- return false;
- }
-
- //新增
- if (this.currentType == 0) {
- if (houseInfoList.theGeom == "") {
- this.$toast("请选择地图坐标");
- return false;
- }
-
- this.$dialog
- .confirm({
- title: "新建农房信息",
- message: "是否保存信息或修改信息",
- })
- .then(() => {
- // on confirm
- houseAdd(houseInfoList).then((res) => {
- if (res.code == 200) {
- this.landHomesteadEditVisbileFun("hide");
- //新增
- this.$toast("新建农房信息成功");
- this.initDraw();
- $("#drawRemove").trigger("click");
- $("#drawReset").trigger("click");
- this.coordinateList = "";
- // getHouse(houseInfoList.id).then((res) => {
- // if (res.code == 200) {
- // this.farmhouseStatus=0;
- // this.houseInfoList.frontHouse =res.data.frontHouse;
- // this.houseInfoList.behindHouse =res.data.behindHouse;
- // }
- // })
- this.switchLoad();
- }
- });
- })
- .catch(() => {
- // on cancel
- });
- } else {
- this.$dialog
- .confirm({
- title: "修改农房信息",
- message: "是否保存信息或修改信息",
- })
- .then(() => {
- // on confirm
- houseEdit(houseInfoList).then((res) => {
- if (res.code == 200) {
- this.landHomesteadEditVisbileFun("hide");
- this.$toast("修改农房信息成功");
- getHouse(houseInfoList.id).then((res) => {
- if (res.code == 200) {
- this.farmhouseStatus=0;
- this.houseInfoList.frontHouse =res.data.frontHouse;
- this.houseInfoList.behindHouse =res.data.behindHouse;
- }
- })
- this.houseInfoLookList = this.houseInfoList;
- // this.initDraw();
- $("#drawRemove").trigger("click");
- $("#drawReset").trigger("click");
- this.coordinateList = "";
- }
- });
- })
- .catch(() => {
- // on cancel
- });
- //编辑
- }
- } else if (this.farmhouseStatus == 1) {
- // orgCode: "", // String 否 行政区代码
- // cdm: "", // String 否 村代码
- // cm: "", //String 否 村名
- //农地
- let landInfoList = this.landInfoList;
- landInfoList.theGeom = this.coordinateList;
- landInfoList.orgCode = this.villageDataObj.orgCode;
- landInfoList.cdm = this.villageDataObj.orgCode;
- landInfoList.cm = this.villageDataObj.deptName;
- if (landInfoList.xh == undefined || landInfoList.xh == "") {
- this.$toast("请填写农地编号");
- return false;
- } else if (
- landInfoList.syrmc == undefined ||
- landInfoList.syrmc == ""
- ) {
- this.$toast("请填写农地使用人名称");
- return false;
- } else if (landInfoList.xzqk == undefined || landInfoList.xzqk == "") {
- this.$toast("请填写现状情况");
- return false;
- } else if (
- landInfoList.nydlx == undefined ||
- landInfoList.nydlx == ""
- ) {
- this.$toast("请选择农用地类型");
- return false;
- } else if (landInfoList.mj == undefined || landInfoList.mj == "") {
- this.$toast("请填写土地面积");
- return false;
- } else if (
- landInfoList.sfylzyx == undefined ||
- landInfoList.sfylzyx == ""
- ) {
- this.$toast("请选择是否流转意向");
- return false;
- }
-
- //新增
- if (this.currentType == 0) {
- if (landInfoList.theGeom == "") {
- this.$toast("请选择空间坐标");
- return false;
- }
- this.$dialog
- .confirm({
- title: "新建农地信息",
- message: "是否保存信息或修改信息",
- })
- .then(() => {
- // on confirm
- landAdd(landInfoList).then((res) => {
- if (res.code == 200) {
- this.landHomesteadEditVisbileFun("hide");
- //新增
- this.initDraw();
- $("#drawRemove").trigger("click");
- $("#drawReset").trigger("click");
- this.coordinateList = "";
- this.$toast("新建农地信息成功");
- //查询图层
- // if(landInfoList.id !=null){
- // console.log(landInfoList.id );
- // getLand(landInfoList.id).then((res) => {
- // console.log(res);
- // console.log(res.data.frontland);
- // if (res.code == 200) {
- // this.farmhouseStatus=1;
- // this.landInfoList.frontland =res.data.frontland;
- // this.landInfoList.behindland =res.data.behindland;
- // }
- // })
- // }
- //列表更新
- this.switchLoad();
- }
- });
- })
- .catch(() => {
- // on cancel
- });
- } else {
- this.$dialog
- .confirm({
- title: "修改农地信息",
- message: "是否保存信息或修改信息",
- })
- .then(() => {
- // on confirm
- landEdit(landInfoList).then((res) => {
- if (res.code == 200) {
- this.landHomesteadEditVisbileFun("hide");
- this.$toast("修改农地信息成功");
- //this.initDraw();
- getLand(landInfoList.id).then((res) => {
- console.log(res.data.frontland);
- if (res.code == 200) {
- this.farmhouseStatus=1;
- this.landInfoList.frontland =res.data.frontland;
- this.landInfoList.behindland =res.data.behindland;
- }
- })
- this.landInfoLookList = this.landInfoList;
- $("#drawRemove").trigger("click");
- $("#drawReset").trigger("click");
- this.coordinateList = "";
- }
- });
- })
- .catch(() => {
- // on cancel
- });
- }
- }
- //保存成功触发
- },
-
- landHomesteadEdConfirm(value) {
- //农地
- this.landHomesteadEditcalendar = false;
- this.landInfoList.lzhtjzrq = this.getDate(new Date(value));
- },
- houseHomesteadEdConfirm(value) {
- //农房
- this.houseHomesteadEditcalendar = false;
- this.houseInfoList.zlhtjzrq = this.getDate(new Date(value));
- },
- getDate(date) {
- //date是传过来的时间戳,注意需为13位,10位需*1000
- //也可以不传,获取的就是当前时间
- var time = new Date(date);
- var year = time.getFullYear(); //年
- var month = ("0" + (time.getMonth() + 1)).slice(-2); //月
- var day = ("0" + time.getDate()).slice(-2); //日
- var mydate = year + "-" + month + "-" + day;
- return mydate;
- },
- //初始化绘制
- initDraw() {
- //清除数据
- // $("#drawRemove").trigger("click");
- // $("#drawReset").trigger("click");
- // this.coordinateList = "";
- //农地数据初始化
- this.landInfoList = {
- id: "", //String 是 主键id
- orgCode: "", // String 否 行政区代码
- cdm: "", // String 否 村代码
- cm: "", //String 否 村名
- xh: "", // String 否 序号
- cbrmc: "", //String 否 承包人名称
- syrmc: "", //String 否 使用人名称
- nydlx: "", // String 否 农用地类型
- mj: "", // String 否 面积
- lzsynx: "", // String 否 流转剩余年限
- zlhtjzrq: "", // String 否 日期
- sfylzyx: "", // String 否 是否流转意向
- xzqk: "", // String 否 现状情况
- theGeom: "", //String 否 空间坐标
- xzqkKey: "", // String 否 忽略
- nydlxKey: "", // String 否 忽略
- frontland: "", //String 否 图片前
- behindland: "", //String 否 图片后
- };
-
- //农房数据初始化
- this.houseInfoList = {
- id: "", // String 是 主键id
- orgCode: "", // String 否 行政区代码
- cdm: "", // String 否 村代码
- cm: "", // String 否 村名
- xh: "", // String 否 序号
- tdxz: "", //土地性质
- fwsyrmc: "", // String 否 房屋所有人名称
- fwsyqh: "", // String 否 房屋所有权证号
- tdzh: "", // String 否 土地证号
- jzmj: "", // String 否 建筑面积
- tdmj: "", // String 否 土地面积
- sfyspsx: "", // String 否 是否有审批手续
- xzqk: "", // String 否 现状情况
- theGeom: "", // String 否 空间坐标
- xzqkKey: "", // String 否 忽略传null
- tdxzKey: "", // String 否 忽略传null
- frontHouse: "", // String 否 图片前
- behindHouse: "", // String 否 图片后
- dz: "", // String 否 地址
- zlrxm: "", // String 否 租赁人姓名
- zlhtjzrq: "", // 租赁合同截止日期
- zlsynx: "", // 租赁剩余年限
- xzfwsfylzy: "", // 闲置房屋是否有流转意愿
- tdfl: "", // 集体/个人
- };
-
- //农房上传图片附件
- this.nfAddfileList = [];
- //农地上传图片附件
- this.ndAddfileList = [];
-
- //隐藏下方绘制地图操作栏
- this.searchBarOperVisbile = false;
-
- this.draw.drawMapPolygon = false; //绘制地图
- },
- initAxios() {
- //获取区镇村
- this.mapAreaSelectValue();
- //农房---字典项
- this.nfDictionary();
- //农地---字典项
- this.ndDictionary();
- },
- nfDictionary() {
- //农房权属
- this.getDicts("build_land_type").then((response) => {
- this.tdxzOptions = response.data;
- });
- //农房情况
- this.getDicts("geo_hc_house").then((response) => {
- this.xzqkOptions = response.data;
- });
- },
- ndDictionary() {
- //农用地类型
- this.getDicts("sub_object_type").then((response) => {
- this.nydlxOptions = response.data;
- });
- //现状情况
- this.getDicts("geo_hc_land").then((response) => {
- this.ndxzqkOptions = response.data;
- });
- },
- styleSteup() {
- let smallTop = this.$refs.sliderSmall.getBoundingClientRect().top;
- let smallLeft = this.$refs.sliderSmall.getBoundingClientRect().left;
- $(".ol-zoom-out").css({
- position: "absolute",
- left: smallLeft + "px",
- top: smallTop + "px",
- width: "40px",
- height: "26px",
- zIndex: "999999",
- cursor: "pointer",
- opacity: "0",
- });
- $(".ol-overlaycontainer-stopevent").css({
- zIndex: 9999,
- });
- let bigTop = this.$refs.sliderBig.getBoundingClientRect().top;
- let bigLeft = this.$refs.sliderBig.getBoundingClientRect().left;
- $(".ol-zoom-in").css({
- position: "absolute",
- left: bigLeft + "px",
- top: bigTop + "px",
- width: "40px",
- height: "26px",
- zIndex: "1005",
- cursor: "pointer",
- opacity: "0",
- });
- $(".ol-hidden ,.ol-collapsed").hide();
- },
- switchLoad() {
- let objData = {
- orgCode: this.villageDataObj.orgCode,
- statusList: "1,2,3,4,5,6,7,8",
- };
- // //右侧详情农房农地列表
-
- hcBottomSearch(objData).then((res) => {
- let content = res.data;
- //房
- let houseArr = [];
- let landArr = [];
- //地
- content.forEach((v, i) => {
- if (v.type == "house") {
- houseArr.push({
- geo: v.geo,
- mj: v.mj,
- name: v.name,
- type: v.type,
- xh: v.xh,
- xzqk: v.xzqk,
- });
- } else {
- landArr.push({
- geo: v.geo,
- mj: v.mj,
- name: v.name,
- type: v.type,
- xh: v.xh,
- xzqk: v.xzqk,
- });
- }
- });
- this.hcBottonHouseArr = houseArr;
- this.hcBottonLandArr = landArr;
- this.ishcBotton = true;
- });
- },
- mapAreaSelectValue() {
- treeselectByUser().then((res) => {
- if (res.code == 200) {
- let content = res.data;
- this.hcAreaInfoOption = content;
- let currDeptId; //;= "169"
- if (content[0].children && content[0].children.length != 0) {
- if (
- content[0].children[0].children &&
- content[0].children[0].children.length != 0
- ) {
- if (
- content[0].children[0].children[0].children &&
- content[0].children[0].children[0].children.length != 0
- ) {
- currDeptId =
- content[0].children[0].children[0].children[0].value;
- } else {
- currDeptId = content[0].children[0].children[0].value;
- }
- } else {
- currDeptId = content[0].children[0].value;
- }
- } else {
- currDeptId = content[0].value;
- }
- // console.log(currDeptId);
- //获取村详细信息
- this.deptGetFun(currDeptId);
- //获取地图
- this.mapBackground();
- //设置缩放按钮位置
- this.styleSteup();
- }
- });
- },
- //选择村
- hcAreaInfoFinish({ value, selectedOptions, tabIndex }) {
- this.deptGetFun(value);
- },
- //通过deptId获取经纬度
- deptGetFun(value) {
- deptGetId(value).then((res) => {
- this.villageVisbile = false;
- let content = res.data;
- this.villageDataObj = content;
- this.initDraw();
- $("#cun").trigger("change");
- this.switchLoad();
- });
- },
-
- searchBarOperFun(statue) {
- if (statue == "true") {
- this.searchBarOperVisbile = true;
- } else {
- this.searchBarOperVisbile = false;
- //初始化绘制
- // this.coordinateList = "";
- this.initDraw();
- }
- },
-
- /*右侧列表 --展开收缩*/
- selectionPush() {
- this.selectionIconShow = true;
- $(".homesteadList_wrap").animate(
- {
- right: "0",
- },
- 300
- );
- },
- homesteadListShrink() {
- this.selectionIconShow = false;
- $(".homesteadList_wrap").animate(
- {
- right: "-300px",
- },
- 300
- );
- },
-
- villageVisbileFun() {
- this.villageVisbile = true;
- },
-
- housingTypes(type) {
- // if (type == "0") {
- this.statusList = type;
- this.selectChooseOrder = 0;
- },
-
- housingSerial(item, index) {
- this.selectChooseOrder = index;
- if (item.type == "house") {
- $("#texiao_fang").val(item.name);
- $("#texiao_fang").trigger("click");
- } else {
- $("#texiao_di").val(item.name);
- $("#texiao_di").trigger("click");
- }
- },
- //关闭选择地址弹窗
- hcAreaInfoClose() {
- this.villageVisbile = false;
- },
- //加载地图
- mapBackground() {
- let _this = this;
- var projection = new ol.proj.Projection({
- //地图投影类型
- code: "EPSG:3857",
- units: "degrees",
- //extent:extent
- });
- //影像图 -----------------------------start
- var attributions =
- '<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> ' +
- '<a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>';
- var aerial = new ol.layer.Tile({
- source: new ol.source.XYZ({
- attributions: attributions,
- url: "http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
- }),
- isGroup: true,
- visible: true,
- name: "天地图路网-卫星影像图",
- });
- var map = new ol.Map({
- layers: [aerial],
- //layers: [newwms],
- projection: projection,
- target: "mapWrap",
- view: new ol.View({
- center: ol.proj.fromLonLat([122.145662, 37.369575]),
- zoom: 10.2,
- minZoom: 10, //地图缩小限制
- maxZoom: 18.9, //地图放大限制
- }),
- });
- //地图属性定义
- var nongZt = ["house", "land"];
- var texiao_layer_fang;
- var texiao_layer_di;
- var delete_map = ["mapHouse", "mapLand"];
- //业务图层 wfs服务 属性查询开始 ------------------start
- /**
- * @api wfs服务空间查询
- * @param {*} wfsurl
- * @param {*} srsName
- * @param {*} typeName
- * @param {*} drawType
- * @param {option 可选} geometryField
- */
-
- var wmsSource = new ol.source.TileWMS({
- //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
- url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
- //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
- params: {
- LAYERS: "nsgk_hc:nsgk_hc_all",
- //'LAYERS': 'mywork_mysql:t_geo_hc_land',
- TILED: true,
- SRID: 3857,
- serverType: "geoserver",
- crossOrigin: "anonymous",
- },
- });
-
- map.on("pointermove", function (evt) {
- if (evt.dragging) {
- return;
- }
- var pixel = map.getEventPixel(evt.originalEvent);
- var hit = map.forEachLayerAtPixel(pixel, function () {
- return true;
- });
- map.getTargetElement().style.cursor = hit ? "pointer" : "";
- });
- //属性查询结束 ------------------end
- var shitu = new ol.layer.Vector({
- title: "add Layer",
- source: new ol.source.Vector({
- projection: projection,
- url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变
- format: new ol.format.GeoJSON(),
- }),
- style: new ol.style.Style({
- fill: new ol.style.Fill({
- //矢量图层填充颜色,以及透明度
- color: "rgba(0,0,0,0)",
- }),
- stroke: new ol.style.Stroke({
- //边界样式
- color: "#47c68f",
- width: 3,
- }),
- }),
- });
- map.addLayer(shitu);
- var huancui_zhen = new ol.layer.Vector({
- title: "add huancui_zhen",
- source: new ol.source.Vector({
- projection: projection,
- url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变
- format: new ol.format.GeoJSON(),
- }),
- style: new ol.style.Style({
- fill: new ol.style.Fill({
- //矢量图层填充颜色,以及透明度
- color: "rgba(27,50,56,0.8)",
- }),
- }),
- });
- map.addLayer(huancui_zhen);
-
- ///-----------乡---------------------------------------------------------------------------------------------------------
- var villageVectorLayer; //村标记
- async function villageDiagram() {
- villageDataFun(_this.villageDataObj);
- }
-
- //村数据处理
- function villageDataFun(villageMapData) {
- let arrDatas = [];
- // for (let i = 0; i < villageMapData.length; i++) {
- let varName = "iconFeature0";
- window[varName] = new ol.Feature({
- geometry: new ol.geom.Point(
- ol.proj.fromLonLat([villageMapData.lng, villageMapData.lat])
- ),
- name:
- villageMapData.name == undefined
- ? villageMapData.deptName
- : villageMapData.name, //名称属性
- orgCode: villageMapData.orgCode, //人口数(万)
- lat: villageMapData.lat,
- lng: villageMapData.lng,
- type: "村",
- zhenOrgCode: villageMapData.zhenOrgCode,
- });
- window[varName].setStyle(visCreateLabelStyle(window[varName]));
- arrDatas.push(window[varName]);
- // }
-
- var vectorSource = new ol.source.Vector({
- features: arrDatas,
- });
-
- // //矢量标注图层
- villageVectorLayer = new ol.layer.Vector({
- source: vectorSource,
- });
- map.addLayer(villageVectorLayer);
- }
-
- //矢量标注样式设置函数,设置image为图标ol.style.Icon
- function visCreateLabelStyle(feature) {
- return new ol.style.Style({
- image: new ol.style.Icon({
- //设置图标偏移
- anchor: [0.5, 1],
- //标注样式的起点位置
- anchorOrigin: "top-right",
- //X方向单位:分数
- anchorXUnits: "fraction",
- //Y方向单位:像素
- anchorYUnits: "pixels",
- //偏移起点位置的方向
- offsetOrigin: "top-right",
- //透明度
- opacity: 0.9,
- //图片路径
- //src: 'images/map.png'
- src: "https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",
- }),
- text: new ol.style.Text({
- textAlign: "center", //位置
- textBaseline: "bottom", //基准线
- font: "normal 12px 微软雅黑", //文字样式
- text: feature.get("name"), //文本内容
- fill: new ol.style.Fill({
- //文本填充样式(即文字颜色)
- color: "#ffffff",
- }),
- }),
- zIndex: 9999,
- });
- }
-
- // map.on("moveend", function (evt) {
- // var zoom = map.getView().getZoom();
- // if (zoom < 13) {
- // if (villageVectorLayer != undefined) {
- // map.removeLayer(villageVectorLayer);
- // map.removeLayer(shitu);
-
- // map.addLayer(shitu);
- // map.removeLayer(townVectorLayer);
- // townDiagram();
- // }
- // }
- // });
-
- map.on("singleclick", function (evt) {
- let feature = map.forEachFeatureAtPixel(
- evt.pixel,
- (feature) => feature
- );
- if (feature) {
- }
-
- document.getElementById("info").innerHTML = "";
- var viewResolution = map.getView().getResolution(); ///** @type {number} */ (view.getResolution());
- var zb = evt.coordinate;
- var url = wmsSource.getFeatureInfoUrl(
- evt.coordinate,
- viewResolution,
- "EPSG:3857",
- { INFO_FORMAT: "text/html" }
- );
- if (url) {
- fetch(url)
- .then(function (response) {
- return response.text();
- })
- .then(function (html) {
- //农房上传图片附件
- _this.nfAddfileList = [];
- //农地上传图片附件
- _this.ndAddfileList = [];
- if (html.indexOf("<table") != -1) {
- setTimeout(() => {
- map.removeLayer(texiao_layer_fang);
- map.removeLayer(texiao_layer_di);
- //特效动画实现 -----------------------------start
- texiao_layer_fang = new ol.layer.Vector({
- source: new ol.source.Vector(),
- });
- map.addLayer(texiao_layer_fang);
- var deptmap = [zb[0], zb[1]];
- //var center = ol.extent.getCenter(deptmap); //获取边界区域的中心位置
- var circle = new ol.Feature({
- geometry: new ol.geom.Point(deptmap), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
- });
-
- //var out =new ol.coordinate.Coordinate(datamap);
- //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
- //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
- //map.getView().setCenter(center); //设置当前地图的显示中心位置
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: 0,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- texiao_layer_fang.getSource().addFeature(circle);
-
- // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
- var radius = 0;
- map.on("postcompose", function () {
- // 增大半径,最大20
- radius++;
- radius = radius % 10;
- // 设置样式
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: radius,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- });
- //特效动画实现 -----------------------------end
- _this.hasTable = true;
- document.getElementById("info").innerHTML = html;
- if (html.indexOf("house") != -1) {
- //农房
- _this.farmhouseStatus = 0;
- let obj = {};
- let trs = $("#info .featureInfo").find("tr:eq(1)");
- let zjId = trs.find("td").eq(0).text();
- let zjIdNum = zjId.replace("t_geo_hc_house.", "");
- obj.id = zjIdNum; // 主键id
- obj.fwsyrmc = trs.find("td").eq(1).text(); //房屋所有人名称
- obj.cm = trs.find("td").eq(2).text(); //村名
- obj.cdm = trs.find("td").eq(3).text(); //村代码
- obj.dz = trs.find("td").eq(4).text(); //地址
- obj.sfyspsx = trs.find("td").eq(5).text(); //是否有审批手续
- obj.fwsyqh = trs.find("td").eq(6).text(); //房屋所有权证号
- obj.jzmj = trs.find("td").eq(7).text(); //建筑面积
- obj.tdzh = trs.find("td").eq(8).text(); //建筑面积
- obj.tdxz = trs.find("td").eq(9).text(); //土地性质
- obj.tdmj = trs.find("td").eq(10).text(); //土地面积
- obj.xzqk = trs.find("td").eq(11).text(); //现状情况
- obj.zlrxm = trs.find("td").eq(12).text(); //租赁人姓名
- obj.zlhtjzrq = trs.find("td").eq(13).text(); //租赁合同截止日期
- obj.zlsynx = trs.find("td").eq(14).text(); //租赁剩余年限
- obj.xzfwsfylzy = trs.find("td").eq(15).text(); //闲置房屋是否有流转意愿
- obj.xh = trs.find("td").eq(16).text(); //农房编号
-
- obj.orgCode = trs.find("td").eq(20).text(); //行政区代码
- obj.tdfl = trs.find("td").eq(23).text(); //集体/个人
- obj.frontHouse = trs.find("td").eq(24).text(); //图片前
- obj.behindHouse = trs.find("td").eq(25).text(); //图片后
- let cloneObj = JSON.parse(JSON.stringify(obj));
- _this.houseInfoList = cloneObj;
- _this.houseInfoList.frontland = "";
- _this.houseInfoList.behindland = "";
- _this.houseInfoLookList = obj;
- } else {
- _this.farmhouseStatus = 1;
- //农地
- let obj = {};
- let trs = $("#info .featureInfo").find("tr:eq(1)");
- let zjId = trs.find("td").eq(0).text();
- let zjIdNum = zjId.replace("t_geo_hc_land.", "");
- obj.id = zjIdNum; // 主键id
- obj.xh = trs.find("td").eq(1).text(); //序号
- obj.cm = trs.find("td").eq(2).text(); //村名
- obj.cbrmc = trs.find("td").eq(3).text(); //承包人名称
- obj.syrmc = trs.find("td").eq(4).text(); //使用人名称
- obj.nydlx = trs.find("td").eq(5).text(); //农用地类型
- obj.mj = trs.find("td").eq(6).text(); //面积
- obj.xzqk = trs.find("td").eq(7).text(); //现状情况
- obj.lzhtjzrq = trs.find("td").eq(8).text(); //流转合同截止时间
- obj.lzsynx = trs.find("td").eq(9).text(); //流转剩余年限
- obj.sfylzyx = trs.find("td").eq(10).text(); //是否流转意向
- obj.cdm = trs.find("td").eq(11).text(); //村代码
- obj.orgCode = trs.find("td").eq(15).text(); //行政区化代码
- obj.frontland = trs.find("td").eq(18).text(); //图片前
- obj.behindland = trs.find("td").eq(19).text(); //图片后
- _this.nydlxOptionsValue = trs.find("td").eq(5).text(); //农用地类型
- let cloneObj = JSON.parse(JSON.stringify(obj));
- _this.landInfoList = cloneObj;
- //编辑图片清空
- _this.landInfoList.frontland = "";
- _this.landInfoList.behindland = "";
- _this.landInfoLookList = obj;
- }
- }, 300);
-
- if (
- _this.draw.drawMapPolygon == false &&
- _this.searchBarOperVisbile == false
- ) {
- //判断不在绘制地图进入
- if ($(".landHomestead_wrap").css("bottom") != "0px") {
- $(".searchBar_wrap").css({ bottom: "0" });
- $(".searchBar_wrap").animate(
- {
- bottom: "-100%",
- },
- 300
- );
-
- $(".landHomestead_wrap").css({ bottom: "-100%" });
- $(".landHomestead_wrap").animate(
- {
- bottom: "0",
- },
- 400
- );
-
- $(".rightIcon_wrap").animate(
- {
- bottom: $(".landHomestead_wrap").height() + 10 + "px",
- },
- 200
- );
- }
- }
- } else {
- _this.hasTable = false;
-
- if ($(".searchBar_wrap").css("bottom") != "0px") {
- $(".landHomestead_wrap").css({ bottom: "0" });
- $(".landHomestead_wrap").animate(
- {
- bottom: "-100%",
- },
- 300
- );
-
- $(".searchBar_wrap").css({ bottom: "-100%" });
- $(".searchBar_wrap").animate(
- {
- bottom: "0",
- },
- 400
- );
- let searchBarWrapPadding = $(".searchBar_wrap")
- .css("paddingTop")
- .replace("px", "");
- let searchBarWrapHeight = $(".searchBar_wrap").height();
-
- $(".rightIcon_wrap").animate(
- {
- bottom:
- searchBarWrapHeight +
- searchBarWrapPadding * 2 +
- 10 +
- "px",
- },
- 200
- );
- }
- //非编辑情况初始化
- if (_this.landHomesteadEditVisbile == false) {
- //农地数据初始化
- _this.landInfoList = {
- id: "", //String 是 主键id
- orgCode: "", // String 否 行政区代码
- cdm: "", // String 否 村代码
- cm: "", //String 否 村名
- xh: "", // String 否 序号
- cbrmc: "", //String 否 承包人名称
- syrmc: "", //String 否 使用人名称
- nydlx: "", // String 否 农用地类型
- mj: "", // String 否 面积
- lzsynx: "", // String 否 流转剩余年限
- zlhtjzrq: "", // String 否 日期
- sfylzyx: "", // String 否 是否流转意向
- xzqk: "", // String 否 现状情况
- theGeom: "", //String 否 空间坐标
- xzqkKey: "", // String 否 忽略
- nydlxKey: "", // String 否 忽略
- frontland: "", //String 否 图片前
- behindland: "", //String 否 图片后
- };
-
- //农房数据初始化
- _this.houseInfoList = {
- id: "", // String 是 主键id
- orgCode: "", // String 否 行政区代码
- cdm: "", // String 否 村代码
- cm: "", // String 否 村名
- xh: "", // String 否 序号
- tdxz: "", //土地性质
- fwsyrmc: "", // String 否 房屋所有人名称
- fwsyqh: "", // String 否 房屋所有权证号
- tdzh: "", // String 否 土地证号
- jzmj: "", // String 否 建筑面积
- tdmj: "", // String 否 土地面积
- sfyspsx: "", // String 否 是否有审批手续
- xzqk: "", // String 否 现状情况
- theGeom: "", // String 否 空间坐标
- xzqkKey: "", // String 否 忽略传null
- tdxzKey: "", // String 否 忽略传null
- frontHouse: "", // String 否 图片前
- behindHouse: "", // String 否 图片后
- dz: "", // String 否 地址
- zlrxm: "", // String 否 租赁人姓名
- zlhtjzrq: "", // 租赁合同截止日期
- zlsynx: "", // 租赁剩余年限
- xzfwsfylzy: "", // 闲置房屋是否有流转意愿
- tdfl: "", // 集体/个人
- };
- }
- }
- });
- }
- });
-
- map.on("pointermove", function (evt) {
- if (evt.dragging) {
- return;
- }
- var pixel = map.getEventPixel(evt.originalEvent);
- var hit = map.forEachLayerAtPixel(pixel, function () {
- return true;
- });
- map.getTargetElement().style.cursor = hit ? "pointer" : "";
- });
- //属性查询结束 ------------------end
-
- //按照分类查询 村定位地图-----------------start
- $("#cun").on("change", function () {
- /**
- * @api wfs服务空间查询
- * @param {*} wfsurl
- * @param {*} srsName
- * @param {*} typeName
- * @param {*} drawType
- * @param {option 可选} geometryField
- */
-
- var cun = _this.villageDataObj.deptName;
- //定位个人地图
- map.removeLayer(texiao_layer_fang);
- map.removeLayer(texiao_layer_di);
- //删除之前加载的图层
-
- let currObjNum = _this.villageDataObj;
- map.getView().animate({
- // 只设置需要的属性即可
- center: ol.proj.fromLonLat([currObjNum.lng, currObjNum.lat]), // 中心点
- zoom: 14.5, // 缩放级别
- rotation: undefined, // 缩放完成view视图旋转弧度
- duration: 1000, // 缩放持续时间,默认不需要设置
- });
-
- map.removeLayer(nongZt[0]);
- map.removeLayer(nongZt[1]);
- map.removeLayer(delete_map[0]);
- map.removeLayer(delete_map[1]);
- //村的数据判断
-
- map.removeLayer(villageVectorLayer);
- villageDiagram();
- setTimeout(() => {
- //map.removeLayer(shitu);
- }, 1000);
-
- //查询条件
- var cql_filter;
-
- //图层加载
- //地的数据判断
- var difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"];
- console.log("++++++++++++" + cun);
- //业务图层 wms服务
- for (var i = 0; i < difang.length; i++) {
- if (difang[i] == "nsgk_hc:t_geo_hc_house") {
- cql_filter = "CM='" + cun + "'";
- } else {
- cql_filter = "CM='" + cun + "'";
- }
- nongZt[i] = new ol.layer.Tile({
- source: new ol.source.TileWMS({
- //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
- url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
- //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
- //url: 'http://localhost:8888/geoserver/new_shp/wms',
- params: {
- LAYERS: difang[i],
- //'LAYERS': 'new_shp:new_shp_all',
- TILED: true,
- cql_filter: cql_filter,
- SRID: 3857,
- },
- }),
- });
- //}
- //定位查询位置
- let param_dw = {
- srsName: "EPSG:3857",
- service: "WFS",
- version: "1.0.0",
- request: "GetFeature",
- typename: difang[i],
- //featureNS: 'nsgk_hc',//命名空间 URI
- cql_filter: cql_filter,
- //featurePrefix: 'nationalwater',//工作区名称
- //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
- outputFormat: "application/json",
- //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
- };
- let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
- url_dw = url_dw + "?";
- for (let key in param_dw) {
- url_dw = url_dw + key + "=" + param_dw[key] + "&";
- }
- url_dw = url_dw.substr(0, url_dw.length - 1);
- console.log(url_dw);
- fetch(url_dw, {
- method: "POST", // *GET, POST, PUT, DELETE, etc.
- })
- .then((res) => {
- var geojsonmap = res.json();
- return geojsonmap;
- })
- .then((data) => {
- //var datamap = data.bbox;
- // var datamap = data.features[0].bbox;
- // map.getView().animate({
- // // 只设置需要的属性即可
- // center: datamap, // 中心点
- // zoom: 15, // 缩放级别
- // rotation: undefined, // 缩放完成view视图旋转弧度
- // duration: 1000, // 缩放持续时间,默认不需要设置
- // });
- })
- .catch((error) => {
- console.log("【异常】", error);
- });
- map.addLayer(nongZt[i]);
- }
- });
- //村定位查询-------------------------------------end
-
- //按照查询条件人名 定位地图-----------------start
- $("#query").on("click", function () {
- /**
- * @api wfs服务空间查询
- * @param {*} wfsurl
- * @param {*} srsName
- * @param {*} typeName
- * @param {*} drawType
- * @param {option 可选} geometryField
- */
- var val = _this.seachText;
- if (val == "") {
- alert("请填写查询条件在查询");
- } else {
- //分类查询查询农地、农房
- var difang;
- //var di = document.getElementById('di');
- //删除矢量图层json
- //map.removeLayer(shitu);
- //删除之前图层 --------------------start
- //属性查询删除
- //map.removeLayer(nongZt[0]);
- //map.removeLayer(nongZt[1]);
- //map.removeLayer(delete_map[0]);
- //map.removeLayer(delete_map[1]);
- map.removeLayer(texiao_layer_fang);
- map.removeLayer(texiao_layer_di);
- //删除之前图层 -------------------end
- //查询条件
- var cql_filter;
- var cun = _this.villageDataObj.deptName;
-
- difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"];
- var tach = 0;
- var once = 0;
- for (var i = 0; i < difang.length; i++) {
- map.removeLayer(delete_map[i]);
- // 数字验证!
- var reg = /\d/;
- //验证汉子
- //var han = /^[\u4e00-\u9fa5]+$/;
- if (reg.test(val)) {
- //循环判断查询条件
- cql_filter = "XH='" + val + "'" + "and CM='" + cun + "'";
- } else {
- //循环判断查询条件
- if (cun != "all" && cun != "") {
- if (difang[i] == "nsgk_hc:t_geo_hc_house") {
- cql_filter = "FWSYRMC='" + val + "'" + "and CM='" + cun + "'";
- } else {
- cql_filter = "SYRMC='" + val + "'" + "and CM='" + cun + "'";
- }
- } else {
- if (difang[i] == "nsgk_hc:t_geo_hc_house") {
- cql_filter = "FWSYRMC='" + val + "'";
- } else {
- cql_filter = "SYRMC='" + val + "'";
- }
- }
- }
- //for(var i=0; i< difang.length; i++){
- //cql_filter = "CM='"+cun +"'"+ "and XZQK='待流转待盘活'";
-
- //图层加载
-
- //业务图层 wms服务
- delete_map[i] = new ol.layer.Tile({
- source: new ol.source.TileWMS({
- //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
- url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
- //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
- //url: 'http://localhost:8888/geoserver/new_shp/wms',
- params: {
- LAYERS: difang[i],
- //'LAYERS': 'new_shp:new_shp_all',
- TILED: true,
- cql_filter: cql_filter,
- SRID: 3857,
- },
- }),
- });
-
- //}
- //定位查询位置
- let param_dw = {
- srsName: "EPSG:3857",
- service: "WFS",
- version: "1.0.0",
- request: "GetFeature",
- typename: difang[i],
- //featureNS: 'nsgk_hc',//命名空间 URI
- cql_filter: cql_filter,
- //featurePrefix: 'nationalwater',//工作区名称
- //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
- outputFormat: "application/json",
- //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
- };
- let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
- url_dw = url_dw + "?";
- for (let key in param_dw) {
- url_dw = url_dw + key + "=" + param_dw[key] + "&";
- }
- url_dw = url_dw.substr(0, url_dw.length - 1);
- fetch(url_dw, {
- method: "POST", // *GET, POST, PUT, DELETE, etc.
- })
- .then((res) => {
- var geojsonmap = res.json();
- return geojsonmap;
- })
- .then((data) => {
- tach = tach + 1;
- if (data.features != null && data.features != "") {
- //var datamap = data.bbox;
- var datamap = data.features[0].bbox;
- map.getView().animate({
- // 只设置需要的属性即可
- center: datamap, // 中心点
- zoom: 17, // 缩放级别
- rotation: undefined, // 缩放完成view视图旋转弧度
- duration: 1000, // 缩放持续时间,默认不需要设置
- });
- //特效动画实现 -----------------------------start
- if(tach == 1 && once == 0){
- texiao_layer_fang = new ol.layer.Vector({
- source: new ol.source.Vector(),
- });
- map.addLayer(texiao_layer_fang);
- var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
- var circle = new ol.Feature({
- geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
- });
-
- //var out =new ol.coordinate.Coordinate(datamap);
- //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
- //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
- //map.getView().setCenter(center); //设置当前地图的显示中心位置
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: 0,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- texiao_layer_fang.getSource().addFeature(circle);
-
- // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
- var radius = 0;
- map.on("postcompose", function () {
- // 增大半径,最大20
- radius++;
- radius = radius % 10;
- // 设置样式
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: radius,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- });
- }else {
- texiao_layer_di = new ol.layer.Vector({
- source: new ol.source.Vector(),
- });
- map.addLayer(texiao_layer_di);
- var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
- var circle = new ol.Feature({
- geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
- });
-
- //var out =new ol.coordinate.Coordinate(datamap);
- //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
- //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
- //map.getView().setCenter(center); //设置当前地图的显示中心位置
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: 0,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- texiao_layer_di.getSource().addFeature(circle);
-
- // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
- var radius = 0;
- map.on("postcompose", function () {
- // 增大半径,最大20
- radius++;
- radius = radius % 10;
- // 设置样式
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: radius,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- });
- }
- //特效动画实现 -----------------------------end
- } else if (tach == 1) {
- once = once + 1;
- } else {
- if (tach == 2 && once == 1) {
- alert("没有找到相关人员农房农地信息");
- }
- }
- })
- .catch((error) => {
- console.log("【异常】", error);
- });
- map.addLayer(delete_map[i]);
- }
- }
- });
- //按照查询 定位地图-----------------end
-
- //开始绘制地图 ------------------- start
-
- var vector_drawing;
- var draw;
- //开始绘制地图
- $("#drawPolygon").click(function () {
- //map.removeLayer(zjd_land);
- map.removeLayer(vector_drawing);
- //var source = new ol.source.Vector({wrapX: false});
- vector_drawing = new ol.layer.Vector({
- source: new ol.source.Vector(),
- });
- map.addLayer(vector_drawing);
-
- function addInteraction() {
- draw = new ol.interaction.Draw({
- source: vector_drawing.getSource(),
- type: "Polygon",
- });
- draw.on("drawend", function (evt) {
- var feature = evt.feature;
- var geometry = feature.getGeometry();
- var coordinate = geometry.getCoordinates();
- console.log("打印" + coordinate);
- _this.coordinateList = coordinate.toString();
- console.log(_this.coordinateList);
- $("#drawRemove").trigger("click");
- _this.$set(_this.draw, "drawMapPolygon", false);
-
- //that.drawInsert = coordinate;
- });
- map.addInteraction(draw);
- }
-
- addInteraction();
- });
- //清除画图鼠标点击事件
- $("#drawRemove").click(function () {
- map.removeInteraction(draw);
- });
- //还原之前图层
- $("#drawReset").click(function () {
- map.removeLayer(vector_drawing);
- //map.addLayer(zjd_land);
- });
-
- //开始绘制地图 ------------------- end
-
- //特效实现
- $("#texiao_fang").on("click", function () {
- /**
- * @api wfs服务空间查询
- * @param {*} wfsurl
- * @param {*} srsName
- * @param {*} typeName
- * @param {*} drawType
- * @param {option 可选} geometryField
- */
-
- //alert("进入分类");
- //删除之前加载的图层
- map.removeLayer(texiao_layer_fang);
- map.removeLayer(texiao_layer_di);
- var cun = _this.villageDataObj.deptName;
- _this.homesteadListShrink();
- //删除之前加载的图层
- //map.removeLayer(dishitu);
- //map.removeLayer(cunshitu);
- //分类查询查询农地、农房
- var difang;
- //地的数据判断
- difang = "nsgk_hc:t_geo_hc_house";
- //查询条件
- var cql_filter;
- //村的数据判断
- var val = $("#texiao_fang").val();
- if (val == "") {
- alert("请填写查询条件在查询");
- }
- //for(var i=0; i< difang.length; i++){
- //cql_filter = "CM='"+cun +"'"+ "and FWSYRMC='"+query_mz.value;
- cql_filter = "FWSYRMC='" + val + "' and CM='" + cun + "'";
- //图层加载
- //地的数据判断
-
- //定位查询位置
- let param_dw = {
- srsName: "EPSG:3857",
- service: "WFS",
- version: "1.0.0",
- request: "GetFeature",
- typename: difang,
- //featureNS: 'nsgk_hc',//命名空间 URI
- cql_filter: cql_filter,
- //featurePrefix: 'nationalwater',//工作区名称
- //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
- outputFormat: "application/json",
- //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
- };
- let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
- url_dw = url_dw + "?";
- for (let key in param_dw) {
- url_dw = url_dw + key + "=" + param_dw[key] + "&";
- }
- url_dw = url_dw.substr(0, url_dw.length - 1);
- fetch(url_dw, {
- method: "POST", // *GET, POST, PUT, DELETE, etc.
- })
- .then((res) => {
- var geojsonmap = res.json();
- return geojsonmap;
- })
- .then((data) => {
- //关联查询农房信息---------------start
- document.getElementById("info").innerHTML = "";
- var select_fang = (document.getElementById("info").innerHTML =
- data.features[0].properties);
- _this.farmhouseStatus = 0;
- let obj = {};
- let zjId = data.features[0].id;
- let zjIdNum = zjId.replace("t_geo_hc_house.", "");
- obj.id = zjIdNum; // 主键id
- obj.fwsyrmc = select_fang.FWSYRMC; //房屋所有人名称
- obj.cm = select_fang.CM; //村名
- obj.cdm = select_fang.CDM; //村代码
- obj.dz = select_fang.DZ; //地址
- obj.sfyspsx = select_fang.SFYSPSX; //是否有审批手续
- obj.fwsyqh = select_fang.FWSYQH; //房屋所有权证号
- obj.jzmj = select_fang.JZMJ; //建筑面积
- obj.tdzh = select_fang.TDZH; //建筑面积
- obj.tdxz = select_fang.TDXZ; //土地性质
- obj.tdmj = select_fang.TDMJ; //土地面积
- obj.xzqk = select_fang.XZQK; //现状情况
- obj.zlrxm = select_fang.ZLRXM; //租赁人姓名
- obj.zlhtjzrq = select_fang.ZLHTJZRQ; //租赁合同截止日期
- obj.zlsynx = select_fang.ZLSYNX; //租赁剩余年限
- obj.xzfwsfylzy = select_fang.XZFWSFYLZY; //闲置房屋是否有流转意愿
- obj.xh = select_fang.XH; //农房编号
-
- obj.orgCode = select_fang.org_code; //行政区代码
- obj.tdfl = select_fang.TDFL; //集体/个人
- obj.frontHouse = select_fang.front_house; //图片前
- obj.behindHouse = select_fang.behind_house; //图片后
- let cloneObj = JSON.parse(JSON.stringify(obj));
- _this.houseInfoList = cloneObj;
- _this.houseInfoList.frontland = "";
- _this.houseInfoList.behindland = "";
- _this.houseInfoLookList = obj;
- //关联查询农房信息---------------end
- //定位结束 --------------start
- //var datamap = data.bbox;
- var datamap = data.features[0].bbox;
- map.getView().animate({
- // 只设置需要的属性即可
- center: datamap, // 中心点
- zoom: 18, // 缩放级别
- rotation: undefined, // 缩放完成view视图旋转弧度
- duration: 1000, // 缩放持续时间,默认不需要设置
- });
- //定位结束 --------------end
- //特效动画实现 -----------------------------start
- texiao_layer_fang = new ol.layer.Vector({
- source: new ol.source.Vector(),
- });
- map.addLayer(texiao_layer_fang);
-
- var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
- var circle = new ol.Feature({
- geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
- });
-
- //var out =new ol.coordinate.Coordinate(datamap);
- //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
- //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
- //map.getView().setCenter(center); //设置当前地图的显示中心位置
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: 0,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- texiao_layer_fang.getSource().addFeature(circle);
-
- // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
- var radius = 0;
- map.on("postcompose", function () {
- // 增大半径,最大20
- radius++;
- radius = radius % 10;
- // 设置样式
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: radius,
- stroke: new ol.style.Stroke({
- color: "yellow",
- size: 1,
- }),
- }),
- })
- );
- });
- //特效动画实现 -----------------------------end
- })
- .catch((error) => {
- console.log("【异常】", error);
- });
- });
- //-----------------------------------------------------------------------------特效农房加载结束 end
-
- //-----------------------------------------------------------------------------特效农地加载开始 start
- //特效实现
- $("#texiao_di").on("click", function () {
- /**
- * @api wfs服务空间查询
- * @param {*} wfsurl
- * @param {*} srsName
- * @param {*} typeName
- * @param {*} drawType
- * @param {option 可选} geometryField
- */
- //alert("进入分类");
- //删除之前加载的图层
- map.removeLayer(texiao_layer_di);
- map.removeLayer(texiao_layer_fang);
- _this.homesteadListShrink();
- var cun = _this.villageDataObj.deptName;
- //删除之前加载的图层
- //map.removeLayer(dishitu);
- //map.removeLayer(cunshitu);
- //分类查询查询农地、农房
- var difang;
- //地的数据判断
- difang = "nsgk_hc:t_geo_hc_land";
- //查询条件
- var cql_filter;
- //村的数据判断
- var val = $("#texiao_di").val();
- if (val == "") {
- alert("请填写查询条件在查询");
- }
- //for(var i=0; i< difang.length; i++){
- //cql_filter = "CM='"+cun +"'"+ "and FWSYRMC='"+query_mz.value;
- cql_filter = "SYRMC='" + val + "' and CM='" + cun + "'";
- //图层加载
-
- //定位查询位置
- let param_dw = {
- srsName: "EPSG:3857",
- service: "WFS",
- version: "1.0.0",
- request: "GetFeature",
- typename: difang,
- INFO_FORMAT: "text/html",
- //featureNS: 'nsgk_hc',//命名空间 URI
- cql_filter: cql_filter,
- //featurePrefix: 'nationalwater',//工作区名称
- //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
- outputFormat: "application/json",
- //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
- };
- let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
- url_dw = url_dw + "?";
- for (let key in param_dw) {
- url_dw = url_dw + key + "=" + param_dw[key] + "&";
- }
- url_dw = url_dw.substr(0, url_dw.length - 1);
- fetch(url_dw, {
- method: "POST", // *GET, POST, PUT, DELETE, etc.
- })
- .then((res) => {
- var geojsonmap = res.json();
- return geojsonmap;
- })
- .then((data) => {
- //获取坐标定位开始----------start
- //var datamap = data.bbox;
- var datamap = data.features[0].bbox;
- map.getView().animate({
- // 只设置需要的属性即可
- center: datamap, // 中心点
- zoom: 16, // 缩放级别
- rotation: undefined, // 缩放完成view视图旋转弧度
- duration: 1000, // 缩放持续时间,默认不需要设置
- });
- //获取坐标定位开始----------end
- //特效动画实现 -----------------------------start
- texiao_layer_di = new ol.layer.Vector({
- source: new ol.source.Vector(),
- });
- map.addLayer(texiao_layer_di);
-
- var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
- var circle = new ol.Feature({
- geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
- });
-
- //var out =new ol.coordinate.Coordinate(datamap);
- //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
- //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
- //map.getView().setCenter(center); //设置当前地图的显示中心位置
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: 0,
- stroke: new ol.style.Stroke({
- color: "#ef5b9c",
- size: 1,
- }),
- }),
- })
- );
- texiao_layer_di.getSource().addFeature(circle);
-
- // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
- var radius = 0;
- map.on("postcompose", function () {
- // 增大半径,最大20
- radius++;
- radius = radius % 10;
- // 设置样式
- circle.setStyle(
- new ol.style.Style({
- image: new ol.style.Circle({
- radius: radius,
- stroke: new ol.style.Stroke({
- color: "#ef5b9c",
- size: 1,
- }),
- }),
- })
- );
- });
- //特效动画实现 -----------------------------end
- //关联查询农地信息 ----------start
- document.getElementById("info").innerHTML = "";
- var select_di = (document.getElementById("info").innerHTML =
- data.features[0].properties);
- _this.farmhouseStatus = 1;
- let obj = {};
- let zjId = data.features[0].id;
- let zjIdNum = zjId.replace("t_geo_hc_land.", "");
- obj.id = zjIdNum; // 主键id
- obj.xh = select_di.XH; //序号
- obj.cm = select_di.CM; //村名
- obj.cbrmc = select_di.CBRMC; //承包人名称
- obj.syrmc = select_di.SYRMC; //使用人名称
- obj.nydlx = select_di.NYDLX; //农用地类型
- obj.mj = select_di.MJ; //面积
- obj.xzqk = select_di.XZQK; //现状情况
- obj.lzhtjzrq = select_di.LZHTJZRQ; //流转合同截止时间
- obj.lzsynx = select_di.LZSYNX; //流转剩余年限
- obj.sfylzyx = select_di.SFYLZYX; //是否流转意向
- obj.cdm = select_di.CDM; //村代码
- obj.orgCode = select_di.org_code; //行政区化代码
- obj.frontland = select_di.front_land; //图片前
- obj.behindland = select_di.behind_land; //图片后
- // // _this.nydlxOptionsValue = trs.find("td").eq(5).text(); //农用地类型
- let cloneObj = JSON.parse(JSON.stringify(obj));
- _this.landInfoList = cloneObj;
- _this.landInfoLookList = obj;
- //关联查询农地信息 ----------end
- })
- .catch((error) => {
- console.log("【异常】", error);
- });
- });
-
- //-----------------------------------------------------------------------------特效农地加载结束 end
- },
-
- //农房 - 土地性质 选择值
- tdxzOptionsFun(value) {
- this.houseInfoList.tdxz = value.dictLabel;
-
- this.tdxzOptionsVibile = false;
- console.log(value);
- console.log(this.houseInfoList);
- },
- //农房 - 是否有审批 选择值
- xfCirculationFun(value) {
- this.xfCirculationVisbile = false;
- this.houseInfoList.sfyspsx = value;
- },
- //农房 - 现状情况 选择值
- xzqkOptionsFun(value) {
- this.houseInfoList.xzqk = value.dictValue;
- this.xzqkOptionsVisbile = false;
- },
- //农房 - 是否有流转 选择值
- xflzCirculationFun(value) {
- this.xflzCirculationVisbile = false;
- this.houseInfoList.xzfwsfylzy = value;
- },
- //农房 - 房屋类型
- fwdlxOptionsFun(value) {
- this.houseInfoList.tdfl = value;
- this.fwdlxOptionsVibile = false;
- },
- //农地 - 现状情况 选择值
- ndxzqkOptionsFun(value) {
- this.landInfoList.xzqk = value.dictValue;
- this.ndxzqkOptionsVisbile = false;
- },
- //农地 - 农用地类型 选择值
- nydlxOptionsFun(value) {
- this.landInfoList.nydlx = value.dictLabel;
- // this.nydlxOptionsValue = value.dictLabel;
- this.nydlxOptionsVibile = false;
- },
- //农地 - 是否有流转 选择值
- xdCirculationOptionsFun(value) {
- this.xdlzCirculationVisbile = false;
- this.landInfoList.sfylzyx = value;
- },
- //农房 -- 新建 上传图片方法
- nfAddimgonRead(file) {
- var formData = new FormData(); //构造一个 FormData,把后台需要发送的参数添加
- formData.append("file", file.file); //接口需要传的参数
- commonUpload(formData).then((res) => {
- this.houseInfoList.frontHouse = res.url;
- });
- },
- //农地 -- 新建 上传图片方法
- ndAddimgonRead(file) {
- var formData = new FormData(); //构造一个 FormData,把后台需要发送的参数添加
- formData.append("file", file.file); //接口需要传的参数
- commonUpload(formData).then((res) => {
- this.landInfoList.frontland = res.url;
- });
- },
- },
- };
- </script>
- <style scoped lang="scss">
- .app-container {
- width: 100vw;
- height: 100vh;
- position: relative;
- .rightIcon_wrap {
- position: absolute;
- right: 16px;
- bottom: 160px;
- .selectionIcon_wrap {
- width: 74px;
- background: #fff;
- border-radius: 10px;
- padding: 14px 0;
-
- .icon {
- width: 38px;
- height: 38px;
- background: url("../../assets/images/homestead/selection_icon.png")
- no-repeat;
- background-size: 100% 100%;
- margin: 0 auto 4px;
- }
- .text {
- font-size: 24px;
- text-align: center;
- }
- }
- .positioning_wrap {
- width: 74px;
- background: #fff;
- margin-bottom: 16px;
- border-radius: 10px;
- height: 74px;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中*/
- .icon {
- width: 38px;
- height: 38px;
- background: url("../../assets/images/homestead/positioning_icon.png")
- no-repeat;
- background-size: 100% 100%;
- margin: 0 auto;
- }
- }
- }
- .rightZoom_wrap {
- position: absolute;
- right: 16px;
- top: 50%;
- width: 74px;
- margin-top: -200px;
- background: #fff;
- margin-bottom: 16px;
- border-radius: 10px;
- height: 100px;
- .amplification,
- .narrow {
- height: 50px;
- width: 74px;
- }
- .amplification {
- background: url("../../assets/images/homestead/jia.png") center center
- no-repeat;
- // background-size: 40% auto;
- }
- .narrow {
- background: url("../../assets/images/homestead/jian.png") center center
- no-repeat;
- // background-size: 40% auto;
- }
- }
- // <div class="rightZoom_wrap">
- // <div class="amplification"></div>
- // <div class="narrow"></div>
- // </div>
- .homesteadList_wrap {
- // display: none;
- display: flex;
- position: absolute;
- right: -536px;
- top: 20px;
- bottom: 160px;
- width: 536px;
- background: #fff;
- z-index: 999;
- border-top-left-radius: 15px;
- border-bottom-left-radius: 15px;
-
- flex-direction: column;
- .noInfo_data {
- font-size: 28px;
- text-align: center;
- height: 300px;
- line-height: 300px;
- color: #666;
- }
- .title_m {
- color: #333;
- line-height: 36px;
- padding: 20px 40px 22px;
- .name {
- font-size: 40px;
- line-height: 42px;
- height: 42px;
- }
- .more_icon {
- width: 38px;
- height: 38px;
- background: url("../../assets/images/homestead/selectionNext_icon.png")
- no-repeat;
- float: right;
- margin-top: 2px;
- }
- }
-
- .main_m {
- overflow-y: auto;
- padding: 10px 0;
- // height: 300px;
- flex: 1;
- .flex_block {
- height: 70px;
- display: flex;
- // justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- padding: 0 40px;
- &.active {
- box-shadow: 0px 0px 10px rgba(24, 45, 51, 0.5);
- }
- .name_text {
- font-size: 28px;
- flex: 0.5;
- overflow: hidden; /*超出部分隐藏*/
- white-space: nowrap; /*不换行*/
- text-overflow: ellipsis; /*超出部分文字以...显示*/
- }
- .square_text {
- font-size: 28px;
- flex: 0.4;
- }
- .operation_mian {
- flex: 0 0 150px;
-
- .describe {
- font-size: 20px;
- padding: 6px 5px;
- float: right;
- color: #fff;
- border-radius: 30px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- max-width: 150px;
- &.yph {
- background: rgb(175, 39, 255);
- }
- &.dlzdph {
- background: rgb(255, 111, 54);
- }
- &.ylz {
- background: #3cbf5b;
- }
- &.dlz {
- background: rgb(255, 232, 76);
- }
- &.ylzdph {
- background: rgb(228, 30, 100);
- }
- }
- }
- }
- }
- .footerBtn_wrap {
- flex: 0 0 90px;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
-
- .options {
- flex: 1;
- font-size: 38px;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- height: 90px;
- &:first-child {
- border-bottom-left-radius: 15px;
- }
- &.active {
- background: #3cbf5b;
- color: #fff;
- }
- }
- }
- }
- .map_area {
- width: 100vw;
- height: 100vh;
- background: #ddd;
- position: absolute;
- left: 0;
- top: 0;
- }
- .address_wrap {
- position: fixed;
- // z-index: 9;
- top: 24px;
- left: 16px;
- display: flex;
- .address_item {
- display: flex;
- flex-direction: column;
- margin-right: 8px;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- position: relative;
- .portrait {
- width: 86px;
- height: 86px;
- background: #000;
- border-radius: 50%;
- margin-bottom: 18px;
- font-size: 30px;
- color: #fff;
- text-align: center;
- line-height: 65px;
- color: #fff;
- &.zhen,
- &.cun {
- border: 5px solid rgba(255, 255, 255, 0.6);
- }
- &.zhen {
- background: url("../../assets/images/homestead/zhen.jpg") top center
- no-repeat;
- background-size: 100% 100%;
- }
- &.cun {
- background: url("../../assets/images/homestead/cun.jpg") top center
- no-repeat;
- background-size: 100% 100%;
- }
- }
- .name {
- font-size: 22px;
- background: #fff;
- padding: 4px 6px;
- border-radius: 8px;
- }
- &.more {
- .portrait {
- width: 40px;
- background: none;
- }
- .name {
- background: url("../../assets/images/homestead/address_more.png")
- no-repeat;
- background-size: 100% 100%;
- width: 40px;
- height: 40px;
- padding: 0;
- &.shrink {
- transform: rotate(180deg);
- }
- }
- }
- .address_suspension {
- position: absolute;
- left: calc(100% + 8px);
- top: 100px;
- z-index: 10;
- padding: 10px 8px 10px 15px;
- background: #fff;
- border-radius: 10px;
- width: auto;
- .address_suspension_scroll {
- height: 200px;
- overflow-y: auto;
- padding-right: 8px;
- }
- .items {
- white-space: nowrap;
- }
- }
- }
- }
- .searchBar_wrap {
- // display: none;
- display: flex;
- position: fixed;
- bottom: 0%;
- left: 0;
- width: 100%;
- padding: 28px 16px 28px 13px;
- background: #fff;
- border-top-left-radius: 15px;
- border-top-right-radius: 15px;
- .actionBar_wrap {
- display: flex;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
-
- background: #fff;
- border-top-left-radius: 15px;
- border-top-right-radius: 15px;
- .m_list {
- flex: 1;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
-
- .tensile,
- .positioning,
- .spacing,
- .scale {
- width: 76px;
- height: 72px;
- background: #ffffff;
- border-radius: 8px;
- box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.16);
- .icon {
- width: 76px;
- height: 72px;
- }
- &.active {
- background: #333;
- &.tensile {
- .icon {
- background: url("../../assets/images/homestead/operation/tensile_active.png")
- center center no-repeat;
- background-size: 38px 50px;
- }
- }
- &.positioning {
- .icon {
- background: url("../../assets/images/homestead/operation/positioning_active.png")
- center center no-repeat;
- background-size: 38px 48px;
- }
- }
- &.spacing {
- .icon {
- background: url("../../assets/images/homestead/operation/spacing_active.png")
- center center no-repeat;
- background-size: 46px 46px;
- }
- }
- &.scale {
- .icon {
- background: url("../../assets/images/homestead/operation/scale_active.png")
- center center no-repeat;
- background-size: 48px 48px;
- }
- }
- }
- }
- .tensile {
- .icon {
- background: url("../../assets/images/homestead/operation/tensile.png")
- center center no-repeat;
- background-size: 38px 50px;
- }
- }
- .positioning {
- .icon {
- background: url("../../assets/images/homestead/operation/positioning.png")
- center center no-repeat;
- background-size: 38px 48px;
- }
- }
- .spacing {
- .icon {
- background: url("../../assets/images/homestead/operation/spacing.png")
- center center no-repeat;
- background-size: 46px 46px;
- }
- }
- .scale {
- .icon {
- background: url("../../assets/images/homestead/operation/scale.png")
- center center no-repeat;
- background-size: 48px 48px;
- }
- }
- .closes {
- background: url("../../assets/images/homestead/searchBar_close.png")
- no-repeat;
- background-size: 100% 100%;
- width: 72px;
- height: 72px;
- &.gray {
- background: url("../../assets/images/homestead/searchBar_close_gray.png")
- no-repeat;
- background-size: 100% 100%;
- }
- }
- .correct {
- background: url("../../assets/images/homestead/searchBar_save.png")
- no-repeat;
- background-size: 100% 100%;
- width: 72px;
- height: 72px;
- }
- }
- }
- .searchBar_area {
- flex: 1;
- height: 80px;
- background: #f1f1f1;
- border: 1px solid #dfdfdf;
- border-radius: 10px;
- padding: 0 28px;
- display: flex;
- .bar_icon {
- width: 50px;
- height: 50px;
- background: url("../../assets/images/homestead/searchBar_bar.png")
- center center no-repeat;
- background-size: 100% 100%;
- margin-top: 14px;
- margin-right: 15px;
- }
- .bar_ipt {
- flex: 1;
- input {
- width: 100%;
- height: 100%;
- background: none;
- border: 0 none;
- font-size: 32px;
- }
- }
- .bar_text {
- flex: 0 0 80px;
- font-size: 32px;
- color: #333333;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- }
- }
- .searchBar_more {
- flex: 0 0 80px;
- background: url("../../assets/images/homestead/searchBar_add.png") center
- center no-repeat;
- background-size: 80% 80%;
- margin-left: 15px;
- }
- }
- .landHomestead_wrap {
- position: fixed;
- bottom: -100%;
- left: 0;
- width: 100%;
- padding: 0 16px;
- .landHomestead_search {
- height: 80px;
- background: #f1f1f1;
- border: 1px solid #dfdfdf;
- border-radius: 10px;
- padding: 0 28px;
- display: flex;
- margin-bottom: 10px;
- .bar_icon {
- width: 50px;
- height: 50px;
- background: url("../../assets/images/homestead/searchBar_bar.png")
- center center no-repeat;
- background-size: 95% 95%;
- margin-top: 14px;
- margin-right: 15px;
- }
- .bar_ipt {
- flex: 1;
- input {
- width: 100%;
- height: 100%;
- background: none;
- border: 0 none;
- font-size: 32px;
- }
- }
- .bar_text {
- flex: 0 0 80px;
- font-size: 32px;
- color: #333333;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- }
- }
- .landHomestead_body {
- background: #fff;
- padding: 30px 20px;
- border-top-left-radius: 12px;
- border-top-right-radius: 12px;
- position: relative;
- .body_flex {
- display: block;
- overflow: hidden;
- .attribute {
- width: 42%;
- float: left;
-
- .names {
- height: 54px;
- padding-left: 46px;
- background: url("../../assets/images/homestead/landHomestead_home.png")
- left center no-repeat;
- background-size: 38px 36px;
- font-size: 32px;
- line-height: 54px;
- color: #333333;
- margin-bottom: 12px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .address {
- height: 48px;
- line-height: 48px;
- font-size: 28px;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- margin-right: 8px;
- }
- .nature {
- height: 48px;
- font-size: 28px;
- }
- }
- .distance {
- width: 29%;
- float: left;
- .size {
- height: 54px;
- line-height: 54px;
- font-size: 40px;
- color: #333333;
- margin-bottom: 12px;
- }
- .probably {
- line-height: 48px;
- font-size: 28px;
- height: 48px;
- }
- }
- .others {
- width: 29%;
- float: left;
- .information {
- height: 54px;
- margin-bottom: 12px;
- .status_text {
- color: #fff;
- font-size: 24px;
- background: #3cbf5b;
- border-radius: 20px;
- padding: 8px 15px;
- float: right;
- max-width: calc(100% - 56px);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .location {
- width: 36px;
- height: 36px;
- background: url("../../assets/images/homestead/others_location.png")
- no-repeat;
- float: right;
- margin: 8px 0 0 20px;
- }
- }
- .editor {
- height: 96px;
- .editor_icon {
- width: 72px;
- height: 72px;
- float: right;
- background: url("../../assets/images/homestead/edit_icon.png")
- no-repeat;
- background-size: 100% 100%;
- margin-top: 14px;
- }
- }
- }
- }
- }
- }
- .landHomesteadDetails_wrap {
- display: flex;
- position: absolute;
- left: 0;
- bottom: 0;
- width: 100%;
- z-index: 99;
- height: calc(100% - 190px);
-
- .content_mian {
- flex: 1;
- margin: 0 16px;
- padding: 28px 40px 28px 40px;
- background: #fff;
- border-top-left-radius: 15px;
- border-top-right-radius: 15px;
- display: flex;
- flex-direction: column;
- .serial_flex {
- flex: 0 0 60px;
- margin-bottom: 15px;
- font-size: 40px;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- color: #333;
- display: flex;
- .number {
- flex: 1;
- span {
- padding-left: 30px;
- }
- }
- .localhref {
- height: 36px;
- flex: 0 0 36px;
- background: url("../../assets/images/homestead/farmlandEditSwitch_close.png")
- no-repeat;
- background-size: 100% 100%;
- }
- }
- .flex_block {
- flex: 1;
- font-size: 28px;
- .describe {
- color: #555;
- padding-right: 30px;
- }
- .content {
- font-size: #333;
- }
- }
- .uploadPictures_block {
- flex: 0 0 160px;
- display: flex;
- max-width: 90%;
- .statusQuo {
- flex: 1;
- display: flex;
- &:first-child {
- margin-right: 36px;
- }
- .picture {
- flex: 1;
- background: url("../../assets/images/homestead/no_img.png") center
- center no-repeat;
- background-size: 90% auto;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .describe {
- flex: 0 0 32px;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- margin-left: 6px;
- }
- }
- }
- .editor_block {
- flex: 0 0 72px;
- margin-top: 20px;
- display: flex;
- justify-content: flex-end;
- .editor_icon {
- width: 70px;
- height: 70px;
- background: url("../../assets/images/homestead/edit_icon.png")
- no-repeat;
- background-size: 100% 100%;
- }
- }
- }
- }
- .landHomesteadEdit_wrap {
- display: flex;
- position: absolute;
- left: 0;
- bottom: -100vh;
- z-index: 100;
- width: 100%;
- height: calc(100% - 190px);
- flex-direction: column;
- .content_mian {
- flex: 1;
- margin: 0 16px;
- padding: 28px 25px 28px 40px;
- background: #fff;
- border-top-left-radius: 15px;
- border-top-right-radius: 15px;
- display: flex;
- flex-direction: column;
- .info_title {
- flex: 0 0 60px;
- margin-bottom: 15px;
- font-size: 40px;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- color: #333;
- }
- .flex_main {
- height: 890px;
- padding-right: 15px;
- overflow-y: auto;
- }
- .flex_block {
- height: 100px;
- margin-bottom: 20px;
- .number_s50 {
- width: 50%;
- display: flex;
- float: left;
- flex-direction: column;
- }
- .number_s100 {
- width: 100%;
- float: left;
- display: flex;
- flex-direction: column;
- }
- .number_s60 {
- // flex: 0.6;
- width: 60%;
- float: left;
- display: flex;
- flex-direction: column;
- }
- .number_s40 {
- // flex: 0.4;
- width: 40%;
- display: flex;
- flex-direction: column;
- }
- .number_s35 {
- width: 35%;
- float: left;
- display: flex;
- flex-direction: column;
- }
- .number_s30 {
- width: 30%;
- display: flex;
- float: left;
- flex-direction: column;
- }
- .title_m {
- font-size: 28px;
- flex: 0 0 50px;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- align-items: center; /* 子元素相对父元素垂直居中 */
- }
- .input_m {
- &.select {
- position: relative;
- .dropDown_icon {
- width: 20px;
- height: 16px;
- background: url("../../assets/images/homestead/drop-down.png")
- no-repeat;
- background-size: 100% 100%;
- display: block;
- position: absolute;
- right: 8px;
- top: 12px;
- z-index: 99;
- }
- }
- &.about {
- position: relative;
- .about_symbol {
- position: absolute;
- left: 8px;
- top: 5px;
- z-index: 99;
- }
- /deep/ {
- .van-field__control {
- padding-left: 38px;
- }
- }
- }
-
- .van-cell {
- padding: 0;
- /deep/ {
- .van-field__control {
- border-bottom: 1px solid #707070;
- &:focus {
- border-color: #3cbf5b;
- color: #3cbf5b;
- }
- }
- }
- }
- }
- .mr50 {
- padding-right: 50px;
- }
- }
- .uploadPicturesFlex_block {
- .title_m {
- font-size: 28px;
- flex: 0 0 50px;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- align-items: center; /* 子元素相对父元素垂直居中 */
- margin-bottom: 20px;
- }
- .main_m {
- }
- }
- }
- .footer_main {
- flex: 0 0 120px;
- background: #fff;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- .cancel,
- .save {
- width: 260px;
- height: 75px;
- border-radius: 75px;
- background: #cccccc;
- font-size: 32px;
- color: #fff;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- }
- .save {
- background: #3cbf5b;
- margin-left: 50px;
- }
- }
- }
- .farmlandEditSwitch_wrap {
- width: 100vw;
- height: 100vh;
- background: url("../../assets/images/homestead/farmlandEditSwitch_bg.png")
- no-repeat;
- background-size: 100% 100%;
- position: absolute;
- left: 0;
- top: 0;
- z-index: 1001;
- .mains {
- width: 544px;
- height: 480px;
- background: #fff;
- position: absolute;
- left: 50%;
- top: 50%;
- margin: -272px 0 0 -272px;
- z-index: 1002;
- border-radius: 30px;
- padding: 0 30px;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- .close_btn {
- position: absolute;
- width: 28px;
- height: 28px;
- background: url("../../assets/images/homestead/farmlandEditSwitch_close.png")
- no-repeat;
- background-size: 100% 100%;
- right: 40px;
- top: 40px;
- }
- .farmhouse {
- flex: 1;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- }
- .farmland {
- flex: 1;
- display: flex;
- justify-content: center; /* 相对父元素水平居中 */
- align-items: center; /* 子元素相对父元素垂直居中 */
- }
- .farmhouse,
- .farmland {
- flex-direction: column;
- .icons {
- width: 146px;
- height: 146px;
- margin-bottom: 14px;
- }
- .names {
- font-size: 40px;
- color: #3cbf5b;
- }
- }
- .farmhouse {
- .icons {
- background: url("../../assets/images/homestead/nf.png") no-repeat;
- background-size: 100% 100%;
- }
- }
- .farmland {
- .icons {
- background: url("../../assets/images/homestead/nd.png") no-repeat;
- background-size: 100% 100%;
- }
- }
-
- // <div class="farmhouse">
- // <div class="icons"></div>
- // <p class="names">农房</p>
- // </div>
- // <div class="farmland">
- // <div class="icons"></div>
- // <p class="names">农地</p>
- // </div>
- }
- }
- }
-
- ::-webkit-scrollbar {
- -webkit-appearance: none;
- }
-
- ::-webkit-scrollbar:vertical {
- width: 10px;
- border-radius: 10px;
- }
-
- ::-webkit-scrollbar:horizontal {
- height: 10px;
- border-radius: 10px;
- }
-
- ::-webkit-scrollbar-thumb {
- background-color: #eee;
- border-radius: 10px;
- border: 3px solid #ffffff;
- }
-
- ::-webkit-scrollbar-track {
- border-radius: 10px;
- background-color: #ffffff;
- }
-
- ::v-deep {
- .van-overlay {
- background-color: rgba(0, 0, 0, 0.2);
- }
- }
- </style>
|