feat: 租户表单

This commit is contained in:
dap
2024-09-18 11:45:52 +08:00
parent dea49d3b63
commit 64218084bb
3 changed files with 352 additions and 4 deletions

View File

@@ -1,9 +1,28 @@
<script setup lang="ts">
import CommonSkeleton from '#/views/common';
import { Page, useVbenDrawer } from '@vben/common-ui';
import { $t } from '@vben/locales';
import tenantDrawer from './tenant-drawer.vue';
const [TenantDrawer, drawerApi] = useVbenDrawer({
connectedComponent: tenantDrawer,
});
function handleAdd() {
drawerApi.setData({ update: false });
drawerApi.open();
}
</script>
<template>
<div>
<CommonSkeleton />
</div>
<Page>
<a-button
type="primary"
v-access:code="['system:tenant:add']"
@click="handleAdd"
>
{{ $t('pages.common.add') }}
</a-button>
<TenantDrawer />
</Page>
</template>