From e7dda77071481d9552d6b92364c95db6c2864cee Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Fri, 15 Jul 2022 15:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epidemicbuildingunit-add-or-update.vue | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) 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 {