From d124fdf5ca0c45468fd93a554384b2ba53964a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=93=E8=9B=99=E5=B8=88?= <770492966@qq.com> Date: Mon, 26 Aug 2024 10:43:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=A7=9F=E6=88=B7=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dict/type/index.ts | 9 +++++++++ src/views/system/dict/index.vue | 12 ++++++++++-- src/views/system/tenant/index.vue | 28 +++++++++++++++++++++++----- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/src/api/system/dict/type/index.ts b/src/api/system/dict/type/index.ts index 7dc3d660..8925ed2d 100644 --- a/src/api/system/dict/type/index.ts +++ b/src/api/system/dict/type/index.ts @@ -60,3 +60,12 @@ export function optionselect(): AxiosPromise { method: 'get' }); } + +// 同步租户字典 +export function asyncTenantDict(tenantId?: string) { + return request({ + url: '/system/dict/type/asyncTenantDict', + method: 'get', + params: { tenantId } + }); +} diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index d44a04af..5ce537d2 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -49,6 +49,9 @@ 刷新缓存 + + 同步租户字典 + @@ -109,7 +112,7 @@