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
642075d9
Commit
642075d9
authored
Jun 22, 2021
by
喻春霖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
3eba272e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
653 additions
and
599 deletions
+653
-599
statistics.html
...center-agent/src/main/resources/templates/statistics.html
+653
-599
No files found.
eden-authcenter-agent/src/main/resources/templates/statistics.html
View file @
642075d9
...
...
@@ -35,13 +35,13 @@
</head>
<body
style=
"background-color: rgb(244, 245, 245);"
>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a
href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<![endif]-->
<!-- Add your site or application content here -->
<div
id=
"app"
class=
"static"
>
<!-- Add your site or application content here -->
<div
id=
"app"
class=
"static"
>
<div
class=
"statistics-header"
>
<div
class=
"flex"
style=
"display: flex; align-items: center;"
>
<img
src=
"../static/img/Rlogo.png"
style=
"margin:5px 0; margin-left: 30px; width: 250px;"
alt=
""
>
...
...
@@ -130,9 +130,63 @@
</div>
</div>
</div>
</div>
</div>
<!-- iview使用了includes方法,兼容ie11 -->
<script>
if
(
!
Array
.
prototype
.
includes
)
{
Object
.
defineProperty
(
Array
.
prototype
,
'includes'
,
{
value
:
function
(
valueToFind
,
fromIndex
)
{
if
(
this
==
null
)
{
throw
new
TypeError
(
'"this" is null or not defined'
);
}
// 1. Let O be ? ToObject(this value).
var
o
=
Object
(
this
);
// 2. Let len be ? ToLength(? Get(O, "length")).
var
len
=
o
.
length
>>>
0
;
// 3. If len is 0, return false.
if
(
len
===
0
)
{
return
false
;
}
// 4. Let n be ? ToInteger(fromIndex).
// (If fromIndex is undefined, this step produces the value 0.)
var
n
=
fromIndex
|
0
;
// 5. If n ≥ 0, then
// a. Let k be n.
// 6. Else n
<
0
,
// a. Let k be len + n.
// b. If k
<
0
,
let
k
be
0
.
var
k
=
Math
.
max
(
n
>=
0
?
n
:
len
-
Math
.
abs
(
n
),
0
);
function
sameValueZero
(
x
,
y
)
{
return
x
===
y
||
(
typeof
x
===
'number'
&&
typeof
y
===
'number'
&&
isNaN
(
x
)
&&
isNaN
(
y
));
}
// 7. Repeat, while k
<
len
while
(
k
<
len
)
{
// a. Let elementK be the result of ? Get(O, ! ToString(k)).
// b. If SameValueZero(valueToFind, elementK) is true, return true.
if
(
sameValueZero
(
o
[
k
],
valueToFind
))
{
return
true
;
}
// c. Increase k by 1.
k
++
;
}
// 8. Return false
return
false
;
}
});
}
</script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
baseUrl
=
"/"
;
var
colorList
=
[
...
...
@@ -256,7 +310,7 @@
]
};
let
params
=
{
var
params
=
{
clientId
:
this
.
app
,
year
:
this
.
year
,
month
:
this
.
month
...
...
@@ -284,7 +338,7 @@
})
},
initAppEnv
:
function
()
{
let
params
=
{
var
params
=
{
clientId
:
this
.
app
,
year
:
this
.
year
,
month
:
this
.
month
...
...
@@ -296,7 +350,7 @@
var
legendSystem
=
[],
dataSystem
=
[],
legendBroswer
=
[],
dataBrowser
=
[];
if
(
result
.
data
.
os
.
length
)
{
result
.
data
.
os
.
sort
((
a
,
b
)
=>
{
return
b
.
count
-
a
.
count
})
result
.
data
.
os
.
sort
(
function
(
a
,
b
)
{
return
b
.
count
-
a
.
count
})
}
var
others
=
{
name
:
'其他'
,
value
:
0
};
var
t
=
0
;
...
...
@@ -317,7 +371,7 @@
}
if
(
result
.
data
.
browser
.
length
)
{
result
.
data
.
browser
.
sort
((
a
,
b
)
=>
{
return
b
.
count
-
a
.
count
})
result
.
data
.
browser
.
sort
(
function
(
a
,
b
)
{
return
b
.
count
-
a
.
count
})
}
others
=
{
name
:
'其他'
,
value
:
0
};
t
=
0
;
...
...
@@ -472,7 +526,7 @@
// ]
// };
let
params
=
{
var
params
=
{
clientId
:
_this
.
app
,
year
:
_this
.
year
,
month
:
_this
.
month
...
...
@@ -493,7 +547,7 @@
// legend.push(element.name);
// data.push({ value: element.count, name: element.name })
// }
// _this.numsIdpList = data.filter(element =>
{ return element.value > 0 });
// _this.numsIdpList = data.filter(function (element)
{ return element.value > 0 });
// optionNums.series[0].data = data
// myChartNums.setOption(optionNums);
},
...
...
@@ -563,7 +617,7 @@
}
}]
};
let
params
=
{
var
params
=
{
clientId
:
this
.
app
,
year
:
this
.
year
,
month
:
this
.
month
...
...
@@ -627,7 +681,7 @@
}
]
};
let
params
=
{
var
params
=
{
clientId
:
this
.
app
,
year
:
this
.
year
,
month
:
this
.
month
...
...
@@ -653,7 +707,7 @@
})
},
initUserOrg
:
function
()
{
let
params
=
{
var
params
=
{
clientId
:
this
.
app
,
year
:
this
.
year
,
month
:
this
.
month
...
...
@@ -671,15 +725,15 @@
},
getParams
:
function
(
params
)
{
if
(
!
params
)
return
''
;
let
res
=
''
;
let
keys
=
Object
.
keys
(
params
);
var
res
=
''
;
var
keys
=
Object
.
keys
(
params
);
if
(
this
.
time
===
'month'
)
{
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
params
.
year
=
year
;
params
.
month
=
year
+
'-'
+
(
this
.
month
<
10
?
(
'0'
+
this
.
month
)
:
this
.
month
);
}
for
(
let
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
if
(
this
.
time
!==
'month'
&&
keys
[
i
]
===
'month'
)
continue
;
if
(
params
[
keys
[
i
]]
!==
'all'
)
{
if
(
res
!==
''
)
res
+=
'&'
...
...
@@ -689,9 +743,9 @@
return
res
;
},
randomFun
:
function
(
arr
)
{
for
(
let
i
=
0
,
len
=
arr
.
length
;
i
<
len
;
i
++
)
{
let
index
=
parseInt
(
Math
.
random
()
*
(
len
-
1
));
let
tempValue
=
arr
[
i
];
for
(
var
i
=
0
,
len
=
arr
.
length
;
i
<
len
;
i
++
)
{
var
index
=
parseInt
(
Math
.
random
()
*
(
len
-
1
));
var
tempValue
=
arr
[
i
];
arr
[
i
]
=
arr
[
index
];
arr
[
index
]
=
tempValue
;
}
...
...
@@ -700,7 +754,7 @@
},
})
</script>
</script>
</body>
...
...
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