From c9cfefdc3e3fe4a35c9e3a43901ad9569503b0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 26 Sep 2025 11:57:33 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E7=A7=9F=E6=88=B7=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/tenant/index.ts | 8 ++++++++ src/views/system/tenant/index.vue | 13 ++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts index d1d8ff8..675447c 100644 --- a/src/api/system/tenant/index.ts +++ b/src/api/system/tenant/index.ts @@ -99,3 +99,11 @@ export function syncTenantDict() { method: 'get' }); } + +// 同步租户字典 +export function syncTenantConfig() { + return request({ + url: '/system/tenant/syncTenantConfig', + method: 'get' + }); +} diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index b594546..dd31700 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -47,6 +47,9 @@ 同步租户字典 + + 同步租户参数配置 + @@ -152,7 +155,8 @@ import { updateTenant, changeTenantStatus, syncTenantPackage, - syncTenantDict + syncTenantDict, + syncTenantConfig } from '@/api/system/tenant'; import { selectTenantPackage } from '@/api/system/tenantPackage'; import { useUserStore } from '@/store/modules/user'; @@ -365,6 +369,13 @@ const handleSyncTenantDict = async () => { proxy?.$modal.msgSuccess(res.msg); }; +/**同步租户参数配置*/ +const handleSyncTenantConfig = async () => { + await proxy?.$modal.confirm('确认要同步所有租户参数配置吗?'); + const res = await syncTenantConfig(); + proxy?.$modal.msgSuccess(res.msg); +}; + onMounted(() => { getList(); });