前端:修改读取管理员菜单权限,使用本地 mock 的 json 数据

This commit is contained in:
YunaiV 2019-03-15 19:37:28 +08:00
parent 6b6b4d9514
commit 4812df2cda
2 changed files with 36 additions and 15 deletions

View File

@ -49,7 +49,7 @@ function getDictionaryList(req, res) {
}
export default {
'GET /admin-api/admins/admin/menu_resource_tree': getAdminMenuAll,
'GET /admin-api/admins/admin/menu_resource_tree': getAdminMenu,
'GET /admin-api/admins/admin/url_resource_list': getAdminUrls,
'GET /admin-api/admins/resource/tree': getResourceTree,
'GET /admin-api/admins/role/page': getQueryRole,

View File

@ -3,24 +3,45 @@
"message": "",
"data": [
{
"id": 13,
"handler": null,
"pid": 0,
"sort": 2,
"displayName": "系统管理",
"children": [
{
"handler": "/order/list1",
"id": 1,
"name": "商品管理1",
"pid": 1
"id": 14,
"handler": "/admin/admin-list",
"pid": 13,
"sort": 0,
"displayName": "管理员列表",
"children": null
},
{
"handler": "/order/list2",
"id": 1,
"name": "商品管理2",
"pid": 1
"id": 16,
"handler": "/admin/role-list",
"pid": 13,
"sort": 1,
"displayName": "角色列表",
"children": null
},
{
"id": 15,
"handler": "/admin/resource-list",
"pid": 13,
"sort": 2,
"displayName": "资源列表",
"children": null
},
{
"id": 19,
"handler": "/admin/dictionary-list",
"pid": 13,
"sort": 4,
"displayName": "数据字典",
"children": null
}
],
"handler": "/home",
"id": 1,
"name": "商品管理",
"pid": 1
]
}
]
}
}