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 @@ + + +