From f560099e38911d3deb0683f06ad7489b71f198ed Mon Sep 17 00:00:00 2001 From: keqingmoe Date: Sat, 28 Dec 2024 22:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9D=83=E9=99=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=85=81=E8=AE=B8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E6=9D=83?= =?UTF-8?q?=E9=99=90=EF=BC=8C=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/admin/AdminPanel.vue | 8 +- ui/src/components/admin/Permission.vue | 131 +++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 ui/src/components/admin/Permission.vue diff --git a/ui/src/components/admin/AdminPanel.vue b/ui/src/components/admin/AdminPanel.vue index b571495..df5fa1c 100644 --- a/ui/src/components/admin/AdminPanel.vue +++ b/ui/src/components/admin/AdminPanel.vue @@ -18,8 +18,11 @@ 修改指定用户的密码 + + 修改指定用户的身份 + - 删除指定用户的账号 + 删除指定用户的权限 @@ -32,6 +35,7 @@ + @@ -42,6 +46,7 @@ import axios, { AxiosError } from 'axios'; import RepasswdDialog from './RepasswdDialog.vue'; import Repasswd2Dialog from './Repasswd2Dialog .vue'; import DeleteAccountDialog from './DeleteAccountDialog.vue'; +import Permission from './Permission.vue'; const authStore = useAuthStore(); const storedAdminToken = ref(authStore.adminToken); @@ -53,6 +58,7 @@ const dialogClose = ref(() => { }); const dialogRepasswdShow = ref(false); const dialogRepasswd2Show = ref(false); +const dialogPermissionShow = ref(false); const dialogDeleteAccountShow = ref(false); const dialog = (title: string, text: string) => { diff --git a/ui/src/components/admin/Permission.vue b/ui/src/components/admin/Permission.vue new file mode 100644 index 0000000..97f4789 --- /dev/null +++ b/ui/src/components/admin/Permission.vue @@ -0,0 +1,131 @@ + + +