Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ed67863
authored
Dec 27, 2021
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
111
1 parent
7dde06cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
9 deletions
src/views/home/index.vue
src/views/home/index.vue
View file @
7ed6786
...
...
@@ -51,7 +51,7 @@
<div
class=
"title"
>
{{
staticInfo
.
allActiveNumber
}}
</div>
<div
id=
"activedChart"
class=
"c_canvas"
></div>
<div
class=
"footer"
>
今日
绑定
数:
{{
staticInfo
.
activeNumForToday
}}
今日
激活
数:
{{
staticInfo
.
activeNumForToday
}}
</div>
</div>
<!-- 数据 end -->
...
...
@@ -65,9 +65,19 @@
<span>
设备在线数
</span>
<el-tooltip
class=
"item"
effect=
"dark"
placement=
"right-start"
>
<div
slot=
"content"
>
<p>
总激活数:统计该账号权限下,有线设备和无线设备的激活数之和;
</p>
<p>
趋势图:统计该账号权限下,最近30天的日激活数趋势;
</p>
<p>
今日激活数:统计该账号权限下,今日有线设备和无线设备的激活数之和;
</p>
<p>
在线数 = 有线设备在线数 + 无线设备在线数
</p>
<p>
有线设备在线数:
</p>
<p>
统计该账号权限下,在统计当日所有设备在线率情况,
<span>
3天内(72小时内)
</span>
连接服务器即认为在线;
</p>
<p>
无线设备在线数:
</p>
<p>
统计该账号权限下,在统计当日所有设备在线率情况,
<span>
3天内(72小时内)
</span>
连接服务器即认为在线;
</p>
<p>
在线率 = 在线数 / 总激活数;
</p>
<p>
在线率只保留整数,四舍五入
</p>
</div>
<i
class=
"el-icon-question"
></i>
</el-tooltip>
...
...
@@ -207,7 +217,7 @@ export default {
{
name
:
"上月"
,
id
:
6
},
{
name
:
"近30日"
,
id
:
11
},
],
active
:
2
,
active
:
1
,
staticInfo
:
{},
alarmInfo
:
{},
isZhongli
:
false
,
...
...
@@ -237,15 +247,15 @@ export default {
// 在线率
let
m
=
[];
m
.
push
({
value
:
obj
.
onlineRate
,
name
:
""
});
m
.
push
({
value
:
1
-
obj
.
onlineRate
,
name
:
""
});
m
.
push
({
value
:
obj
.
onlineRate
,
name
:
""
});
this
.
createBindChart
(
"onlineChart"
,
m
);
// 离线率
let
n
=
[];
n
.
push
({
value
:
obj
.
offlineRate
,
name
:
""
});
n
.
push
({
value
:
1
-
obj
.
offlineRate
,
name
:
""
});
n
.
push
({
value
:
obj
.
offlineRate
,
name
:
""
});
this
.
createBindChart
(
"offlineChart"
,
n
);
});
...
...
@@ -283,6 +293,9 @@ export default {
});
var
aChart
=
echarts
.
init
(
document
.
getElementById
(
"activedChartBox"
));
aChart
.
setOption
({
tooltip
:
{
trigger
:
"axis"
,
},
xAxis
:
{
type
:
"category"
,
boundaryGap
:
false
,
...
...
@@ -293,6 +306,7 @@ export default {
},
yAxis
:
{
type
:
"value"
,
minInterval
:
1
},
series
:
[
{
...
...
@@ -314,6 +328,7 @@ export default {
show
:
false
,
},
legendHoverLink
:
false
,
color
:[
'#c0c0c0'
,
'#0096fa'
,
'#fac858'
,
'#ee6666'
,
'#73c0de'
,
'#3ba272'
,
'#fc8452'
,
'#9a60b4'
,
'#ea7ccc'
],
series
:
[
{
type
:
"pie"
,
...
...
@@ -329,8 +344,8 @@ export default {
// 页面跳转
linkToPage
(
path
)
{
let
row
=
{
'alarmStatus'
:
1
}
history
.
pushState
(
row
,
''
,
path
);
let
row
=
{
alarmStatus
:
1
};
history
.
pushState
(
row
,
""
,
path
);
},
// 获取总绑定数报表
...
...
@@ -351,6 +366,9 @@ export default {
createLineChart
(
id
,
xDate
,
yDate
)
{
var
aChart
=
echarts
.
init
(
document
.
getElementById
(
id
));
aChart
.
setOption
({
tooltip
:
{
trigger
:
"axis"
,
},
xAxis
:
{
show
:
false
,
type
:
"category"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment