From c64c0fc8e44427a3c24886ee0992640ddcded9a0 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 4 Mar 2024 17:07:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/badGasInfo/BadGasInfo.vue | 3 +-- .../content/windPressure/WindPressureList.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/content/badGasInfo/BadGasInfo.vue b/src/components/content/badGasInfo/BadGasInfo.vue index 9381cda..cfe20da 100644 --- a/src/components/content/badGasInfo/BadGasInfo.vue +++ b/src/components/content/badGasInfo/BadGasInfo.vue @@ -7,12 +7,11 @@
{{ loading === 0 ? '加载中...' : '暂无数据~' }} -
+
diff --git a/src/components/content/windPressure/WindPressureList.vue b/src/components/content/windPressure/WindPressureList.vue index e9f1fb7..ea62c89 100644 --- a/src/components/content/windPressure/WindPressureList.vue +++ b/src/components/content/windPressure/WindPressureList.vue @@ -15,8 +15,8 @@
-
- 加载中... +
+ {{ loadingText }}
@@ -51,6 +51,7 @@ const props = defineProps({ winData: Array, loading: Number, }); +const loadingText = ref('加载中...') const chooseDayRef = ref(); const chooseMonthRef = ref(); const windSort = ref(1) @@ -89,8 +90,13 @@ const getWindInfo = (equipmentId, type = 'day', time = '') => { nextTick(() => { initChart(res.data.dates, res.data.values) }) + }else { + loadingText.value = res.msg } }) + nextTick(() => { + loadingText.value = '加载中...' + }) } const handleOpenChart = (item) => {