@@ -75,6 +75,7 @@ public class YiTokenAuthorizationFilter : IDashboardAsyncAuthorizationFilter, IT
|
||||
function sendToken() {
|
||||
// 获取输入的 token
|
||||
var token = document.getElementById("tokenInput").value;
|
||||
token = token.replace('Bearer ','');
|
||||
// 构建请求 URL
|
||||
var url = "/hangfire";
|
||||
// 发送 GET 请求
|
||||
@@ -107,7 +108,7 @@ public class YiTokenAuthorizationFilter : IDashboardAsyncAuthorizationFilter, IT
|
||||
<body style="text-align: center;">
|
||||
<h1>Yi-hangfire</h1>
|
||||
<h1>输入您的Token,我们将验证您是否为管理员</h1>
|
||||
<input type="text" id="tokenInput" placeholder="请输入 token" />
|
||||
<textarea id="tokenInput" placeholder="请输入 token" style="width: 80%;height: 120px;margin: 0 10%;"></textarea>
|
||||
<button onclick="sendToken()">校验</button>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Role
|
||||
{
|
||||
public class UpdateDataScpoceInput
|
||||
public class UpdateDataScopeInput
|
||||
{
|
||||
public Guid RoleId { get; set; }
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Yi.Framework.Rbac.Application.Services.System
|
||||
|
||||
private ISqlSugarRepository<UserRoleEntity> _userRoleRepository;
|
||||
|
||||
public async Task UpdateDataScpoceAsync(UpdateDataScpoceInput input)
|
||||
public async Task UpdateDataScopeAsync(UpdateDataScopeInput input)
|
||||
{
|
||||
//只有自定义的需要特殊处理
|
||||
if (input.DataScope == DataScopeEnum.CUSTOM)
|
||||
|
||||
@@ -38,7 +38,7 @@ export const delRole = roleIds => {
|
||||
|
||||
/** 修改角色数据权限 */
|
||||
export const updataDataScope = data => {
|
||||
return http.request<Result>("put", `/role/data-scpoce`, { data });
|
||||
return http.request<Result>("put", `/role/data-scope`, { data });
|
||||
};
|
||||
|
||||
/** 根据角色ID查询菜单下拉树结构 */
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user