From 3574d585300e449ffccd6d7b7b523c4ba1477f0e Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 09 九月 2025 18:24:17 +0800
Subject: [PATCH] 增加异常文件统计

---
 src/views/statreport/machinefileexception.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/views/statreport/machinefileexception.vue b/src/views/statreport/machinefileexception.vue
index 50136c9..7b0a4e3 100644
--- a/src/views/statreport/machinefileexception.vue
+++ b/src/views/statreport/machinefileexception.vue
@@ -14,11 +14,6 @@
                 
                 <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
             </template>
-            <template #menu="scope">
-                <el-button type="primary" text size="default"
-                    @click.stop="handleAction(scope.row, scope.index)">瀹℃壒
-                </el-button>
-            </template>
         </avue-crud>
     </basic-container>
 </template>
@@ -70,7 +65,8 @@
                     },
                     {
                         label: '寮傚父淇℃伅',
-                        prop: 'exceptionType',
+                        prop: 'exceptionMsg',
+                        /*
                         render: ({row}) => {
                             
                             var txt = '鏈煡';
@@ -91,7 +87,7 @@
                                     txt = '鏈煡';
                             }
                             return txt;
-                        }
+                        }*/
                     },
                     {
                         label: '鏃堕棿', //鏂囦欢鍒拌揪鏃堕棿
@@ -114,10 +110,11 @@
         },
         
         exportExcel() {
+            /*
             if (this.selectedList.length === 0) {
                 this.$message.warning('璇峰厛閫夋嫨闇�瑕佸鍑虹殑鏁版嵁');
                 return;
-            }
+            }*/
             this.$confirm('鏄惁瀵煎嚭?', '鎻愮ず', {
                 confirmButtonText: '纭畾',
                 cancelButtonText: '鍙栨秷',
@@ -125,9 +122,13 @@
             }).then(() => {
                 NProgress.start();
                 exportBlob(
-                    `/blade-mdm/machinefile/filehandle/export-excel?${this.website.tokenHeader}=${getToken()}`
+                    `/blade-mdm/statreport/exceptionfile/export-excel?${this.website.tokenHeader}=${getToken()}`
                 ).then(res => {
-                    downloadXls(res.data, `鏈哄簥鍥炰紶绋嬪簭鍒楄〃${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
+                    let name = res.headers['content-disposition'].split('filename=')[1]
+					name = decodeURI(name)
+						//console.log(res.headers['content-disposition'].split('filename=')[1]);
+					downloadXls(res.data, `${name}`);
+                    //downloadXls(res.data, `鏈哄簥鍥炰紶绋嬪簭鍒楄〃${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
                     NProgress.done();
                 });
             });

--
Gitblit v1.9.3