|
|
|
@ -15,8 +15,9 @@ export const lognis = (data) => { |
|
|
|
//获取用户列表
|
|
|
|
export const getbook = (data) => { |
|
|
|
return request({ |
|
|
|
url: "/api/identity/roles/all", |
|
|
|
method: "get", |
|
|
|
//url: "/api/identity/roles/all",
|
|
|
|
url: "/api/app/MyRole/GetAllList", |
|
|
|
method: "post", |
|
|
|
data, |
|
|
|
}); |
|
|
|
}; |
|
|
|
@ -80,8 +81,9 @@ export const editmodify = (id, data) => { |
|
|
|
//用户管理查询
|
|
|
|
export const usersroles = (data) => { |
|
|
|
return request({ |
|
|
|
url: "/api/identity/roles/all", |
|
|
|
method: "get", |
|
|
|
//url: "/api/identity/roles/all",
|
|
|
|
url: "/api/app/MyRole/GetAllList", |
|
|
|
method: "post", |
|
|
|
params: data, |
|
|
|
}); |
|
|
|
}; |
|
|
|
@ -135,23 +137,26 @@ export const userorganizat = (UserId, OgId) => { |
|
|
|
export const addrole = (data) => { |
|
|
|
return request({ |
|
|
|
method: "post", |
|
|
|
url: "/api/identity/roles", |
|
|
|
//url: "/api/identity/roles",
|
|
|
|
url: "/api/app/MyRole/Create", |
|
|
|
data, |
|
|
|
}); |
|
|
|
}; |
|
|
|
//角色管理编辑r
|
|
|
|
export const roleediting = (id, data) => { |
|
|
|
return request({ |
|
|
|
method: "put", |
|
|
|
url: `/api/identity/roles/${id}`, |
|
|
|
method: "post", |
|
|
|
//url: `/api/identity/roles/${id}`,
|
|
|
|
url: `/api/app/MyRole/Update/${id}`, |
|
|
|
data, |
|
|
|
}); |
|
|
|
}; |
|
|
|
//角色管理删除
|
|
|
|
export const roledelention = (id) => { |
|
|
|
return request({ |
|
|
|
url: `/api/identity/roles/${id}`, |
|
|
|
method: "delete", |
|
|
|
//url: `/api/identity/roles/${id}`,
|
|
|
|
url: `/api/app/MyRole/Delete/${id}`, |
|
|
|
method: "post", |
|
|
|
}); |
|
|
|
}; |
|
|
|
//权限控制编辑
|
|
|
|
|