0
0
Fork 0

feat: AccountList

This commit is contained in:
Javier Segarra 2024-05-10 17:30:04 +02:00
parent f836857288
commit 2cb402d3d4
1 changed files with 7 additions and 3 deletions

View File

@ -16,6 +16,10 @@ const stateStore = useStateStore();
const router = useRouter(); const router = useRouter();
const { t } = useI18n(); const { t } = useI18n();
const { viewSummary } = useSummaryDialog(); const { viewSummary } = useSummaryDialog();
const filter = {
fields: ['id', 'nickname', 'name', 'role'],
include: { relation: 'role', scope: { fields: ['id', 'name'] } },
};
const STATE_COLOR = { const STATE_COLOR = {
pending: 'warning', pending: 'warning',
@ -62,15 +66,15 @@ function navigate(event, id) {
</template> </template>
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above> <QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
<QScrollArea class="fit text-grey-8"> <QScrollArea class="fit text-grey-8">
<AccountFilter data-key="AccountList" /> <!-- <AccountFilter data-key="AccountList" /> -->
</QScrollArea> </QScrollArea>
</QDrawer> </QDrawer>
<QPage class="column items-center q-pa-md"> <QPage class="column items-center q-pa-md">
<div class="vn-card-list"> <div class="vn-card-list">
<VnPaginate <VnPaginate
:filter="filter"
data-key="AccountList" data-key="AccountList"
url="Accounts/filter" url="VnUsers/preview"
:order="['priority ASC', 'created DESC']"
auto-load auto-load
> >
<template #body="{ rows }"> <template #body="{ rows }">