优化字典 select 和 text
This commit is contained in:
@@ -44,8 +44,8 @@ function getDictionaryText(req, res) {
|
||||
return res.json(resultBody(values));
|
||||
}
|
||||
|
||||
function getDictionaryList(req, res) {
|
||||
return res.json(dictionaryList);
|
||||
function getDictionaryTree(req, res) {
|
||||
return res.json(dictionaryList);
|
||||
}
|
||||
|
||||
export default {
|
||||
@@ -54,7 +54,5 @@ export default {
|
||||
'GET /admin-api/admins/resource/tree': getResourceTree,
|
||||
'GET /admin-api/admins/role/page': getQueryRole,
|
||||
'GET /admin-api/admins/admin/page': getQueryRole,
|
||||
'GET /admin-api/admins/dictionary/getList': getDictionaryKeys,
|
||||
'GET /admin-api/admins/dictionary/queryText': getDictionaryText,
|
||||
// 'GET /admin-api/admins/data_dict/list': getDictionaryList,
|
||||
'GET /admin-api/admins/data_dict/tree': getDictionaryTree,
|
||||
};
|
||||
|
||||
@@ -3,20 +3,17 @@
|
||||
"message": "",
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"enumValue": "gender",
|
||||
"value": "1",
|
||||
"displayName": "男",
|
||||
"sort": 1,
|
||||
"memo": "性别 - 男"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"enumValue": "gender",
|
||||
"value": "2",
|
||||
"displayName": "女",
|
||||
"sort": 2,
|
||||
"memo": "性别 - 女"
|
||||
"values": [
|
||||
{
|
||||
"displayName": "男",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"displayName": "女",
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user