Remove the row instead of reload

parent f1b02e58
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
deleteTitle: {default: "Confirmation"} deleteTitle: {default: "Confirmation"}
}, },
methods: { methods: {
deleteRow() { deleteRow(event) {
this.$confirm(this.deleteMessage, this.deleteTitle, { this.$confirm(this.deleteMessage, this.deleteTitle, {
confirmButtonText: 'OK', confirmButtonText: 'OK',
cancelButtonText: 'Cancel', cancelButtonText: 'Cancel',
...@@ -24,9 +24,7 @@ ...@@ -24,9 +24,7 @@
type: 'success', type: 'success',
message: response.data.message message: response.data.message
}); });
setTimeout(function () { $(event.path[3]).remove();
location.reload();
}, 1000);
} }
}) })
.catch(function (error) { .catch(function (error) {
......
...@@ -69060,7 +69060,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); ...@@ -69060,7 +69060,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
deleteTitle: { default: "Confirmation" } deleteTitle: { default: "Confirmation" }
}, },
methods: { methods: {
deleteRow: function deleteRow() { deleteRow: function deleteRow(event) {
var _this = this; var _this = this;
this.$confirm(this.deleteMessage, this.deleteTitle, { this.$confirm(this.deleteMessage, this.deleteTitle, {
...@@ -69075,9 +69075,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); ...@@ -69075,9 +69075,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
type: 'success', type: 'success',
message: response.data.message message: response.data.message
}); });
setTimeout(function () { $(event.path[3]).remove();
location.reload();
}, 1000);
} }
}).catch(function (error) { }).catch(function (error) {
$self.$message({ $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