移动端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

4102 líneas
137 KiB

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