From af4f913751c08fd6ef70cb183de2fb3c604bab38 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 31 十月 2025 16:33:15 +0800
Subject: [PATCH] 人力资源-添加导出功能

---
 src/views/collaborativeApproval/notificationManagement/meetSetting/index.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/views/collaborativeApproval/notificationManagement/meetSetting/index.vue b/src/views/collaborativeApproval/notificationManagement/meetSetting/index.vue
index c290be4..371bde7 100644
--- a/src/views/collaborativeApproval/notificationManagement/meetSetting/index.vue
+++ b/src/views/collaborativeApproval/notificationManagement/meetSetting/index.vue
@@ -3,10 +3,13 @@
     <!-- 椤甸潰鏍囬 -->
     <div class="page-header">
       <h2>浼氳瀹よ缃�</h2>
-      <el-button type="primary" @click="handleAdd">
+      <div>
+        <el-button @click="handleExport" style="margin-right: 10px">瀵煎嚭</el-button>
+        <el-button type="primary" @click="handleAdd">
         <el-icon><Plus /></el-icon>
         鏂板浼氳瀹�
-      </el-button>
+        </el-button>
+      </div>
     </div>
 
     <!-- 鎼滅储鍖哄煙 -->
@@ -106,7 +109,7 @@
 </template>
 
 <script setup>
-import { ref, reactive, onMounted } from 'vue'
+import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { Plus } from '@element-plus/icons-vue'
 import Pagination from '@/components/Pagination/index.vue'
@@ -271,6 +274,12 @@
   })
 }
 
+// 瀵煎嚭
+const { proxy } = getCurrentInstance()
+const handleExport = () => {
+  proxy.download('/meeting/export', { ...searchForm }, '浼氳瀹よ缃�.xlsx')
+}
+
 // 椤甸潰鍔犺浇鏃惰幏鍙栨暟鎹�
 onMounted(() => {
   getList()

--
Gitblit v1.9.3