fix: 修复用户管理面板无法滚动

This commit is contained in:
2025-01-22 18:54:40 +08:00
parent 43e0dab504
commit c8bda7f951
2 changed files with 281 additions and 289 deletions

View File

@@ -46,7 +46,7 @@ const items = [
slot: 'account',
disabled: true,
}], [{
label: '账号资料',
label: '账号管理',
icon: 'i-tabler-user-circle',
to: '/profile'
}], [{

View File

@@ -517,11 +517,11 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
>
<UCard
:ui="{
body: { base: 'flex-1' },
body: { base: 'flex-1 overflow-y-auto' },
ring: '',
divide: 'divide-y divide-gray-100 dark:divide-gray-800',
}"
class="flex flex-col flex-1"
class="flex flex-col overflow-hidden"
>
<template #header>
<UButton
@@ -540,6 +540,7 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
</p>
</template>
<div class="">
<UDivider
label="服务用量管理"
class="mb-4"
@@ -737,10 +738,6 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
label="到期时间"
class="flex-1"
>
<!-- <UInput
v-model="userBalanceState.expire_time"
type="datetime"
/> -->
<UPopover :popper="{ placement: 'bottom-start' }">
<UButton
block
@@ -809,15 +806,6 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
:ui="{ label: 'text-primary-500 dark:text-primary-400' }"
/>
<!-- <div class="flex w-full justify-end pb-4">
<UButton
icon="tabler:plus"
size="xs"
@click="isDigitalSelectorOpen = true"
>
新增授权
</UButton>
</div> -->
<div class="border dark:border-neutral-700 rounded-md">
<UTable
:columns="[
@@ -836,7 +824,10 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
size="xs"
variant="ghost"
@click="
revokeDigitalHuman(viewingUser?.id || 0, row.digital_human_id)
revokeDigitalHuman(
viewingUser?.id || 0,
row.digital_human_id
)
"
>
撤销授权
@@ -859,6 +850,7 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
:total="digitalHumansData?.data.total || 0"
/>
</div>
</div>
</UCard>
<ModalDigitalHumanSelect
:disabled-digital-human-ids="