diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index 4e8b612..fb0fcab 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -12,6 +12,17 @@ export const listRole = (query: RoleQuery): AxiosPromise => { }); }; +/** + * 通过roleIds查询角色 + * @param roleIds + */ +export const optionSelect = (roleIds: (number | string)[]): AxiosPromise => { + return request({ + url: '/system/role/optionselect?roleIds=' + roleIds, + method: 'get' + }); +}; + /** * 查询角色详细 */ @@ -142,3 +153,8 @@ export const deptTreeSelect = (roleId: string | number): AxiosPromise