From c95ff9fa2c33181de167a2fe5e6f92313b1348e9 Mon Sep 17 00:00:00 2001 From: fangyunong Date: Sat, 12 Jul 2025 14:19:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9B=B4=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 + src/api/roleApi.ts | 11 ++ src/assets/styles/common.scss | 12 ++ src/components/Ls-UI/LsListButton.vue | 41 +++++ src/views/role/pages/Auth.vue | 215 ++++++++++++++++++++++---- 5 files changed, 246 insertions(+), 34 deletions(-) create mode 100644 src/components/Ls-UI/LsListButton.vue 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 @@