mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 新增角色列表
This commit is contained in:
22
src/typings/api/system.api.d.ts
vendored
22
src/typings/api/system.api.d.ts
vendored
@ -48,8 +48,16 @@ declare namespace Api {
|
||||
type RoleOperateParams = CommonType.RecordNullable<
|
||||
Pick<
|
||||
Api.System.Role,
|
||||
'roleId' | 'roleName' | 'roleKey' | 'roleSort' | 'menuCheckStrictly' | 'status' | 'remark'
|
||||
> & { menuIds: CommonType.IdType[] }
|
||||
| 'roleId'
|
||||
| 'roleName'
|
||||
| 'roleKey'
|
||||
| 'roleSort'
|
||||
| 'menuCheckStrictly'
|
||||
| 'deptCheckStrictly'
|
||||
| 'dataScope'
|
||||
| 'status'
|
||||
| 'remark'
|
||||
> & { menuIds: CommonType.IdType[]; deptIds: CommonType.IdType[] }
|
||||
>;
|
||||
|
||||
/** role list */
|
||||
@ -61,6 +69,12 @@ declare namespace Api {
|
||||
menus: MenuList;
|
||||
}>;
|
||||
|
||||
/** role dept tree select */
|
||||
type RoleDeptTreeSelect = Common.CommonRecord<{
|
||||
checkedKeys: CommonType.IdType[];
|
||||
depts: Dept[];
|
||||
}>;
|
||||
|
||||
/** all role */
|
||||
type AllRole = Pick<Role, 'roleId' | 'roleName' | 'roleKey'>;
|
||||
|
||||
@ -108,7 +122,9 @@ declare namespace Api {
|
||||
|
||||
/** user search params */
|
||||
type UserSearchParams = CommonType.RecordNullable<
|
||||
Pick<User, 'deptId' | 'userName' | 'nickName' | 'phonenumber' | 'status'> & Common.CommonSearchParams
|
||||
Pick<User, 'deptId' | 'userName' | 'nickName' | 'phonenumber' | 'status'> & {
|
||||
roleId: CommonType.IdType;
|
||||
} & Common.CommonSearchParams
|
||||
>;
|
||||
|
||||
/** user operate params */
|
||||
|
1
src/typings/components.d.ts
vendored
1
src/typings/components.d.ts
vendored
@ -15,6 +15,7 @@ declare module 'vue' {
|
||||
copy: typeof import('./../components/custom/menu-tree-select copy.vue')['default']
|
||||
CountTo: typeof import('./../components/custom/count-to.vue')['default']
|
||||
DarkModeContainer: typeof import('./../components/common/dark-mode-container.vue')['default']
|
||||
DeptTree: typeof import('./../components/custom/dept-tree.vue')['default']
|
||||
DictRadio: typeof import('./../components/custom/dict-radio.vue')['default']
|
||||
DictSelect: typeof import('./../components/custom/dict-select.vue')['default']
|
||||
DictTag: typeof import('./../components/custom/dict-tag.vue')['default']
|
||||
|
Reference in New Issue
Block a user