|
@@ -339,9 +339,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- refreshPage() {
|
|
|
|
- this.load()
|
|
|
|
- },
|
|
|
|
rowDelBox(row, index, isButton) {
|
|
rowDelBox(row, index, isButton) {
|
|
this.$confirm("确定将选择数据删除?", {
|
|
this.$confirm("确定将选择数据删除?", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -357,18 +354,17 @@ export default {
|
|
type: "success",
|
|
type: "success",
|
|
message: "删除成功!"
|
|
message: "删除成功!"
|
|
});
|
|
});
|
|
- this.refreshPage();
|
|
|
|
|
|
+ this.form.corpsAttnList.splice(index, 1);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
itemDel(row.id).then(res => {
|
|
itemDel(row.id).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
message: "删除成功!"
|
|
message: "删除成功!"
|
|
});
|
|
});
|
|
- this.refreshPage();
|
|
|
|
-
|
|
|
|
|
|
+ this.form.corpsAddrList.splice(index, 1);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -382,10 +378,8 @@ export default {
|
|
if (isButton === 'rowDelBox1') {
|
|
if (isButton === 'rowDelBox1') {
|
|
this.form.corpsAttnList.splice(index, 1);
|
|
this.form.corpsAttnList.splice(index, 1);
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
this.form.corpsAddrList.splice(index, 1);
|
|
this.form.corpsAddrList.splice(index, 1);
|
|
}
|
|
}
|
|
- console.log(this.form.corpsAddrList);
|
|
|
|
// this.form.contactsList.splice(index, 1);
|
|
// this.form.contactsList.splice(index, 1);
|
|
this.$message.success("操作成功!");
|
|
this.$message.success("操作成功!");
|
|
}
|
|
}
|