diff --git a/src/views/customerManage/editCustomer.vue b/src/views/customerManage/editCustomer.vue index e3b4250..1a7c90c 100644 --- a/src/views/customerManage/editCustomer.vue +++ b/src/views/customerManage/editCustomer.vue @@ -4,7 +4,7 @@ - + @@ -65,7 +65,6 @@ return { dialogFormVisible: false, // 对话框是否显示 dialogStatus: '', // 对话框类型:create,update - nameHistory: '', // 历史姓名-备份使用 customerForm: { id: '', // 编号 name: '', // 姓名 @@ -147,8 +146,9 @@ wx: row.wx, // 微信 duty: row.duty // 职位 } - // 备份 姓名 - this.nameHistory = this.customerForm.name + if (dialogStatus === 'update') { + this.tips() + } if (dialogStatus === 'info') { this.disabled = true } else { @@ -221,11 +221,6 @@ }, // 修改姓名提示 tips() { - // 首先比较当前姓名和原来姓名 - if (this.nameHistory === this.customerForm.name) { - // 未修改不提示 - return - } // 修改提示 this.$confirm( '客户姓名变更,已录入案卷联系人姓名不会变更,是否继续修改?', @@ -238,8 +233,8 @@ ).then(() => { // 点击确认 无操作 }).catch(() => { - // 点击取消 还原姓名 - this.customerForm.name = this.nameHistory + // 点击取消 + this.cancel() }) } }