feat: 租户管理 同步租户参数配置

This commit is contained in:
dap
2025-10-28 13:30:09 +08:00
parent 1980a2482d
commit 86bcceaa84
3 changed files with 33 additions and 1 deletions

View File

@@ -125,3 +125,13 @@ export function dictSyncTenant(tenantId?: string) {
successMessageMode: 'message',
});
}
/**
* 同步租户配置
* @returns void
*/
export function syncTenantConfig() {
return requestClient.get<void>('/system/tenant/syncTenantConfig', {
successMessageMode: 'message',
});
}

View File

@@ -15,6 +15,7 @@ import { Modal, Popconfirm, Space } from 'ant-design-vue';
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
import {
dictSyncTenant,
syncTenantConfig,
tenantExport,
tenantList,
tenantRemove,
@@ -144,6 +145,18 @@ function handleSyncTenantDict() {
},
});
}
function handleSyncTenantConfig() {
Modal.confirm({
title: '提示',
iconType: 'warning',
content: '确认同步租户参数配置?',
onOk: async () => {
await syncTenantConfig();
await tableApi.query();
},
});
}
</script>
<template>
@@ -157,6 +170,12 @@ function handleSyncTenantDict() {
>
同步租户字典
</a-button>
<a-button
v-access:code="['system:tenant:edit']"
@click="handleSyncTenantConfig"
>
同步租户参数配置
</a-button>
<a-button
v-access:code="['system:tenant:export']"
@click="handleDownloadExcel"