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) => {