From 268b3e77f3beaba03a1273d643d8aa4fa5db1c10 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 16 十月 2026 13:08:27 +0800
Subject: [PATCH] feat: 全量列表页接入 Excel 导入按钮与共享弹窗
---
src/api/system/notice/index.ts | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/api/system/notice/index.ts b/src/api/system/notice/index.ts
index 5ae8885..38b0329 100644
--- a/src/api/system/notice/index.ts
+++ b/src/api/system/notice/index.ts
@@ -57,3 +57,16 @@
export function pushNotice(id: number) {
return requestClient.post(`/system/notice/push?id=${id}`);
}
+
+/** 涓嬭浇閫氱煡鍏憡瀵煎叆妯℃澘 */
+export function importNoticeTemplate() {
+ return requestClient.download('/system/notice/get-import-template');
+}
+
+/** 瀵煎叆閫氱煡鍏憡 */
+export function importNotice(file: File, updateSupport: boolean) {
+ return requestClient.upload('/system/notice/import', {
+ file,
+ updateSupport,
+ });
+}
--
Gitblit v1.9.3