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 edec9495
authored
Dec 16, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复第二轮bug
1 parent
95ca961a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
src/styles/home.scss
src/views/home/index.vue
src/styles/home.scss
View file @
edec949
...
@@ -58,6 +58,10 @@
...
@@ -58,6 +58,10 @@
padding
:
10px
0
;
padding
:
10px
0
;
border-top
:
2px
solid
#eee
;
border-top
:
2px
solid
#eee
;
font-size
:
13px
;
font-size
:
13px
;
display
:
flex
;
.footer-box
{
flex
:
1
;
}
}
}
.equipment_box
{
.equipment_box
{
display
:
flex
;
display
:
flex
;
...
...
src/views/home/index.vue
View file @
edec949
...
@@ -143,10 +143,16 @@
...
@@ -143,10 +143,16 @@
</div>
</div>
<div
class=
"footer"
>
<div
class=
"footer"
>
<span
style=
"margin-right: 276px;color: #0196FA;"
>
设备在线率:
{{
hasPermission
(
'data_doard_offLine'
)
?
addSub
(
staticInfo
.
onlineRate
,
staticInfo
.
fakeOfflineRate
)
:
staticInfo
.
onlineRate
}}
%
</span>
<div
class=
"footer-box"
>
<span
style=
"color: #0196FA;"
>
{{
hasPermission
(
'data_doard_offLine'
)
?
'设备总在线率:'
:
'设备在线率:'
}}
</span>
<span
style=
"color: #0196FA;"
>
{{
hasPermission
(
'data_doard_offLine'
)
?
addSub
(
staticInfo
.
onlineRate
,
staticInfo
.
fakeOfflineRate
)
:
staticInfo
.
onlineRate
}}
%
</span>
</div>
<div
class=
"footer-box"
v-show=
"hasPermission('data_doard_offLine')"
></div>
<div
class=
"footer-box"
>
<span
style=
"color: #F47F13;"
>
设备离线率:
{{
hasPermission
(
'data_doard_offLine'
)
?
accSub
(
staticInfo
.
offlineRate
,
staticInfo
.
fakeOfflineRate
)
:
staticInfo
.
offlineRate
}}
%
</span>
<span
style=
"color: #F47F13;"
>
设备离线率:
{{
hasPermission
(
'data_doard_offLine'
)
?
accSub
(
staticInfo
.
offlineRate
,
staticInfo
.
fakeOfflineRate
)
:
staticInfo
.
offlineRate
}}
%
</span>
</div>
</div>
</div>
</div>
</div>
<!-- 数据 end -->
<!-- 数据 end -->
</div>
</div>
<!-- 设备数 end -->
<!-- 设备数 end -->
...
@@ -298,12 +304,6 @@ export default {
...
@@ -298,12 +304,6 @@ export default {
m
.
push
({
value
:
this
.
accSub
(
100
,
obj
.
onlineRate
),
name
:
""
});
m
.
push
({
value
:
this
.
accSub
(
100
,
obj
.
onlineRate
),
name
:
""
});
m
.
push
({
value
:
obj
.
onlineRate
,
name
:
""
});
m
.
push
({
value
:
obj
.
onlineRate
,
name
:
""
});
if
(
this
.
hasPermission
(
'data_doard_offLine'
))
{
m
=
[]
const
a
=
this
.
accSub
(
100
,
obj
.
onlineRate
)
m
.
push
({
value
:
this
.
accSub
(
a
,
obj
.
fakeOfflineRate
),
name
:
""
});
m
.
push
({
value
:
this
.
addSub
(
obj
.
onlineRate
,
obj
.
fakeOfflineRate
),
name
:
""
});
}
this
.
createBindChart
(
"onlineChart"
,
m
);
this
.
createBindChart
(
"onlineChart"
,
m
);
// 离线率
// 离线率
...
...
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