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

index.vue 118 KiB

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