diff --git a/src/components/customerOrg/ContactPerson.vue b/src/components/customerOrg/ContactPerson.vue index b8d33fa..b75653b 100644 --- a/src/components/customerOrg/ContactPerson.vue +++ b/src/components/customerOrg/ContactPerson.vue @@ -262,7 +262,11 @@ export default { this.customerOrg.contactMethodList.splice(index, 1); this.submit('form'); }).catch((err) => { - console.log(`deletapi:/api/app/contact-person/${this.personId}`,err); + if(err == 'cancel'){ + this.$message.info("已取消删除"); + }else{ + this.$message.error("操作失败,原因:" + err); + } }); }, @@ -297,7 +301,7 @@ export default { contactPersonId: this.personId, }); }); - return postapi("/api/app/contact-method/many", contactMethod); + if(contactMethod.length > 0) return postapi("/api/app/contact-method/many", contactMethod); }) .then((res) => { //console.log('api/app/contact-method/many') @@ -320,7 +324,7 @@ export default { contactPersonId: this.personId, }); }); - return postapi("/api/app/contact-method/many", contactMethod); + if(contactMethod.length > 0) return postapi("/api/app/contact-method/many", contactMethod); }) .then((res) => { //console.log('api/app/contact-method/many') diff --git a/src/components/customerOrg/customerOrgTree.vue b/src/components/customerOrg/customerOrgTree.vue index 7dec6a4..7a8d922 100644 --- a/src/components/customerOrg/customerOrgTree.vue +++ b/src/components/customerOrg/customerOrgTree.vue @@ -1,10 +1,12 @@