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

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