菜谱绑定接口
This commit is contained in:
		
							parent
							
								
									c4c987a8b9
								
							
						
					
					
						commit
						2fe410f818
					
				| 
						 | 
				
			
			@ -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) {
 | 
			
		|||
//当日菜谱-绑定或解绑(handleType:1绑定,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",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -161,8 +161,7 @@
 | 
			
		|||
                                 
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </el-card> 
 | 
			
		||||
                    </div> 
 | 
			
		||||
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="dialog-center">
 | 
			
		||||
                    <div class="dialog-center-header">菜品分类</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue