From 8b666c73d249fcb81b666b03ec638a8bb7357c45 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 09 八月 2025 17:02:12 +0800
Subject: [PATCH] 修改文字

---
 src/views/flowmgr/programexport.vue |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/views/flowmgr/programexport.vue b/src/views/flowmgr/programexport.vue
index 0a18d27..140c79b 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>
@@ -63,13 +63,17 @@
                 menu: false,
                 dialogClickModal: false,
                 column: [
+					{
+                        label: '娴佺▼鏍囬',
+                        prop: 'title',
+                    },
                     {
                         label: '鍥惧彿',
-                        prop: 'partNo',
+                        prop: 'drawingNo',
                     },
                     {
                         label: '鍥惧彿鐗堟',
-                        prop: 'partNoEdition',
+                        prop: 'drawingNoEdition',
                     },
                     {
                         label: '宸ュ簭鍚嶇О',
@@ -81,7 +85,7 @@
                         search: true,
                     },
                     {
-                        label: '閫氳繃鏃堕棿',
+                        label: '瀹屾垚鏃堕棿',
                         prop: 'createTime',
                     },
                     {
@@ -171,14 +175,19 @@
                 type: 'warning',
             }).then(() => {
                 console.log(this.selection)
+				if(this.selection == null || this.selection.length == 0){
+					this.$message.error('璇疯嚦灏戦�夋嫨涓�鏉″鍑�');
+					return;
+				}
                 NProgress.start();
                 exportBlobPost(
                     `/blade-mdm/program/exchange/export-dnc`,
                     {},
                     {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, `${name}`);
                     NProgress.done();
                 });
             });

--
Gitblit v1.9.3