diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/RoleController.cs b/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/RoleController.cs index 179135cc..ecd5cceb 100644 --- a/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/RoleController.cs +++ b/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/RoleController.cs @@ -75,7 +75,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers return Result.Success(); } [HttpGet] - public async Task GetMenuByRloeIds(int roleId) + public async Task GetMenuByRloe(int roleId) { var menuList =await _roleService.GetMenusByRoleId(roleId); return Result.Success().SetData(menuList); diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db b/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db index 62b8f9b6..8dd99a73 100644 Binary files a/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db and b/Yi.Framework/Yi.Framework.ApiMicroservice/YIDB.db differ diff --git a/Yi.Vue/src/api/roleApi.js b/Yi.Vue/src/api/roleApi.js index 599f9fb2..e6736bd6 100644 --- a/Yi.Vue/src/api/roleApi.js +++ b/Yi.Vue/src/api/roleApi.js @@ -12,5 +12,12 @@ export default { method: 'post', data: { ids1: roleList, ids2: menuList } }) + }, + getMenuByRloe(roleId) { + return myaxios({ + url: `/Role/getMenuByRloe?roleId=${roleId}`, + method: 'get' + + }) } } \ No newline at end of file diff --git a/Yi.Vue/src/components/ccTreeview.vue b/Yi.Vue/src/components/ccTreeview.vue index 5e055930..fd153ef0 100644 --- a/Yi.Vue/src/components/ccTreeview.vue +++ b/Yi.Vue/src/components/ccTreeview.vue @@ -1,7 +1,7 @@