处理数据接收状态窗口滚动条的问题

数据接受状态弹窗重新打开之后 loading 效果不明显,添加蒙版
This commit is contained in:
renpy 2023-08-30 10:37:36 +08:00
parent 5b6428bac0
commit cbc576d15f
3 changed files with 8 additions and 4 deletions

View File

@ -75,6 +75,5 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.custom-chart { .custom-chart {
height: 100% !important; height: 100% !important;
min-height: 600px;
} }
</style> </style>

View File

@ -236,6 +236,7 @@
<RealTimeDataChart ref="realtimeChartRef" :spinning="spinLoading" :list="statusList" :scale-settings="initialDataRecieveSettings" /> <RealTimeDataChart ref="realtimeChartRef" :spinning="spinLoading" :list="statusList" :scale-settings="initialDataRecieveSettings" />
<resize-observer @notify="handleResize" /> <resize-observer @notify="handleResize" />
</template> </template>
<div v-show="maskVisi" style="z-index: 1;position: absolute;top: 0;left: 0;width:100%;height: 100%;background: rgba(0, 0, 0, .45);"></div>
</div> </div>
<!-- 右侧图表展示栏结束 --> <!-- 右侧图表展示栏结束 -->
</div> </div>
@ -420,7 +421,8 @@ export default {
markerList: [], // marker markerList: [], // marker
showPane: true, showPane: true,
spinLoading: false spinLoading: false,
maskVisi: false
} }
}, },
created() { created() {
@ -727,6 +729,7 @@ export default {
// //
async getDataRecieveStatusList() { async getDataRecieveStatusList() {
this.maskVisi = true
this.spinLoading = true this.spinLoading = true
try { try {
this.isGettingStatusList = true this.isGettingStatusList = true
@ -736,6 +739,7 @@ export default {
userId: this.$store.getters.userInfo.id userId: this.$store.getters.userInfo.id
} }
) )
this.maskVisi = false
this.spinLoading = false this.spinLoading = false
if (success) { if (success) {
const statusList = [] const statusList = []
@ -755,6 +759,7 @@ export default {
this.$message.error(message) this.$message.error(message)
} }
} catch (error) { } catch (error) {
this.maskVisi = false
this.spinLoading = false this.spinLoading = false
console.error(error) console.error(error)
} finally { } finally {

View File

@ -1,5 +1,5 @@
<template> <template>
<div style="position: relative;"> <div>
<!-- 图例 --> <!-- 图例 -->
<div class="legend"> <div class="legend">
<div <div
@ -15,7 +15,7 @@
</div> </div>
<!-- 图例结束 --> <!-- 图例结束 -->
<custom-chart ref="customChartRef" :option="option" :height="list.length * 295"></custom-chart> <custom-chart ref="customChartRef" :option="option" :height="list.length * 295"></custom-chart>
<a-spin style="position: absolute;top: 45%;left: 48%;" :spinning="spinning" /> <a-spin style="z-index: 11;position: absolute;top: 45%;left: 48%;" :spinning="spinning" />
</div> </div>
</template> </template>