zhaoy 9ヶ月前
コミット
0d6fa0cd0b
3個のファイルの変更32行の追加41行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

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


読み込み中…
キャンセル
保存