Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-manager-ui
Commits
1d2dc919
Commit
1d2dc919
authored
Apr 24, 2024
by
王晓旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
a7d9383b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
10 deletions
+46
-10
src/components/Header.vue
src/components/Header.vue
+24
-1
src/components/Map.vue
src/components/Map.vue
+4
-4
src/views/Home.vue
src/views/Home.vue
+15
-2
src/views/sitestat/maplist.vue
src/views/sitestat/maplist.vue
+3
-3
No files found.
src/components/Header.vue
View file @
1d2dc919
...
...
@@ -41,7 +41,13 @@
{{
userData
.
currUserName
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</span>
-->
<span
class=
"admin-header-right"
>
<a-tooltip
class=
"header-item"
title=
"返回门户"
placement=
"bottom"
>
<a
:href=
"portal"
>
<a-icon
type=
"home"
/>
返回门户
</a>
</a-tooltip>
</span>
<el-dropdown
@
command=
"handleCommand"
>
<span
class=
"el-dropdown-link"
style=
"color: white"
>
{{
userData
.
currUserName
}}
...
...
@@ -102,6 +108,7 @@ export default {
return
{
systemName
:
process
.
env
.
VUE_APP_sysName
,
showMobileMenu
:
false
,
portal
:
process
.
env
.
VUE_APP_PORTAL_URL
+
'
/#/home/siteArrange
'
,
//门户地址
};
},
methods
:
{
...
...
@@ -208,7 +215,23 @@ export default {
</
script
>
<
style
lang=
"less"
>
.layout-header {
.admin-header-right{
color: inherit;
.header-item{
color: inherit;
padding: 0 12px;
cursor: pointer;
align-self: center;
a{
color: inherit;
i{
font-size: 16px;
}
}
}
}
.mobile-menu-list {
display: none;
}
...
...
src/components/Map.vue
View file @
1d2dc919
...
...
@@ -74,25 +74,25 @@
</el-col>
<el-col
:span=
"4"
>
<span
style=
"font-size: 13px"
><b
style=
"color: green"
>
{{
info
.
online
Count
}}
</b></span
><b
style=
"color: green"
>
{{
info
.
online
Total
||
'
--
'
}}
</b></span
><br
/>
<span
style=
"font-size: 12px"
>
在线
</span>
</el-col>
<el-col
:span=
"4"
>
<span
style=
"font-size: 13px"
><b
style=
"color: red"
>
{{
info
.
offline
Count
}}
</b></span
><b
style=
"color: red"
>
{{
info
.
offline
Total
||
'
--
'
}}
</b></span
><br
/>
<span
style=
"font-size: 12px"
>
离线
</span>
</el-col>
<el-col
:span=
"4"
>
<span
style=
"font-size: 13px"
><b
style=
"color: orange"
>
{{
info
.
stopCount
}}
</b></span
><b
style=
"color: orange"
>
{{
info
.
stopCount
||
'
--
'
}}
</b></span
><br
/>
<span
style=
"font-size: 12px"
>
停用
</span>
</el-col>
<el-col
:span=
"4"
>
<span
style=
"font-size: 13px"
><b
style=
"color: grey"
>
{{
info
.
unActive
Count
}}
</b></span
><b
style=
"color: grey"
>
{{
info
.
unActive
Total
||
'
--
'
}}
</b></span
><br
/>
<span
style=
"font-size: 12px"
>
待激活
</span>
</el-col>
...
...
src/views/Home.vue
View file @
1d2dc919
...
...
@@ -544,7 +544,7 @@ export default {
{
type
:
"
value
"
,
min
:
0
,
// 配置 Y 轴刻度最小值
max
:
500
,
// 配置 Y 轴刻度最大值
//
max: 500, // 配置 Y 轴刻度最大值
// interval: 50,
splitNumber
:
5
,
// 配置 Y 轴数值间隔
axisTick
:
{
...
...
@@ -567,7 +567,7 @@ export default {
show
:
false
,
},
axisLabel
:
{
formatter
:
"
{value} %
"
,
formatter
:
(
value
)
=>
{
return
value
*
100
+
'
%
'
}
,
},
},
],
...
...
@@ -619,6 +619,16 @@ export default {
backgroundColor
:
"
#6a7985
"
,
},
},
formatter
:
function
(
data
){
let
str
=
''
;
data
.
forEach
((
item
,
idx
)
=>
{
str
+=
`
${
item
.
marker
}${
item
.
seriesName
}
:
${
item
.
data
*
100
+
'
%
'
}
`
if
(
!
idx
){
str
+=
'
</br>
'
}
})
return
str
}
},
legend
:
{
top
:
"
40px
"
,
...
...
@@ -658,6 +668,9 @@ export default {
axisLine
:
{
show
:
false
,
},
axisLabel
:
{
formatter
:(
value
)
=>
{
return
value
*
100
+
'
%
'
}
,
},
},
],
series
:
[
...
...
src/views/sitestat/maplist.vue
View file @
1d2dc919
...
...
@@ -64,13 +64,13 @@
<div
class=
"are"
>
{{
item
.
detailAddress
}}
</div>
<div
class=
"data"
>
<div
class=
"sbzs dataitem"
>
设备总数:
<span>
{{
item
.
deviceTotal
}}
台
</span>
设备总数:
<span>
{{
item
.
deviceTotal
}}
台
</span>
</div>
<div
class=
"zx dataitem"
>
在线:
<span>
{{
item
.
onlineTotal
}}
台
</span>
在线:
<span>
{{
item
.
onlineTotal
||
'
--
'
}}
台
</span>
</div>
<div
class=
"lx dataitem"
>
离线:
<span>
{{
item
.
offlineTotal
}}
台
</span>
离线:
<span>
{{
item
.
offlineTotal
||
'
--
'
}}
台
</span>
</div>
</div>
</div>
...
...
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