mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
feat: 租户管理 同步租户参数配置
This commit is contained in:
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user