diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Role/UpdateDataScpoceInput.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Role/UpdateDataScopeInput.cs similarity index 87% rename from Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Role/UpdateDataScpoceInput.cs rename to Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Role/UpdateDataScopeInput.cs index 4ef0c9c1..3ce38966 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Role/UpdateDataScpoceInput.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application.Contracts/Dtos/Role/UpdateDataScopeInput.cs @@ -2,7 +2,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Role { - public class UpdateDataScpoceInput + public class UpdateDataScopeInput { public Guid RoleId { get; set; } diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/System/RoleService.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/System/RoleService.cs index 7ea3f185..6188f0ce 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/System/RoleService.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/System/RoleService.cs @@ -39,7 +39,7 @@ namespace Yi.Framework.Rbac.Application.Services.System private ISqlSugarRepository _userRoleRepository; - public async Task UpdateDataScpoceAsync(UpdateDataScpoceInput input) + public async Task UpdateDataScopeAsync(UpdateDataScopeInput input) { //只有自定义的需要特殊处理 if (input.DataScope == DataScopeEnum.CUSTOM) diff --git a/Yi.Pure.Vue3/src/api/system/role.ts b/Yi.Pure.Vue3/src/api/system/role.ts index a112cf85..49032d49 100644 --- a/Yi.Pure.Vue3/src/api/system/role.ts +++ b/Yi.Pure.Vue3/src/api/system/role.ts @@ -38,7 +38,7 @@ export const delRole = roleIds => { /** 修改角色数据权限 */ export const updataDataScope = data => { - return http.request("put", `/role/data-scpoce`, { data }); + return http.request("put", `/role/data-scope`, { data }); }; /** 根据角色ID查询菜单下拉树结构 */ diff --git a/Yi.RuoYi.Vue3/src/api/system/role.js b/Yi.RuoYi.Vue3/src/api/system/role.js index dc6da671..63f8d15e 100644 --- a/Yi.RuoYi.Vue3/src/api/system/role.js +++ b/Yi.RuoYi.Vue3/src/api/system/role.js @@ -40,7 +40,7 @@ export function updateRole(data) { // 角色数据权限 export function dataScope(data) { return request({ - url: '/role/data-scpoce', + url: '/role/data-scope', method: 'put', data: data })