From dc3fc550fe292043cc452dc9aeb0c8a1eeab3b30 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期四, 24 九月 2026 16:54:39 +0800
Subject: [PATCH] feat: 新增多模块导入导出入口
---
src/views/basicData/product/index.vue | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index bb1dccf..deb3162 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -81,6 +81,10 @@
plain>
鍒犻櫎
</el-button>
+ <el-button @click="handleExportModels"
+ style="margin-left: 10px">
+ 瀵煎嚭
+ </el-button>
</div>
<PIMTable rowKey="id"
:column="tableColumn"
@@ -573,6 +577,19 @@
proxy.$modal.msg("宸插彇娑�");
});
};
+ // 瀵煎嚭褰撳墠浜у搧鐨勮鏍煎瀷鍙�
+ const handleExportModels = () => {
+ if (!currentId.value) {
+ proxy.$modal.msgWarning("璇峰厛閫夋嫨浜у搧");
+ return;
+ }
+ proxy.download(
+ "/basic/product/exportModel",
+ { id: currentId.value },
+ "浜у搧瑙勬牸鍨嬪彿.xlsx"
+ );
+ };
+
const debounce = (fn, delay = 300) => {
let timer;
return (...args) => {
--
Gitblit v1.9.3