From 98079994d94809d9bedc9e1488d75bfc25f8c406 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Tue, 27 Jun 2023 14:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customerOrg/ContactPerson.vue | 7 ++++++- src/components/customerOrg/customerOrgEdit.vue | 6 +++++- src/views/customerOrg/customerOrg.vue | 16 ++++++++++++---- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/components/customerOrg/ContactPerson.vue b/src/components/customerOrg/ContactPerson.vue index cb47174..cd778d1 100644 --- a/src/components/customerOrg/ContactPerson.vue +++ b/src/components/customerOrg/ContactPerson.vue @@ -232,8 +232,13 @@ export default { //删除联系人行 del() { //this.$message.success("删除 delContactPerson"); + if(!this.personId){ + alert("请先选择要编辑的联系人") + return + } deletapi(`/api/app/contact-person/${this.personId}`).then( - (res) => { + (res) => { + this.personId = '' this.getContactPersonList(this.customerOrg.customerOrgId) this.customerOrg.contactMethodList = [] this.$message.success("操作成功!"); diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue index f1d4e0a..b7086f0 100644 --- a/src/components/customerOrg/customerOrgEdit.vue +++ b/src/components/customerOrg/customerOrgEdit.vue @@ -273,7 +273,9 @@ export default { (res) => { this.$message.success("创健 操作成功"); this.setData({ key: 'customerOrg.customerOrgRd', value: res}) + this.customerOrg.customerOrgId = res.id this.getCustomerOrgTree() + } ); @@ -295,7 +297,9 @@ export default { }, //新增弹框 add() { - this.setData({ key: 'customerOrg.customerOrgRd', value:{id:''}}) + this.customerOrg.customerOrgId = '' + this.customerOrg.customerOrgRd = {id:'',isLock: 'N', + isActive: 'Y'} }, //删除 diff --git a/src/views/customerOrg/customerOrg.vue b/src/views/customerOrg/customerOrg.vue index d3117d6..343f49c 100644 --- a/src/views/customerOrg/customerOrg.vue +++ b/src/views/customerOrg/customerOrg.vue @@ -28,7 +28,7 @@