feat(src/views/reagent/mainoverview): 给环境监控图添加loading效果

duizhaopin_ui
duan 2 years ago
parent ede8408dd3
commit 2f93ee1748

@ -37,7 +37,12 @@
</el-radio-group>
</div>
</div>
<div id="line" class="view" />
<div
id="line"
v-loading="loadingLineData"
class="view"
element-loading-text="拼命加载中"
/>
</div>
</div>
<div class="view-container-tr view-content">
@ -368,7 +373,8 @@ export default {
rloading: false,
client_id: null,
client_date: 1,
linechartData: []
linechartData: [],
loadingLineData: true
}
},
async created() {
@ -410,11 +416,12 @@ export default {
time_type: this.client_date,
obj_type: this.radio1
}
this.loadingLineData = true
get_monitoring_info(stringify(data)).then(
res => {
this.linechartData = res.data
}
)
).finally(() => { this.loadingLineData = false })
},
remainingPageChange(page) {
this.rpage = page

Loading…
Cancel
Save