update
Deploy / deploy (push) Canceled after 0s

This commit is contained in:
xuyue committed 2026-09-27 19:36:28 +08:00
1 parent 23844ae301
commit d25b5dbe6d
268 files changed
+3684 -8861

No files matched your search

+2 -12
View File
@@ -21,20 +21,10 @@ async function banUser() {
</script>
<template>
<n-flex>
<n-button
size="small"
type="error"
secondary
@click="$emit('resetPassword', props.user)"
>
<n-button size="small" type="error" secondary @click="$emit('resetPassword', props.user)">
重置密码
</n-button>
<n-button
size="small"
type="primary"
secondary
@click="$emit('openEditModal', props.user)"
>
<n-button size="small" type="primary" secondary @click="$emit('openEditModal', props.user)">
编辑
</n-button>
<n-button
@@ -22,8 +22,7 @@ defineEmits<{
* TextCopy(渲染成空)。
*/
const maskable = computed(
() =>
props.user.adminType !== USER_TYPE.REGULAR_USER && !!props.user.rawPassword,
() => props.user.adminType !== USER_TYPE.REGULAR_USER && !!props.user.rawPassword,
)
</script>
<template>
@@ -8,20 +8,12 @@ interface Props {
user: AdminUserForm
}
const props = defineProps<Props>()
const hasRoleTag = computed(
() => props.user.adminType !== USER_TYPE.REGULAR_USER,
)
const hasRoleTag = computed(() => props.user.adminType !== USER_TYPE.REGULAR_USER)
</script>
<template>
<n-flex align="center">
<n-tag v-if="props.user.isDisabled" type="error" size="small">
封号中
</n-tag>
<n-tag
v-if="hasRoleTag"
:type="getUserRole(props.user.adminType).type"
size="small"
>
<n-tag v-if="props.user.isDisabled" type="error" size="small"> 封号中 </n-tag>
<n-tag v-if="hasRoleTag" :type="getUserRole(props.user.adminType).type" size="small">
{{ getUserRole(props.user.adminType).label }}
</n-tag>
<n-tag
@@ -31,11 +23,7 @@ const hasRoleTag = computed(
props.user.adminType === USER_TYPE.TEACHER_ADMIN
"
>
{{
props.user.problemPermission === PROBLEM_PERMISSION.ALL
? "全部"
: "仅自己"
}}
{{ props.user.problemPermission === PROBLEM_PERMISSION.ALL ? "全部" : "仅自己" }}
</n-tag>
<TextCopy>{{ props.user.username }}</TextCopy>
</n-flex>