菜品问题修改

This commit is contained in:
zzyuan 2025-05-13 13:09:10 +08:00
parent 0e96ed0db2
commit 820493ff7e
1 changed files with 16 additions and 16 deletions

View File

@ -1682,22 +1682,22 @@
}
})
}
console.log(param.materialList)
// if (this.title === "") {
// addMenuDishesApi(param).then(response => {
// this.openDish = false;
// this.$modal.msgSuccess("");
// this.getList();
// });
// this.btnLoading=false;
// } else {
// editMenuDishesApi(param).then(response => {
// this.openDish = false;
// this.$modal.msgSuccess("");
// this.getList();
// });
this.btnLoading=false;
// }
// console.log(param.materialList)
if (this.title === "新增") {
addMenuDishesApi(param).then(response => {
this.openDish = false;
this.$modal.msgSuccess("新增成功");
this.getList();
});
this.btnLoading=false;
} else {
editMenuDishesApi(param).then(response => {
this.openDish = false;
this.$modal.msgSuccess("修改成功");
this.getList();
});
this.btnLoading=false;
}
}
}
})