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

duizhaopin_ui
duan 2 years ago
parent ede8408dd3
commit 2f93ee1748

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

Loading…
Cancel
Save