优化字典 select 和 text

This commit is contained in:
sin
2019-03-15 22:59:37 +08:00
parent 888151f523
commit 70b5ea48b3
19 changed files with 184 additions and 216 deletions

View File

@@ -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,
};

View File

@@ -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
}
]
}
]
}
}