Bläddra i källkod

宅基地调查增加外村农户优化

rongxin_prod
Xyq123* 1 år sedan
förälder
incheckning
c065d6cde5
2 ändrade filer med 14 tillägg och 1 borttagningar
  1. +6
    -1
      src/views/homesteadSurvey/list2.vue
  2. +8
    -0
      src/views/homesteadSurvey/wcnhList.vue

+ 6
- 1
src/views/homesteadSurvey/list2.vue Visa fil

@@ -86,7 +86,7 @@
</template> </template>
</van-cell> </van-cell>
</van-list> </van-list>
<van-dialog v-model="outsideOpen" title="外村农户" show-cancel-button confirmButtonText="保存" cancelButtonText="关闭" @confirm="outsideSubmitForm" >
<van-dialog v-model="outsideOpen" title="外村农户" show-cancel-button confirmButtonText="保存" cancelButtonText="关闭" @confirm="outsideSubmitForm" @cancel="outsideCancel" >
<wcnhList style="height: 600px;overflow: auto;" ref="wcnh"/> <wcnhList style="height: 600px;overflow: auto;" ref="wcnh"/>
</van-dialog> </van-dialog>
<!-- </van-pull-refresh>--> <!-- </van-pull-refresh>-->
@@ -4921,6 +4921,10 @@
value.indexOf('zrzSx') == -1 ? this.zrzSx = false : this.zrzSx = true; value.indexOf('zrzSx') == -1 ? this.zrzSx = false : this.zrzSx = true;
value.indexOf('fsssSx') == -1 ? this.fsssSx = false : this.fsssSx = true; value.indexOf('fsssSx') == -1 ? this.fsssSx = false : this.fsssSx = true;
}, },
/** 外村农户关闭事件 */
outsideCancel(){
this.$refs.wcnh.clearSelection();
},
/** 外村农户提交按钮 */ /** 外村农户提交按钮 */
outsideSubmitForm() { outsideSubmitForm() {
let wcnhData = this.$refs.wcnh.wcnhData; let wcnhData = this.$refs.wcnh.wcnhData;
@@ -4936,6 +4940,7 @@
if(response.code != 200) throw response.msg; if(response.code != 200) throw response.msg;
this.$toast.clear(); this.$toast.clear();
this.$toast("新增成功"); this.$toast("新增成功");
this.$refs.wcnh.clearSelection();
this.outsideOpen = false; this.outsideOpen = false;
this.getList(); this.getList();
this.outDiglogStatus = true; this.outDiglogStatus = true;


+ 8
- 0
src/views/homesteadSurvey/wcnhList.vue Visa fil

@@ -656,6 +656,14 @@
this.wcnhData = selection; this.wcnhData = selection;
} }
}, },
clearSelection(){
this.wcnhData = null;
this.nhlist.forEach(function(item){
if(item.checkbox){
item.checkbox = false;
}
})
},
// 户内成员列表 // 户内成员列表
showPopuphncylist(item){ showPopuphncylist(item){
if(item.nhdm==null||item.nhdm==""){ if(item.nhdm==null||item.nhdm==""){


Laddar…
Avbryt
Spara