From c54a8d05bb008902c397053f7dafdcbb2dff1f9f Mon Sep 17 00:00:00 2001 From: yaojian <1161995598@qq.com> Date: Thu, 12 Mar 2026 10:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=AD=90=E9=A1=B9=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/stuwork/activityinfo.ts | 14 +++++++++++++- src/views/stuwork/activityinfo/index.vue | 23 +++++++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/api/stuwork/activityinfo.ts b/src/api/stuwork/activityinfo.ts index d45ff47..6955d3d 100644 --- a/src/api/stuwork/activityinfo.ts +++ b/src/api/stuwork/activityinfo.ts @@ -69,11 +69,23 @@ export const importSub = (id: string, file: File) => { const formData = new FormData(); formData.append('file', file); return request({ - url: `/stuwork/activityinfo/importSub/${id}`, + url: '/stuwork/file/importActivityInfoSub', method: 'post', data: formData, + params: { activityInfoId: id }, headers: { 'Content-Type': 'multipart/form-data', }, }); }; + +/** + * 下载活动子项导入模板 + */ +export const downloadImportTemplate = () => { + return request({ + url: '/stuwork/file/getActivityInfoSubImportTemplate', + method: 'get', + responseType: 'blob', + }); +}; diff --git a/src/views/stuwork/activityinfo/index.vue b/src/views/stuwork/activityinfo/index.vue index b456d6a..0d994cc 100644 --- a/src/views/stuwork/activityinfo/index.vue +++ b/src/views/stuwork/activityinfo/index.vue @@ -123,7 +123,10 @@
将文件拖到此处,或点击上传