perf: remove the list of users under role details (#726)

#### What type of PR is this?

/kind improvement
/milestone 2.0.0-rc.2

#### What this PR does / why we need it:

移除角色详情页面的用户列表,当前后端暂不支持通过角色查询其下用户。

#### Special notes for your reviewer:

None

#### Does this PR introduce a user-facing change?


```release-note
None
```
pull/727/head
Ryan Wang 2 years ago committed by GitHub
parent 42bec322d1
commit adbd972fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ const { roleTemplateGroups, handleRoleTemplateSelect, selectedRoleTemplates } =
const { formState, saving, handleCreateOrUpdate } = useRoleForm();
const { users } = useUserFetch({ fetchOnMounted: true });
const { users } = useUserFetch({ fetchOnMounted: false });
watch(
() => selectedRoleTemplates.value,
@ -156,7 +156,9 @@ onMounted(() => {
{{ formState.metadata?.creationTimestamp }}
</dd>
</div>
<!-- TODO: 支持通过当前角色查询用户 -->
<div
v-if="false"
class="bg-gray-50 px-4 py-5 hover:bg-gray-50 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"
>
<dt class="text-sm font-medium text-gray-900">用户</dt>

@ -265,7 +265,8 @@ const handleDelete = async (role: Role) => {
<VStatusDot v-tooltip="``" state="warning" animate />
</template>
</VEntityField>
<VEntityField description="0 个用户" />
<!-- TODO: 支持显示用户数量 -->
<VEntityField v-if="false" description="0 个用户" />
<VEntityField>
<template #description>
<VTag> 系统保留</VTag>

Loading…
Cancel
Save