fix:修改服务器监控页面
This commit is contained in:
parent
271ce33e16
commit
f819b4fa0c
|
@ -329,8 +329,8 @@
|
|||
<div class="gauge-content" id="memory"></div>
|
||||
</a-col>
|
||||
<a-col class="gutter-row" :span="8">
|
||||
<BoxTitle title="LOADS"></BoxTitle>
|
||||
<div class="gauge-content" id="loads"></div>
|
||||
<BoxTitle title="RESPONSE"></BoxTitle>
|
||||
<div class="gauge-content" id="responseSuccessRate"></div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
|
@ -488,11 +488,11 @@ export default {
|
|||
this.$message.warning('This operation fails. Contact your system administrator')
|
||||
}
|
||||
})
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
this.drawGuageLoads()
|
||||
}, 0)
|
||||
})
|
||||
// this.$nextTick(() => {
|
||||
// setTimeout(() => {
|
||||
// this.drawGuageLoads()
|
||||
// }, 0)
|
||||
// })
|
||||
},
|
||||
methods: {
|
||||
// Echarts (时间线)
|
||||
|
@ -614,6 +614,7 @@ export default {
|
|||
this.drawGuageCpu()
|
||||
this.drawGuageMemory()
|
||||
this.drawDisk()
|
||||
this.drawGuageLoads()
|
||||
} else {
|
||||
this.$message.warning('This operation fails. Contact your system administrator')
|
||||
}
|
||||
|
@ -1077,7 +1078,7 @@ export default {
|
|||
})
|
||||
},
|
||||
drawGuageLoads() {
|
||||
this.guageLoads = echarts.init(document.getElementById('loads'))
|
||||
this.guageLoads = echarts.init(document.getElementById('responseSuccessRate'))
|
||||
let option = {
|
||||
series: [
|
||||
{
|
||||
|
@ -1130,7 +1131,7 @@ export default {
|
|||
},
|
||||
data: [
|
||||
{
|
||||
value: 20,
|
||||
value: this.detailInfo.responseSuccessRate || 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -154,7 +154,7 @@ export default {
|
|||
this.chartDatas.forEach(async (item) => {
|
||||
const params = {
|
||||
itemId: item.value,
|
||||
itemType: 0,
|
||||
itemType: item.valueType,
|
||||
start: this.queryParams.startDate,
|
||||
end: this.queryParams.endDate,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user