update 更改演示案例
This commit is contained in:
parent
769e298e0a
commit
2fc3dcfc74
|
@ -304,17 +304,19 @@ export default {
|
||||||
this.buttonLoading = true;
|
this.buttonLoading = true;
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateDemo(this.form).then(response => {
|
updateDemo(this.form).then(response => {
|
||||||
this.buttonLoading = false;
|
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addDemo(this.form).then(response => {
|
addDemo(this.form).then(response => {
|
||||||
this.buttonLoading = false;
|
|
||||||
this.msgSuccess("新增成功");
|
this.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,17 +255,19 @@ export default {
|
||||||
this.buttonLoading = true;
|
this.buttonLoading = true;
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateTree(this.form).then(response => {
|
updateTree(this.form).then(response => {
|
||||||
this.buttonLoading = false;
|
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addTree(this.form).then(response => {
|
addTree(this.form).then(response => {
|
||||||
this.buttonLoading = false;
|
|
||||||
this.msgSuccess("新增成功");
|
this.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue