移动端
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

nmfwList.vue 7.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <div class="app-container">
  3. <van-sticky style="position:relative;">
  4. <div class="bannerBg">
  5. <van-nav-bar
  6. style="background:transparent;border-bottom-width:0;height:2rem;margin-bottom:.5rem;"
  7. @click-left="goBack()"
  8. >
  9. <template #left>
  10. <van-icon name="arrow-left" size="18" color="#fff" />
  11. </template>
  12. <!-- <template #right>
  13. <van-icon name="map-marked" size="18" color="#fff" />
  14. </template>-->
  15. <template #title>
  16. <p style="color:#fff">入户调查</p>
  17. </template>
  18. </van-nav-bar>
  19. </div>
  20. <div style="width:95%;left:2.5%;position:absolute;background:#fff;border-radius:15px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16);padding: .3rem;top:1.2rem">
  21. <van-row>
  22. <van-col span="4" :offset="1" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add'})">
  23. <van-icon :name="require('../../assets/images/housesteadSurvey/zjd'+(active==1?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  24. <p :style="{color:(active==1?'rgb(34, 183, 242)':'#000')}">宅基地</p>
  25. </van-col>
  26. <van-col span="2">
  27. <div style="border-top: 2px dashed #b5b4b4;margin-top: 20px;"></div>
  28. </van-col>
  29. <van-col span="4" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add2'})" >
  30. <van-icon :name="require('../../assets/images/housesteadSurvey/nhxx'+(active==2?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  31. <p :style="{color:(active==2?'rgb(34, 183, 242)':'#000')}">农户</p>
  32. </van-col>
  33. <van-col span="2">
  34. <div style="border-top: 2px dashed #b5b4b4;margin-top: 20px;"></div>
  35. </van-col>
  36. <van-col span="4" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add3'})" >
  37. <van-icon :name="require('../../assets/images/housesteadSurvey/fwxx'+(active==3?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  38. <p :style="{color:(active==3?'rgb(34, 183, 242)':'#000')}">房屋</p>
  39. </van-col>
  40. <van-col span="2">
  41. <div style="border-top: 2px dashed #b5b4b4;margin-top: 20px;"></div>
  42. </van-col>
  43. <van-col span="4" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add4'})">
  44. <van-icon :name="require('../../assets/images/housesteadSurvey/fsss'+(active==4?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  45. <p :style="{color:(active==4?'rgb(34, 183, 242)':'#000')}">附属物</p>
  46. </van-col>
  47. </van-row>
  48. </div>
  49. </van-sticky>
  50. <div style="margin:30px auto 0;width: 95%;">
  51. <p class="title" style="position:relative;padding-left:10px;line-height:20px;font-size: 16px;margin-bottom: 5px;">农民房屋</p>
  52. </div>
  53. <van-swipe-cell v-for="(item,index) in nmfwlist" :key="'nmfw'+index" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:95%;margin:15px auto 0;background:#fff;">
  54. <div style="padding:15px;">
  55. <p style="display: flex;align-items: center;">
  56. <img src="../../assets/images/housesteadSurvey/add03.png" alt="" style="margin-right: 5px;">
  57. <span style="line-height: 1;font-size: 16px;">{{item.xm}}</span>
  58. </p>
  59. <div style="display:flex;line-height:20px;margin-top: 15px;font-size: 14px;color: #999999;">
  60. <p style="flex:1;text-align:left;">农民房屋面积:</p>
  61. <p style="flex:1;text-align:right;">{{item.nmfwmj}}</p>
  62. </div>
  63. <div style="display:flex;line-height:20px;margin-top: 5px;font-size: 14px;color: #999999;">
  64. <p style="flex:1;text-align:left;">农户代码:</p>
  65. <p style="flex:1;text-align:right;">{{item.nhdm}}</p>
  66. </div>
  67. <div style="text-align:center;overflow:auto;display: flex;justify-content: space-between;margin-top: 10px;">
  68. <p style="width:32%;display: flex;align-items: center;justify-content:center;border: 1px solid #22B7F2;padding: 3px 0;border-radius: 50px;" @click="showPopupnmfw(item)">
  69. <img src="../../assets/images/housesteadSurvey/add02.png" alt="">
  70. <span style="font-size: 14px;color: #22B7F2;margin-left: 5px;">详情</span>
  71. </p>
  72. </div>
  73. </div>
  74. <template #right>
  75. <van-button square text="删除" type="danger" class="delete-button" @click="deletesyqr(item.id,index)"/>
  76. </template>
  77. </van-swipe-cell>
  78. <div style=" width:95%;margin:20px auto;display: flex;justify-content: space-between;">
  79. <div style="width:49%;text-align:center;overflow:auto;border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16);padding: 15px 0px;background: #ffffff;color: #22B7F2;">
  80. <p style="font-size: 16px;" @click="showPopupAddnmfw()">+ 添加农民房屋</p>
  81. </div>
  82. </div>
  83. </div>
  84. </template>
  85. <script>
  86. import {listZjdzd,getZjdzd,updateZjdzd,addZjdzd,uploadFile,getQueryLand,submitOnly} from "@/api/homesteadSurvey/zjdzd";
  87. import MapGisDrawing from "@/components/Map/MapGisDrawing";
  88. import {listZrz,addZrz,updateZrz,getZrzZjdDmList,delZrz,updateZrzStatus} from "@/api/homesteadSurvey/zrz";
  89. import {listNmfw,addNmfw,updateNmfw,delNmfw} from "@/api/homesteadSurvey/nmfw";
  90. import {listSuyqr,addSuyqr,updateSuyqr} from "@/api/homesteadSurvey/suyqr";
  91. import {listNhhncy,addNhhncy,updateNhhncy,delNhhncy} from "@/api/homesteadSurvey/nhhncy";
  92. import {addNh, delNh, exportNh, getNh, listNh, updateNh,setNhInfo} from "@/api/homesteadSurvey/nh";
  93. import {listFsss,addFsss,updateFsss,delFsss,getFsssZjdDmList,updateFsssStatus} from "@/api/homesteadSurvey/fsss";
  94. import { listTown, getTown } from "@/api/homesteadSurvey/town";
  95. import { listVillage} from "@/api/homesteadSurvey/village";
  96. import { sysConfig} from "@/api/homesteadSurvey/index";
  97. import { Notify, Dialog, Toast } from 'vant';
  98. import axios from "axios";
  99. export default {
  100. name: "nmfwList",
  101. components: { MapGisDrawing,},
  102. data() {
  103. return {
  104. active:3,
  105. // 使用权人列表
  106. zrzData:{},
  107. nmfwlist:[],
  108. };
  109. },
  110. created(){
  111. this.zrzData = this.$route.query;
  112. this.getList();
  113. },
  114. mounted(){
  115. },
  116. methods: {
  117. getList(){
  118. listNmfw({nmfwzh:this.zrzData.nmfwzh}).then(response => {
  119. this.nmfwlist = response.rows;
  120. });
  121. },
  122. goBack(){
  123. if(this.ztMap && this.enterMap ==1){
  124. if(this.form.id == null){
  125. this.backMap.backMapZjdAData.theGeom= "";
  126. }else{
  127. this.backMap.backMapZjdAData = this.form;
  128. }
  129. this.$cookies.set("search",this.backMap);
  130. } else {
  131. this.$cookies.set("search","");
  132. }
  133. this.$router.push({name: this.$router.back(-1)});
  134. // }
  135. },
  136. showPopupnmfw(val){
  137. this.$router.push({name:'nmfwAdd',query:val});
  138. },
  139. showPopupAddnmfw(){
  140. this.$router.push({name:'nmfwAdd',query:{nmfwzh:this.zrzData.nmfwzh}});
  141. },
  142. showPopuphncy(val){
  143. this.$router.push({name:'nhcyAdd',query:val});
  144. },
  145. }
  146. }
  147. </script>
  148. <style scoped>
  149. >>> .bannerBg{
  150. width: 100%;
  151. color:#fff;
  152. padding:10px;
  153. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  154. }
  155. >>> .van-hairline--bottom::after {
  156. border-bottom-width: 0;
  157. }
  158. >>> .title:before
  159. {
  160. content:"";
  161. width: 6px;
  162. height: 20PX;
  163. background: #7ac943;
  164. border-radius: 3px;
  165. position:absolute;
  166. left:0;
  167. bottom:0;
  168. }
  169. >>> .delete-button {
  170. height: 100%;
  171. }
  172. >>> .van-swipe-cell__wrapper{
  173. margin-right:-3px;
  174. }
  175. >>> .label-class .van-collapse-item__title--expanded{
  176. font-weight: bold;
  177. }
  178. </style>