From 25f79e9d61593818d517bf8d0431c0926a1c5458 Mon Sep 17 00:00:00 2001 From: zzy Date: Mon, 20 Apr 2026 16:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=8C=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/community/community/index.ts | 4 + .../components/CommunityImportForm.vue | 145 ++++++++++++++++++ src/views/community/community/index.vue | 19 ++- 3 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 src/views/community/community/components/CommunityImportForm.vue diff --git a/src/api/community/community/index.ts b/src/api/community/community/index.ts index 6844d87..e611542 100644 --- a/src/api/community/community/index.ts +++ b/src/api/community/community/index.ts @@ -45,5 +45,9 @@ export const CommunityApi = { exportCommunity: async (params) => { return await request.download({ url: `/community/community/export-excel`, params }) + }, + + importCommunityTemplate: async () => { + return await request.download({ url: `/community/community/get-import-template` }) } } diff --git a/src/views/community/community/components/CommunityImportForm.vue b/src/views/community/community/components/CommunityImportForm.vue new file mode 100644 index 0000000..800022a --- /dev/null +++ b/src/views/community/community/components/CommunityImportForm.vue @@ -0,0 +1,145 @@ + + + diff --git a/src/views/community/community/index.vue b/src/views/community/community/index.vue index 3c9f8d9..84b4a78 100644 --- a/src/views/community/community/index.vue +++ b/src/views/community/community/index.vue @@ -57,6 +57,14 @@ > 新增 + + 导入 + + + +