diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 09b826d..9068c09 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -12,6 +12,7 @@ declare global { const customRef: typeof import('vue')['customRef'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineComponent: typeof import('vue')['defineComponent'] + const deleteUser: typeof import('./src/api/roleApi')['deleteUser'] const effectScope: typeof import('vue')['effectScope'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] diff --git a/src/api/roleApi.ts b/src/api/roleApi.ts index f5c15a9..529c70f 100644 --- a/src/api/roleApi.ts +++ b/src/api/roleApi.ts @@ -15,4 +15,15 @@ export function getUserList(data:UserListQuery):Promise{ method:'POST', data }) +} + +// 删除用户 +export function deleteUser(userId:string){ + return http({ + url:'/api/v1/AdminRoleControllers/DelUser', + method:'POST', + params:{ + userId + } + }) } \ No newline at end of file diff --git a/src/assets/styles/common.scss b/src/assets/styles/common.scss index e3d4086..88f9f29 100644 --- a/src/assets/styles/common.scss +++ b/src/assets/styles/common.scss @@ -13,3 +13,15 @@ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); } } +// 弹性盒布局 +.flex-content{ + display: flex; + align-items: center; + gap:8px; + &.center{ + justify-content: center; + } + &.right{ + justify-content: right; + } +} diff --git a/src/components/Ls-UI/LsListButton.vue b/src/components/Ls-UI/LsListButton.vue new file mode 100644 index 0000000..9da1007 --- /dev/null +++ b/src/components/Ls-UI/LsListButton.vue @@ -0,0 +1,41 @@ + + + + \ No newline at end of file diff --git a/src/views/role/pages/Auth.vue b/src/views/role/pages/Auth.vue index c80f5ee..d4745db 100644 --- a/src/views/role/pages/Auth.vue +++ b/src/views/role/pages/Auth.vue @@ -1,65 +1,106 @@