From c065d6cde5adca37ffabf4aa1d4cf72f88f3808f Mon Sep 17 00:00:00 2001 From: xyq <392009588@qq.com> Date: Tue, 19 Sep 2023 14:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=96=E6=9D=91=E5=86=9C=E6=88=B7=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/list2.vue | 7 ++++++- src/views/homesteadSurvey/wcnhList.vue | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/homesteadSurvey/list2.vue b/src/views/homesteadSurvey/list2.vue index a032da11..f1e8db04 100644 --- a/src/views/homesteadSurvey/list2.vue +++ b/src/views/homesteadSurvey/list2.vue @@ -86,7 +86,7 @@ - + @@ -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; diff --git a/src/views/homesteadSurvey/wcnhList.vue b/src/views/homesteadSurvey/wcnhList.vue index 79bbc637..1923e866 100644 --- a/src/views/homesteadSurvey/wcnhList.vue +++ b/src/views/homesteadSurvey/wcnhList.vue @@ -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==""){