From 7c906b4acf785180132f91db5d70c3a29fa85cd3 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 21 六月 2023 09:39:13 +0800 Subject: [PATCH] 新增页面和配置,对接口 --- src/layout/menu/index.js | 264 ++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 200 insertions(+), 64 deletions(-) diff --git a/src/layout/menu/index.js b/src/layout/menu/index.js index 44cb324..f1e46de 100644 --- a/src/layout/menu/index.js +++ b/src/layout/menu/index.js @@ -1,12 +1,13 @@ -const menuData = [{ +const menu = { + adminMenu: [{ MenuTitle: "首页", Icon: "home", MenuID: "1", Children: [{ - MenuID: "11", - MenuTitle: "控制面板", - MenuPath: "/home", - }, + MenuID: "11", + MenuTitle: "控制面板", + MenuPath: "/home", + }, { MenuID: "18", MenuTitle: "实时气象", @@ -29,79 +30,214 @@ } ], }, - { - MenuTitle: "预警信息管理", - Icon: "mail", - MenuID: "2", - Children: [{ + { + MenuTitle: "预警信息管理", + Icon: "mail", + MenuID: "2", + Children: [{ MenuID: "21", MenuTitle: "信息编辑", MenuPath: "/notice", }, - { - MenuID: "22", - MenuTitle: "信息审核", - MenuPath: "/msgReview", - }, - { - MenuID: "23", - MenuTitle: "信息发布", - MenuPath: "/report", - }, - { - MenuID: "24", - MenuTitle: "历史信息", - MenuPath: "/history", - }, - { - MenuID: "25", - MenuTitle: "叫应记录", - MenuPath: "/callRecord", - }, - ], - }, - { - MenuTitle: "短信管理", - Icon: "message", - MenuID: "3", - Children: [{ + { + MenuID: "22", + MenuTitle: "信息审核", + MenuPath: "/msgReview", + }, + { + MenuID: "23", + MenuTitle: "信息发布", + MenuPath: "/report", + }, + { + MenuID: "24", + MenuTitle: "历史信息", + MenuPath: "/history", + }, + { + MenuID: "25", + MenuTitle: "叫应记录", + MenuPath: "/callRecord", + }, + ], + }, + { + MenuTitle: "短信管理", + Icon: "message", + MenuID: "3", + Children: [{ MenuID: "31", MenuTitle: "常规群发", MenuPath: "/massSend", }, - { - MenuID: "32", - MenuTitle: "短信记录", - MenuPath: "/msgRecord", - }, - { - MenuID: "33", - MenuTitle: "平级接收人管理", - MenuPath: "/samelevel", - }, - ], - }, - { - MenuTitle: "设置", - Icon: "setting", - MenuID: "4", - Children: [{ + { + MenuID: "32", + MenuTitle: "短信记录", + MenuPath: "/msgRecord", + }, + { + MenuID: "33", + MenuTitle: "平级接收人管理", + MenuPath: "/samelevel", + }, + ], + }, + { + MenuTitle: "设置", + Icon: "setting", + MenuID: "4", + Children: [{ MenuID: "41", MenuTitle: "用户管理", MenuPath: "/user", }, + { + MenuID: "42", + MenuTitle: "短信平台设置", + MenuPath: "/smsSetting", + }, + // { + // MenuID: "43", + // MenuTitle: "菜单权限", + // MenuPath: "/menu", + // }, + ], + }, + ], + leaderMenu: [{ + MenuTitle: "首页", + Icon: "home", + MenuID: "1", + Children: [{ + MenuID: "11", + MenuTitle: "控制面板", + MenuPath: "/home", + }, { - MenuID: "42", - MenuTitle: "短信平台设置", - MenuPath: "/smsSetting", + MenuID: "18", + MenuTitle: "实时气象", + MenuPath: "/wendy", }, - // { - // MenuID: "43", - // MenuTitle: "菜单权限", - // MenuPath: "/menu", - // }, + { + MenuID: "13", + MenuTitle: "数据统计", + MenuPath: "/audit" + } ], }, -] + { + MenuTitle: "预警信息管理", + Icon: "mail", + MenuID: "2", + Children: [ + { + MenuID: "22", + MenuTitle: "信息审核", + MenuPath: "/msgReview", + }, + ], + } + ], + workerMenu: [{ + MenuTitle: "首页", + Icon: "home", + MenuID: "1", + Children: [{ + MenuID: "11", + MenuTitle: "控制面板", + MenuPath: "/home", + }, + { + MenuID: "18", + MenuTitle: "实时气象", + MenuPath: "/wendy", + }, + { + MenuID: "12", + MenuTitle: "我收到的", + MenuPath: "/list" + }, + { + MenuID: "14", + MenuTitle: "我发布的", + MenuPath: "/release" + }, + { + MenuID: "13", + MenuTitle: "数据统计", + MenuPath: "/audit" + } + ], + }, + { + MenuTitle: "预警信息管理", + Icon: "mail", + MenuID: "2", + Children: [{ + MenuID: "21", + MenuTitle: "信息编辑", + MenuPath: "/notice", + }, + { + MenuID: "23", + MenuTitle: "信息发布", + MenuPath: "/report", + }, + { + MenuID: "24", + MenuTitle: "历史信息", + MenuPath: "/history", + }, + { + MenuID: "25", + MenuTitle: "叫应记录", + MenuPath: "/callRecord", + }, + ], + }, + { + MenuTitle: "短信管理", + Icon: "message", + MenuID: "3", + Children: [{ + MenuID: "31", + MenuTitle: "常规群发", + MenuPath: "/massSend", + }, + { + MenuID: "32", + MenuTitle: "短信记录", + MenuPath: "/msgRecord", + }, + { + MenuID: "33", + MenuTitle: "平级接收人管理", + MenuPath: "/samelevel", + }, + ], + }, + { + MenuTitle: "设置", + Icon: "setting", + MenuID: "4", + Children: [{ + MenuID: "41", + MenuTitle: "用户管理", + MenuPath: "/user", + }, + { + MenuID: "42", + MenuTitle: "短信平台设置", + MenuPath: "/smsSetting", + }, + // { + // MenuID: "43", + // MenuTitle: "菜单权限", + // MenuPath: "/menu", + // }, + ], + }, + ] +} -export default menuData; \ No newline at end of file +export default menu; \ No newline at end of file -- Gitblit v1.9.2