From 0d6fa0cd0b53aa96ac2b622ac3a4d6865469e25a Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Fri, 19 Jan 2024 16:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.jsx | 69 +++++++++++++++-------------------- src/pages/sys/menus/index.jsx | 2 +- src/services/api.js | 2 +- 3 files changed, 32 insertions(+), 41 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 2777f25..650c56e 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -172,6 +172,14 @@ export async function getInitialState() { component: './device/deviceVesion', access: 'k14', }, + { + code: 'devicepush', + name: '设备数据同步', + icon: 'smile', + path: '/device/devicepush', + component: './device/devicepush', + access: 'k14', + }, // { // code: 'devicetechnology', // name: '设备工艺信息', @@ -246,48 +254,31 @@ export async function getInitialState() { }, ] }, - ] - }, - { - code: 'scene', - name: '场景管理', - icon: 'PrinterOutlined', - path: '/scene', - routes: [ - { - code: 'store', - name: '场景基础信息', - icon: 'smile', - path: '/scene/store', - component: './scene/store', - access: 'k12', - }, - { - code: 'foodmenu', - name: '场景菜谱信息', - icon: 'smile', - path: '/scene/foodmenu', - component: './scene/foodmenu', - access: 'k14', - }, - ], - }, - { - code: 'order', - name: '订单管理', - icon: 'PrinterOutlined', - path: '/order', - routes: [ { - code: 'orderrecode', - name: '订单流水', + code: 'scene', + name: '场景管理', icon: 'smile', - path: '/order/orderrecode', - component: './order/orderrecode', - access: 'k12', + path: '/scene', + routes:[ + { + code: 'storeinfo', + name: '场景基础信息', + icon: 'smile', + path: '/scene/store', + component: './scene/store', + access: 'k11', + }, + { + code: 'foodmenu', + name: '场景菜谱信息', + icon: 'smile', + path: '/scene/foodmenu', + component: './scene/foodmenu', + access: 'k10', + }, + ] }, - - ], + ] }, ]; // api.queryMenus(); diff --git a/src/pages/sys/menus/index.jsx b/src/pages/sys/menus/index.jsx index 5dbf35b..22a864f 100644 --- a/src/pages/sys/menus/index.jsx +++ b/src/pages/sys/menus/index.jsx @@ -28,7 +28,7 @@ const menuManager = () => { */ const handleAdd = async (fields) => { - fields.type=3 + fields.type=2 await api.add({ ...fields }).then((r) => { if (r.succeeded) { message.success('添加成功'); diff --git a/src/services/api.js b/src/services/api.js index 1ed68b6..b91079c 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -22,7 +22,7 @@ export default { }, //动态菜单 DymicMenus(userid) { - return request(`/saasbase/api/menu/menutree`, { method: 'get' }); + return request(`/saasbase/api/menu/menutree?type=2`, { method: 'get' }); }, //登出 outLogin() {