Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sh-ds
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李良停
sh-ds
Commits
4fb78f37
Commit
4fb78f37
authored
May 10, 2022
by
曹雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 高峰最大值
parent
a63d99d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
statistics.html
...center-agent/src/main/resources/templates/statistics.html
+18
-3
No files found.
eden-authcenter-agent/src/main/resources/templates/statistics.html
View file @
4fb78f37
...
...
@@ -102,8 +102,21 @@
</div>
<div
style=
"height: 50%; display: flex;"
>
<div
class=
"statistics-content-item"
style=
"width: 50%; height: 100%;"
>
<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
style=
"display: flex; justify-content: space-between;"
>
<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>
<div
class=
"statistics-content-item"
style=
"width: 50%; height: 100%;"
>
...
...
@@ -197,6 +210,7 @@
avgTeacherCount
:
0
,
avgStudentCount
:
0
,
avgOtherCount
:
0
,
maxHour
:
null
,
},
mounted
:
function
()
{
this
.
init
();
...
...
@@ -620,7 +634,8 @@
$
.
ajax
({
url
:
baseUrl
+
'/statistics/auth_pick_times?'
+
_this
.
getParams
(
params
),
success
:
function
(
result
)
{
success
:
function
(
result
)
{
_this
.
maxHour
=
result
.
maxHour
;
optionPV
.
xAxis
.
data
=
result
.
hourList
;
optionPV
.
series
[
0
].
data
=
result
.
dataList
;
var
myChartPV
=
echarts
.
init
(
document
.
getElementById
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment