Browse Source

宅基地调查

wulanhaote
yujk 3 years ago
parent
commit
fdcde13ce6
2 changed files with 70 additions and 18 deletions
  1. +23
    -8
      src/views/homesteadSurvey/add.vue
  2. +47
    -10
      src/views/homesteadSurvey/list.vue

+ 23
- 8
src/views/homesteadSurvey/add.vue View File

@@ -1925,7 +1925,17 @@
@cancel="showfwzt = false" @cancel="showfwzt = false"
/> />
</van-popup> </van-popup>
<!--<van-popup v-model="showsyqrnhdmlist" position="bottom">
<van-picker
show-toolbar
:columns="syqrnhdmlist"
value-key="hzxm"
@confirm="onConfirmsyqrnhdmlist"
@cancel="showsyqrnhdmlist = false"
/>
</van-popup>-->
<van-popup v-model="showsyqrnhdmlist" position="bottom"> <van-popup v-model="showsyqrnhdmlist" position="bottom">
<van-search v-model="nhdmValue" placeholder="请输入搜索关键词" @input="getnhdmlist"/>
<van-picker <van-picker
show-toolbar show-toolbar
:columns="syqrnhdmlist" :columns="syqrnhdmlist"
@@ -2482,6 +2492,7 @@
</van-popup> </van-popup>
<!--农民房屋农户代码列表--> <!--农民房屋农户代码列表-->
<van-popup v-model="shownmfwnhdm" position="bottom"> <van-popup v-model="shownmfwnhdm" position="bottom">
<van-search v-model="nhdmValue" placeholder="请输入搜索关键词" @input="getnhdmlist"/>
<van-picker <van-picker
show-toolbar show-toolbar
:columns="syqrnhdmlist" :columns="syqrnhdmlist"
@@ -2522,6 +2533,7 @@
components: { MapGisDrawing,}, components: { MapGisDrawing,},
data() { data() {
return { return {
nhdmValue:null,
active:1, active:1,
// 电子签名 // 电子签名
lineWidth: 6, // 画笔的线条粗细 lineWidth: 6, // 画笔的线条粗细
@@ -2707,6 +2719,9 @@
this.item = this.$cookies.get("search").mapZjdAData this.item = this.$cookies.get("search").mapZjdAData
let zrz = this.$cookies.get("search").mapZrzAData let zrz = this.$cookies.get("search").mapZrzAData
let fsss = this.$cookies.get("search").mapFsssAData let fsss = this.$cookies.get("search").mapFsssAData
this.getnhdmlist();
this.getZjd();
this.getBaseUrl();
if(this.$cookies.get("search").active=="3"){ if(this.$cookies.get("search").active=="3"){
this.showzrz= true this.showzrz= true
this.getZrzList() this.getZrzList()
@@ -2723,10 +2738,15 @@
} }
}else{ }else{
this.item = this.$cookies.get("search") this.item = this.$cookies.get("search")
this.getnhdmlist();
this.getZjd();
this.getBaseUrl();
} }

}else{ }else{
this.$set(this.item,"deptId",this.$cookies.get("item").deptId) this.$set(this.item,"deptId",this.$cookies.get("item").deptId)
this.getnhdmlist();
this.getZjd();
this.getBaseUrl();
} }
this.getDicts("zjdlyzk").then(response => { this.getDicts("zjdlyzk").then(response => {
this.lyzkOptions = response.data; this.lyzkOptions = response.data;
@@ -2831,11 +2851,6 @@
this.getDicts("Industry").then(response => { this.getDicts("Industry").then(response => {
this.industryOptions = response.data; this.industryOptions = response.data;
}); });
this.getnhdmlist();
this.getZjd();
this.getBaseUrl();


}, },
mounted(){ mounted(){
if(this.active ==1){ if(this.active ==1){
@@ -2871,10 +2886,10 @@
// 所有权人农户代码列表 // 所有权人农户代码列表
getnhdmlist(){ getnhdmlist(){
let params = { let params = {
"deptId" : this.item.deptId
"deptId" : this.item.deptId,
"nhValue":this.nhdmValue
} }
listNh(params).then((response) => { listNh(params).then((response) => {
console.log(response)
this.syqrnhdmlist = response.rows this.syqrnhdmlist = response.rows
}); });
}, },


+ 47
- 10
src/views/homesteadSurvey/list.vue View File

@@ -56,7 +56,13 @@
<van-tabs v-model="active" title-active-color="#7AC943" color="#7AC943" swipeable animated @click="getZjdList"> <van-tabs v-model="active" title-active-color="#7AC943" color="#7AC943" swipeable animated @click="getZjdList">
<van-tab > <van-tab >
<template #title>全部<van-badge v-if="qbNums>=0" :content="qbNums" /></template> <template #title>全部<van-badge v-if="qbNums>=0" :content="qbNums" /></template>
<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">
<!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
<van-list
v-model:loading="loading1"
:finished="finished1"
finished-text="没有更多了"
@load="onRefreshzjd"
>
<van-cell v-for="(item,index) in list" :key="index" size="small" @click.native="setCookies(item)" :to="{name:'homesteadAdd'}" style="border-radius: 16px; <van-cell v-for="(item,index) in list" :key="index" size="small" @click.native="setCookies(item)" :to="{name:'homesteadAdd'}" style="border-radius: 16px;
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
<template #title> <template #title>
@@ -75,11 +81,18 @@
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
</template> </template>
</van-cell> </van-cell>
</van-pull-refresh>
</van-list>
<!--</van-pull-refresh>-->
</van-tab> </van-tab>
<van-tab > <van-tab >
<template #title>已核查<van-badge v-if="yhcNums>=0" :content="yhcNums" /></template> <template #title>已核查<van-badge v-if="yhcNums>=0" :content="yhcNums" /></template>
<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">
<!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
<van-list
v-model:loading="loading2"
:finished="finished2"
finished-text="没有更多了"
@load="onRefreshzjd"
>
<van-cell v-for="(item,index) in list1" :key="index" size="small" @click.native="setCookies(item)" :to="{name:'homesteadAdd'}" style="border-radius: 16px; <van-cell v-for="(item,index) in list1" :key="index" size="small" @click.native="setCookies(item)" :to="{name:'homesteadAdd'}" style="border-radius: 16px;
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
<template #title> <template #title>
@@ -98,11 +111,18 @@
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
</template> </template>
</van-cell> </van-cell>
</van-pull-refresh>
</van-list>
<!--</van-pull-refresh>-->
</van-tab> </van-tab>
<van-tab > <van-tab >
<template #title>未核查<van-badge v-if="whcNums>=0" :content="whcNums" /></template> <template #title>未核查<van-badge v-if="whcNums>=0" :content="whcNums" /></template>
<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">
<!--<van-pull-refresh v-model="isLoadingzjd" @refresh="onRefreshzjd">-->
<van-list
v-model:loading="loading3"
:finished="finished3"
finished-text="没有更多了"
@load="onRefreshzjd"
>
<van-cell v-for="(item,index) in list2" :key="index" size="small" @click.native="setCookies(item)" :to="{name:'homesteadAdd'}" style="border-radius: 16px; <van-cell v-for="(item,index) in list2" :key="index" size="small" @click.native="setCookies(item)" :to="{name:'homesteadAdd'}" style="border-radius: 16px;
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px">
<template #title> <template #title>
@@ -121,7 +141,8 @@
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> <van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/>
</template> </template>
</van-cell> </van-cell>
</van-pull-refresh>
</van-list>
<!--</van-pull-refresh>-->
</van-tab> </van-tab>
</van-tabs> </van-tabs>
</div> </div>
@@ -1157,6 +1178,12 @@
name: "homesteadList", name: "homesteadList",
data() { data() {
return { return {
loading1:false,
finished1:false,
loading2:false,
finished2:false,
loading3:false,
finished3:false,
//全部 //全部
qbNums:0, qbNums:0,
//已调查数量 //已调查数量
@@ -1347,7 +1374,6 @@
this.item = this.$cookies.get("item"); this.item = this.$cookies.get("item");
this.getZjdList(); this.getZjdList();
this.getTotalHR(); this.getTotalHR();
console.log(this.mapZjdTeAll.mapZrzAData.length)
}, },
methods: { methods: {
//删除户内成员 //删除户内成员
@@ -1398,9 +1424,12 @@
listZjdzd(params).then((response) => { listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list1.length<response.total){ if(response.rows.length>0&&this.list1.length<response.total){
response.rows.map(res => { response.rows.map(res => {
this.list1.unshift(res)
this.list1.push(res)
}) })
this.countyhc++ this.countyhc++
this.loading2 = false
}else{
this.finished2 = true
} }
}); });
}else if(this.active==2){ }else if(this.active==2){
@@ -1413,9 +1442,12 @@
listZjdzd(params).then((response) => { listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list2.length<response.total){ if(response.rows.length>0&&this.list2.length<response.total){
response.rows.map(res => { response.rows.map(res => {
this.list2.unshift(res)
this.list2.push(res)
}) })
this.countwhc++ this.countwhc++
this.loading3 = false
}else{
this.finished3 = true
} }
}); });
}else{ }else{
@@ -1427,9 +1459,12 @@
listZjdzd(params).then((response) => { listZjdzd(params).then((response) => {
if(response.rows.length>0&&this.list.length<response.total){ if(response.rows.length>0&&this.list.length<response.total){
response.rows.map(res => { response.rows.map(res => {
_this.list.unshift(res)
_this.list.push(res)
}) })
this.countqb++ this.countqb++
this.loading1 = false
}else{
this.finished1 = true
} }
}); });
} }
@@ -2024,6 +2059,8 @@
message: '保存成功', message: '保存成功',
duration:"1000", duration:"1000",
onClose:function(){ onClose:function(){
_this.totalR+=1
_this.totalH+=1
_this.showhncy = false _this.showhncy = false
let params = { let params = {
"nhdm":_this.form5.nhdm, "nhdm":_this.form5.nhdm,


Loading…
Cancel
Save