fix : 细节优化
This commit is contained in:
@@ -7,12 +7,11 @@
|
||||
<div class="loading" v-if="loading===0"></div>
|
||||
{{ loading === 0 ? '加载中...' : '暂无数据~' }}
|
||||
</div>
|
||||
<div v-else class="info-list">
|
||||
<div v-else class="info-list" @click="handleOpenChart">
|
||||
<gas-info-item
|
||||
v-for="item in badGasList"
|
||||
:key="item.equipmentId"
|
||||
:gasInfo="item"
|
||||
@click="handleOpenChart"
|
||||
/>
|
||||
</div>
|
||||
<div class="digital-tunnel">
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
<div class="left-top-icon"></div>
|
||||
<div class="right-top-icon"></div>
|
||||
<div class="loading-block" v-if="showLoading">
|
||||
<div class="loading"></div>
|
||||
<span>加载中...</span>
|
||||
<div class="loading" v-if="loadingText==='加载中...'"></div>
|
||||
<span>{{ loadingText }}</span>
|
||||
</div>
|
||||
<div class="chat-dialog" v-else>
|
||||
<div id="container"></div>
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user