Browse Source

后厨

tmp
zhaoy 11 months ago
parent
commit
0d6fa0cd0b
3 changed files with 32 additions and 41 deletions
  1. +30
    -39
      src/app.jsx
  2. +1
    -1
      src/pages/sys/menus/index.jsx
  3. +1
    -1
      src/services/api.js

+ 30
- 39
src/app.jsx View File

@@ -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();


+ 1
- 1
src/pages/sys/menus/index.jsx View File

@@ -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('添加成功');


+ 1
- 1
src/services/api.js View File

@@ -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() {


Loading…
Cancel
Save