chore: search form

This commit is contained in:
dap
2024-09-24 10:39:36 +08:00
parent 741915e5cd
commit c5971e4407
3 changed files with 91 additions and 37 deletions

View File

@@ -4,7 +4,7 @@ import { ref } from 'vue';
import { Page, useVbenDrawer, useVbenModal } from '@vben/common-ui';
import { $t } from '@vben/locales';
import { message } from 'ant-design-vue';
import { Card, message } from 'ant-design-vue';
import { useVbenForm } from '#/adapter';
import { userExport } from '#/api/system/user';
@@ -69,25 +69,32 @@ const [QueryForm] = useVbenForm({
@select="handleSelect"
/>
<div class="flex w-full flex-col gap-[8px]">
<QueryForm />
<div class="flex justify-end gap-[8px]">
<a-button
v-access:code="['system:user:export']"
@click="downloadExcel(userExport, '用户管理', {})"
>
{{ $t('pages.common.export') }}
</a-button>
<a-button v-access:code="['system:user:import']" @click="handleImport">
{{ $t('pages.common.import') }}
</a-button>
<a-button
type="primary"
v-access:code="['system:user:add']"
@click="handleAdd"
>
{{ $t('pages.common.add') }}
</a-button>
</div>
<Card>
<QueryForm />
</Card>
<Card>
<div class="flex justify-end gap-[8px]">
<a-button
v-access:code="['system:user:export']"
@click="downloadExcel(userExport, '用户管理', {})"
>
{{ $t('pages.common.export') }}
</a-button>
<a-button
v-access:code="['system:user:import']"
@click="handleImport"
>
{{ $t('pages.common.import') }}
</a-button>
<a-button
type="primary"
v-access:code="['system:user:add']"
@click="handleAdd"
>
{{ $t('pages.common.add') }}
</a-button>
</div>
</Card>
</div>
<UserImpotModal />
<UserDrawer />