Commit 4fb78f37 authored by 曹雷's avatar 曹雷

feat: 高峰最大值

parent a63d99d9
...@@ -102,8 +102,21 @@ ...@@ -102,8 +102,21 @@
</div> </div>
<div style="height: 50%; display: flex;"> <div style="height: 50%; display: flex;">
<div class="statistics-content-item" style="width: 50%; height: 100%;"> <div class="statistics-content-item" style="width: 50%; height: 100%;">
<p class="statistics-content-item-title">用户访问高峰时段</p> <div style="display: flex; justify-content: space-between;">
<p class="statistics-content-item-title-sub"><span v-text="formatTime(-timeRange)"></span><span v-text="formatTime(0)"></span> | 最近<span v-text="timeRange"></span></p> <div>
<p class="statistics-content-item-title">用户访问高峰时段</p>
<p class="statistics-content-item-title-sub"><span v-text="formatTime(-timeRange)"></span><span v-text="formatTime(0)"></span> | 最近<span v-text="timeRange"></span></p>
</div>
<div v-if="maxHour" style="margin-top: 32px; margin-right: 20px;">
<p>
最高:
<span v-text="maxHour.count" style="font-size: 18px; font-weight: 900; "></span>
人次
<span v-text="maxHour.yearMonthDay"></span>
<span v-text="maxHour.hour"></span>:00
</p>
</div>
</div>
<div id="pv" style="width: 95%;height: calc(100% - 65px); margin: 5px 5px;"></div> <div id="pv" style="width: 95%;height: calc(100% - 65px); margin: 5px 5px;"></div>
</div> </div>
<div class="statistics-content-item" style="width: 50%; height: 100%;"> <div class="statistics-content-item" style="width: 50%; height: 100%;">
...@@ -197,6 +210,7 @@ ...@@ -197,6 +210,7 @@
avgTeacherCount: 0, avgTeacherCount: 0,
avgStudentCount: 0, avgStudentCount: 0,
avgOtherCount: 0, avgOtherCount: 0,
maxHour: null,
}, },
mounted: function () { mounted: function () {
this.init(); this.init();
...@@ -620,7 +634,8 @@ ...@@ -620,7 +634,8 @@
$.ajax({ $.ajax({
url: baseUrl + '/statistics/auth_pick_times?' + _this.getParams( url: baseUrl + '/statistics/auth_pick_times?' + _this.getParams(
params), params),
success: function (result) { success: function (result) {
_this.maxHour = result.maxHour;
optionPV.xAxis.data = result.hourList; optionPV.xAxis.data = result.hourList;
optionPV.series[0].data = result.dataList; optionPV.series[0].data = result.dataList;
var myChartPV = echarts.init(document.getElementById( var myChartPV = echarts.init(document.getElementById(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment