diff --git a/src/views/memberManage/addPersonIris.vue b/src/views/memberManage/addPersonIris.vue index 1337d54..dfbd3a7 100644 --- a/src/views/memberManage/addPersonIris.vue +++ b/src/views/memberManage/addPersonIris.vue @@ -357,6 +357,7 @@ }, // 重置表单 resetForm() { + const id = this.personForm.id this.personForm = { idCardNo: '', // 身份证号 name: '', // 姓名 @@ -373,6 +374,9 @@ address: ''// 住址 } } + if (id) { + this.personForm.id = id + } this.photo = '' this.irisForm = { personId: '', @@ -409,6 +413,8 @@ // 如果是新增页面已经保存,则调用update // 其他情况均为修改页面 if (this.isSave === false && this.isEditMode === false) { + console.log('add', this.personForm) + delete this.personForm.id addPerson(this.personForm).then(response => { if (response.code === 200) { // 保存用户id @@ -491,6 +497,7 @@ cancelButtonText: 'No', type: 'info' }).then(() => { + this.personForm.id = '' this.resetForm() this.isSave = false this.isEditMode = false