fix: 修复用户管理面板无法滚动
This commit is contained in:
@@ -46,7 +46,7 @@ const items = [
|
|||||||
slot: 'account',
|
slot: 'account',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
}], [{
|
}], [{
|
||||||
label: '账号资料',
|
label: '账号管理',
|
||||||
icon: 'i-tabler-user-circle',
|
icon: 'i-tabler-user-circle',
|
||||||
to: '/profile'
|
to: '/profile'
|
||||||
}], [{
|
}], [{
|
||||||
|
|||||||
@@ -517,11 +517,11 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
|
|||||||
>
|
>
|
||||||
<UCard
|
<UCard
|
||||||
:ui="{
|
:ui="{
|
||||||
body: { base: 'flex-1' },
|
body: { base: 'flex-1 overflow-y-auto' },
|
||||||
ring: '',
|
ring: '',
|
||||||
divide: 'divide-y divide-gray-100 dark:divide-gray-800',
|
divide: 'divide-y divide-gray-100 dark:divide-gray-800',
|
||||||
}"
|
}"
|
||||||
class="flex flex-col flex-1"
|
class="flex flex-col overflow-hidden"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<UButton
|
<UButton
|
||||||
@@ -540,6 +540,7 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
|
|||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<div class="">
|
||||||
<UDivider
|
<UDivider
|
||||||
label="服务用量管理"
|
label="服务用量管理"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
@@ -737,10 +738,6 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
|
|||||||
label="到期时间"
|
label="到期时间"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
>
|
>
|
||||||
<!-- <UInput
|
|
||||||
v-model="userBalanceState.expire_time"
|
|
||||||
type="datetime"
|
|
||||||
/> -->
|
|
||||||
<UPopover :popper="{ placement: 'bottom-start' }">
|
<UPopover :popper="{ placement: 'bottom-start' }">
|
||||||
<UButton
|
<UButton
|
||||||
block
|
block
|
||||||
@@ -809,15 +806,6 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
|
|||||||
:ui="{ label: 'text-primary-500 dark:text-primary-400' }"
|
: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">
|
<div class="border dark:border-neutral-700 rounded-md">
|
||||||
<UTable
|
<UTable
|
||||||
:columns="[
|
:columns="[
|
||||||
@@ -836,7 +824,10 @@ const udpateBalance = (tag: ServiceTag, isActivate: boolean = false) => {
|
|||||||
size="xs"
|
size="xs"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
@click="
|
@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"
|
:total="digitalHumansData?.data.total || 0"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</UCard>
|
</UCard>
|
||||||
<ModalDigitalHumanSelect
|
<ModalDigitalHumanSelect
|
||||||
:disabled-digital-human-ids="
|
:disabled-digital-human-ids="
|
||||||
|
|||||||
Reference in New Issue
Block a user