diff --git a/src/views/memberManage/addPersonIris.vue b/src/views/memberManage/addPersonIris.vue index 016b919..1b2bdb1 100644 --- a/src/views/memberManage/addPersonIris.vue +++ b/src/views/memberManage/addPersonIris.vue @@ -56,7 +56,7 @@ - + @@ -556,6 +556,7 @@ // 重置表单 resetForm() { const id = this.personForm.id + const personType = this.personType this.personForm = { idCardNo: '', // 身份证号 name: '', // 姓名 @@ -581,6 +582,9 @@ if (id) { this.personForm.id = id } + if(personType){ + this.personForm.personType = personType + } this.photo = '' this.irisForm = { personId: '', @@ -695,7 +699,12 @@ this.$refs['dataForm'].clearValidate() }) }).catch(() => { - this.$router.push({ path: '/staff' }) + if (this.personType === '1') { + this.$router.push({ path: '/staff' }) + } else { + this.$router.push({ path: '/visitor' }) + } + }) }, // 没用了