From 45c7bcd58085f5a83feb2bb69b3cd50dc90a73c3 Mon Sep 17 00:00:00 2001 From: LiuHao Date: Wed, 31 Jan 2024 16:23:23 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=96=B0=E5=A2=9E=E8=A7=92=E8=89=B2ap?= =?UTF-8?q?i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/role/index.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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