From 4812df2cdae0f0ef55415ec0e9cc5b3fcedcb9c9 Mon Sep 17 00:00:00 2001 From: YunaiV <> Date: Fri, 15 Mar 2019 19:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E7=AE=A1=E7=90=86=E5=91=98=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=9D=83=E9=99=90=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=20mock=20=E7=9A=84=20json=20=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/mock/admin.js | 2 +- admin-web/mock/geographic/admin-menu.json | 49 ++++++++++++++++------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/admin-web/mock/admin.js b/admin-web/mock/admin.js index d6d03107..45ab135f 100644 --- a/admin-web/mock/admin.js +++ b/admin-web/mock/admin.js @@ -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, diff --git a/admin-web/mock/geographic/admin-menu.json b/admin-web/mock/geographic/admin-menu.json index ac5db246..26d06edb 100644 --- a/admin-web/mock/geographic/admin-menu.json +++ b/admin-web/mock/geographic/admin-menu.json @@ -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 + ] } ] -} +} \ No newline at end of file