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/dict/data/index.ts | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/api/system/dict/data/index.ts b/src/api/system/dict/data/index.ts
index 28f94d5..8c26bae 100644
--- a/src/api/system/dict/data/index.ts
+++ b/src/api/system/dict/data/index.ts
@@ -66,3 +66,16 @@
export function exportDictData(params: any) {
return requestClient.download('/system/dict-data/export-excel', { params });
}
+
+// 涓嬭浇瀛楀吀鏁版嵁瀵煎叆妯℃澘
+export function importDictDataTemplate() {
+ return requestClient.download('/system/dict-data/get-import-template');
+}
+
+// 瀵煎叆瀛楀吀鏁版嵁
+export function importDictData(file: File, updateSupport: boolean) {
+ return requestClient.upload('/system/dict-data/import', {
+ file,
+ updateSupport,
+ });
+}
--
Gitblit v1.9.3