mch 2 years ago
parent
commit
d39e0b5f47
  1. 34
      src/components/customerOrg/ContactPerson.vue

34
src/components/customerOrg/ContactPerson.vue

@ -225,17 +225,39 @@ export default {
alert("请先选择要编辑的联系人");
return;
}
deletapi(`/api/app/contact-person/${this.personId}`).then((res) => {
this.personId = "";
this.getContactPersonList(this.customerOrg.customerOrgId);
this.customerOrg.contactMethodList = [];
this.$message.success("操作成功!");
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
}).then(() => {
//console.log('{patientRegisterIds}',{patientRegisterIds})
return deletapi(`/api/app/contact-person/${this.personId}`);
}).then((res) => {
if(res.code != -1) {
this.personId = "";
this.getContactPersonList(this.customerOrg.customerOrgId);
this.customerOrg.contactMethodList = [];
this.$message.success("操作成功!");
}
}).catch((err) => {
console.log(`deletapi:/api/app/contact-person/${this.personId}`,err);
});
},
//
deleteRow(index) {
this.customerOrg.contactMethodList.splice(index, 1);
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
}).then(() => {
this.customerOrg.contactMethodList.splice(index, 1);
this.submit('form');
}).catch((err) => {
console.log(`deletapi:/api/app/contact-person/${this.personId}`,err);
});
},
//

Loading…
Cancel
Save