diff --git a/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue b/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue index 8449d1d..b9a4042 100644 --- a/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue +++ b/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue @@ -156,7 +156,12 @@ - + +
+ +
+
+
@@ -512,6 +517,21 @@ export default { address: '' }) }, + delOwners (e) { + this.dataForm.owners.some((item, i) => { + if (item.idCard === e) { + this.dataForm.owners.splice(i, 1) + } + }) + if (this.dataForm.owners.length === 0) { + this.dataForm.owners.push({ + ownerName: '', + idCard: '', + mobile: '', + address: '' + }) + } + }, blurIdCard (idCard, index) { this.$http.get(`custom/epidemicuserinfo/getOwner?idCard=${idCard}`).then(({ data: res }) => { if (res.code !== 0) { @@ -563,9 +583,9 @@ export default {