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 ++++++++++++++-- ip | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ip b/ip index c7ef253..365d904 100644 --- a/ip +++ b/ip @@ -1,5 +1,5 @@ 鏈満: 127.0.0.1 -430:166.0.1.10 +430:195.0.1.10 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