diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index fe6e94ec..47b9b381 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -1326,7 +1326,7 @@ name="农户代码" label="农户代码" placeholder="选择农户代码" - @click="shownmfwnhdm = true" + @click="shownmfwnhdm = true,getSyqrList()" readonly required :rules="[{ required: true, message: '农户代码不能为空' }]" @@ -2791,11 +2791,11 @@ - + @@ -3875,6 +3875,24 @@ this.$router.push({name:'homesteadList'}); } }, + // 删除房屋 + deletefw(id,index){ + Dialog.confirm({ + title: '警告', + message: '删除后无法恢复,确认删除么?', + }) + .then(() => { + // on confirm + delNmfw(id).then(response => { + if(response.code=='200'){ + this.fwlist.splice(index,1) + } + }) + }) + .catch(() => { + // on cancel + }); + }, showPopupnh(item){ this.shownh = true; if(item==""){