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
e65d9958
Commit
e65d9958
authored
Apr 28, 2021
by
喻春霖
Browse files
Options
Browse Files
Download
Plain Diff
fixed
parents
590d8cf3
ae9b59a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
statistics.html
...center-agent/src/main/resources/templates/statistics.html
+14
-8
No files found.
eden-authcenter-agent/src/main/resources/templates/statistics.html
View file @
e65d9958
...
@@ -220,7 +220,8 @@
...
@@ -220,7 +220,8 @@
var
option
=
{
var
option
=
{
tooltip
:
{
tooltip
:
{
trigger
:
"item"
,
trigger
:
"item"
,
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
,
position
:
[
20
,
20
],
},
},
legend
:
{
legend
:
{
icon
:
"circle"
,
icon
:
"circle"
,
...
@@ -297,10 +298,11 @@
...
@@ -297,10 +298,11 @@
if
(
result
.
data
.
os
.
length
)
{
if
(
result
.
data
.
os
.
length
)
{
result
.
data
.
os
.
sort
((
a
,
b
)
=>
{
return
b
.
count
-
a
.
count
})
result
.
data
.
os
.
sort
((
a
,
b
)
=>
{
return
b
.
count
-
a
.
count
})
}
}
var
others
=
{
name
:
'
others
'
,
value
:
0
};
var
others
=
{
name
:
'
其他
'
,
value
:
0
};
var
t
=
0
;
var
t
=
0
;
for
(
var
i
=
0
;
i
<
result
.
data
.
os
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
os
.
length
;
i
++
)
{
var
element
=
result
.
data
.
os
[
i
];
var
element
=
result
.
data
.
os
[
i
];
if
(
element
.
name
===
'unknown'
)
element
.
name
=
'未知'
if
(
element
.
name
===
'others'
||
t
>=
4
)
{
if
(
element
.
name
===
'others'
||
t
>=
4
)
{
others
.
value
+=
element
.
count
;
others
.
value
+=
element
.
count
;
continue
;
continue
;
...
@@ -310,17 +312,18 @@
...
@@ -310,17 +312,18 @@
dataSystem
.
push
({
value
:
element
.
count
,
name
:
element
.
name
})
dataSystem
.
push
({
value
:
element
.
count
,
name
:
element
.
name
})
}
}
if
(
others
.
value
)
{
if
(
others
.
value
)
{
legendSystem
.
push
(
'
others
'
);
legendSystem
.
push
(
'
其他
'
);
dataSystem
.
push
(
others
)
dataSystem
.
push
(
others
)
}
}
if
(
result
.
data
.
browser
.
length
)
{
if
(
result
.
data
.
browser
.
length
)
{
result
.
data
.
browser
.
sort
((
a
,
b
)
=>
{
return
b
.
count
-
a
.
count
})
result
.
data
.
browser
.
sort
((
a
,
b
)
=>
{
return
b
.
count
-
a
.
count
})
}
}
others
=
{
name
:
'
others
'
,
value
:
0
};
others
=
{
name
:
'
其他
'
,
value
:
0
};
t
=
0
;
t
=
0
;
for
(
var
i
=
0
;
i
<
result
.
data
.
browser
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
browser
.
length
;
i
++
)
{
var
element
=
result
.
data
.
browser
[
i
];
var
element
=
result
.
data
.
browser
[
i
];
if
(
element
.
name
===
'unknown'
)
element
.
name
=
'未知'
if
(
element
.
name
===
'others'
||
t
>=
4
)
{
if
(
element
.
name
===
'others'
||
t
>=
4
)
{
others
.
value
+=
element
.
count
;
others
.
value
+=
element
.
count
;
continue
;
continue
;
...
@@ -330,7 +333,7 @@
...
@@ -330,7 +333,7 @@
dataBrowser
.
push
({
value
:
element
.
count
,
name
:
element
.
name
})
dataBrowser
.
push
({
value
:
element
.
count
,
name
:
element
.
name
})
}
}
if
(
others
.
value
)
{
if
(
others
.
value
)
{
legendBroswer
.
push
(
'
others
'
);
legendBroswer
.
push
(
'
其他
'
);
dataBrowser
.
push
(
others
)
dataBrowser
.
push
(
others
)
}
}
...
@@ -338,7 +341,8 @@
...
@@ -338,7 +341,8 @@
var
optionBrowser
=
{
var
optionBrowser
=
{
tooltip
:
{
tooltip
:
{
trigger
:
"item"
,
trigger
:
"item"
,
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
,
position
:
[
20
,
20
],
},
},
legend
:
{
legend
:
{
icon
:
"circle"
,
icon
:
"circle"
,
...
@@ -386,7 +390,8 @@
...
@@ -386,7 +390,8 @@
var
optionSystem
=
{
var
optionSystem
=
{
tooltip
:
{
tooltip
:
{
trigger
:
"item"
,
trigger
:
"item"
,
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
,
position
:
[
20
,
20
],
},
},
legend
:
{
legend
:
{
icon
:
"circle"
,
icon
:
"circle"
,
...
@@ -587,7 +592,8 @@
...
@@ -587,7 +592,8 @@
var
optionUserType
=
{
var
optionUserType
=
{
tooltip
:
{
tooltip
:
{
trigger
:
"item"
,
trigger
:
"item"
,
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
formatter
:
"{a} <br/>{b}: {c}人次 ({d}%)"
,
position
:
[
20
,
20
],
},
},
legend
:
{
legend
:
{
icon
:
"circle"
,
icon
:
"circle"
,
...
...
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