fix: 增加loading
This commit is contained in:
parent
25792a7c06
commit
0c8089063f
|
@ -312,6 +312,7 @@ export default {
|
||||||
start: this.queryParams.startDate,
|
start: this.queryParams.startDate,
|
||||||
end: this.queryParams.endDate,
|
end: this.queryParams.endDate,
|
||||||
}
|
}
|
||||||
|
const hide = this.$message.loading('loading...', 0)
|
||||||
getAction('/systemMonitor/queryHostDetails', params).then((res) => {
|
getAction('/systemMonitor/queryHostDetails', params).then((res) => {
|
||||||
this.list = res.result
|
this.list = res.result
|
||||||
this.listData = {
|
this.listData = {
|
||||||
|
@ -373,6 +374,8 @@ export default {
|
||||||
this.drawRanked()
|
this.drawRanked()
|
||||||
this.drawProcesCpu()
|
this.drawProcesCpu()
|
||||||
this.drawProcesMenbry()
|
this.drawProcesMenbry()
|
||||||
|
}).finally(() => {
|
||||||
|
hide()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getBeforeHours(num) {
|
getBeforeHours(num) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user