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') }} + +