瀏覽代碼

修改api管理

tags/小炒逻辑变更前
txb 2 年之前
父節點
當前提交
3dbb002988
共有 4 個檔案被更改,包括 7 行新增7 行删除
  1. +1
    -1
      src/pages/device/deviceFood/service.js
  2. +1
    -1
      src/pages/foodMenu/foodMenu/index.jsx
  3. +3
    -3
      src/pages/foodMenu/foodMenu/service.js
  4. +2
    -2
      src/pages/foodMenu/storeFoodMenu/service.js

+ 1
- 1
src/pages/device/deviceFood/service.js 查看文件

@@ -31,7 +31,7 @@ export async function gettree(params) {
});
}
export async function GetGoods(params) {
return request('/​api/Device/GetGoods', {
return request('/kitchen/​api/Device/GetGoods', {
method: 'POST',
data: {
...params,


+ 1
- 1
src/pages/foodMenu/foodMenu/index.jsx 查看文件

@@ -5,7 +5,7 @@ import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';
import ProTable from '@ant-design/pro-table';
import ProDescriptions from '@ant-design/pro-descriptions';
import CreateForm from './components/CreateForm';
import { add, getpage, gettree, DelFoodMenuGoods } from './service';
import { add, getpage, gettree,getpage_v2, DelFoodMenuGoods } from './service';
/**
* 添加节点
*


+ 3
- 3
src/pages/foodMenu/foodMenu/service.js 查看文件

@@ -8,7 +8,7 @@ export async function getpage(params, options) {
});
}
export async function getpage_v2(params, options) {
return request('/api/FoodMenu/GetFoodMenuGoodsPage_V2', {
return request('/kitchen/api/FoodMenu/GetFoodMenuGoodsPage_V2', {
method: 'POST',
data: {
...params,
@@ -31,14 +31,14 @@ export async function DelFoodMenuGoods(data) {
}

export async function gettree(params) {
return request('/api/FoodMenu/tree', {
return request('/kitchen/api/FoodMenu/tree', {
data: {
...params,
},
});
}
export async function GetGoodsByMenuIdPage(params) {
return request('/api/FoodMenu/GetGoodsByMenuIdPage', {
return request('/kitchen/api/FoodMenu/GetGoodsByMenuIdPage', {
method: 'POST',
data: {
...params,


+ 2
- 2
src/pages/foodMenu/storeFoodMenu/service.js 查看文件

@@ -24,14 +24,14 @@ export async function DelStoreFoodMenu(data) {
}

export async function gettree(params) {
return request('/​api/FoodMenu/tree', {
return request('/kitchen/​api/FoodMenu/tree', {
data: {
...params,
},
});
}
export async function GetStorePage(params) {
return request('/​api/FoodMenu/GetStorePage', {
return request('/kitchen/​api/FoodMenu/GetStorePage', {
method: 'POST',
data: {
...params,


Loading…
取消
儲存