Remove the row instead of reload

parent f1b02e58
......@@ -10,7 +10,7 @@
deleteTitle: {default: "Confirmation"}
},
methods: {
deleteRow() {
deleteRow(event) {
this.$confirm(this.deleteMessage, this.deleteTitle, {
confirmButtonText: 'OK',
cancelButtonText: 'Cancel',
......@@ -24,9 +24,7 @@
type: 'success',
message: response.data.message
});
setTimeout(function () {
location.reload();
}, 1000);
$(event.path[3]).remove();
}
})
.catch(function (error) {
......
......@@ -69060,7 +69060,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
deleteTitle: { default: "Confirmation" }
},
methods: {
deleteRow: function deleteRow() {
deleteRow: function deleteRow(event) {
var _this = this;
this.$confirm(this.deleteMessage, this.deleteTitle, {
......@@ -69075,9 +69075,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
type: 'success',
message: response.data.message
});
setTimeout(function () {
location.reload();
}, 1000);
$(event.path[3]).remove();
}
}).catch(function (error) {
$self.$message({
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment