From aa829245212851d0fa1754a233d02f019fdd12c3 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Mon, 29 Jan 2024 02:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.js | 42 ++++------------------- src/pages/push/batchingpush/services.js | 8 ++--- src/pages/push/goodspush/services.js | 8 ++--- src/pages/push/technologypush/services.js | 8 ++--- 4 files changed, 19 insertions(+), 47 deletions(-) diff --git a/config/routes.js b/config/routes.js index 5bc59bd..5a98854 100644 --- a/config/routes.js +++ b/config/routes.js @@ -217,6 +217,13 @@ export default [ component: './push/goodspush', access: 'k12', }, + { + name: '工艺数据下发', + icon: 'smile', + path: '/push/technologypush', + component: './push/technologypush', + access: 'k14', + }, { name: '物料数据下发', icon: 'smile', @@ -357,41 +364,6 @@ export default [ }, ], }, - { - name: '设备数据下发', - icon: 'BankFilled', - path: '/push', - routes: [ - { - name: '商品数据下发', - icon: 'smile', - path: '/push/goodspush', - component: './push/goodspush', - access: 'k12', - }, - { - name: '物料数据下发', - icon: 'smile', - path: '/push/batchingpush', - component: './push/batchingpush', - access: 'k14', - }, - { - name: '配方数据下发', - icon: 'smile', - path: '/push/bompush', - component: './push/bompush', - access: 'k14', - }, - { - name: '工艺数据下发', - icon: 'smile', - path: '/push/technologypush', - component: './push/technologypush', - access: 'k14', - }, - ], - }, { name: '订单管理', icon: 'BankFilled', diff --git a/src/pages/push/batchingpush/services.js b/src/pages/push/batchingpush/services.js index 26ef687..c556802 100644 --- a/src/pages/push/batchingpush/services.js +++ b/src/pages/push/batchingpush/services.js @@ -1,24 +1,24 @@ import { request } from 'umi'; export async function GetDevicePushRecodePage(data) { - return request(`/saasstore/api/devicepushrecode/page`, { + return request(`/groupmeal/api/devicepushrecode/page`, { method: 'POST', data: data, }); } export async function DevicePushRecodeAdd(data) { - return request(`/saasstore/api/devicepushrecode/add`, { + return request(`/groupmeal/api/devicepushrecode/add`, { method: 'POST', data: data, }); } export async function DevicePushRecodeUpdate(data) { - return request(`/saasstore/api/devicepushrecode/update`, { + return request(`/groupmeal/api/devicepushrecode/update`, { method: 'POST', data: data, }); } export async function DevicePushRecodeDelete(data) { - return request(`/saasstore/api/devicepushrecode/delete`, { + return request(`/groupmeal/api/devicepushrecode/delete`, { method: 'POST', data: data, }); diff --git a/src/pages/push/goodspush/services.js b/src/pages/push/goodspush/services.js index 4af60f4..2bd56ed 100644 --- a/src/pages/push/goodspush/services.js +++ b/src/pages/push/goodspush/services.js @@ -1,24 +1,24 @@ import { request } from 'umi'; export async function GetDevicePushRecodePage(data) { - return request(`/saasstore/api/devicepushrecode/page`, { + return request(`/groupmeal/api/devicepushrecode/page`, { method: 'POST', data: data, }); } export async function DevicePushRecodeAdd(data) { - return request(`/saasstore/api/devicepushrecode/add`, { + return request(`/groupmeal/api/devicepushrecode/add`, { method: 'POST', data: data, }); } export async function DevicePushRecodeUpdate(data) { - return request(`/saasstore/api/devicepushrecode/update`, { + return request(`/groupmeal/api/devicepushrecode/update`, { method: 'POST', data: data, }); } export async function DevicePushRecodeDelete(data) { - return request(`/saasstore/api/devicepushrecode/delete`, { + return request(`/groupmeal/api/devicepushrecode/delete`, { method: 'POST', data: data, }); diff --git a/src/pages/push/technologypush/services.js b/src/pages/push/technologypush/services.js index 4af60f4..2bd56ed 100644 --- a/src/pages/push/technologypush/services.js +++ b/src/pages/push/technologypush/services.js @@ -1,24 +1,24 @@ import { request } from 'umi'; export async function GetDevicePushRecodePage(data) { - return request(`/saasstore/api/devicepushrecode/page`, { + return request(`/groupmeal/api/devicepushrecode/page`, { method: 'POST', data: data, }); } export async function DevicePushRecodeAdd(data) { - return request(`/saasstore/api/devicepushrecode/add`, { + return request(`/groupmeal/api/devicepushrecode/add`, { method: 'POST', data: data, }); } export async function DevicePushRecodeUpdate(data) { - return request(`/saasstore/api/devicepushrecode/update`, { + return request(`/groupmeal/api/devicepushrecode/update`, { method: 'POST', data: data, }); } export async function DevicePushRecodeDelete(data) { - return request(`/saasstore/api/devicepushrecode/delete`, { + return request(`/groupmeal/api/devicepushrecode/delete`, { method: 'POST', data: data, });