diff --git a/public/json/dic_info.json b/public/json/dic_info.json new file mode 100644 index 00000000..5c74f05f --- /dev/null +++ b/public/json/dic_info.json @@ -0,0 +1,43 @@ +{ + "code": 200, + "count": 4, + "data": [ + { + "id": "100", + "key": "1", + "name": "发布通知", + "yx": 1 + }, + { + "id": "101", + "key": "2", + "name": "批转通知", + "yx": 1 + }, + { + "id": "102", + "key": "3", + "name": "转发通知", + "yx": 1 + }, + { + "id": "103", + "key": "4", + "name": "指示通知", + "yx": 0 + }, + { + "id": "104", + "key": "5", + "name": "任免通知", + "yx": 0 + }, + { + "id": "105", + "key": "6", + "name": "事务通知", + "yx": 1 + } + ], + "message": "" +} diff --git a/public/json/dic_list.json b/public/json/dic_list.json new file mode 100644 index 00000000..09b423c9 --- /dev/null +++ b/public/json/dic_list.json @@ -0,0 +1,39 @@ +{ + "code": 200, + "count": 4, + "data": [ + { + "id": "1", + "code": "notice", + "name": "通知类型" + }, + { + "id": "2", + "code": "sex", + "name": "性别" + }, + { + "id": "3", + "code": "menuCategory", + "name": "菜单类型" + }, + { + "id": "4", + "code": "userType", + "name": "用户类型", + "children": [ + { + "id": "41", + "code": "userTypePC", + "name": "Desktop" + }, + { + "id": "42", + "code": "userTypeAPP", + "name": "Mobile" + } + ] + } + ], + "message": "" +} diff --git a/public/json/login.json b/public/json/login.json index 0ceced5f..e1523ed8 100644 --- a/public/json/login.json +++ b/public/json/login.json @@ -199,14 +199,6 @@ }, "component": "setting/role" }, - { - "path": "/setting/menu", - "name": "menu", - "meta": { - "title": "菜单管理" - }, - "component": "setting/menu" - }, { "path": "/setting/dic", "name": "dic", @@ -215,6 +207,14 @@ }, "component": "setting/dic" }, + { + "path": "/setting/menu", + "name": "menu", + "meta": { + "title": "菜单管理" + }, + "component": "setting/menu" + }, { "path": "/setting/client", "name": "client", diff --git a/src/api/index.js b/src/api/index.js index 843aef5e..ad846f69 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -56,6 +56,22 @@ const api = { } } }, + dic: { + list: { + url: `${config.API_URL}/json/dic_list.json`, + name: "字典列表", + get: async function(){ + return await http.get(this.url); + } + }, + info: { + url: `${config.API_URL}/json/dic_info.json`, + name: "字典明细", + get: async function(params){ + return await http.get(this.url, params); + } + } + }, demo: { select: { url: `${config.API_URL}/json/select.json`, diff --git a/src/components/scTable/index.vue b/src/components/scTable/index.vue index e1689588..ba973a13 100644 --- a/src/components/scTable/index.vue +++ b/src/components/scTable/index.vue @@ -1,7 +1,7 @@