diff --git a/Web/src/views/system/reportConfig/component/editReportConfig.vue b/Web/src/views/system/reportConfig/component/editReportConfig.vue
index 41a1a5a6..b8485d93 100644
--- a/Web/src/views/system/reportConfig/component/editReportConfig.vue
+++ b/Web/src/views/system/reportConfig/component/editReportConfig.vue
@@ -28,7 +28,8 @@
-
+
+
diff --git a/Web/src/views/system/reportConfig/component/reportView.vue b/Web/src/views/system/reportConfig/component/reportView.vue
index 9d8e4e76..0f748d81 100644
--- a/Web/src/views/system/reportConfig/component/reportView.vue
+++ b/Web/src/views/system/reportConfig/component/reportView.vue
@@ -172,11 +172,15 @@ const handleExport = () => {
cancelButtonText: t('取消'),
type: 'warning',
}).then(() => {
+ state.isLoading = true;
getAPI(SysReportConfigApi)
.apiSysReportConfigExportToExcelPost({ id: Number(reportConfigId), execParams: state.queryParams }, { responseType: 'blob' })
.then((res) => {
var fileName = getFileName(res.headers);
downloadByData(res.data as any, fileName);
+ })
+ .finally(() => {
+ state.isLoading = false;
});
});
};
diff --git a/Web/src/views/system/tenant/index.vue b/Web/src/views/system/tenant/index.vue
index b68c3e24..ef946126 100644
--- a/Web/src/views/system/tenant/index.vue
+++ b/Web/src/views/system/tenant/index.vue
@@ -29,7 +29,7 @@
-
+
新增
同步所有租户数据库
@@ -131,6 +131,8 @@ const state = reactive({
defaultSort: { field: 'orderNo', order: 'asc', descStr: 'desc' },
},
title: '',
+ /** 是否加载中 */
+ isLoading: false,
});
// 本地存储参数
@@ -261,8 +263,13 @@ const createTenantDb = (row: any) => {
type: 'warning',
})
.then(async () => {
- await getAPI(SysTenantApi).apiSysTenantInitTenantDbPost({ id: row.id });
- ElMessage.success('创建/更新租户数据库成功');
+ try {
+ state.isLoading = true;
+ await getAPI(SysTenantApi).apiSysTenantInitTenantDbPost({ id: row.id });
+ ElMessage.success('创建/更新租户数据库成功');
+ } finally {
+ state.isLoading = false;
+ }
})
.catch(() => {});
};