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

@@ -1,6 +1,8 @@
# 1.5.2
对应后端版本 单体/微服务: 5.5.0/2.5.0
对应后端版本 单体/微服务: 5.5.1/2.5.1
该版本后端功能值包含一个`同步租户参数配置`功能 旧版本也能升级(使用)
**REFACTOR**
@@ -9,6 +11,7 @@
**FEATURES**
- 修改流程变量
- 租户管理 同步租户参数配置
**BUG FIX**

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"