添加 admin 管理
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* eslint-disable */
|
||||
import adminMenu from './geographic/admin-menu.json';
|
||||
import adminMenuAll from './geographic/admin-menu-all.json';
|
||||
import adminUrls from './geographic/admin-urls';
|
||||
import resourceTree from './geographic/resource-tree.json';
|
||||
import roleQuery from './geographic/role-query.json';
|
||||
|
||||
/* eslint-disable */
|
||||
function getAdminMenu(req, res) {
|
||||
return res.json(adminMenu);
|
||||
}
|
||||
@@ -26,8 +26,8 @@ function getQueryRole(req, res) {
|
||||
}
|
||||
|
||||
export default {
|
||||
'GET /admin-api/admin/resource/admin_menu_tree': getAdminMenuAll,
|
||||
'GET /admin-api/admin/resource/admin_url_list': getAdminUrls,
|
||||
'GET /admin-api/admin/resource/tree': getResourceTree,
|
||||
'GET /admin-api/admin/role/page': getQueryRole,
|
||||
'GET /admin-api/admins/resource/admin_menu_tree': getAdminMenuAll,
|
||||
'GET /admin-api/admins/resource/admin_url_list': getAdminUrls,
|
||||
'GET /admin-api/admins/resource/tree': getResourceTree,
|
||||
'GET /admin-api/admins/role/page': getQueryRole,
|
||||
};
|
||||
|
||||
32
admin-web/mock/geographic/dic-value.json
Normal file
32
admin-web/mock/geographic/dic-value.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"code": 0,
|
||||
"message": "",
|
||||
"data": [
|
||||
{
|
||||
"enumValue": "gender",
|
||||
"values": [
|
||||
{
|
||||
"value": "1",
|
||||
"displayName": "男"
|
||||
},
|
||||
{
|
||||
"value": "2",
|
||||
"displayName": "女"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"enumValue": "gender",
|
||||
"values": [
|
||||
{
|
||||
"value": "1",
|
||||
"displayName": "男"
|
||||
},
|
||||
{
|
||||
"value": "2",
|
||||
"displayName": "女"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user