菜谱绑定接口

This commit is contained in:
zzyuan 2025-05-29 14:44:07 +08:00
parent c4c987a8b9
commit 2fe410f818
3 changed files with 8 additions and 9 deletions

View File

@ -51,7 +51,7 @@ export function getDishesByTypePageApi(data) {
// 获取当前菜谱
export function getCurrentRecipeListApi(data) {
return request({
url: '/smart-canteen/cook_recipe/list',
url: '/smart-canteen/cook_recipe/currentList',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
@ -108,7 +108,7 @@ export function removeMenuRecipeApi(data) {
//当日菜谱-绑定或解绑handleType1绑定2解绑
export function unbindMenuRecipeApi(data) {
return request({
url: '/smart-canteen/menu_recipe/app/bind',
url: '/smart-canteen/cook_recipe/app/bind',
method: 'post',
headers: {
"merchant-id":"378915229716713472",

View File

@ -161,8 +161,7 @@
</div>
</el-card>
</div>
</div>
</div>
<div class="dialog-center">
<div class="dialog-center-header">菜品分类</div>

View File

@ -516,11 +516,11 @@
this.queryParams.pageNum = this.queryParams.pageNum
this.queryParams.pageSize = this.queryParams.pageSize
if(this.activeName=='currentRecipe'){
// getCurrentRecipeListApi(this.queryParams).then(response => {
// this.tableListData = response.rows;
// this.total = Number(response.total);
// this.loading = false;
// });
getCurrentRecipeListApi(this.queryParams).then(response => {
this.tableListData = response.rows;
this.total = Number(response.total);
this.loading = false;
});
}else if(this.activeName=='pageRecipe'){
getPageRecipeListApi(this.queryParams).then(response => {
this.tableListData = response.rows;