菜谱绑定接口
This commit is contained in:
parent
c4c987a8b9
commit
2fe410f818
|
|
@ -51,7 +51,7 @@ export function getDishesByTypePageApi(data) {
|
||||||
// 获取当前菜谱
|
// 获取当前菜谱
|
||||||
export function getCurrentRecipeListApi(data) {
|
export function getCurrentRecipeListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/smart-canteen/cook_recipe/list',
|
url: '/smart-canteen/cook_recipe/currentList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
headers: {
|
headers: {
|
||||||
"merchant-id":"378915229716713472",
|
"merchant-id":"378915229716713472",
|
||||||
|
|
@ -108,7 +108,7 @@ export function removeMenuRecipeApi(data) {
|
||||||
//当日菜谱-绑定或解绑(handleType:1绑定,2解绑)
|
//当日菜谱-绑定或解绑(handleType:1绑定,2解绑)
|
||||||
export function unbindMenuRecipeApi(data) {
|
export function unbindMenuRecipeApi(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/smart-canteen/menu_recipe/app/bind',
|
url: '/smart-canteen/cook_recipe/app/bind',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
headers: {
|
headers: {
|
||||||
"merchant-id":"378915229716713472",
|
"merchant-id":"378915229716713472",
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,6 @@
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-center">
|
<div class="dialog-center">
|
||||||
<div class="dialog-center-header">菜品分类</div>
|
<div class="dialog-center-header">菜品分类</div>
|
||||||
|
|
|
||||||
|
|
@ -516,11 +516,11 @@
|
||||||
this.queryParams.pageNum = this.queryParams.pageNum
|
this.queryParams.pageNum = this.queryParams.pageNum
|
||||||
this.queryParams.pageSize = this.queryParams.pageSize
|
this.queryParams.pageSize = this.queryParams.pageSize
|
||||||
if(this.activeName=='currentRecipe'){
|
if(this.activeName=='currentRecipe'){
|
||||||
// getCurrentRecipeListApi(this.queryParams).then(response => {
|
getCurrentRecipeListApi(this.queryParams).then(response => {
|
||||||
// this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
// this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
// this.loading = false;
|
this.loading = false;
|
||||||
// });
|
});
|
||||||
}else if(this.activeName=='pageRecipe'){
|
}else if(this.activeName=='pageRecipe'){
|
||||||
getPageRecipeListApi(this.queryParams).then(response => {
|
getPageRecipeListApi(this.queryParams).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue