|
@@ -82,7 +82,7 @@ export default {
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- async onSubmit() {
|
|
|
|
|
|
+ async onSubmit() {
|
|
let data = this.form;
|
|
let data = this.form;
|
|
if (data.id) {
|
|
if (data.id) {
|
|
let res = await this.update(data);
|
|
let res = await this.update(data);
|
|
@@ -112,7 +112,7 @@ export default {
|
|
let res = await this.delete(data.id);
|
|
let res = await this.delete(data.id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '创建成功',
|
|
|
|
|
|
+ message: '删除成功',
|
|
type: 'success',
|
|
type: 'success',
|
|
});
|
|
});
|
|
this.search();
|
|
this.search();
|