feat: 完成用户列表

This commit is contained in:
xlsea
2024-09-12 16:16:38 +08:00
parent 0a62e4dcaa
commit 85f6c31878
19 changed files with 618 additions and 37 deletions

View File

@ -70,6 +70,20 @@ declare namespace Api {
/** record tenant id */
tenantId: string;
} & CommonRecord<T>;
/** common tree record */
type CommonTreeRecord = {
/** record id */
id: CommonType.IdType;
/** record parent id */
parentId: CommonType.IdType;
/** record label */
label: string;
/** record weight */
weight: number;
/** record children */
children: CommonTreeRecord[];
}[];
}
/**

View File

@ -38,7 +38,23 @@ declare namespace Api {
/** role search params */
type RoleSearchParams = CommonType.RecordNullable<
Pick<Role, 'roleName' | 'roleKey' | 'status'> & Common.CommonSearchParams
Pick<Api.System.Role, 'roleName' | 'roleKey' | 'status'> & Api.Common.CommonSearchParams
>;
/** role operate params */
type RoleOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Role,
| 'roleId'
| 'roleName'
| 'roleKey'
| 'roleSort'
| 'dataScope'
| 'menuCheckStrictly'
| 'deptCheckStrictly'
| 'status'
| 'remark'
>
>;
/** role list */
@ -81,8 +97,6 @@ declare namespace Api {
password: string;
/** 帐号状态0正常 1停用 */
status: string;
/** 删除标志0代表存在 2代表删除 */
delFlag: string;
/** 最后登录IP */
loginIp: string;
/** 最后登录时间 */
@ -110,9 +124,17 @@ declare namespace Api {
| 'password'
| 'status'
| 'remark'
> & { roleIds: string[] }
> & { roleIds: CommonType.IdType[]; postIds: CommonType.IdType[] }
>;
/** user info */
type UserInfo = {
/** user post ids */
postIds: string[];
/** user role ids */
roleIds: string[];
};
/** user list */
type UserList = Common.PaginatingQueryRecord<User>;
@ -274,5 +296,86 @@ declare namespace Api {
/** 备注 */
remark: string;
}>;
/** dept */
type Dept = Api.Common.CommonRecord<{
/** 部门id */
deptId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 父部门id */
parentId: CommonType.IdType;
/** 祖级列表 */
ancestors: string;
/** 部门名称 */
deptName: string;
/** 部门类别编码 */
deptCategory: string;
/** 显示顺序 */
orderNum: number;
/** 负责人 */
leader: number;
/** 联系电话 */
phone: string;
/** 邮箱 */
email: string;
/** 部门状态0正常 1停用 */
status: string;
}>;
/** dept search params */
type DeptSearchParams = CommonType.RecordNullable<
Pick<Api.System.Dept, 'parentId' | 'deptName' | 'deptCategory' | 'status'> & Api.Common.CommonSearchParams
>;
/** dept operate params */
type DeptOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Dept,
'deptId' | 'parentId' | 'deptName' | 'deptCategory' | 'orderNum' | 'leader' | 'phone' | 'email' | 'status'
>
>;
/** dept list */
type DeptList = Api.Common.PaginatingQueryRecord<Dept>;
/** post */
type Post = Common.CommonRecord<{
/** 岗位ID */
postId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 部门id */
deptId: CommonType.IdType;
/** 岗位编码 */
postCode: string;
/** 类别编码 */
postCategory: string;
/** 岗位名称 */
postName: string;
/** 显示顺序 */
postSort: number;
/** 状态0正常 1停用 */
status: string;
/** 备注 */
remark: string;
}>;
/** post search params */
type PostSearchParams = CommonType.RecordNullable<
Pick<Api.System.Post, 'deptId' | 'postCode' | 'postCategory' | 'postName' | 'status'> &
Api.Common.CommonSearchParams
>;
/** post operate params */
type PostOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Post,
'postId' | 'deptId' | 'postCode' | 'postCategory' | 'postName' | 'postSort' | 'status' | 'remark'
>
>;
/** post list */
type PostList = Api.Common.PaginatingQueryRecord<Post>;
}
}

View File

@ -11,9 +11,10 @@ declare module 'vue' {
BetterScroll: typeof import('./../components/custom/better-scroll.vue')['default']
BooleanTag: typeof import('./../components/custom/boolean-tag.vue')['default']
ButtonIcon: typeof import('./../components/custom/button-icon.vue')['default']
copy: typeof import('./../components/custom/dict-select copy.vue')['default']
copy: typeof import('./../components/custom/role-select copy.vue')['default']
CountTo: typeof import('./../components/custom/count-to.vue')['default']
DarkModeContainer: typeof import('./../components/common/dark-mode-container.vue')['default']
DeptTreeSelect: typeof import('./../components/custom/dept-tree-select.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']
@ -22,6 +23,7 @@ declare module 'vue' {
IconAntDesignEnterOutlined: typeof import('~icons/ant-design/enter-outlined')['default']
IconAntDesignReloadOutlined: typeof import('~icons/ant-design/reload-outlined')['default']
IconAntDesignSettingOutlined: typeof import('~icons/ant-design/setting-outlined')['default']
IconEpCopyDocument: typeof import('~icons/ep/copy-document')['default']
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
'IconIc:roundPlus': typeof import('~icons/ic/round-plus')['default']
@ -49,6 +51,7 @@ declare module 'vue' {
MenuToggler: typeof import('./../components/common/menu-toggler.vue')['default']
MenuTreeSelect: typeof import('./../components/custom/menu-tree-select.vue')['default']
MonacoEditor: typeof import('./../components/common/monaco-editor.vue')['default']
NA: typeof import('naive-ui')['NA']
NAlert: typeof import('naive-ui')['NAlert']
NBreadcrumb: typeof import('naive-ui')['NBreadcrumb']
NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem']
@ -110,7 +113,9 @@ declare module 'vue' {
NTreeSelect: typeof import('naive-ui')['NTreeSelect']
NWatermark: typeof import('naive-ui')['NWatermark']
PinToggler: typeof import('./../components/common/pin-toggler.vue')['default']
PostSelect: typeof import('./../components/custom/post-select.vue')['default']
ReloadButton: typeof import('./../components/common/reload-button.vue')['default']
RoleSelect: typeof import('./../components/custom/role-select.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SoybeanAvatar: typeof import('./../components/custom/soybean-avatar.vue')['default']