移动端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.vue 115 KiB

4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533
  1. <template>
  2. <div class="app-container">
  3. <!-- <div style="position: relative; z-index: 999999"> -->
  4. <div style="display: none">
  5. <select id="zhen"></select>
  6. <select id="cun" autofocus></select>
  7. <input id="texiao_fang" type="button" value="特效农房" /> 
  8. <input id="texiao_di" type="button" value="特效农地" /> 
  9. <input id="qingchu" type="button" value="清除" /> 
  10. <button id="drawPolygon">绘制地图</button>
  11. <button id="drawRemove">清除画图</button>
  12. <button id="drawReset">还原之前图层</button>
  13. </div>
  14. <div class="map_area" id="mapWrap"></div>
  15. <!--列表 定位-->
  16. <div class="rightIcon_wrap">
  17. <div class="positioning_wrap">
  18. <div class="icon"></div>
  19. </div>
  20. <div
  21. class="selectionIcon_wrap"
  22. @click="selectionPush"
  23. >
  24. <div class="icon"></div>
  25. <div class="text">列表</div>
  26. </div>
  27. </div>
  28. <!--放大缩小-->
  29. <div class="rightZoom_wrap">
  30. <div class="amplification" ref="sliderBig"></div>
  31. <div class="narrow" ref="sliderSmall"></div>
  32. </div>
  33. <!--列表拉取详情-->
  34. <div class="homesteadList_wrap">
  35. <div class="title_m">
  36. <div class="more_icon" @click="homesteadListShrink"></div>
  37. <div class="name">宅基地列表</div>
  38. </div>
  39. <div class="main_m" v-if="statusList == 0">
  40. <!--1-->
  41. <div
  42. class="flex_block"
  43. v-for="(items, index) in hcBottonHouseArr"
  44. :key="index"
  45. :class="{ active: selectChooseOrder == index }"
  46. @click="housingSerial(items, index)"
  47. >
  48. <div class="name_text">{{ items.name }}</div>
  49. <div class="square_text">{{ items.mj }}㎡</div>
  50. <div class="operation_mian">
  51. <div
  52. class="describe"
  53. :class="[
  54. items.xzqk == '已盘活' ? 'yph' : '',
  55. items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
  56. items.xzqk == '已流转' ? 'ylz' : '',
  57. items.xzqk == '待流转' ? 'dlz' : '',
  58. ]"
  59. >
  60. {{ items.xzqk }}
  61. </div>
  62. </div>
  63. </div>
  64. <div v-if="hcBottonHouseArr.length == 0" class="noInfo_data">
  65. 暂无农房信息
  66. </div>
  67. </div>
  68. <div class="main_m" v-if="statusList == 1">
  69. <!--1-->
  70. <div
  71. class="flex_block"
  72. v-for="(items, index) in hcBottonLandArr"
  73. :key="index"
  74. :class="{ active: selectChooseOrder == index }"
  75. @click="housingSerial(items, index)"
  76. >
  77. <div class="name_text">{{ items.name }}</div>
  78. <div class="square_text">{{ items.mj }}亩</div>
  79. <div class="operation_mian">
  80. <div
  81. class="describe"
  82. :class="[
  83. items.xzqk == '已盘活' ? 'yph' : '',
  84. items.xzqk == '待流转待盘活' ? 'dlzdph' : '',
  85. items.xzqk == '已流转' ? 'ylz' : '',
  86. items.xzqk == '待流转' ? 'dlz' : '',
  87. ]"
  88. >
  89. {{ items.xzqk }}
  90. </div>
  91. </div>
  92. </div>
  93. <div v-if="hcBottonLandArr.length == 0" class="noInfo_data">
  94. 暂无农地信息
  95. </div>
  96. </div>
  97. <!-- //待租列表 房
  98. hcBottonHouseArr: [],
  99. //待租列表 地
  100. hcBottonLandArr: [], -->
  101. <div class="footerBtn_wrap">
  102. <div
  103. class="options"
  104. :class="{ active: statusList == 0 }"
  105. @click="housingTypes('0')"
  106. >
  107. 农房
  108. </div>
  109. <div
  110. class="options"
  111. :class="{ active: statusList == 1 }"
  112. @click="housingTypes('1')"
  113. >
  114. 农地
  115. </div>
  116. </div>
  117. </div>
  118. <!--选择地址-->
  119. <div class="address_wrap">
  120. <div class="address_item">
  121. <div class="portrait cun" @click="villageVisbileFun">村</div>
  122. <div class="name" @click="villageVisbileFun">
  123. {{villageDataObj.deptName}}
  124. </div>
  125. </div>
  126. </div>
  127. <van-popup v-model="villageVisbile" round position="bottom">
  128. <van-cascader
  129. v-model="villageValue"
  130. title="请选择所在村"
  131. :options="hcAreaInfoOption"
  132. @close="villageVisbile = false"
  133. @finish="hcAreaInfoFinish"
  134. active-color="#1989fa"
  135. :field-names="hcAreaInfoFieldName"
  136. />
  137. </van-popup>
  138. <!--搜索栏目-->
  139. <div class="searchBar_wrap" >
  140. <div class="actionBar_wrap" v-if="searchBarOperVisbile">
  141. <div class="m_list">
  142. <div
  143. class="tensile"
  144. :class="{ active: draw.drawMapPolygon }"
  145. @click="drawMapPolygonFun"
  146. >
  147. <div class="icon"></div>
  148. </div>
  149. </div>
  150. <div class="m_list">
  151. <div class="positioning">
  152. <div class="icon"></div>
  153. </div>
  154. </div>
  155. <div class="m_list">
  156. <div class="spacing">
  157. <div class="icon"></div>
  158. </div>
  159. </div>
  160. <div class="m_list">
  161. <div class="scale">
  162. <div class="icon"></div>
  163. </div>
  164. </div>
  165. <div class="m_list">
  166. <div class="closes gray" @click="searchBarOperFun('false')">
  167. <div class="icon"></div>
  168. </div>
  169. </div>
  170. <div class="m_list" @click="farmlandEditSwitchFun">
  171. <div class="correct"></div>
  172. </div>
  173. </div>
  174. <div class="searchBar_area">
  175. <div class="bar_icon"></div>
  176. <div class="bar_ipt">
  177. <input type="text" placeholder="请输入宗地或权利人信息" />
  178. </div>
  179. <div class="bar_text">搜索</div>
  180. </div>
  181. <div class="searchBar_more" @click="searchBarOperFun('true')"></div>
  182. </div>
  183. <!--点击房地-显示的搜索--->
  184. <div class="landHomestead_wrap">
  185. <div class="landHomestead_search">
  186. <div class="bar_icon"></div>
  187. <div class="bar_ipt">
  188. <input type="text" placeholder="请输入宗地或权利人信息" />
  189. </div>
  190. <div class="bar_text">搜索</div>
  191. </div>
  192. <div class="landHomestead_body">
  193. <!--0-农房-->
  194. <div class="body_flex" v-if="farmhouseStatus==0">
  195. <div class="attribute" @click="houseLandLookInfo('show')">
  196. <div class="names">{{houseInfoList.fwsyrmc}}</div>
  197. <div class="address">{{houseInfoList.dz}}</div>
  198. <div class="nature">性质:{{houseInfoList.tdxz}}</div>
  199. </div>
  200. <div class="distance">
  201. <div class="size">{{houseInfoList.xh}}</div>
  202. <div class="probably">大约{{houseInfoList.jzmj}}㎡</div>
  203. </div>
  204. <div class="others">
  205. <div class="information">
  206. <div class="location"></div>
  207. <div class="status_text">{{houseInfoList.xzqk}}</div>
  208. </div>
  209. <div class="editor">
  210. <div class="editor_icon" @click="editnfdInfo"></div>
  211. </div>
  212. </div>
  213. </div>
  214. <!--1-农地-->
  215. <div class="body_flex" v-if="farmhouseStatus==1">
  216. <div class="attribute" @click="houseLandLookInfo('show')">
  217. <div class="names">{{landInfoList.syrmc}}</div>
  218. <div class="address">{{landInfoList.cm}}</div>
  219. <div class="nature">性质:{{landInfoList.nydlx}}</div>
  220. </div>
  221. <div class="distance">
  222. <div class="size">{{landInfoList.xh}}</div>
  223. <div class="probably">大约{{landInfoList.mj}}㎡</div>
  224. </div>
  225. <div class="others">
  226. <div class="information">
  227. <div class="location"></div>
  228. <div class="status_text">{{landInfoList.xzqk}}</div>
  229. </div>
  230. <div class="editor">
  231. <div class="editor_icon" @click="editnfdInfo"></div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <div id="info" ></div>
  238. <!--房地全部信息展示-->
  239. <div class="landHomesteadDetails_wrap" v-show="landHomesteadDetailsVisibile">
  240. <!---农房-->
  241. <div class="content_mian" v-if="farmhouseStatus == 0">
  242. <!--内容-->
  243. <div class="serial_flex">
  244. <div class="number">农房编号<span>{{houseInfoLookList.xh}}</span></div>
  245. <div class="localhref" @click="houseLandLookInfo('hide')"></div>
  246. </div>
  247. <!--1-->
  248. <div class="flex_block">
  249. <span class="describe">房屋所有人名称</span
  250. ><span class="content">{{houseInfoLookList.fwsyrmc}}</span>
  251. </div>
  252. <!--1-->
  253. <div class="flex_block">
  254. <span class="describe">村名</span><span class="content">{{houseInfoLookList.cm}}</span>
  255. </div>
  256. <!--1-->
  257. <div class="flex_block">
  258. <span class="describe">地址</span
  259. ><span class="content">{{houseInfoLookList.dz}}</span>
  260. </div>
  261. <!--1-->
  262. <div class="flex_block">
  263. <span class="describe">是否有审批手续</span
  264. ><span class="content">{{houseInfoLookList.sfyspsx}}</span>
  265. </div>
  266. <!--1-->
  267. <div class="flex_block">
  268. <span class="describe">房屋所有权证号</span
  269. ><span class="content">{{houseInfoLookList.fwsyqh}}</span>
  270. </div>
  271. <!--1-->
  272. <div class="flex_block">
  273. <span class="describe">建筑面积</span
  274. ><span class="content">大约{{houseInfoLookList.jzmj}}㎡</span>
  275. </div>
  276. <!--1-->
  277. <div class="flex_block">
  278. <span class="describe">土地证号</span
  279. ><span class="content">{{houseInfoLookList.tdzh}}</span>
  280. </div>
  281. <!--1-->
  282. <div class="flex_block">
  283. <span class="describe">土地性质</span
  284. ><span class="content">{{houseInfoLookList.tdxz}}</span>
  285. </div>
  286. <!--1-->
  287. <div class="flex_block">
  288. <span class="describe">土地面积</span
  289. ><span class="content">大约{{houseInfoLookList.tdmj}}㎡</span>
  290. </div>
  291. <!--1-->
  292. <div class="flex_block">
  293. <span class="describe">现状情况</span
  294. ><span class="content">{{houseInfoLookList.xzqk}}</span>
  295. </div>
  296. <!--1-->
  297. <div class="flex_block">
  298. <span class="describe">是否有流转意向</span
  299. ><span class="content">{{houseInfoLookList.xzfwsfylzy}}</span>
  300. </div>
  301. <!--1-->
  302. <div class="flex_block">
  303. <span class="describe">租赁人</span
  304. ><span class="content">{{houseInfoLookList.zlrxm}}</span>
  305. </div>
  306. <!--1-->
  307. <div class="flex_block">
  308. <span class="describe">租赁剩余年限</span
  309. ><span class="content">{{houseInfoLookList.zlsynx}}年</span>
  310. </div>
  311. <!--1-->
  312. <div class="flex_block">
  313. <span class="describe">租赁合同截止日期</span
  314. ><span class="content">{{houseInfoLookList.zlhtjzrq}}</span>
  315. </div>
  316. <!--上传图片-->
  317. <div class="uploadPictures_block">
  318. <div class="statusQuo">
  319. <div class="picture"></div>
  320. <div class="describe">现<br />状<br />图<br />片</div>
  321. </div>
  322. <div class="statusQuo">
  323. <div class="picture"></div>
  324. <div class="describe">历<br />史<br />图<br />片</div>
  325. </div>
  326. </div>
  327. <!--编辑-->
  328. <div class="editor_block" @click="editnfdInfo">
  329. <div class="editor_icon"></div>
  330. </div>
  331. </div>
  332. <!---农地-->
  333. <div class="content_mian" v-else-if="farmhouseStatus == 1">
  334. <!--内容-->
  335. <div class="serial_flex">
  336. <div class="number">农地编号<span>31</span></div>
  337. <div class="localhref" @click="houseLandLookInfo('hide')"></div>
  338. </div>
  339. <!--1-->
  340. <div class="flex_block">
  341. <span class="describe">农地使用人名称</span
  342. ><span class="content">{{landInfoLookList.syrmc}}</span>
  343. </div>
  344. <!--1-->
  345. <div class="flex_block">
  346. <span class="describe">村名</span><span class="content">{{landInfoLookList.cm}}</span>
  347. </div>
  348. <!--1-->
  349. <div class="flex_block">
  350. <span class="describe">是否有流转意向</span
  351. ><span class="content">{{landInfoLookList.sfylzyx}}</span>
  352. </div>
  353. <!--1-->
  354. <div class="flex_block">
  355. <span class="describe">土地面积</span
  356. ><span class="content">大约{{landInfoLookList.mj}}亩</span>
  357. </div>
  358. <!--1-->
  359. <div class="flex_block">
  360. <span class="describe">农用地类型</span
  361. ><span class="content">大约{{landInfoLookList.nydlx}}</span>
  362. </div>
  363. <!--1-->
  364. <div class="flex_block">
  365. <span class="describe">现状情况</span
  366. ><span class="content">{{landInfoLookList.xzqk}}</span>
  367. </div>
  368. <!--1-->
  369. <div class="flex_block">
  370. <span class="describe">承包人</span
  371. ><span class="content">{{landInfoLookList.cbrmc}}</span>
  372. </div>
  373. <!--1-->
  374. <div class="flex_block">
  375. <span class="describe">流转剩余年限</span
  376. ><span class="content">{{landInfoLookList.lzsynx}}年</span>
  377. </div>
  378. <!--1-->
  379. <div class="flex_block">
  380. <span class="describe">流转合同截止日期</span
  381. ><span class="content">{{landInfoLookList.lzhtjzrq}}</span>
  382. </div>
  383. <!--上传图片-->
  384. <div class="uploadPictures_block">
  385. <div class="statusQuo">
  386. <div class="picture"></div>
  387. <div class="describe">现<br />状<br />图<br />片</div>
  388. </div>
  389. <div class="statusQuo">
  390. <div class="picture"></div>
  391. <div class="describe">历<br />史<br />图<br />片</div>
  392. </div>
  393. </div>
  394. <!--编辑-->
  395. <div class="editor_block" @click="editnfdInfo">
  396. <div class="editor_icon"></div>
  397. </div>
  398. </div>
  399. </div>
  400. <!--房地全部信息编辑-->
  401. <div
  402. class="landHomesteadEdit_wrap"
  403. v-show="landHomesteadEditVisbile"
  404. style="bottom: 0"
  405. >
  406. <div class="content_mian" ref="landHomesteadEditWrap">
  407. <div class="info_title">
  408. {{ this.farmhouseStatus == 0 ? "录入宗地信息" : "录入农地信息" }}
  409. </div>
  410. <!-- 农房 -->
  411. <div class="flex_main" v-if="this.farmhouseStatus == 0" :style="{'height':landHomesteadEditWrapHeight+'px'}">
  412. <div class="flex_block">
  413. <div class="number_s50 mr50">
  414. <div class="title_m">农房编号</div>
  415. <div class="input_m">
  416. <van-field
  417. v-model="houseInfoList.xh"
  418. placeholder="农房编号"
  419. class="landHomesteadEdit_input"
  420. />
  421. </div>
  422. </div>
  423. <div class="number_s50">
  424. <div class="title_m">房屋所有人名称</div>
  425. <div class="input_m">
  426. <van-field
  427. v-model="houseInfoList.fwsyrmc"
  428. placeholder="房屋所有人名称"
  429. class="landHomesteadEdit_input"
  430. />
  431. </div>
  432. </div>
  433. </div>
  434. <!--1-->
  435. <div class="flex_block">
  436. <div class="number_s60 mr50">
  437. <div class="title_m">地址</div>
  438. <div class="input_m">
  439. <van-field
  440. v-model="houseInfoList.dz"
  441. placeholder="地址"
  442. class="landHomesteadEdit_input"
  443. />
  444. </div>
  445. </div>
  446. <div class="number_s40">
  447. <div class="title_m">土地性质</div>
  448. <div class="input_m select">
  449. <i class="dropDown_icon"></i>
  450. <van-field
  451. v-model="tdxzOptionsValue"
  452. readonly
  453. clickable
  454. name="picker"
  455. placeholder="土地性质"
  456. class="landHomesteadEdit_input"
  457. @click="tdxzOptionsVibile = true"
  458. />
  459. <van-popup v-model="tdxzOptionsVibile" position="bottom">
  460. <van-picker
  461. show-toolbar
  462. :columns="tdxzOptions"
  463. value-key="dictLabel"
  464. @confirm="tdxzOptionsFun"
  465. @cancel="tdxzOptionsVibile = false"
  466. />
  467. </van-popup>
  468. </div>
  469. </div>
  470. </div>
  471. <!--1-->
  472. <div class="flex_block">
  473. <div class="number_s35 mr50">
  474. <div class="title_m">是否有审批手续</div>
  475. <div class="input_m select">
  476. <i class="dropDown_icon"></i>
  477. <van-field
  478. v-model="houseInfoList.sfyspsx"
  479. readonly
  480. clickable
  481. name="picker"
  482. placeholder="审批手续"
  483. class="landHomesteadEdit_input"
  484. @click="xfCirculationVisbile = true"
  485. />
  486. <van-popup v-model="xfCirculationVisbile" position="bottom">
  487. <van-picker
  488. show-toolbar
  489. :columns="xfApprovalOptions"
  490. @confirm="xfCirculationFun"
  491. @cancel="xfCirculationVisbile = false"
  492. />
  493. </van-popup>
  494. </div>
  495. </div>
  496. <div class="number_s35 mr50">
  497. <div class="title_m">建筑面积</div>
  498. <div class="input_m about">
  499. <span class="about_symbol">≈</span>
  500. <van-field
  501. v-model="houseInfoList.jzmj"
  502. placeholder="建筑面积"
  503. class="landHomesteadEdit_input"
  504. />
  505. </div>
  506. </div>
  507. <div class="number_s30">
  508. <div class="title_m">现状情况</div>
  509. <div class="input_m select">
  510. <i class="dropDown_icon"></i>
  511. <!-- -->
  512. <van-field
  513. v-model="houseInfoList.xzqk"
  514. readonly
  515. clickable
  516. name="picker"
  517. placeholder="现状情况"
  518. class="landHomesteadEdit_input"
  519. @click="xzqkOptionsVisbile = true"
  520. />
  521. <van-popup v-model="xzqkOptionsVisbile" position="bottom">
  522. <van-picker
  523. show-toolbar
  524. :columns="xzqkOptions"
  525. @confirm="xzqkOptionsFun"
  526. value-key="dictLabel"
  527. @cancel="xzqkOptionsVisbile = false"
  528. />
  529. </van-popup>
  530. </div>
  531. </div>
  532. </div>
  533. <!--1-->
  534. <div class="flex_block">
  535. <div class="number_s50 mr50">
  536. <div class="title_m">房屋所有权证号</div>
  537. <div class="input_m">
  538. <van-field
  539. v-model="houseInfoList.fwsyqh"
  540. placeholder="房屋所有权证号"
  541. class="landHomesteadEdit_input"
  542. />
  543. </div>
  544. </div>
  545. <div class="number_s50">
  546. <div class="title_m">土地证号</div>
  547. <div class="input_m">
  548. <van-field
  549. v-model="houseInfoList.tdzh"
  550. placeholder="土地证号"
  551. class="landHomesteadEdit_input"
  552. />
  553. </div>
  554. </div>
  555. </div>
  556. <!--1-->
  557. <div class="flex_block">
  558. <div class="number_s35 mr50">
  559. <div class="title_m">房屋类型</div>
  560. <div class="input_m select">
  561. <i class="dropDown_icon"></i>
  562. <van-field
  563. v-model="houseInfoList.tdfl"
  564. readonly
  565. clickable
  566. name="picker"
  567. placeholder="房屋类型"
  568. class="landHomesteadEdit_input"
  569. @click="fwdlxOptionsVibile = true"
  570. />
  571. <van-popup v-model="fwdlxOptionsVibile" position="bottom">
  572. <van-picker
  573. show-toolbar
  574. :columns="fwdlxOptions"
  575. value-key="dictLabel"
  576. @confirm="fwdlxOptionsFun"
  577. @cancel="fwdlxOptionsVibile = false"
  578. />
  579. </van-popup>
  580. </div>
  581. </div>
  582. <div class="number_s35 mr50">
  583. <div class="title_m">土地面积</div>
  584. <div class="input_m about">
  585. <span class="about_symbol">≈</span>
  586. <van-field
  587. v-model="houseInfoList.tdmj"
  588. placeholder="土地面积"
  589. class="landHomesteadEdit_input"
  590. />
  591. </div>
  592. </div>
  593. <div class="number_s30">
  594. <div class="title_m">是否有流转意向</div>
  595. <div class="input_m select">
  596. <i class="dropDown_icon"></i>
  597. <van-field
  598. v-model="houseInfoList.xzfwsfylzy"
  599. readonly
  600. clickable
  601. name="picker"
  602. placeholder="是否有流转意向"
  603. class="landHomesteadEdit_input"
  604. @click="xflzCirculationVisbile = true"
  605. />
  606. <van-popup v-model="xflzCirculationVisbile" position="bottom">
  607. <van-picker
  608. show-toolbar
  609. :columns="xfCirculationOptions"
  610. @confirm="xflzCirculationFun"
  611. @cancel="xflzCirculationVisbile = false"
  612. />
  613. </van-popup>
  614. </div>
  615. </div>
  616. </div>
  617. <!--1-->
  618. <div class="flex_block">
  619. <div class="number_s50 mr50">
  620. <div class="title_m">租赁人</div>
  621. <div class="input_m">
  622. <van-field
  623. v-model="houseInfoList.zlrxm"
  624. placeholder="租赁人"
  625. class="landHomesteadEdit_input"
  626. />
  627. </div>
  628. </div>
  629. <div class="number_s50">
  630. <div class="title_m">租赁年限</div>
  631. <div class="input_m">
  632. <van-field
  633. v-model="houseInfoList.zlsynx"
  634. placeholder="租赁年限"
  635. class="landHomesteadEdit_input"
  636. />
  637. </div>
  638. </div>
  639. </div>
  640. <!--1-->
  641. <div class="flex_block">
  642. <div class="number_s100">
  643. <div class="title_m">租赁合同截止日期</div>
  644. <div class="input_m">
  645. <van-field
  646. v-model="houseInfoList.zlhtjzrq"
  647. placeholder="流转合同截止日期"
  648. class="landHomesteadEdit_input"
  649. readonly
  650. @click="houseHomesteadEditcalendar = true"
  651. />
  652. <van-calendar
  653. v-model="houseHomesteadEditcalendar"
  654. @confirm="houseHomesteadEdConfirm"
  655. :max-date="new Date(2025, 0, 31)"
  656. />
  657. </div>
  658. </div>
  659. </div>
  660. <!--2-->
  661. <div class="uploadPicturesFlex_block">
  662. <div class="title_m">上传图片</div>
  663. <div class="main_m">
  664. <van-uploader v-model="nfAddfileList" :after-read="nfAddimgonRead" :max-count="1" accept="image/gif, image/jpeg, image/png" />
  665. </div>
  666. </div>
  667. </div>
  668. <!-- 农地 -->
  669. <div class="flex_main" v-else-if="this.farmhouseStatus == 1" :style="{'height':landHomesteadEditWrapHeight+'px'}">
  670. <!--1-->
  671. <div class="flex_block">
  672. <div class="number_s50 mr50">
  673. <div class="title_m">农地编号</div>
  674. <div class="input_m">
  675. <van-field
  676. v-model="landInfoList.xh"
  677. placeholder="农地编号"
  678. class="landHomesteadEdit_input"
  679. />
  680. </div>
  681. </div>
  682. <div class="number_s50">
  683. <div class="title_m">农地使用人名称</div>
  684. <div class="input_m">
  685. <van-field
  686. v-model="landInfoList.syrmc"
  687. placeholder="农地使用人名称"
  688. class="landHomesteadEdit_input"
  689. />
  690. </div>
  691. </div>
  692. </div>
  693. <!--1-->
  694. <div class="flex_block">
  695. <div class="number_s60 mr50">
  696. <div class="title_m">现状情况</div>
  697. <div class="input_m select">
  698. <i class="dropDown_icon"></i>
  699. <van-field
  700. v-model="landInfoList.xzqk"
  701. readonly
  702. clickable
  703. name="picker"
  704. placeholder="现状情况"
  705. class="landHomesteadEdit_input"
  706. @click="ndxzqkOptionsVisbile = true"
  707. />
  708. <van-popup v-model="ndxzqkOptionsVisbile" position="bottom">
  709. <van-picker
  710. show-toolbar
  711. :columns="ndxzqkOptions"
  712. @confirm="ndxzqkOptionsFun"
  713. value-key="dictLabel"
  714. @cancel="ndxzqkOptionsVisbile = false"
  715. />
  716. </van-popup>
  717. </div>
  718. </div>
  719. <div class="number_s40">
  720. <div class="title_m">土地证号</div>
  721. <div class="input_m">
  722. <van-field
  723. v-model="landInfoList.tdzh"
  724. placeholder="土地证号"
  725. class="landHomesteadEdit_input"
  726. />
  727. </div>
  728. </div>
  729. </div>
  730. <!--1-->
  731. <div class="flex_block">
  732. <div class="number_s35 mr50">
  733. <div class="title_m">农用地类型</div>
  734. <div class="input_m select">
  735. <i class="dropDown_icon"></i>
  736. <van-field
  737. v-model="nydlxOptionsValue"
  738. readonly
  739. clickable
  740. name="picker"
  741. placeholder="农用地类型"
  742. class="landHomesteadEdit_input"
  743. @click="nydlxOptionsVibile = true"
  744. />
  745. <van-popup v-model="nydlxOptionsVibile" position="bottom">
  746. <van-picker
  747. show-toolbar
  748. :columns="nydlxOptions"
  749. value-key="dictLabel"
  750. @confirm="nydlxOptionsFun"
  751. @cancel="nydlxOptionsVibile = false"
  752. />
  753. </van-popup>
  754. </div>
  755. </div>
  756. <div class="number_s35 mr50">
  757. <div class="title_m">土地面积</div>
  758. <div class="input_m about">
  759. <span class="about_symbol">≈</span>
  760. <van-field
  761. v-model="landInfoList.mj"
  762. placeholder="土地面积"
  763. class="landHomesteadEdit_input"
  764. />
  765. </div>
  766. </div>
  767. <div class="number_s30">
  768. <div class="title_m">是否有流转意向</div>
  769. <div class="input_m select">
  770. <i class="dropDown_icon"></i>
  771. <van-field
  772. v-model="landInfoList.sfylzyx"
  773. readonly
  774. clickable
  775. name="picker"
  776. placeholder="是否有流转意向"
  777. class="landHomesteadEdit_input"
  778. @click="xdlzCirculationVisbile = true"
  779. />
  780. <van-popup v-model="xdlzCirculationVisbile" position="bottom">
  781. <van-picker
  782. show-toolbar
  783. :columns="xdCirculationOptions"
  784. @confirm="xdCirculationOptionsFun"
  785. @cancel="xdlzCirculationVisbile = false"
  786. />
  787. </van-popup>
  788. </div>
  789. </div>
  790. </div>
  791. <!--1-->
  792. <div class="flex_block">
  793. <div class="number_s50 mr50">
  794. <div class="title_m">承包人</div>
  795. <div class="input_m">
  796. <van-field
  797. v-model="landInfoList.cbrmc"
  798. placeholder="承包人"
  799. class="landHomesteadEdit_input"
  800. />
  801. </div>
  802. </div>
  803. <div class="number_s50">
  804. <div class="title_m">流转剩余年限</div>
  805. <div class="input_m">
  806. <van-field
  807. v-model="landInfoList.lzsynx"
  808. placeholder="流转剩余年限"
  809. class="landHomesteadEdit_input"
  810. />
  811. </div>
  812. </div>
  813. </div>
  814. <!--1-->
  815. <div class="flex_block">
  816. <div class="number_s100">
  817. <div class="title_m">流转合同截止日期</div>
  818. <div class="input_m">
  819. <van-field
  820. v-model="landInfoList.lzhtjzrq"
  821. placeholder="流转合同截止日期"
  822. class="landHomesteadEdit_input"
  823. readonly
  824. @click="landHomesteadEditcalendar = true"
  825. />
  826. <van-calendar
  827. v-model="landHomesteadEditcalendar"
  828. @confirm="landHomesteadEdConfirm"
  829. :max-date="new Date(2025, 0, 31)"
  830. />
  831. </div>
  832. </div>
  833. </div>
  834. <!--2-->
  835. <div class="uploadPicturesFlex_block">
  836. <div class="title_m">上传图片</div>
  837. <div class="main_m">
  838. <van-uploader v-model="ndAddfileList" :after-read="ndAddimgonRead" :max-count="1" accept="image/gif, image/jpeg, image/png" />
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. <div class="footer_main">
  844. <div class="cancel" @click="landHomesteadEditCancel">取消</div>
  845. <div class="save" @click="landHomesteadEditSave">保存</div>
  846. </div>
  847. </div>
  848. <!--农地农房选择-->
  849. <div class="farmlandEditSwitch_wrap" v-show="farmlandEditSwitchVisbule">
  850. <div class="mains">
  851. <div class="close_btn" @click="farmlandEditFun"></div>
  852. <div class="farmhouse" @click="addNewPlot('farmhouse')">
  853. <div class="icons"></div>
  854. <p class="names">农房</p>
  855. </div>
  856. <div class="farmland" @click="addNewPlot('land')">
  857. <div class="icons"></div>
  858. <p class="names">农地</p>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </template>
  864. <script>
  865. import $ from "jquery";
  866. import {
  867. bigDataHcAreaInfo,
  868. bigDataHcCountyInfo,
  869. bigDataHcVillageInfo,
  870. hcBottomSearch,
  871. commonUpload,
  872. houseAdd,
  873. landAdd,
  874. treeselectByUser,
  875. deptGetId,
  876. houseEdit,
  877. landEdit
  878. } from "@/api/homestead/index";
  879. export default {
  880. name: "homesteadLogin",
  881. data() {
  882. return {
  883. //省市区区级list
  884. hcAreaInfoOption: [],
  885. //省市区区级显示
  886. villageVisbile:false,
  887. //选中的值
  888. villageValue:'',
  889. //选中村相关信息
  890. villageDataObj:{
  891. deptName:'', //村名
  892. },
  893. hcAreaInfoFieldName:{
  894. text: 'label',
  895. value: 'value',
  896. children: 'children',
  897. },
  898. // 待租列表显示
  899. ishcBotton: false,
  900. // 待租列表 类型 0 农房 1 农地
  901. statusList: 0,
  902. //待租列表 房
  903. hcBottonHouseArr: [],
  904. //待租列表 地
  905. hcBottonLandArr: [],
  906. //搜索栏目-操作栏显隐
  907. searchBarOperVisbile: false,
  908. //地图绘制状态
  909. draw: {
  910. drawMapPolygon: false, //绘制地图
  911. },
  912. //地图绘制坐标存储
  913. coordinateList: '',
  914. //判断新增还是编辑 0 新增 1编辑
  915. currentType:0,
  916. //新建选择农房土地弹窗 显隐
  917. farmlandEditSwitchVisbule: false, //false
  918. //编辑房屋土地块高度
  919. landHomesteadEditWrapHeight:0,
  920. //编辑房屋土地信息--显隐
  921. landHomesteadEditVisbile: false,
  922. //查看编辑房屋、土地--类型 0 农房 1 农地
  923. farmhouseStatus: 0,
  924. //新增农房日历显影
  925. houseHomesteadEditcalendar: false,
  926. //新增农地日历显影
  927. landHomesteadEditcalendar:false,
  928. //选择顺序
  929. selectChooseOrder: 0,
  930. //农地新增、修改保存数据
  931. landInfoList: {
  932. id: "", //String 是 主键id
  933. orgCode: "", // String 否 行政区代码
  934. cdm: "", // String 否 村代码
  935. cm: "", //String 否 村名
  936. xh: "", // String 否 序号
  937. cbrmc: "", //String 否 承包人名称
  938. syrmc: "", //String 否 使用人名称
  939. nydlx: "", // String 否 农用地类型
  940. mj: "", // String 否 面积
  941. lzsynx: "", // String 否 流转剩余年限
  942. lzhtjzrq: "", // String 否 日期
  943. sfylzyx: "", // String 否 是否流转意向
  944. xzqk: "", // String 否 现状情况
  945. theGeom: "", //String 否 空间坐标
  946. xzqkKey: "", // String 否 忽略
  947. nydlxKey: "", // String 否 忽略
  948. frontland: "", //String 否 图片前
  949. behindland: "", //String 否 图片后
  950. },
  951. //农房新增、修改保存数据
  952. houseInfoList: {
  953. id: "", // String 是 主键id
  954. orgCode: "", // String 否 行政区代码
  955. cdm: "", // String 否 村代码
  956. cm: "", // String 否 村名
  957. xh: "", // String 否 序号
  958. tdxz: "", //土地性质
  959. fwsyrmc: "", // String 否 房屋所有人名称
  960. fwsyqh: "", // String 否 房屋所有权证号
  961. tdzh: "", // String 否 土地证号
  962. jzmj: "", // String 否 建筑面积
  963. tdmj: "", // String 否 土地面积
  964. sfyspsx: "", // String 否 是否有审批手续
  965. xzqk: "", // String 否 现状情况
  966. theGeom: "", // String 否 空间坐标
  967. xzqkKey: "", // String 否 忽略传null
  968. tdxzKey: "", // String 否 忽略传null
  969. frontHouse: "", // String 否 图片前
  970. behindHouse: "", // String 否 图片后
  971. dz: "", // String 否 地址
  972. zlrxm: "", // String 否 租赁人姓名
  973. zlhtjzrq: "", // 租赁合同截止日期
  974. zlsynx: "", // 租赁剩余年限
  975. xzfwsfylzy: "", // 闲置房屋是否有流转意愿
  976. tdfl: "", // 集体/个人
  977. },
  978. //农地查看数据
  979. landInfoLookList:{},
  980. //农房查看数据
  981. houseInfoLookList:{},
  982. //农房 - 农房权属
  983. tdxzOptions: [],
  984. tdxzOptionsVibile: false, //农房 - 农房权属 -弹窗
  985. tdxzOptionsValue: "", //农房 - 农房权属 值
  986. //农房 - 房屋类型
  987. fwdlxOptions: ["个人", "集体"],
  988. fwdlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗
  989. //农房 - 现状情况
  990. xzqkOptions: [],
  991. xzqkOptionsVisbile: false, //农房 - 现状情况 弹窗
  992. //农房 - 是否有流转
  993. xfCirculationOptions: ["是", "否"],
  994. xflzCirculationVisbile: false, //农房 - 是否有流转 弹窗
  995. //农房 - 是否有审批
  996. xfApprovalOptions: ["是", "否"],
  997. xfCirculationVisbile: false, //农房 - 是否有审批 -弹窗
  998. //农地 -- 现状情况
  999. ndxzqkOptions: [],
  1000. ndxzqkOptionsVisbile: false,
  1001. //农地 -- 农用地类型
  1002. nydlxOptions: [],
  1003. nydlxOptionsVibile: false, // 农地 -- 农用地类型--弹窗
  1004. nydlxOptionsValue: "", // 农地 -- 农用地类型--值
  1005. //农地 -- 是否有流转意向
  1006. xdCirculationOptions: ["是", "否"],
  1007. xdlzCirculationVisbile: false, //农房 - 是否有流转 弹窗
  1008. //农房上传图片附件
  1009. nfAddfileList: [],
  1010. //农地上传图片附件
  1011. ndAddfileList: [],
  1012. // 当前是否地图点击状态
  1013. hasTable:false,
  1014. //查看农地\农房 显隐
  1015. landHomesteadDetailsVisibile:false
  1016. };
  1017. },
  1018. mounted() {
  1019. this.initAxios();
  1020. },
  1021. methods: {
  1022. //编辑农地信息
  1023. editnfdInfo(type){
  1024. this.currentType = 1;
  1025. this.farmlandEditSwitchVisbuleFun("hide");
  1026. this.landHomesteadEditVisbileFun("show");
  1027. },
  1028. //显示农地\农房详情
  1029. houseLandLookInfo(type){
  1030. if(type=='show'){
  1031. this.houseLandLookAnmitFun('show')
  1032. }else{
  1033. this.houseLandLookAnmitFun('hide')
  1034. }
  1035. },
  1036. //显示农地\农房详情 动画
  1037. houseLandLookAnmitFun(type){
  1038. if (type == "show") {
  1039. this.landHomesteadDetailsVisibile = true;
  1040. $(".landHomesteadDetails_wrap").css({ bottom: "-100vh" });
  1041. $(".landHomesteadDetails_wrap").animate(
  1042. {
  1043. bottom: "0",
  1044. },
  1045. 300
  1046. );
  1047. } else {
  1048. $(".landHomesteadDetails_wrap").css({ bottom: "0" });
  1049. $(".landHomesteadDetails_wrap").animate(
  1050. {
  1051. bottom: "-100vh",
  1052. },
  1053. 300
  1054. );
  1055. setTimeout(() => {
  1056. this.landHomesteadDetailsVisibile = false;
  1057. }, 300);
  1058. }
  1059. },
  1060. //绘制多边形地图
  1061. drawMapPolygonFun() {
  1062. let drawMapPolygon = this.draw.drawMapPolygon;
  1063. if (drawMapPolygon == false) {
  1064. this.$set(this.draw, "drawMapPolygon", true);
  1065. $("#drawPolygon").trigger("click");
  1066. } else {
  1067. $("#drawRemove").trigger("click");
  1068. this.$set(this.draw, "drawMapPolygon", false);
  1069. }
  1070. },
  1071. //新建选择农房土地弹窗
  1072. farmlandEditSwitchFun() {
  1073. if (this.coordinateList == '') {
  1074. this.$toast("请先完成绘制");
  1075. return false;
  1076. }
  1077. this.currentType = 0;
  1078. this.farmlandEditSwitchVisbuleFun("show");
  1079. this.searchBarOperVisbile = false;
  1080. },
  1081. //关闭选择农房土地
  1082. farmlandEditFun() {
  1083. this.farmlandEditSwitchVisbuleFun("hide");
  1084. //初始化地图
  1085. this.initDraw();
  1086. },
  1087. addNewPlot(type) {
  1088. this.farmlandEditSwitchVisbuleFun("hide");
  1089. this.landHomesteadEditVisbileFun("show");
  1090. //farmhouse农房 land农地
  1091. if (type == "farmhouse") {
  1092. this.farmhouseStatus = 0;
  1093. } else if (type == "land") {
  1094. this.farmhouseStatus = 1;
  1095. }
  1096. },
  1097. //新增地块 编辑页 显影
  1098. landHomesteadEditVisbileFun(type) {
  1099. if (type == "show") {
  1100. this.landHomesteadEditVisbile = true;
  1101. $(".landHomesteadEdit_wrap").css({ bottom: "-100vh" });
  1102. $(".landHomesteadEdit_wrap").animate(
  1103. {
  1104. bottom: "0",
  1105. },
  1106. 300
  1107. );
  1108. } else {
  1109. $(".landHomesteadEdit_wrap").css({ bottom: "0" });
  1110. $(".landHomesteadEdit_wrap").animate(
  1111. {
  1112. bottom: "-100vh",
  1113. },
  1114. 300
  1115. );
  1116. setTimeout(() => {
  1117. this.landHomesteadEditVisbile = false;
  1118. }, 300);
  1119. }
  1120. setTimeout(()=>{
  1121. //新建土地、房屋高度
  1122. let landHomesteadEditWrap = this.$refs.landHomesteadEditWrap.offsetHeight;
  1123. let landHomesteadEditWrapPdg = $('.landHomesteadEdit_wrap .content_mian').css('paddingTop').replace('px','')
  1124. let landHomesteadEditWrapTitHei = $('.landHomesteadEdit_wrap .info_title').css('height').replace('px','')
  1125. if(landHomesteadEditWrap && landHomesteadEditWrapPdg && landHomesteadEditWrapTitHei){
  1126. this.landHomesteadEditWrapHeight = landHomesteadEditWrap-landHomesteadEditWrapPdg*2-landHomesteadEditWrapTitHei-10;
  1127. }
  1128. },301)
  1129. },
  1130. //选择农地 农房显影
  1131. farmlandEditSwitchVisbuleFun(type) {
  1132. if (type == "show") {
  1133. this.farmlandEditSwitchVisbule = true;
  1134. $(".farmlandEditSwitch_wrap").css({ opacity: "0" });
  1135. $(".farmlandEditSwitch_wrap").animate(
  1136. {
  1137. opacity: "1",
  1138. },
  1139. 300
  1140. );
  1141. } else {
  1142. $(".farmlandEditSwitch_wrap").css({ opacity: "1" });
  1143. $(".farmlandEditSwitch_wrap").animate(
  1144. {
  1145. opacity: "0",
  1146. },
  1147. 300
  1148. );
  1149. setTimeout(() => {
  1150. this.farmlandEditSwitchVisbule = false;
  1151. }, 300);
  1152. }
  1153. },
  1154. //新增地块 编辑页 取消
  1155. landHomesteadEditCancel() {
  1156. this.landHomesteadEditVisbileFun("hide");
  1157. //新增信息显示
  1158. if(this.currentType == 0){
  1159. this.farmlandEditSwitchVisbuleFun("show");
  1160. }
  1161. },
  1162. //新增地块 编辑页 保存
  1163. landHomesteadEditSave() {
  1164. if(this.farmhouseStatus == 0){
  1165. //农房
  1166. let houseInfoList = this.houseInfoList;
  1167. houseInfoList.theGeom= this.coordinateList;
  1168. houseInfoList.orgCode = this.villageDataObj.orgCode;
  1169. houseInfoList.cdm = this.villageDataObj.orgCode;
  1170. houseInfoList.cm = this.villageDataObj.deptName;
  1171. if(houseInfoList.xh ==''){
  1172. this.$toast("请填写序号");
  1173. return false;
  1174. }else if(houseInfoList.fwsyrmc ==''){
  1175. this.$toast("请填写房屋所有人名称");
  1176. return false;
  1177. }else if(houseInfoList.fwsyqh ==''){
  1178. this.$toast("请填写房屋所有权证号");
  1179. return false;
  1180. }else if(houseInfoList.tdzh ==''){
  1181. this.$toast("请填写土地证号");
  1182. return false;
  1183. }else if(houseInfoList.jzmj ==''){
  1184. this.$toast("请填写建筑面积");
  1185. return false;
  1186. }else if(houseInfoList.tdmj ==''){
  1187. this.$toast("请填写土地面积");
  1188. return false;
  1189. }else if(houseInfoList.tdxz ==''){
  1190. this.$toast("请选择土地性质");
  1191. return false;
  1192. }else if(houseInfoList.sfyspsx ==''){
  1193. this.$toast("请选择是否有审批手续");
  1194. return false;
  1195. }else if(houseInfoList.xzqk ==''){
  1196. this.$toast("请选择现状情况");
  1197. return false;
  1198. }else if(houseInfoList.frontHouse ==''){
  1199. this.$toast("请选择上传图片");
  1200. return false;
  1201. }else if(houseInfoList.dz ==''){
  1202. this.$toast("请填写地址");
  1203. return false;
  1204. }else if(houseInfoList.zlrxm ==''){
  1205. this.$toast("请填写租赁人姓名");
  1206. return false;
  1207. }else if(houseInfoList.zlhtjzrq ==''){
  1208. this.$toast("请填写租赁合同截止日期");
  1209. return false;
  1210. }else if(houseInfoList.zlsynx ==''){
  1211. this.$toast("请填写租赁剩余年限");
  1212. return false;
  1213. }else if(houseInfoList.xzfwsfylzy ==''){
  1214. this.$toast("请选择闲置房屋是否有流转意愿");
  1215. return false;
  1216. }else if(houseInfoList.tdfl ==''){
  1217. this.$toast("请选择房屋类型");
  1218. return false;
  1219. }
  1220. //新增
  1221. if(this.currentType == 0){
  1222. if(houseInfoList.theGeom ==''){
  1223. this.$toast("请选择地图坐标");
  1224. return false;
  1225. }
  1226. houseAdd(houseInfoList).then((res)=>{
  1227. if(res.code == 200){
  1228. this.landHomesteadEditVisbileFun("hide");
  1229. //新增
  1230. this.$toast("农房信息新建成功");
  1231. this.initDraw();
  1232. }
  1233. })
  1234. }else{
  1235. //编辑
  1236. houseEdit(houseInfoList).then((res)=>{
  1237. if(res.code == 200){
  1238. this.landHomesteadEditVisbileFun("hide");
  1239. this.$toast("农房信息修改成功");
  1240. this.houseInfoLookList = this.houseInfoList;
  1241. }
  1242. })
  1243. }
  1244. }else if(this.farmhouseStatus == 1){
  1245. // orgCode: "", // String 否 行政区代码
  1246. // cdm: "", // String 否 村代码
  1247. // cm: "", //String 否 村名
  1248. //农地
  1249. let landInfoList = this.landInfoList;
  1250. landInfoList.theGeom= this.coordinateList;
  1251. landInfoList.orgCode = this.villageDataObj.orgCode;
  1252. landInfoList.cdm = this.villageDataObj.orgCode;
  1253. landInfoList.cm = this.villageDataObj.deptName;
  1254. if(landInfoList.xh ==''){
  1255. this.$toast("请填写序号");
  1256. return false;
  1257. }else if(landInfoList.cbrmc==''){
  1258. this.$toast("请填写承包人名称");
  1259. return false;
  1260. }else if(landInfoList.syrmc==''){
  1261. this.$toast("请填写使用人名称");
  1262. return false;
  1263. }else if(landInfoList.nydlx==''){
  1264. this.$toast("请选择农用地类型");
  1265. return false;
  1266. }else if(landInfoList.mj==''){
  1267. this.$toast("请填写面积");
  1268. return false;
  1269. }else if(landInfoList.lzsynx==''){
  1270. this.$toast("请填写流转剩余年限");
  1271. return false;
  1272. }else if(landInfoList.lzhtjzrq==''){
  1273. this.$toast("请填写流转合同截止日期");
  1274. return false;
  1275. }else if(landInfoList.sfylzyx==''){
  1276. this.$toast("请填写是否流转意向");
  1277. return false;
  1278. }else if(landInfoList.xzqk==''){
  1279. this.$toast("请填写现状情况");
  1280. return false;
  1281. }else if(landInfoList.frontland==''){
  1282. this.$toast("请上传图片");
  1283. return false;
  1284. }
  1285. //新增
  1286. if(this.currentType == 0){
  1287. if(landInfoList.theGeom==''){
  1288. this.$toast("请选择空间坐标");
  1289. return false;
  1290. }
  1291. landAdd(landInfoList).then((res)=>{
  1292. if(res.code == 200){
  1293. this.landHomesteadEditVisbileFun("hide");
  1294. //新增
  1295. this.initDraw();
  1296. this.$toast("农地信息新建成功");
  1297. }
  1298. })
  1299. }else{
  1300. landEdit(landInfoList).then((res)=>{
  1301. if(res.code == 200){
  1302. this.landHomesteadEditVisbileFun("hide");
  1303. this.$toast("农地信息修改成功");
  1304. this.landInfoLookList = this.landInfoList;
  1305. }
  1306. })
  1307. }
  1308. }
  1309. //保存成功触发
  1310. },
  1311. landHomesteadEdConfirm(value) {
  1312. //农地
  1313. this.landHomesteadEditcalendar = false;
  1314. this.landInfoList.lzhtjzrq = this.getDate(new Date(value));
  1315. },
  1316. houseHomesteadEdConfirm(value){
  1317. //农房
  1318. this.houseHomesteadEditcalendar = false;
  1319. this.houseInfoList.zlhtjzrq = this.getDate(new Date(value));
  1320. },
  1321. getDate(date){
  1322. //date是传过来的时间戳,注意需为13位,10位需*1000
  1323. //也可以不传,获取的就是当前时间
  1324. var time = new Date(date);
  1325. var year= time.getFullYear() //年
  1326. var month = ("0" + (time.getMonth() + 1)).slice(-2); //月
  1327. var day = ("0" + time.getDate()).slice(-2); //日
  1328. var mydate = year + "-" + month + "-" + day;
  1329. return mydate
  1330. },
  1331. //初始化绘制
  1332. initDraw() {
  1333. //清除数据
  1334. $("#drawRemove").trigger("click");
  1335. $("#drawReset").trigger("click");
  1336. this.coordinateList = '';
  1337. //农地数据初始化
  1338. this.landInfoList = {
  1339. id: "", //String 是 主键id
  1340. orgCode: "", // String 否 行政区代码
  1341. cdm: "", // String 否 村代码
  1342. cm: "", //String 否 村名
  1343. xh: "", // String 否 序号
  1344. cbrmc: "", //String 否 承包人名称
  1345. syrmc: "", //String 否 使用人名称
  1346. nydlx: "", // String 否 农用地类型
  1347. mj: "", // String 否 面积
  1348. lzsynx: "", // String 否 流转剩余年限
  1349. zlhtjzrq: "", // String 否 日期
  1350. sfylzyx: "", // String 否 是否流转意向
  1351. xzqk: "", // String 否 现状情况
  1352. theGeom: "", //String 否 空间坐标
  1353. xzqkKey: "", // String 否 忽略
  1354. nydlxKey: "", // String 否 忽略
  1355. frontland: "", //String 否 图片前
  1356. behindland: "", //String 否 图片后
  1357. };
  1358. //农房数据初始化
  1359. this.houseInfoList = {
  1360. id: "", // String 是 主键id
  1361. orgCode: "", // String 否 行政区代码
  1362. cdm: "", // String 否 村代码
  1363. cm: "", // String 否 村名
  1364. xh: "", // String 否 序号
  1365. tdxz: "", //土地性质
  1366. fwsyrmc: "", // String 否 房屋所有人名称
  1367. fwsyqh: "", // String 否 房屋所有权证号
  1368. tdzh: "", // String 否 土地证号
  1369. jzmj: "", // String 否 建筑面积
  1370. tdmj: "", // String 否 土地面积
  1371. sfyspsx: "", // String 否 是否有审批手续
  1372. xzqk: "", // String 否 现状情况
  1373. theGeom: "", // String 否 空间坐标
  1374. xzqkKey: "", // String 否 忽略传null
  1375. tdxzKey: "", // String 否 忽略传null
  1376. frontHouse: "", // String 否 图片前
  1377. behindHouse: "", // String 否 图片后
  1378. dz: "", // String 否 地址
  1379. zlrxm: "", // String 否 租赁人姓名
  1380. zlhtjzrq: "", // 租赁合同截止日期
  1381. zlsynx: "", // 租赁剩余年限
  1382. xzfwsfylzy: "", // 闲置房屋是否有流转意愿
  1383. tdfl: "", // 集体/个人
  1384. };
  1385. this.draw.drawMapPolygon = false; //绘制地图
  1386. },
  1387. initAxios() {
  1388. //获取区镇村
  1389. this.mapAreaSelectValue();
  1390. //农房---字典项
  1391. this.nfDictionary();
  1392. //农地---字典项
  1393. this.ndDictionary();
  1394. },
  1395. nfDictionary() {
  1396. //农房权属
  1397. this.getDicts("build_land_type").then((response) => {
  1398. this.tdxzOptions = response.data;
  1399. });
  1400. //农房情况
  1401. this.getDicts("geo_hc_house").then((response) => {
  1402. this.xzqkOptions = response.data;
  1403. });
  1404. },
  1405. ndDictionary() {
  1406. //农用地类型
  1407. this.getDicts("sub_object_type").then((response) => {
  1408. this.nydlxOptions = response.data;
  1409. });
  1410. //现状情况
  1411. this.getDicts("geo_hc_land").then((response) => {
  1412. this.ndxzqkOptions = response.data;
  1413. });
  1414. },
  1415. styleSteup() {
  1416. let smallTop = this.$refs.sliderSmall.getBoundingClientRect().top;
  1417. let smallLeft = this.$refs.sliderSmall.getBoundingClientRect().left;
  1418. $(".ol-zoom-out").css({
  1419. position: "absolute",
  1420. left: smallLeft + "px",
  1421. top: smallTop + "px",
  1422. width: "40px",
  1423. height: "26px",
  1424. zIndex: "999999",
  1425. cursor: "pointer",
  1426. opacity: "0",
  1427. });
  1428. $(".ol-overlaycontainer-stopevent").css({
  1429. zIndex: 9999,
  1430. });
  1431. let bigTop = this.$refs.sliderBig.getBoundingClientRect().top;
  1432. let bigLeft = this.$refs.sliderBig.getBoundingClientRect().left;
  1433. $(".ol-zoom-in").css({
  1434. position: "absolute",
  1435. left: bigLeft + "px",
  1436. top: bigTop + "px",
  1437. width: "40px",
  1438. height: "26px",
  1439. zIndex: "1005",
  1440. cursor: "pointer",
  1441. opacity: "0",
  1442. });
  1443. $(".ol-hidden ,.ol-collapsed").hide();
  1444. },
  1445. switchLoad() {
  1446. let objData = {
  1447. orgCode: this.villageDataObj.orgCode,
  1448. statusList: "1,2,3,4,5,6,7,8",
  1449. };
  1450. // //右侧详情农房农地列表
  1451. hcBottomSearch(objData).then((res) => {
  1452. let content = res.data;
  1453. //房
  1454. let houseArr = [];
  1455. let landArr = [];
  1456. //地
  1457. content.forEach((v, i) => {
  1458. if (v.type == "house") {
  1459. houseArr.push({
  1460. geo: v.geo,
  1461. mj: v.mj,
  1462. name: v.name,
  1463. type: v.type,
  1464. xh: v.xh,
  1465. xzqk:v.xzqk
  1466. });
  1467. } else {
  1468. landArr.push({
  1469. geo: v.geo,
  1470. mj: v.mj,
  1471. name: v.name,
  1472. type: v.type,
  1473. xh: v.xh,
  1474. xzqk:v.xzqk
  1475. });
  1476. }
  1477. });
  1478. this.hcBottonHouseArr = houseArr;
  1479. this.hcBottonLandArr = landArr;
  1480. this.ishcBotton = true;
  1481. });
  1482. },
  1483. mapAreaSelectValue() {
  1484. treeselectByUser().then((res) => {
  1485. if (res.code == 200) {
  1486. let content = res.data;
  1487. this.hcAreaInfoOption = content;
  1488. let currDeptId = '169';
  1489. // if(content[0].children && content[0].children.length!=0){
  1490. // if(content[0].children[0].children && content[0].children[0].children.length!=0){
  1491. // currDeptId = content[0].children[0].children[0].value;
  1492. // }else{
  1493. // currDeptId = content[0].children[0].value
  1494. // }
  1495. // }else{
  1496. // currDeptId = content[0].value
  1497. // }
  1498. //获取村详细信息
  1499. this.deptGetFun(currDeptId)
  1500. //获取地图
  1501. this.mapBackground();
  1502. //设置缩放按钮位置
  1503. this.styleSteup();
  1504. }
  1505. });
  1506. },
  1507. //选择村
  1508. hcAreaInfoFinish({value, selectedOptions, tabIndex} ){
  1509. this.deptGetFun(value)
  1510. },
  1511. //通过deptId获取经纬度
  1512. deptGetFun(value){
  1513. deptGetId(value).then((res)=>{
  1514. this.villageVisbile = false;
  1515. let content = res.data;
  1516. this.villageDataObj = content;
  1517. console.log(content)
  1518. $("#cun").trigger("change");
  1519. this.switchLoad();
  1520. })
  1521. },
  1522. searchBarOperFun(statue) {
  1523. if (statue == "true") {
  1524. this.searchBarOperVisbile = true;
  1525. } else {
  1526. this.searchBarOperVisbile = false;
  1527. //初始化绘制
  1528. this.initDraw();
  1529. }
  1530. },
  1531. /*右侧列表 --展开收缩*/
  1532. selectionPush() {
  1533. $(".homesteadList_wrap").animate(
  1534. {
  1535. right: "0",
  1536. },
  1537. 300
  1538. );
  1539. },
  1540. homesteadListShrink() {
  1541. $(".homesteadList_wrap").animate(
  1542. {
  1543. right: "-300px",
  1544. },
  1545. 300
  1546. );
  1547. },
  1548. villageVisbileFun() {
  1549. this.villageVisbile =true;
  1550. },
  1551. housingTypes(type) {
  1552. // if (type == "0") {
  1553. this.statusList = type;
  1554. this.selectChooseOrder = 0;
  1555. },
  1556. housingSerial(item, index) {
  1557. this.selectChooseOrder = index;
  1558. if (item.type == "house") {
  1559. $("#texiao_fang").val(item.name);
  1560. $("#texiao_fang").trigger("click");
  1561. } else {
  1562. $("#texiao_di").val(item.name);
  1563. $("#texiao_di").trigger("click");
  1564. }
  1565. },
  1566. //加载地图
  1567. mapBackground() {
  1568. let _this = this;
  1569. var projection = new ol.proj.Projection({
  1570. //地图投影类型
  1571. code: "EPSG:3857",
  1572. units: "degrees",
  1573. //extent:extent
  1574. });
  1575. //影像图 -----------------------------start
  1576. var attributions =
  1577. '<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> ' +
  1578. '<a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>';
  1579. var aerial = new ol.layer.Tile({
  1580. source: new ol.source.XYZ({
  1581. attributions: attributions,
  1582. 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",
  1583. }),
  1584. isGroup: true,
  1585. visible: true,
  1586. name: "天地图路网-卫星影像图",
  1587. });
  1588. var map = new ol.Map({
  1589. layers: [aerial],
  1590. //layers: [newwms],
  1591. projection: projection,
  1592. target: "mapWrap",
  1593. view: new ol.View({
  1594. center: ol.proj.fromLonLat([122.145662, 37.369575]),
  1595. zoom: 10.2,
  1596. minZoom: 10, //地图缩小限制
  1597. maxZoom: 18.9, //地图放大限制
  1598. }),
  1599. });
  1600. //业务图层 wfs服务 属性查询开始 ------------------start
  1601. /**
  1602. * @api wfs服务空间查询
  1603. * @param {*} wfsurl
  1604. * @param {*} srsName
  1605. * @param {*} typeName
  1606. * @param {*} drawType
  1607. * @param {option 可选} geometryField
  1608. */
  1609. var wmsSource = new ol.source.TileWMS({
  1610. //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
  1611. url: 'http://116.255.135.38:8080/geoserver/nsgk_hc/wms',
  1612. //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
  1613. params: {
  1614. 'LAYERS': 'nsgk_hc:nsgk_hc_all',
  1615. //'LAYERS': 'mywork_mysql:t_geo_hc_land',
  1616. 'TILED':true,
  1617. SRID:3857,
  1618. serverType: 'geoserver',
  1619. crossOrigin: 'anonymous',
  1620. },
  1621. })
  1622. map.on('pointermove', function (evt) {
  1623. if (evt.dragging) {
  1624. return;
  1625. }
  1626. var pixel = map.getEventPixel(evt.originalEvent);
  1627. var hit = map.forEachLayerAtPixel(pixel, function () {
  1628. return true;
  1629. });
  1630. map.getTargetElement().style.cursor = hit ? 'pointer' : '';
  1631. });
  1632. //属性查询结束 ------------------end
  1633. var shitu = new ol.layer.Vector({
  1634. title: "add Layer",
  1635. source: new ol.source.Vector({
  1636. projection: projection,
  1637. url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变
  1638. format: new ol.format.GeoJSON(),
  1639. }),
  1640. style: new ol.style.Style({
  1641. fill: new ol.style.Fill({
  1642. //矢量图层填充颜色,以及透明度
  1643. color: "rgba(0,0,0,0)",
  1644. }),
  1645. stroke: new ol.style.Stroke({
  1646. //边界样式
  1647. color: "#47c68f",
  1648. width: 3,
  1649. }),
  1650. }),
  1651. });
  1652. map.addLayer(shitu);
  1653. var huancui_zhen = new ol.layer.Vector({
  1654. title: "add huancui_zhen",
  1655. source: new ol.source.Vector({
  1656. projection: projection,
  1657. url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变
  1658. format: new ol.format.GeoJSON(),
  1659. }),
  1660. style: new ol.style.Style({
  1661. fill: new ol.style.Fill({
  1662. //矢量图层填充颜色,以及透明度
  1663. color: "rgba(27,50,56,0.8)",
  1664. }),
  1665. }),
  1666. });
  1667. map.addLayer(huancui_zhen);
  1668. ///-----------乡---------------------------------------------------------------------------------------------------------
  1669. var villageVectorLayer; //村标记
  1670. async function villageDiagram() {
  1671. villageDataFun(_this.villageDataObj);
  1672. }
  1673. //村数据处理
  1674. function villageDataFun(villageMapData) {
  1675. let arrDatas = [];
  1676. // for (let i = 0; i < villageMapData.length; i++) {
  1677. let varName = "iconFeature0";
  1678. window[varName] = new ol.Feature({
  1679. geometry: new ol.geom.Point(
  1680. ol.proj.fromLonLat([villageMapData.lng, villageMapData.lat])
  1681. ),
  1682. name:
  1683. villageMapData.name == undefined
  1684. ? villageMapData.deptName
  1685. : villageMapData.name, //名称属性
  1686. orgCode: villageMapData.orgCode, //人口数(万)
  1687. lat: villageMapData.lat,
  1688. lng: villageMapData.lng,
  1689. type: "村",
  1690. zhenOrgCode: villageMapData.zhenOrgCode,
  1691. });
  1692. window[varName].setStyle(visCreateLabelStyle(window[varName]));
  1693. arrDatas.push(window[varName]);
  1694. // }
  1695. var vectorSource = new ol.source.Vector({
  1696. features: arrDatas,
  1697. });
  1698. // //矢量标注图层
  1699. villageVectorLayer = new ol.layer.Vector({
  1700. source: vectorSource,
  1701. });
  1702. map.addLayer(villageVectorLayer);
  1703. }
  1704. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  1705. function visCreateLabelStyle(feature) {
  1706. return new ol.style.Style({
  1707. image: new ol.style.Icon({
  1708. //设置图标偏移
  1709. anchor: [0.5, 1],
  1710. //标注样式的起点位置
  1711. anchorOrigin: "top-right",
  1712. //X方向单位:分数
  1713. anchorXUnits: "fraction",
  1714. //Y方向单位:像素
  1715. anchorYUnits: "pixels",
  1716. //偏移起点位置的方向
  1717. offsetOrigin: "top-right",
  1718. //透明度
  1719. opacity: 0.9,
  1720. //图片路径
  1721. //src: 'images/map.png'
  1722. src: "https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",
  1723. }),
  1724. text: new ol.style.Text({
  1725. textAlign: "center", //位置
  1726. textBaseline: "bottom", //基准线
  1727. font: "normal 12px 微软雅黑", //文字样式
  1728. text: feature.get("name"), //文本内容
  1729. fill: new ol.style.Fill({
  1730. //文本填充样式(即文字颜色)
  1731. color: "#ffffff",
  1732. }),
  1733. }),
  1734. zIndex: 9999,
  1735. });
  1736. }
  1737. // map.on("moveend", function (evt) {
  1738. // var zoom = map.getView().getZoom();
  1739. // if (zoom < 13) {
  1740. // if (villageVectorLayer != undefined) {
  1741. // map.removeLayer(villageVectorLayer);
  1742. // map.removeLayer(shitu);
  1743. // map.addLayer(shitu);
  1744. // map.removeLayer(townVectorLayer);
  1745. // townDiagram();
  1746. // }
  1747. // }
  1748. // });
  1749. map.on("singleclick", function (evt) {
  1750. let feature = map.forEachFeatureAtPixel(
  1751. evt.pixel,
  1752. (feature) => feature
  1753. );
  1754. if (feature) {
  1755. }
  1756. document.getElementById("info").innerHTML = "";
  1757. var viewResolution = map.getView().getResolution(); ///** @type {number} */ (view.getResolution());
  1758. var url = wmsSource.getFeatureInfoUrl(
  1759. evt.coordinate,
  1760. viewResolution,
  1761. "EPSG:3857",
  1762. { INFO_FORMAT: "text/html" }
  1763. );
  1764. if (url) {
  1765. fetch(url)
  1766. .then(function (response) {
  1767. return response.text();
  1768. })
  1769. .then(function (html) {
  1770. if (html.indexOf("<table") != -1) {
  1771. setTimeout(() => {
  1772. _this.hasTable = true;
  1773. document.getElementById("info").innerHTML = html;
  1774. if (html.indexOf("house") != -1) {
  1775. //农房
  1776. _this.farmhouseStatus = 0;
  1777. let obj = {};
  1778. let trs = $("#info .featureInfo").find("tr:eq(1)");
  1779. let zjId = trs.find("td").eq(0).text();
  1780. let zjIdNum = zjId.replace('t_geo_hc_house.','');
  1781. obj.id = zjIdNum; // 主键id
  1782. obj.fwsyrmc = trs.find("td").eq(1).text(); //房屋所有人名称
  1783. obj.cm = trs.find("td").eq(2).text(); //村名
  1784. obj.cdm = trs.find("td").eq(3).text(); //村代码
  1785. obj.dz = trs.find("td").eq(4).text(); //地址
  1786. obj.sfyspsx = trs.find("td").eq(5).text(); //是否有审批手续
  1787. obj.fwsyqh = trs.find("td").eq(6).text(); //房屋所有权证号
  1788. obj.jzmj = trs.find("td").eq(7).text(); //建筑面积
  1789. obj.tdzh = trs.find("td").eq(8).text(); //建筑面积
  1790. obj.tdxz = trs.find("td").eq(9).text(); //土地性质
  1791. obj.tdmj = trs.find("td").eq(10).text(); //土地面积
  1792. obj.xzqk = trs.find("td").eq(11).text(); //现状情况
  1793. obj.zlrxm = trs.find("td").eq(12).text(); //租赁人姓名
  1794. obj.zlhtjzrq = trs.find("td").eq(13).text(); //租赁合同截止日期
  1795. obj.zlsynx = trs.find("td").eq(14).text(); //租赁剩余年限
  1796. obj.xzfwsfylzy = trs.find("td").eq(15).text(); //闲置房屋是否有流转意愿
  1797. obj.xh = trs.find("td").eq(16).text(); //农房编号
  1798. obj.orgCode = trs.find("td").eq(20).text(); //行政区代码
  1799. obj.tdfl = trs.find("td").eq(23).text(); //集体/个人
  1800. obj.frontHouse = trs.find("td").eq(24).text(); //图片前
  1801. obj.behindHouse = trs.find("td").eq(25).text(); //图片后
  1802. _this.houseInfoList = obj;
  1803. _this.houseInfoLookList =obj;
  1804. } else {
  1805. _this.farmhouseStatus = 1;
  1806. //农地
  1807. let obj = {};
  1808. let trs = $("#info .featureInfo").find("tr:eq(1)");
  1809. obj.xm = trs.find("td").eq(1).text(); //序号
  1810. obj.cm = trs.find("td").eq(2).text(); //村名
  1811. obj.cbrmc = trs.find("td").eq(3).text(); //承包人名称
  1812. obj.syrmc = trs.find("td").eq(4).text(); //使用人名称
  1813. obj.nydlx = trs.find("td").eq(5).text(); //农用地类型
  1814. obj.mj= trs.find("td").eq(6).text(); //面积
  1815. obj.xzqk = trs.find("td").eq(7).text(); //现状情况
  1816. obj.lzhtjzrq = trs.find("td").eq(8).text(); //流转合同截止时间
  1817. obj.lzsynx = trs.find("td").eq(9).text(); //流转剩余年限
  1818. obj.sfylzyx = trs.find("td").eq(10).text(); //是否流转意向
  1819. obj.cdm = trs.find("td").eq(11).text(); //村代码
  1820. obj.orgCode = trs.find("td").eq(12).text(); //行政区化代码
  1821. obj.frontland = trs.find("td").eq(15).text(); //图片前
  1822. obj.behindland = trs.find("td").eq(16).text(); //图片后
  1823. _this.landInfoList = obj;
  1824. _this.landInfoLookList = obj;
  1825. }
  1826. }, 300);
  1827. if(_this.draw.drawMapPolygon ==false && _this.searchBarOperVisbile == false){ //判断不在绘制地图进入
  1828. if($('.landHomestead_wrap').css('bottom')!='0px'){
  1829. $('.searchBar_wrap').css({'bottom':'0'})
  1830. $('.searchBar_wrap').animate({
  1831. 'bottom':'-100%'
  1832. },300)
  1833. $('.landHomestead_wrap').css({'bottom':'-100%'})
  1834. $('.landHomestead_wrap').animate({
  1835. 'bottom':'0'
  1836. },400)
  1837. $('.rightIcon_wrap').animate({
  1838. 'bottom':$('.landHomestead_wrap').height()+10+'px'
  1839. },200)
  1840. }
  1841. }
  1842. } else {
  1843. _this.hasTable = false;
  1844. if($('.searchBar_wrap').css('bottom')!='0px'){
  1845. $('.landHomestead_wrap').css({'bottom':'0'})
  1846. $('.landHomestead_wrap').animate({
  1847. 'bottom':'-100%'
  1848. },300)
  1849. $('.searchBar_wrap').css({'bottom':'-100%'})
  1850. $('.searchBar_wrap').animate({
  1851. 'bottom':'0'
  1852. },400)
  1853. let searchBarWrapPadding = $('.searchBar_wrap').css('paddingTop').replace('px','')
  1854. let searchBarWrapHeight = $('.searchBar_wrap').height();
  1855. $('.rightIcon_wrap').animate({
  1856. 'bottom':searchBarWrapHeight+ searchBarWrapPadding *2 +10+'px'
  1857. },200)
  1858. }
  1859. //非编辑情况初始化
  1860. if(_this.landHomesteadEditVisbile == false){
  1861. //农地数据初始化
  1862. _this.landInfoList = {
  1863. id: "", //String 是 主键id
  1864. orgCode: "", // String 否 行政区代码
  1865. cdm: "", // String 否 村代码
  1866. cm: "", //String 否 村名
  1867. xh: "", // String 否 序号
  1868. cbrmc: "", //String 否 承包人名称
  1869. syrmc: "", //String 否 使用人名称
  1870. nydlx: "", // String 否 农用地类型
  1871. mj: "", // String 否 面积
  1872. lzsynx: "", // String 否 流转剩余年限
  1873. zlhtjzrq: "", // String 否 日期
  1874. sfylzyx: "", // String 否 是否流转意向
  1875. xzqk: "", // String 否 现状情况
  1876. theGeom: "", //String 否 空间坐标
  1877. xzqkKey: "", // String 否 忽略
  1878. nydlxKey: "", // String 否 忽略
  1879. frontland: "", //String 否 图片前
  1880. behindland: "", //String 否 图片后
  1881. };
  1882. //农房数据初始化
  1883. _this.houseInfoList = {
  1884. id: "", // String 是 主键id
  1885. orgCode: "", // String 否 行政区代码
  1886. cdm: "", // String 否 村代码
  1887. cm: "", // String 否 村名
  1888. xh: "", // String 否 序号
  1889. tdxz: "", //土地性质
  1890. fwsyrmc: "", // String 否 房屋所有人名称
  1891. fwsyqh: "", // String 否 房屋所有权证号
  1892. tdzh: "", // String 否 土地证号
  1893. jzmj: "", // String 否 建筑面积
  1894. tdmj: "", // String 否 土地面积
  1895. sfyspsx: "", // String 否 是否有审批手续
  1896. xzqk: "", // String 否 现状情况
  1897. theGeom: "", // String 否 空间坐标
  1898. xzqkKey: "", // String 否 忽略传null
  1899. tdxzKey: "", // String 否 忽略传null
  1900. frontHouse: "", // String 否 图片前
  1901. behindHouse: "", // String 否 图片后
  1902. dz: "", // String 否 地址
  1903. zlrxm: "", // String 否 租赁人姓名
  1904. zlhtjzrq: "", // 租赁合同截止日期
  1905. zlsynx: "", // 租赁剩余年限
  1906. xzfwsfylzy: "", // 闲置房屋是否有流转意愿
  1907. tdfl: "", // 集体/个人
  1908. };
  1909. }
  1910. }
  1911. });
  1912. }
  1913. });
  1914. map.on("pointermove", function (evt) {
  1915. if (evt.dragging) {
  1916. return;
  1917. }
  1918. var pixel = map.getEventPixel(evt.originalEvent);
  1919. var hit = map.forEachLayerAtPixel(pixel, function () {
  1920. return true;
  1921. });
  1922. map.getTargetElement().style.cursor = hit ? "pointer" : "";
  1923. });
  1924. //属性查询结束 ------------------end
  1925. //按照分类查询 村定位地图-----------------start
  1926. var nongZt;
  1927. var texiao_layer_fang;
  1928. var texiao_layer_di;
  1929. $("#cun").on("change", function () {
  1930. /**
  1931. * @api wfs服务空间查询
  1932. * @param {*} wfsurl
  1933. * @param {*} srsName
  1934. * @param {*} typeName
  1935. * @param {*} drawType
  1936. * @param {option 可选} geometryField
  1937. */
  1938. var cun = _this.villageDataObj.deptName;
  1939. console.log(cun)
  1940. //定位个人地图
  1941. map.removeLayer(texiao_layer_fang);
  1942. map.removeLayer(texiao_layer_di);
  1943. //删除之前加载的图层
  1944. let currObjNum = _this.villageDataObj;
  1945. map.getView().animate({
  1946. // 只设置需要的属性即可
  1947. center: ol.proj.fromLonLat([currObjNum.lng, currObjNum.lat]), // 中心点
  1948. zoom: 14.5, // 缩放级别
  1949. rotation: undefined, // 缩放完成view视图旋转弧度
  1950. duration: 1000, // 缩放持续时间,默认不需要设置
  1951. });
  1952. map.removeLayer(nongZt);
  1953. //村的数据判断
  1954. map.removeLayer(villageVectorLayer);
  1955. villageDiagram();
  1956. setTimeout(() => {
  1957. map.removeLayer(shitu);
  1958. }, 1000);
  1959. //查询条件
  1960. var cql_filter;
  1961. //for(var i=0; i< difang.length; i++){
  1962. //图层加载
  1963. //地的数据判断
  1964. var difang = "nsgk_hc:nsgk_hc_all";
  1965. console.log("++++++++++++" + cun);
  1966. //业务图层 wms服务
  1967. //for (var i = 0; i < difang.length; i++) {
  1968. ///if (difang[i] == "nsgk_hc:t_geo_hc_house") {
  1969. cql_filter = "CM='" + cun + "'";
  1970. //} else {
  1971. // cql_filter = "CM='" + cun + "'";
  1972. //}
  1973. nongZt = new ol.layer.Tile({
  1974. source: new ol.source.TileWMS({
  1975. //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms',
  1976. url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms",
  1977. //url: 'http://localhost:8888/geoserver/mywork_mysql/wms',
  1978. //url: 'http://localhost:8888/geoserver/new_shp/wms',
  1979. params: {
  1980. LAYERS: difang,
  1981. //'LAYERS': 'new_shp:new_shp_all',
  1982. TILED: true,
  1983. cql_filter: cql_filter,
  1984. SRID: 3857,
  1985. },
  1986. }),
  1987. });
  1988. //}
  1989. //定位查询位置
  1990. let param_dw = {
  1991. srsName: "EPSG:3857",
  1992. service: "WFS",
  1993. version: "1.0.0",
  1994. request: "GetFeature",
  1995. typename: difang,
  1996. //featureNS: 'nsgk_hc',//命名空间 URI
  1997. cql_filter: cql_filter,
  1998. //featurePrefix: 'nationalwater',//工作区名称
  1999. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2000. outputFormat: "application/json",
  2001. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2002. };
  2003. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2004. url_dw = url_dw + "?";
  2005. for (let key in param_dw) {
  2006. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2007. }
  2008. url_dw = url_dw.substr(0, url_dw.length - 1);
  2009. fetch(url_dw, {
  2010. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2011. })
  2012. .then((res) => {
  2013. var geojsonmap = res.json();
  2014. return geojsonmap;
  2015. })
  2016. .then((data) => {
  2017. //var datamap = data.bbox;
  2018. // var datamap = data.features[0].bbox;
  2019. // map.getView().animate({
  2020. // // 只设置需要的属性即可
  2021. // center: datamap, // 中心点
  2022. // zoom: 15, // 缩放级别
  2023. // rotation: undefined, // 缩放完成view视图旋转弧度
  2024. // duration: 1000, // 缩放持续时间,默认不需要设置
  2025. // });
  2026. })
  2027. .catch((error) => {
  2028. console.log("【异常】", error);
  2029. });
  2030. map.addLayer(nongZt);
  2031. //}
  2032. });
  2033. //村定位查询-------------------------------------end
  2034. //开始绘制地图 ------------------- start
  2035. var vector_drawing;
  2036. var draw;
  2037. //开始绘制地图
  2038. $("#drawPolygon").click(function () {
  2039. //map.removeLayer(zjd_land);
  2040. map.removeLayer(vector_drawing);
  2041. //var source = new ol.source.Vector({wrapX: false});
  2042. vector_drawing = new ol.layer.Vector({
  2043. source: new ol.source.Vector(),
  2044. });
  2045. map.addLayer(vector_drawing);
  2046. function addInteraction() {
  2047. draw = new ol.interaction.Draw({
  2048. source: vector_drawing.getSource(),
  2049. type: "Polygon",
  2050. });
  2051. draw.on("drawend", function (evt) {
  2052. var feature = evt.feature;
  2053. var geometry = feature.getGeometry();
  2054. var coordinate = geometry.getCoordinates();
  2055. console.log("打印" + coordinate);
  2056. _this.coordinateList= coordinate.toString();
  2057. console.log( _this.coordinateList)
  2058. $("#drawRemove").trigger("click");
  2059. _this.$set(_this.draw, "drawMapPolygon", false);
  2060. //that.drawInsert = coordinate;
  2061. });
  2062. map.addInteraction(draw);
  2063. }
  2064. addInteraction();
  2065. });
  2066. //清除画图鼠标点击事件
  2067. $("#drawRemove").click(function () {
  2068. map.removeInteraction(draw);
  2069. });
  2070. //还原之前图层
  2071. $("#drawReset").click(function () {
  2072. map.removeLayer(vector_drawing);
  2073. //map.addLayer(zjd_land);
  2074. });
  2075. //开始绘制地图 ------------------- end
  2076. //特效实现
  2077. $("#texiao_fang").on("click", function () {
  2078. /**
  2079. * @api wfs服务空间查询
  2080. * @param {*} wfsurl
  2081. * @param {*} srsName
  2082. * @param {*} typeName
  2083. * @param {*} drawType
  2084. * @param {option 可选} geometryField
  2085. */
  2086. //alert("进入分类");
  2087. //删除之前加载的图层
  2088. map.removeLayer(texiao_layer_fang);
  2089. var cun = _this.villageDataObj.deptName;
  2090. //删除之前加载的图层
  2091. //map.removeLayer(dishitu);
  2092. //map.removeLayer(cunshitu);
  2093. //分类查询查询农地、农房
  2094. var difang;
  2095. //地的数据判断
  2096. difang = "nsgk_hc:t_geo_hc_house";
  2097. //查询条件
  2098. var cql_filter;
  2099. //村的数据判断
  2100. var val = $("#texiao_fang").val();
  2101. if (val == "") {
  2102. alert("请填写查询条件在查询");
  2103. }
  2104. //for(var i=0; i< difang.length; i++){
  2105. //cql_filter = "CM='"+cun +"'"+ "and FWSYRMC='"+query_mz.value;
  2106. cql_filter = "FWSYRMC='" + val + "' and CM='" + cun + "'";
  2107. //图层加载
  2108. //地的数据判断
  2109. //定位查询位置
  2110. let param_dw = {
  2111. srsName: "EPSG:3857",
  2112. service: "WFS",
  2113. version: "1.0.0",
  2114. request: "GetFeature",
  2115. typename: difang,
  2116. //featureNS: 'nsgk_hc',//命名空间 URI
  2117. cql_filter: cql_filter,
  2118. //featurePrefix: 'nationalwater',//工作区名称
  2119. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2120. outputFormat: "application/json",
  2121. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2122. };
  2123. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2124. url_dw = url_dw + "?";
  2125. for (let key in param_dw) {
  2126. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2127. }
  2128. url_dw = url_dw.substr(0, url_dw.length - 1);
  2129. fetch(url_dw, {
  2130. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2131. })
  2132. .then((res) => {
  2133. var geojsonmap = res.json();
  2134. return geojsonmap;
  2135. })
  2136. .then((data) => {
  2137. //关联查询农房信息---------------start
  2138. // document.getElementById("info").innerHTML = "";
  2139. // var select_fang = (document.getElementById("info").innerHTML =
  2140. // data.features[0].properties);
  2141. // _this.hasTable = true;
  2142. // _this.hasDateStatus = 1;
  2143. // let obj = {};
  2144. // //let trs = $("#info .featureInfo").find("tr:eq(1)");
  2145. // obj.FWSYRMC = select_fang.FWSYRMC; //房屋所有人名称
  2146. // obj.CM = select_fang.CM; //村名
  2147. // obj.CDM = select_fang.CDM; //村代码
  2148. // obj.DZ = select_fang.DZ; //地址
  2149. // obj.SFYSPSX = select_fang.SFYSPSX; //是否有审批手续
  2150. // obj.FWSYQH = select_fang.FWSYQH; //房屋所有权证号
  2151. // obj.JZMJ = select_fang.JZMJ; //建筑面积
  2152. // obj.TDZH = select_fang.TDZH; //土地证号
  2153. // obj.TDXZ = select_fang.TDXZ; //土地性质
  2154. // obj.TDMJ = select_fang.TDMJ; //土地面积
  2155. // obj.XZQK = select_fang.XZQK; //现状情况
  2156. // obj.ZLRXM = select_fang.ZLRXM; //租赁人姓名
  2157. // obj.ZLHTJZRQ = select_fang.ZLHTJZRQ; //租赁合同截止时间
  2158. // obj.ZLSYNX = select_fang.ZLSYNX; //租赁剩余年现
  2159. // obj.XZFWSFYLZY = select_fang.XZFWSFYLZY; //是否流转意向
  2160. // obj.XH = select_fang.XH; //农房编号
  2161. // _this.hasData = obj;
  2162. //关联查询农房信息---------------end
  2163. //定位结束 --------------start
  2164. //var datamap = data.bbox;
  2165. var datamap = data.features[0].bbox;
  2166. map.getView().animate({
  2167. // 只设置需要的属性即可
  2168. center: datamap, // 中心点
  2169. zoom: 18, // 缩放级别
  2170. rotation: undefined, // 缩放完成view视图旋转弧度
  2171. duration: 1000, // 缩放持续时间,默认不需要设置
  2172. });
  2173. //定位结束 --------------end
  2174. //特效动画实现 -----------------------------start
  2175. texiao_layer_fang = new ol.layer.Vector({
  2176. source: new ol.source.Vector(),
  2177. });
  2178. map.addLayer(texiao_layer_fang);
  2179. var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  2180. var circle = new ol.Feature({
  2181. geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2182. });
  2183. //var out =new ol.coordinate.Coordinate(datamap);
  2184. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2185. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2186. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2187. circle.setStyle(
  2188. new ol.style.Style({
  2189. image: new ol.style.Circle({
  2190. radius: 0,
  2191. stroke: new ol.style.Stroke({
  2192. color: "yellow",
  2193. size: 1,
  2194. }),
  2195. }),
  2196. })
  2197. );
  2198. texiao_layer_fang.getSource().addFeature(circle);
  2199. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  2200. var radius = 0;
  2201. map.on("postcompose", function () {
  2202. // 增大半径,最大20
  2203. radius++;
  2204. radius = radius % 10;
  2205. // 设置样式
  2206. circle.setStyle(
  2207. new ol.style.Style({
  2208. image: new ol.style.Circle({
  2209. radius: radius,
  2210. stroke: new ol.style.Stroke({
  2211. color: "yellow",
  2212. size: 1,
  2213. }),
  2214. }),
  2215. })
  2216. );
  2217. });
  2218. //特效动画实现 -----------------------------end
  2219. })
  2220. .catch((error) => {
  2221. console.log("【异常】", error);
  2222. });
  2223. });
  2224. //-----------------------------------------------------------------------------特效农房加载结束 end
  2225. //-----------------------------------------------------------------------------特效农地加载开始 start
  2226. //特效实现
  2227. $("#texiao_di").on("click", function () {
  2228. /**
  2229. * @api wfs服务空间查询
  2230. * @param {*} wfsurl
  2231. * @param {*} srsName
  2232. * @param {*} typeName
  2233. * @param {*} drawType
  2234. * @param {option 可选} geometryField
  2235. */
  2236. //alert("进入分类");
  2237. //删除之前加载的图层
  2238. map.removeLayer(texiao_layer_di);
  2239. var cun = _this.villageDataObj.deptName;
  2240. //删除之前加载的图层
  2241. //map.removeLayer(dishitu);
  2242. //map.removeLayer(cunshitu);
  2243. //分类查询查询农地、农房
  2244. var difang;
  2245. //地的数据判断
  2246. difang = "nsgk_hc:t_geo_hc_land";
  2247. //查询条件
  2248. var cql_filter;
  2249. //村的数据判断
  2250. var val = $("#texiao_di").val();
  2251. if (val == "") {
  2252. alert("请填写查询条件在查询");
  2253. }
  2254. //for(var i=0; i< difang.length; i++){
  2255. //cql_filter = "CM='"+cun +"'"+ "and FWSYRMC='"+query_mz.value;
  2256. cql_filter = "SYRMC='" + val + "' and CM='" + cun + "'";
  2257. //图层加载
  2258. //定位查询位置
  2259. let param_dw = {
  2260. srsName: "EPSG:3857",
  2261. service: "WFS",
  2262. version: "1.0.0",
  2263. request: "GetFeature",
  2264. typename: difang,
  2265. INFO_FORMAT: "text/html",
  2266. //featureNS: 'nsgk_hc',//命名空间 URI
  2267. cql_filter: cql_filter,
  2268. //featurePrefix: 'nationalwater',//工作区名称
  2269. //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开
  2270. outputFormat: "application/json",
  2271. //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值
  2272. };
  2273. let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl;
  2274. url_dw = url_dw + "?";
  2275. for (let key in param_dw) {
  2276. url_dw = url_dw + key + "=" + param_dw[key] + "&";
  2277. }
  2278. url_dw = url_dw.substr(0, url_dw.length - 1);
  2279. fetch(url_dw, {
  2280. method: "POST", // *GET, POST, PUT, DELETE, etc.
  2281. })
  2282. .then((res) => {
  2283. var geojsonmap = res.json();
  2284. return geojsonmap;
  2285. })
  2286. .then((data) => {
  2287. //关联查询农地信息 ----------start
  2288. // document.getElementById("info").innerHTML = "";
  2289. // var select_di = (document.getElementById("info").innerHTML =
  2290. // data.features[0].properties);
  2291. // _this.hasTable = true;
  2292. // _this.hasDateStatus = 0;
  2293. // let obj = {};
  2294. // //let trs = $("#info").find("tr:eq(1)");
  2295. // obj.XH = select_di.XH; //序号
  2296. // obj.CM = select_di.CM; //村名
  2297. // obj.CBRMC = select_di.CBRMC; //承包人名称
  2298. // obj.SYRMC = select_di.SYRMC; //使用人名称
  2299. // obj.NYDLX = select_di.NYDLX; //农用地类型
  2300. // obj.MJ = select_di.MJ; //面积
  2301. // obj.XZQK = select_di.XZQK; //现状情况
  2302. // obj.LZHTJZRQ = select_di.LZHTJZRQ; //流转合同截止时间
  2303. // obj.LZSYNX = select_di.LZSYNX; //流转剩余年限
  2304. // obj.SFYLZYX = select_di.SFYLZYX; //是否流转意向
  2305. // obj.CDM = select_di.CDM; //村代码
  2306. // obj.org_code = select_di.org_code; //行政区化代码
  2307. // _this.hasData = obj;
  2308. //关联查询农地信息 ----------end
  2309. //获取坐标定位开始----------start
  2310. //var datamap = data.bbox;
  2311. var datamap = data.features[0].bbox;
  2312. map.getView().animate({
  2313. // 只设置需要的属性即可
  2314. center: datamap, // 中心点
  2315. zoom: 16, // 缩放级别
  2316. rotation: undefined, // 缩放完成view视图旋转弧度
  2317. duration: 1000, // 缩放持续时间,默认不需要设置
  2318. });
  2319. //获取坐标定位开始----------end
  2320. //特效动画实现 -----------------------------start
  2321. texiao_layer_di = new ol.layer.Vector({
  2322. source: new ol.source.Vector(),
  2323. });
  2324. map.addLayer(texiao_layer_di);
  2325. var center = ol.extent.getCenter(datamap); //获取边界区域的中心位置
  2326. var circle = new ol.Feature({
  2327. geometry: new ol.geom.Point(center), //ol.proj.transform([104, 30], 'EPSG:4326', 'EPSG:3857') //投影坐标转为地理坐标
  2328. });
  2329. //var out =new ol.coordinate.Coordinate(datamap);
  2330. //var extent = ol.extent.boundingExtent(feature.getGeometry().getCoordinates()[datamap]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy]
  2331. //var center = ol.extent.getCenter(extent); //获取边界区域的中心位置
  2332. //map.getView().setCenter(center); //设置当前地图的显示中心位置
  2333. circle.setStyle(
  2334. new ol.style.Style({
  2335. image: new ol.style.Circle({
  2336. radius: 0,
  2337. stroke: new ol.style.Stroke({
  2338. color: "#ef5b9c",
  2339. size: 1,
  2340. }),
  2341. }),
  2342. })
  2343. );
  2344. texiao_layer_di.getSource().addFeature(circle);
  2345. // 关键的地方在此:监听postcompose事件,在里面重新设置circle的样式
  2346. var radius = 0;
  2347. map.on("postcompose", function () {
  2348. // 增大半径,最大20
  2349. radius++;
  2350. radius = radius % 10;
  2351. // 设置样式
  2352. circle.setStyle(
  2353. new ol.style.Style({
  2354. image: new ol.style.Circle({
  2355. radius: radius,
  2356. stroke: new ol.style.Stroke({
  2357. color: "#ef5b9c",
  2358. size: 1,
  2359. }),
  2360. }),
  2361. })
  2362. );
  2363. });
  2364. //特效动画实现 -----------------------------end
  2365. })
  2366. .catch((error) => {
  2367. console.log("【异常】", error);
  2368. });
  2369. });
  2370. //-----------------------------------------------------------------------------特效农地加载结束 end
  2371. },
  2372. //农房 - 土地性质 选择值
  2373. tdxzOptionsFun(value) {
  2374. this.houseInfoList.tdxz = value.dictLabel;
  2375. this.tdxzOptionsValue = value.dictLabel;
  2376. this.tdxzOptionsVibile = false;
  2377. console.log(value)
  2378. console.log( this.houseInfoList)
  2379. },
  2380. //农房 - 是否有审批 选择值
  2381. xfCirculationFun(value) {
  2382. this.xfCirculationVisbile = false;
  2383. this.houseInfoList.sfyspsx = value;
  2384. },
  2385. //农房 - 现状情况 选择值
  2386. xzqkOptionsFun(value) {
  2387. this.houseInfoList.xzqk = value.dictValue;
  2388. this.xzqkOptionsVisbile = false;
  2389. },
  2390. //农房 - 是否有流转 选择值
  2391. xflzCirculationFun(value) {
  2392. this.xflzCirculationVisbile = false;
  2393. this.houseInfoList.xzfwsfylzy = value;
  2394. },
  2395. //农房 - 房屋类型
  2396. fwdlxOptionsFun(value){
  2397. this.houseInfoList.tdfl = value;
  2398. this.fwdlxOptionsVibile = false;
  2399. },
  2400. //农地 - 现状情况 选择值
  2401. ndxzqkOptionsFun(value) {
  2402. this.landInfoList.xzqk = value.dictValue;
  2403. this.ndxzqkOptionsVisbile = false;
  2404. },
  2405. //农地 - 农用地类型 选择值
  2406. nydlxOptionsFun(value) {
  2407. this.landInfoList.nydlx = value.dictLabel;
  2408. this.nydlxOptionsValue = value.dictLabel;
  2409. this.nydlxOptionsVibile = false;
  2410. },
  2411. //农地 - 是否有流转 选择值
  2412. xdCirculationOptionsFun(value) {
  2413. this.xdlzCirculationVisbile = false;
  2414. this.landInfoList.sfylzyx = value;
  2415. },
  2416. //农房 -- 新建 上传图片方法
  2417. nfAddimgonRead(file){
  2418. var formData =new FormData();//构造一个 FormData,把后台需要发送的参数添加
  2419.    formData.append('file', file.file);//接口需要传的参数
  2420. commonUpload(formData).then((res)=>{
  2421. this.houseInfoList.frontHouse = res.url;
  2422. })
  2423. },
  2424. //农地 -- 新建 上传图片方法
  2425. ndAddimgonRead(file){
  2426. var formData =new FormData();//构造一个 FormData,把后台需要发送的参数添加
  2427.    formData.append('file', file.file);//接口需要传的参数
  2428. commonUpload(formData).then((res)=>{
  2429. this.landInfoList.frontland = res.url;
  2430. })
  2431. },
  2432. },
  2433. };
  2434. </script>
  2435. <style scoped lang="scss">
  2436. .app-container {
  2437. width: 100vw;
  2438. height: 100vh;
  2439. position: relative;
  2440. .rightIcon_wrap {
  2441. position: absolute;
  2442. right: 16px;
  2443. bottom: 160px;
  2444. .selectionIcon_wrap {
  2445. width: 74px;
  2446. background: #fff;
  2447. border-radius: 10px;
  2448. padding: 14px 0;
  2449. .icon {
  2450. width: 38px;
  2451. height: 38px;
  2452. background: url("../../assets/images/homestead/selection_icon.png")
  2453. no-repeat;
  2454. background-size: 100% 100%;
  2455. margin: 0 auto 4px;
  2456. }
  2457. .text {
  2458. font-size: 24px;
  2459. text-align: center;
  2460. }
  2461. }
  2462. .positioning_wrap {
  2463. width: 74px;
  2464. background: #fff;
  2465. margin-bottom: 16px;
  2466. border-radius: 10px;
  2467. height: 74px;
  2468. display: flex;
  2469. justify-content: center; /* 相对父元素水平居中 */
  2470. align-items: center; /* 子元素相对父元素垂直居中*/
  2471. .icon {
  2472. width: 38px;
  2473. height: 38px;
  2474. background: url("../../assets/images/homestead/positioning_icon.png")
  2475. no-repeat;
  2476. background-size: 100% 100%;
  2477. margin: 0 auto;
  2478. }
  2479. }
  2480. }
  2481. .rightZoom_wrap {
  2482. position: absolute;
  2483. right: 16px;
  2484. top: 50%;
  2485. width: 74px;
  2486. margin-top: -200px;
  2487. background: #fff;
  2488. margin-bottom: 16px;
  2489. border-radius: 10px;
  2490. height: 100px;
  2491. .amplification,
  2492. .narrow {
  2493. height: 50px;
  2494. width: 74px;
  2495. }
  2496. .amplification {
  2497. background: url("../../assets/images/homestead/jia.png") center center
  2498. no-repeat;
  2499. // background-size: 40% auto;
  2500. }
  2501. .narrow {
  2502. background: url("../../assets/images/homestead/jian.png") center center
  2503. no-repeat;
  2504. // background-size: 40% auto;
  2505. }
  2506. }
  2507. // <div class="rightZoom_wrap">
  2508. // <div class="amplification"></div>
  2509. // <div class="narrow"></div>
  2510. // </div>
  2511. .homesteadList_wrap {
  2512. // display: none;
  2513. display: flex;
  2514. position: absolute;
  2515. right: -536px;
  2516. top: 20px;
  2517. bottom: 160px;
  2518. width: 536px;
  2519. background: #fff;
  2520. z-index: 999;
  2521. border-top-left-radius: 15px;
  2522. border-bottom-left-radius: 15px;
  2523. flex-direction: column;
  2524. .noInfo_data{
  2525. font-size: 28px;
  2526. text-align: center;
  2527. height: 300px;
  2528. line-height: 300px;
  2529. color: #666;
  2530. }
  2531. .title_m {
  2532. color: #333;
  2533. line-height: 36px;
  2534. padding: 20px 40px 22px;
  2535. .name {
  2536. font-size: 40px;
  2537. line-height: 42px;
  2538. height: 42px;
  2539. }
  2540. .more_icon {
  2541. width: 38px;
  2542. height: 38px;
  2543. background: url("../../assets/images/homestead/selectionNext_icon.png")
  2544. no-repeat;
  2545. float: right;
  2546. margin-top: 2px;
  2547. }
  2548. }
  2549. .main_m {
  2550. overflow-y: auto;
  2551. padding: 10px 0;
  2552. // height: 300px;
  2553. flex: 1;
  2554. .flex_block {
  2555. height: 70px;
  2556. display: flex;
  2557. // justify-content: center; /* 相对父元素水平居中 */
  2558. align-items: center; /* 子元素相对父元素垂直居中 */
  2559. padding: 0 40px;
  2560. &.active {
  2561. box-shadow: 0px 0px 10px rgba(24, 45, 51, 0.5);
  2562. }
  2563. .name_text {
  2564. font-size: 28px;
  2565. flex: 1;
  2566. overflow: hidden; /*超出部分隐藏*/
  2567. white-space: nowrap; /*不换行*/
  2568. text-overflow: ellipsis; /*超出部分文字以...显示*/
  2569. }
  2570. .square_text {
  2571. font-size: 28px;
  2572. flex: 0.8;
  2573. }
  2574. .operation_mian {
  2575. flex: 0 0 150px;
  2576. .describe {
  2577. font-size: 20px;
  2578. padding: 6px 12px;
  2579. float: right;
  2580. color: #fff;
  2581. border-radius: 30px;
  2582. overflow: hidden;
  2583. text-overflow:ellipsis;
  2584. white-space: nowrap;
  2585. max-width: 150px;
  2586. &.yph {
  2587. background: rgb(175,39,255);
  2588. }
  2589. &.dlzdph{
  2590. background: rgb(255,111,54);
  2591. }
  2592. &.ylz{
  2593. background: #3cbf5b;
  2594. }
  2595. &.dlz{
  2596. background: rgb(255,232,76);
  2597. }
  2598. }
  2599. }
  2600. }
  2601. }
  2602. .footerBtn_wrap {
  2603. flex: 0 0 90px;
  2604. display: flex;
  2605. justify-content: center; /* 相对父元素水平居中 */
  2606. align-items: center; /* 子元素相对父元素垂直居中 */
  2607. .options {
  2608. flex: 1;
  2609. font-size: 38px;
  2610. display: flex;
  2611. justify-content: center; /* 相对父元素水平居中 */
  2612. align-items: center; /* 子元素相对父元素垂直居中 */
  2613. height: 90px;
  2614. &:first-child {
  2615. border-bottom-left-radius: 15px;
  2616. }
  2617. &.active {
  2618. background: #3cbf5b;
  2619. color: #fff;
  2620. }
  2621. }
  2622. }
  2623. }
  2624. .map_area {
  2625. width: 100vw;
  2626. height: 100vh;
  2627. background: #ddd;
  2628. position: absolute;
  2629. left: 0;
  2630. top: 0;
  2631. }
  2632. .address_wrap {
  2633. position: fixed;
  2634. z-index: 9;
  2635. top: 24px;
  2636. left: 8px;
  2637. // left: -80px;
  2638. display: flex;
  2639. .address_item {
  2640. display: flex;
  2641. flex-direction: column;
  2642. margin-right: 8px;
  2643. justify-content: center; /* 相对父元素水平居中 */
  2644. align-items: center; /* 子元素相对父元素垂直居中 */
  2645. position: relative;
  2646. .portrait {
  2647. width: 76px;
  2648. height: 76px;
  2649. background: #000;
  2650. border-radius: 50%;
  2651. margin-bottom: 20px;
  2652. font-size: 30px;
  2653. color: #fff;
  2654. text-align: center;
  2655. line-height: 65px;
  2656. color: #fff;
  2657. &.zhen,
  2658. &.cun {
  2659. border: 5px solid rgba(255, 255, 255, 0.6);
  2660. }
  2661. &.zhen {
  2662. background: url("../../assets/images/homestead/zhen.jpg") top center
  2663. no-repeat;
  2664. background-size: 100% 100%;
  2665. }
  2666. &.cun {
  2667. background: url("../../assets/images/homestead/cun.jpg") top center
  2668. no-repeat;
  2669. background-size: 100% 100%;
  2670. }
  2671. }
  2672. .name {
  2673. font-size: 14px;
  2674. background: #fff;
  2675. padding: 2px 6px;
  2676. border-radius: 8px;
  2677. min-height: 42px;
  2678. min-width: 100px;
  2679. }
  2680. &.more {
  2681. .portrait {
  2682. width: 40px;
  2683. background: none;
  2684. }
  2685. .name {
  2686. background: url("../../assets/images/homestead/address_more.png")
  2687. no-repeat;
  2688. background-size: 100% 100%;
  2689. width: 40px;
  2690. height: 40px;
  2691. padding: 0;
  2692. &.shrink {
  2693. transform: rotate(180deg);
  2694. }
  2695. }
  2696. }
  2697. .address_suspension {
  2698. position: absolute;
  2699. left: calc(100% + 8px);
  2700. top: 100px;
  2701. z-index: 10;
  2702. padding: 10px 8px 10px 15px;
  2703. background: #fff;
  2704. border-radius: 10px;
  2705. width: auto;
  2706. .address_suspension_scroll {
  2707. height: 200px;
  2708. overflow-y: auto;
  2709. padding-right: 8px;
  2710. }
  2711. .items {
  2712. white-space: nowrap;
  2713. }
  2714. }
  2715. }
  2716. }
  2717. .searchBar_wrap {
  2718. // display: none;
  2719. display: flex;
  2720. position: fixed;
  2721. bottom: 0%;
  2722. left: 0;
  2723. width: 100%;
  2724. padding: 28px 16px 28px 13px;
  2725. background: #fff;
  2726. border-top-left-radius: 15px;
  2727. border-top-right-radius: 15px;
  2728. .actionBar_wrap {
  2729. display: flex;
  2730. position: absolute;
  2731. top: 0;
  2732. left: 0;
  2733. width: 100%;
  2734. height: 100%;
  2735. background: #fff;
  2736. border-top-left-radius: 15px;
  2737. border-top-right-radius: 15px;
  2738. .m_list {
  2739. flex: 1;
  2740. display: flex;
  2741. justify-content: center; /* 相对父元素水平居中 */
  2742. align-items: center; /* 子元素相对父元素垂直居中 */
  2743. .tensile,
  2744. .positioning,
  2745. .spacing,
  2746. .scale {
  2747. width: 76px;
  2748. height: 72px;
  2749. background: #ffffff;
  2750. border-radius: 8px;
  2751. box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.16);
  2752. .icon {
  2753. width: 76px;
  2754. height: 72px;
  2755. }
  2756. &.active {
  2757. background: #333;
  2758. &.tensile {
  2759. .icon {
  2760. background: url("../../assets/images/homestead/operation/tensile_active.png")
  2761. center center no-repeat;
  2762. background-size: 38px 50px;
  2763. }
  2764. }
  2765. &.positioning {
  2766. .icon {
  2767. background: url("../../assets/images/homestead/operation/positioning_active.png")
  2768. center center no-repeat;
  2769. background-size: 38px 48px;
  2770. }
  2771. }
  2772. &.spacing {
  2773. .icon {
  2774. background: url("../../assets/images/homestead/operation/spacing_active.png")
  2775. center center no-repeat;
  2776. background-size: 46px 46px;
  2777. }
  2778. }
  2779. &.scale {
  2780. .icon {
  2781. background: url("../../assets/images/homestead/operation/scale_active.png")
  2782. center center no-repeat;
  2783. background-size: 48px 48px;
  2784. }
  2785. }
  2786. }
  2787. }
  2788. .tensile {
  2789. .icon {
  2790. background: url("../../assets/images/homestead/operation/tensile.png")
  2791. center center no-repeat;
  2792. background-size: 38px 50px;
  2793. }
  2794. }
  2795. .positioning {
  2796. .icon {
  2797. background: url("../../assets/images/homestead/operation/positioning.png")
  2798. center center no-repeat;
  2799. background-size: 38px 48px;
  2800. }
  2801. }
  2802. .spacing {
  2803. .icon {
  2804. background: url("../../assets/images/homestead/operation/spacing.png")
  2805. center center no-repeat;
  2806. background-size: 46px 46px;
  2807. }
  2808. }
  2809. .scale {
  2810. .icon {
  2811. background: url("../../assets/images/homestead/operation/scale.png")
  2812. center center no-repeat;
  2813. background-size: 48px 48px;
  2814. }
  2815. }
  2816. .closes {
  2817. background: url("../../assets/images/homestead/searchBar_close.png")
  2818. no-repeat;
  2819. background-size: 100% 100%;
  2820. width: 72px;
  2821. height: 72px;
  2822. &.gray {
  2823. background: url("../../assets/images/homestead/searchBar_close_gray.png")
  2824. no-repeat;
  2825. background-size: 100% 100%;
  2826. }
  2827. }
  2828. .correct {
  2829. background: url("../../assets/images/homestead/searchBar_save.png")
  2830. no-repeat;
  2831. background-size: 100% 100%;
  2832. width: 72px;
  2833. height: 72px;
  2834. }
  2835. }
  2836. }
  2837. .searchBar_area {
  2838. flex: 1;
  2839. height: 80px;
  2840. background: #f1f1f1;
  2841. border: 1px solid #dfdfdf;
  2842. border-radius: 10px;
  2843. padding: 0 28px;
  2844. display: flex;
  2845. .bar_icon {
  2846. width: 50px;
  2847. height: 50px;
  2848. background: url("../../assets/images/homestead/searchBar_bar.png")
  2849. center center no-repeat;
  2850. background-size: 100% 100%;
  2851. margin-top: 14px;
  2852. margin-right: 15px;
  2853. }
  2854. .bar_ipt {
  2855. flex: 1;
  2856. input {
  2857. width: 100%;
  2858. height: 100%;
  2859. background: none;
  2860. border: 0 none;
  2861. font-size: 32px;
  2862. }
  2863. }
  2864. .bar_text {
  2865. flex: 0 0 80px;
  2866. font-size: 32px;
  2867. color: #333333;
  2868. font-family: PingFang SC, PingFang SC-Regular;
  2869. font-weight: 400;
  2870. display: flex;
  2871. justify-content: center; /* 相对父元素水平居中 */
  2872. align-items: center; /* 子元素相对父元素垂直居中 */
  2873. }
  2874. }
  2875. .searchBar_more {
  2876. flex: 0 0 80px;
  2877. background: url("../../assets/images/homestead/searchBar_add.png") center
  2878. center no-repeat;
  2879. background-size: 80% 80%;
  2880. margin-left: 15px;
  2881. }
  2882. }
  2883. .landHomestead_wrap {
  2884. position: fixed;
  2885. bottom: -100%;
  2886. left: 0;
  2887. width: 100%;
  2888. padding: 0 16px;
  2889. .landHomestead_search {
  2890. height: 80px;
  2891. background: #f1f1f1;
  2892. border: 1px solid #dfdfdf;
  2893. border-radius: 10px;
  2894. padding: 0 28px;
  2895. display: flex;
  2896. margin-bottom: 10px;
  2897. .bar_icon {
  2898. width: 50px;
  2899. height: 50px;
  2900. background: url("../../assets/images/homestead/searchBar_bar.png")
  2901. center center no-repeat;
  2902. background-size: 95% 95%;
  2903. margin-top: 14px;
  2904. margin-right: 15px;
  2905. }
  2906. .bar_ipt {
  2907. flex: 1;
  2908. input {
  2909. width: 100%;
  2910. height: 100%;
  2911. background: none;
  2912. border: 0 none;
  2913. font-size: 32px;
  2914. }
  2915. }
  2916. .bar_text {
  2917. flex: 0 0 80px;
  2918. font-size: 32px;
  2919. color: #333333;
  2920. font-family: PingFang SC, PingFang SC-Regular;
  2921. font-weight: 400;
  2922. display: flex;
  2923. justify-content: center; /* 相对父元素水平居中 */
  2924. align-items: center; /* 子元素相对父元素垂直居中 */
  2925. }
  2926. }
  2927. .landHomestead_body {
  2928. background: #fff;
  2929. padding: 30px 20px;
  2930. border-top-left-radius: 12px;
  2931. border-top-right-radius: 12px;
  2932. position: relative;
  2933. .body_flex {
  2934. display: block;
  2935. overflow: hidden;
  2936. .attribute {
  2937. width: 42%;
  2938. float: left;
  2939. .names {
  2940. height: 54px;
  2941. padding-left: 46px;
  2942. background: url("../../assets/images/homestead/landHomestead_home.png")
  2943. left center no-repeat;
  2944. background-size: 38px 36px;
  2945. font-size: 32px;
  2946. line-height: 54px;
  2947. color: #333333;
  2948. margin-bottom: 12px;
  2949. overflow: hidden;
  2950. text-overflow:ellipsis;
  2951. white-space: nowrap;
  2952. }
  2953. .address {
  2954. height: 48px;
  2955. line-height: 48px;
  2956. font-size: 28px;
  2957. white-space: nowrap;
  2958. text-overflow: ellipsis;
  2959. overflow: hidden;
  2960. word-break: break-all;
  2961. margin-right: 8px;
  2962. }
  2963. .nature {
  2964. height: 48px;
  2965. font-size: 28px;
  2966. }
  2967. }
  2968. .distance {
  2969. width: 29%;
  2970. float: left;
  2971. .size {
  2972. height: 54px;
  2973. line-height: 54px;
  2974. font-size: 40px;
  2975. color: #333333;
  2976. margin-bottom: 12px;
  2977. }
  2978. .probably {
  2979. line-height: 48px;
  2980. font-size: 28px;
  2981. height: 48px;
  2982. }
  2983. }
  2984. .others {
  2985. width: 29%;
  2986. float: left;
  2987. .information {
  2988. height: 54px;
  2989. margin-bottom: 12px;
  2990. .status_text {
  2991. color: #fff;
  2992. font-size: 24px;
  2993. background: #3cbf5b;
  2994. border-radius: 20px;
  2995. padding: 8px 15px;
  2996. float: right;
  2997. }
  2998. .location {
  2999. width: 36px;
  3000. height: 36px;
  3001. background: url("../../assets/images/homestead/others_location.png")
  3002. no-repeat;
  3003. float: right;
  3004. margin: 8px 0 0 20px;
  3005. }
  3006. }
  3007. .editor {
  3008. height: 96px;
  3009. .editor_icon {
  3010. width: 72px;
  3011. height: 72px;
  3012. float: right;
  3013. background: #000;
  3014. margin-top: 14px;
  3015. }
  3016. }
  3017. }
  3018. }
  3019. }
  3020. }
  3021. .landHomesteadDetails_wrap {
  3022. display: flex;
  3023. position: absolute;
  3024. left: 0;
  3025. bottom: 0;
  3026. width: 100%;
  3027. z-index: 99;
  3028. height: calc(100% - 190px);
  3029. .content_mian {
  3030. flex: 1;
  3031. margin: 0 16px;
  3032. padding: 28px 40px 28px 40px;
  3033. background: #fff;
  3034. border-top-left-radius: 15px;
  3035. border-top-right-radius: 15px;
  3036. display: flex;
  3037. flex-direction: column;
  3038. .serial_flex {
  3039. flex: 0 0 60px;
  3040. margin-bottom: 15px;
  3041. font-size: 40px;
  3042. justify-content: center; /* 相对父元素水平居中 */
  3043. align-items: center; /* 子元素相对父元素垂直居中 */
  3044. color: #333;
  3045. display: flex;
  3046. .number {
  3047. flex: 1;
  3048. span {
  3049. padding-left: 30px;
  3050. }
  3051. }
  3052. .localhref {
  3053. height: 36px;
  3054. flex: 0 0 36px;
  3055. background: url("../../assets/images/homestead/others_location.png")
  3056. no-repeat;
  3057. background-size: 100% 100%;
  3058. }
  3059. }
  3060. .flex_block {
  3061. flex: 1;
  3062. font-size: 28px;
  3063. .describe {
  3064. color: #555;
  3065. padding-right: 30px;
  3066. }
  3067. .content {
  3068. font-size: #333;
  3069. }
  3070. }
  3071. .uploadPictures_block {
  3072. flex: 0 0 160px;
  3073. display: flex;
  3074. max-width: 90%;
  3075. .statusQuo {
  3076. flex: 1;
  3077. display: flex;
  3078. &:first-child {
  3079. margin-right: 36px;
  3080. }
  3081. .picture {
  3082. flex: 1;
  3083. background: #000;
  3084. }
  3085. .describe {
  3086. flex: 0 0 32px;
  3087. display: flex;
  3088. justify-content: center; /* 相对父元素水平居中 */
  3089. align-items: center; /* 子元素相对父元素垂直居中 */
  3090. margin-left: 6px;
  3091. }
  3092. }
  3093. }
  3094. .editor_block {
  3095. flex: 0 0 72px;
  3096. margin-top: 20px;
  3097. display: flex;
  3098. justify-content: flex-end;
  3099. .editor_icon {
  3100. width: 70px;
  3101. height: 70px;
  3102. background: url("../../assets/images/homestead/edit_icon.png")
  3103. no-repeat;
  3104. background-size: 100% 100%;
  3105. }
  3106. }
  3107. }
  3108. }
  3109. .landHomesteadEdit_wrap {
  3110. display: flex;
  3111. position: absolute;
  3112. left: 0;
  3113. bottom: -100vh;
  3114. z-index: 100;
  3115. width: 100%;
  3116. height: calc(100% - 190px);
  3117. flex-direction: column;
  3118. .content_mian {
  3119. flex: 1;
  3120. margin: 0 16px;
  3121. padding: 28px 25px 28px 40px;
  3122. background: #fff;
  3123. border-top-left-radius: 15px;
  3124. border-top-right-radius: 15px;
  3125. display: flex;
  3126. flex-direction: column;
  3127. .info_title {
  3128. flex: 0 0 60px;
  3129. margin-bottom: 15px;
  3130. font-size: 40px;
  3131. justify-content: center; /* 相对父元素水平居中 */
  3132. align-items: center; /* 子元素相对父元素垂直居中 */
  3133. color: #333;
  3134. }
  3135. .flex_main {
  3136. height: 890px;
  3137. padding-right: 15px;
  3138. overflow-y: auto;
  3139. }
  3140. .flex_block {
  3141. height: 100px;
  3142. margin-bottom: 20px;
  3143. .number_s50 {
  3144. width: 50%;
  3145. display: flex;
  3146. float: left;
  3147. flex-direction: column;
  3148. }
  3149. .number_s100 {
  3150. width: 100%;
  3151. float: left;
  3152. display: flex;
  3153. flex-direction: column;
  3154. }
  3155. .number_s60 {
  3156. // flex: 0.6;
  3157. width: 60%;
  3158. float: left;
  3159. display: flex;
  3160. flex-direction: column;
  3161. }
  3162. .number_s40 {
  3163. // flex: 0.4;
  3164. width: 40%;
  3165. display: flex;
  3166. flex-direction: column;
  3167. }
  3168. .number_s35 {
  3169. width: 35%;
  3170. float: left;
  3171. display: flex;
  3172. flex-direction: column;
  3173. }
  3174. .number_s30 {
  3175. width: 30%;
  3176. display: flex;
  3177. float: left;
  3178. flex-direction: column;
  3179. }
  3180. .title_m {
  3181. font-size: 28px;
  3182. flex: 0 0 50px;
  3183. white-space: nowrap;
  3184. text-overflow: ellipsis;
  3185. overflow: hidden;
  3186. word-break: break-all;
  3187. align-items: center; /* 子元素相对父元素垂直居中 */
  3188. }
  3189. .input_m {
  3190. &.select {
  3191. position: relative;
  3192. .dropDown_icon {
  3193. width: 20px;
  3194. height: 16px;
  3195. background: url("../../assets/images/homestead/drop-down.png")
  3196. no-repeat;
  3197. background-size: 100% 100%;
  3198. display: block;
  3199. position: absolute;
  3200. right: 8px;
  3201. top: 12px;
  3202. z-index: 99;
  3203. }
  3204. }
  3205. &.about {
  3206. position: relative;
  3207. .about_symbol {
  3208. position: absolute;
  3209. left: 8px;
  3210. top: 5px;
  3211. z-index: 99;
  3212. }
  3213. /deep/ {
  3214. .van-field__control {
  3215. padding-left: 38px;
  3216. }
  3217. }
  3218. }
  3219. .van-cell {
  3220. padding: 0;
  3221. /deep/ {
  3222. .van-field__control {
  3223. border-bottom: 1px solid #707070;
  3224. &:focus {
  3225. border-color: #3cbf5b;
  3226. color: #3cbf5b;
  3227. }
  3228. }
  3229. }
  3230. }
  3231. }
  3232. .mr50 {
  3233. padding-right: 50px;
  3234. }
  3235. }
  3236. .uploadPicturesFlex_block {
  3237. .title_m {
  3238. font-size: 28px;
  3239. flex: 0 0 50px;
  3240. white-space: nowrap;
  3241. text-overflow: ellipsis;
  3242. overflow: hidden;
  3243. word-break: break-all;
  3244. align-items: center; /* 子元素相对父元素垂直居中 */
  3245. margin-bottom: 20px;
  3246. }
  3247. .main_m {
  3248. }
  3249. }
  3250. }
  3251. .footer_main {
  3252. flex: 0 0 120px;
  3253. background: #fff;
  3254. display: flex;
  3255. justify-content: center; /* 相对父元素水平居中 */
  3256. align-items: center; /* 子元素相对父元素垂直居中 */
  3257. .cancel,
  3258. .save {
  3259. width: 260px;
  3260. height: 75px;
  3261. border-radius: 75px;
  3262. background: #cccccc;
  3263. font-size: 32px;
  3264. color: #fff;
  3265. display: flex;
  3266. justify-content: center; /* 相对父元素水平居中 */
  3267. align-items: center; /* 子元素相对父元素垂直居中 */
  3268. }
  3269. .save {
  3270. background: #3cbf5b;
  3271. margin-left: 50px;
  3272. }
  3273. }
  3274. }
  3275. .farmlandEditSwitch_wrap {
  3276. width: 100vw;
  3277. height: 100vh;
  3278. background: url("../../assets/images/homestead/farmlandEditSwitch_bg.png")
  3279. no-repeat;
  3280. background-size: 100% 100%;
  3281. position: absolute;
  3282. left: 0;
  3283. top: 0;
  3284. z-index: 1001;
  3285. .mains {
  3286. width: 544px;
  3287. height: 480px;
  3288. background: #fff;
  3289. position: absolute;
  3290. left: 50%;
  3291. top: 50%;
  3292. margin: -272px 0 0 -272px;
  3293. z-index: 1002;
  3294. border-radius: 30px;
  3295. padding: 0 30px;
  3296. display: flex;
  3297. justify-content: center; /* 相对父元素水平居中 */
  3298. align-items: center; /* 子元素相对父元素垂直居中 */
  3299. .close_btn {
  3300. position: absolute;
  3301. width: 28px;
  3302. height: 28px;
  3303. background: url("../../assets/images/homestead/farmlandEditSwitch_close.png")
  3304. no-repeat;
  3305. background-size: 100% 100%;
  3306. right: 40px;
  3307. top: 40px;
  3308. }
  3309. .farmhouse {
  3310. flex: 1;
  3311. display: flex;
  3312. justify-content: center; /* 相对父元素水平居中 */
  3313. align-items: center; /* 子元素相对父元素垂直居中 */
  3314. }
  3315. .farmland {
  3316. flex: 1;
  3317. display: flex;
  3318. justify-content: center; /* 相对父元素水平居中 */
  3319. align-items: center; /* 子元素相对父元素垂直居中 */
  3320. }
  3321. .farmhouse,
  3322. .farmland {
  3323. flex-direction: column;
  3324. .icons {
  3325. width: 146px;
  3326. height: 146px;
  3327. margin-bottom: 14px;
  3328. }
  3329. .names {
  3330. font-size: 40px;
  3331. color: #3cbf5b;
  3332. }
  3333. }
  3334. .farmhouse {
  3335. .icons {
  3336. background: url("../../assets/images/homestead/nf.png") no-repeat;
  3337. background-size: 100% 100%;
  3338. }
  3339. }
  3340. .farmland {
  3341. .icons {
  3342. background: url("../../assets/images/homestead/nd.png") no-repeat;
  3343. background-size: 100% 100%;
  3344. }
  3345. }
  3346. // <div class="farmhouse">
  3347. // <div class="icons"></div>
  3348. // <p class="names">农房</p>
  3349. // </div>
  3350. // <div class="farmland">
  3351. // <div class="icons"></div>
  3352. // <p class="names">农地</p>
  3353. // </div>
  3354. }
  3355. }
  3356. }
  3357. ::-webkit-scrollbar {
  3358. -webkit-appearance: none;
  3359. }
  3360. ::-webkit-scrollbar:vertical {
  3361. width: 10px;
  3362. border-radius: 10px;
  3363. }
  3364. ::-webkit-scrollbar:horizontal {
  3365. height: 10px;
  3366. border-radius: 10px;
  3367. }
  3368. ::-webkit-scrollbar-thumb {
  3369. background-color: #eee;
  3370. border-radius: 10px;
  3371. border: 3px solid #ffffff;
  3372. }
  3373. ::-webkit-scrollbar-track {
  3374. border-radius: 10px;
  3375. background-color: #ffffff;
  3376. }
  3377. ::v-deep {
  3378. .van-overlay {
  3379. background-color: rgba(0, 0, 0, 0.2);
  3380. }
  3381. }
  3382. </style>