From 06c8841184fa8d3599c05f1c4cf2a0b304450626 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sun, 6 Oct 2024 16:50:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=9F=E6=88=B7=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/tenant/index.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apps/web-antd/src/views/system/tenant/index.vue b/apps/web-antd/src/views/system/tenant/index.vue index 26b57b0f..2e985f23 100644 --- a/apps/web-antd/src/views/system/tenant/index.vue +++ b/apps/web-antd/src/views/system/tenant/index.vue @@ -16,6 +16,7 @@ import { tenantList, tenantRemove, tenantStatusChange, + tenantSyncPackage, } from '#/api/system/tenant'; import { TableSwitch } from '#/components/table'; import { useTenantStore } from '#/store/tenant'; @@ -108,6 +109,12 @@ async function handleEdit(record: Recordable) { drawerApi.open(); } +async function handleSync(record: Recordable) { + const { tenantId, packageId } = record; + await tenantSyncPackage(tenantId, packageId); + await tableApi.query(); +} + const tenantStore = useTenantStore(); async function handleDelete(row: Recordable) { await tenantRemove(row.id); @@ -192,6 +199,19 @@ const isSuperAdmin = computed(() => { > {{ $t('pages.common.edit') }} + + + {{ $t('pages.common.sync') }} + +