From 54f982d1442c97cdbd60cc87c13753bc9a8040e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?home=E5=AD=99?= <1162067978@qq.com> Date: Wed, 6 Mar 2024 15:30:50 +0800 Subject: [PATCH] 1 --- src/views/page/dataAnalysis.vue | 7 +++++++ src/views/page/historyData.vue | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/views/page/dataAnalysis.vue b/src/views/page/dataAnalysis.vue index db35c55..5f2fc9f 100644 --- a/src/views/page/dataAnalysis.vue +++ b/src/views/page/dataAnalysis.vue @@ -90,6 +90,12 @@ export default { this.dateRange = [start, end] }, dataInit() { + this.loading = this.$loading({ + lock: true, + text: '加载中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); if (this.active == 0) { this.timeInit() } else if (this.active == 1) { @@ -129,6 +135,7 @@ export default { isEquipment: store.equipmentList[index - 1].deviceName == 30 ? 1 : 0 } this.api.selFsTime(data).then(res => { + this.loading.close() if (res.data.code == 200) { var chartsData = res.data.data.data.map(item => { return { diff --git a/src/views/page/historyData.vue b/src/views/page/historyData.vue index 9b12b3f..b1ec55c 100644 --- a/src/views/page/historyData.vue +++ b/src/views/page/historyData.vue @@ -59,6 +59,7 @@