From f80451e4762f87c319de61af8b284810f2a072da Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 03 六月 2025 17:12:47 +0800
Subject: [PATCH] 1、设备TEEP页面大数据导出按钮新增loading提示 2、更新打包IP地址文件

---
 src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
index 55d1dd3..7b3fa34 100644
--- a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
+++ b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
@@ -97,7 +97,10 @@
                 <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
                 <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button>
                 <a-button type="primary" @click="exportExcel" icon="download">瀵煎嚭</a-button>
-                <a-button type="primary" @click="exportLongTimeExcel('璁惧TEEP')" icon="download">澶ф暟鎹鍑�</a-button>
+                <a-button type="primary" @click="exportLongTimeExcel('璁惧TEEP')" icon="download"
+                          :loading="longTimeExportButtonLoading">
+                  澶ф暟鎹鍑�
+                </a-button>
                 <a-button type="primary" @click="handleShowFeedbackModal" icon="plus" v-has="'efficiency:feedback'">
                   寮傚父鍙嶉
                 </a-button>
@@ -294,7 +297,8 @@
         everyRequestDataSize: 15,// 姣忔璇锋眰鐨勫垪琛ㄩ」鏁扮洰
         toggleSearchStatus: false,
         modalVisible: false,// 寮傚父鍙嶉寮圭獥鏄惁寮瑰嚭
-        preSelectFirstDate: null
+        preSelectFirstDate: null,
+        longTimeExportButtonLoading: false
       }
     },
     props: { nodeTree: '', Type: '', nodePeople: '' },
@@ -528,6 +532,7 @@
           startTime: moment(this.dates[0]).format('YYYYMMDD'),
           endTime: moment(this.dates[1]).format('YYYYMMDD')
         }
+        this.longTimeExportButtonLoading = true
         downFile(this.url.exportLongTimeXlsUrl, param)
           .then((data) => {
             if (!data) {
@@ -551,6 +556,13 @@
               window.URL.revokeObjectURL(url) //閲婃斁鎺塨lob瀵硅薄
             }
           })
+          .finally(() => {
+            let timer = setTimeout(() => {
+              this.longTimeExportButtonLoading = false
+              clearTimeout(timer)
+              timer = null
+            }, 1000)
+          })
       },
       showIdentifying() {
         getAction(this.url.listByType, { type: 'lyl' }).then(res => {

--
Gitblit v1.9.3