30716
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<p>离线</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<h3>{{ onlineRate * 100 || 0 }}%</h3>
|
||||
<h3>{{ onlineRateNum || 0 }}%</h3>
|
||||
<p>在线率</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,6 +63,7 @@ export default {
|
||||
count: {},
|
||||
Echart: null,
|
||||
onlineRate: '',
|
||||
onlineRateNum: 0,
|
||||
offlineRate: ''
|
||||
}
|
||||
},
|
||||
@@ -95,6 +96,7 @@ export default {
|
||||
this.list = res.data.list
|
||||
this.count = res.data.count
|
||||
this.onlineRate = (this.count.online / this.count.sum).toFixed(2)
|
||||
this.onlineRateNum = parseInt(this.onlineRate * 100)
|
||||
this.offlineRate = (1 - this.onlineRate).toFixed(2)
|
||||
this.initEchart()
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<p>离线</p>
|
||||
</div>
|
||||
<div class="item">
|
||||
<h3>{{ onlineRate * 100 || 0 }}%</h3>
|
||||
<h3>{{ onlineRateNum || 0 }}%</h3>
|
||||
<p>在线率</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -81,6 +81,7 @@ export default {
|
||||
count: {},
|
||||
Echart: null,
|
||||
onlineRate: '',
|
||||
onlineRateNum: 0,
|
||||
offlineRate: ''
|
||||
}
|
||||
},
|
||||
@@ -113,6 +114,7 @@ export default {
|
||||
this.list = res.data.list
|
||||
this.count = res.data.count || 0
|
||||
this.onlineRate = (this.count.online / this.count.sum).toFixed(2)
|
||||
this.onlineRateNum = parseInt(this.onlineRate * 100)
|
||||
this.offlineRate = (1 - this.onlineRate).toFixed(2)
|
||||
this.initEchart()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user