From 84de56cb6490170b64a48c49b149ffab03a2350b Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期二, 20 一月 2026 22:40:56 +0800
Subject: [PATCH] 修改了代码

---
 src/views/archiveManager/index.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/views/archiveManager/index.vue b/src/views/archiveManager/index.vue
index 0719d6f..e7b204f 100644
--- a/src/views/archiveManager/index.vue
+++ b/src/views/archiveManager/index.vue
@@ -995,6 +995,7 @@
   name: "InfoManager",
   data() {
     return {
+      recId: '',
       openSearch: false,
       totalUser: 0,
       visibleUser:false,
@@ -1550,16 +1551,17 @@
        var id = row.id
 
              id = Number(id)
-
+            var recordStrId = row.recordId
        var recordId = row.recordId
    this.download('/system/materials/exportBack/'+id+'/'+recordId, {
 
-   }, `澶囪�冭〃_${new Date().getTime()}.pdf`)
+   }, recordStrId +` 澶囪�冭〃.pdf`)
      },
 
      /*瀵煎嚭鍗峰唴鐩綍*/
      JuanInfo(row)
      {
+
        var id = row.id
        console.log(row.pageCount)
       if(row.pageCount==null)
@@ -1572,7 +1574,7 @@
            var recordId = row.recordId
        this.download('/system/materials/exportJuan/'+id, {
 
-       }, `鍗峰唴鐩綍_${new Date().getTime()}.xls`)
+       }, recordId+` 鍗峰唴鐩綍.xls`)
      },
      /*瀵煎嚭妗堝嵎灏侀潰*/
      pageInfo(row)
@@ -1584,7 +1586,7 @@
            var recordId = row.recordId
        this.download('/system/materials/exportPageInfo/'+id+'/'+recordId, {
 
-       }, `妗堝嵎灏侀潰_${new Date().getTime()}.xls`)
+       },  recordId+` 妗堝嵎灏侀潰.xls`)
      },
     handleInfo(row)
     {
@@ -1893,6 +1895,7 @@
       const id = row.id || this.ids;
      // alert(id)
       this.recordId = id;
+      this.recId = row.recordId
       this.$modal.loading('姝e湪鑾峰彇Excel鏂囦欢锛岃绋嶅��...');
 
       // 浠庡悗绔幏鍙朎xcel鏂囦欢
@@ -2122,6 +2125,7 @@
 
     /** 澶勭悊涓嬭浇鎸夐挳鐐瑰嚮 */
     handleDownloadClick() {
+
       if (this.currentExcelUrl) {
         // 鑾峰彇鐢ㄦ埛閫夋嫨鐨勯�夐」
         const { includeQrCode, selectedAnnotations } = this.excelOptions;
@@ -2137,12 +2141,12 @@
            link.href = this.currentExcelUrl;
 
            // 鏋勫缓鏂囦欢鍚嶏紝鍖呭惈閫夐」淇℃伅
-           let filename = `record_${this.currentExcelId}`;
-           if (includeQrCode) filename += '_qr';
+           let filename =this.recId+ ` 棰勬暣鐞哷;
+           //if (includeQrCode) filename += '_qr';
            // if (selectedAnnotations.length > 0) {
            //   filename += `_anno${selectedAnnotations.join('')}`;x
            // }
-           filename += `_${new Date().getTime()}.xls`;
+           filename += `.xls`;
 
            link.download = filename;
 
@@ -2466,7 +2470,7 @@
             const url = URL.createObjectURL(blob);
             const link = document.createElement('a');
             link.href = url;
-            link.download = `record_${id}_${new Date().getTime()}.xls`;
+            link.download = `棰勬暣鐞�.xls`;
             document.body.appendChild(link);
             link.click();
             document.body.removeChild(link);

--
Gitblit v1.9.1