From 15c966fc40c0ddd0fb407dec1da8baef93d64391 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 08 七月 2025 20:47:38 +0800
Subject: [PATCH] 更新导出名称

---
 src/views/flowmgr/programexport.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/flowmgr/programexport.vue b/src/views/flowmgr/programexport.vue
index dee983b..dfc6062 100644
--- a/src/views/flowmgr/programexport.vue
+++ b/src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2025-06-20 20:48:17
  * @LastEditors: gaoshp
- * @LastEditTime: 2025-07-07 23:00:25
+ * @LastEditTime: 2025-07-08 20:46:33
  * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
 -->
 <template>
@@ -177,8 +177,9 @@
                     {},
                     {ids: this.selection.map(item => item.id)},
                 ).then(res => {
-                    console.log(res);
-                    downloadFile(res.data, `瀵煎嚭DNC${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.zip`);
+                    let name = res.headers['content-disposition'].split('filename=')[1]
+                    console.log(res.headers['content-disposition'].split('filename=')[1]);
+                    downloadFile(res.data, `瀵煎嚭DNC-${name}`);
                     NProgress.done();
                 });
             });

--
Gitblit v1.9.3