Ver código fonte

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

rongxin_prod
Xyq123* 1 ano atrás
pai
commit
c065d6cde5
2 arquivos alterados com 14 adições e 1 exclusões
  1. +6
    -1
      src/views/homesteadSurvey/list2.vue
  2. +8
    -0
      src/views/homesteadSurvey/wcnhList.vue

+ 6
- 1
src/views/homesteadSurvey/list2.vue Ver arquivo

@@ -86,7 +86,7 @@
</template>
</van-cell>
</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"/>
</van-dialog>
<!-- </van-pull-refresh>-->
@@ -4921,6 +4921,10 @@
value.indexOf('zrzSx') == -1 ? this.zrzSx = false : this.zrzSx = true;
value.indexOf('fsssSx') == -1 ? this.fsssSx = false : this.fsssSx = true;
},
/** 外村农户关闭事件 */
outsideCancel(){
this.$refs.wcnh.clearSelection();
},
/** 外村农户提交按钮 */
outsideSubmitForm() {
let wcnhData = this.$refs.wcnh.wcnhData;
@@ -4936,6 +4940,7 @@
if(response.code != 200) throw response.msg;
this.$toast.clear();
this.$toast("新增成功");
this.$refs.wcnh.clearSelection();
this.outsideOpen = false;
this.getList();
this.outDiglogStatus = true;


+ 8
- 0
src/views/homesteadSurvey/wcnhList.vue Ver arquivo

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


Carregando…
Cancelar
Salvar