Commit 65ae3a6c authored by 张伯涛's avatar 张伯涛

角色模块数据权限功能完善

parent 0b1d0535
......@@ -16,7 +16,6 @@ export function getRolePage(
params: queryParams,
});
}
/**
* 获取角色下拉数据
*
......@@ -32,6 +31,15 @@ export function getRoleOptions(
});
}
/** 角色数据权限*/
export function dataScope(data) {
return request({
url: "/system/role/dataScope",
method: "put",
data,
headers: {},
});
}
/**
* 获取角色的菜单ID集合
*
......@@ -114,6 +122,13 @@ export function roleMenuTreeSelectMC(roleId: any) {
method: "get",
});
}
/** 根据角色ID查询部门树结构*/
export function roleDeptTreeSelect(roleId: any, menuId: any) {
return request({
url: "/system/dept/roleDeptTreeSelect/" + roleId + "/" + menuId,
method: "get",
});
}
/**
* 查询角色详细
*
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment