dap
2024-11-27 10:11:34 +08:00
parent d8d884ecc1
commit f4a1cc72d9
2 changed files with 27 additions and 59 deletions

View File

@@ -16,6 +16,7 @@ import {
type VxeGridProps,
} from '#/adapter/vxe-table';
import {
dictSyncTenant,
tenantExport,
tenantList,
tenantRemove,
@@ -140,6 +141,18 @@ const { hasAccessByCodes, hasAccessByRoles } = useAccess();
const isSuperAdmin = computed(() => {
return hasAccessByRoles(['superadmin']);
});
function handleSyncTenantDict() {
Modal.confirm({
title: '提示',
iconType: 'warning',
content: '确认同步租户字典?',
onOk: async () => {
await dictSyncTenant();
await tableApi.query();
},
});
}
</script>
<template>
@@ -147,6 +160,12 @@ const isSuperAdmin = computed(() => {
<BasicTable table-title="租户列表">
<template #toolbar-tools>
<Space>
<a-button
v-access:code="['system:tenant:edit']"
@click="handleSyncTenantDict"
>
同步租户字典
</a-button>
<a-button
v-access:code="['system:tenant:export']"
@click="handleDownloadExcel"