Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 801dd2f1
authored
Jun 13, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
5e848786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
src/pages/monitor/detail/index.vue
src/pages/monitor/detail/index.vue
View file @
801dd2f
...
...
@@ -371,22 +371,34 @@ export default {
// 返回值>0则b排在a前面,实现降序
return
dateB
-
dateA
;
});
let
lastNo
=
''
;
let
currentIndex
=
1
;
let
wiredList
=
res
.
data
.
list
.
filter
(
item
=>
item
.
source
==
1
)
.
map
((
item
,
index
)
=>
{
if
(
lastNo
!==
item
.
sn
)
{
currentIndex
=
index
+
1
;
}
lastNo
=
item
.
sn
;
return
{
...
item
,
idx
:
`有线设备
${
index
+
1
}
`
idx
:
`有线设备
${
currentIndex
}
`
}
})
||
[]
let
lastLessNo
=
''
;
let
currentLessIndex
=
1
;
let
wirelessList
=
res
.
data
.
list
.
filter
(
item
=>
!
item
.
source
)
.
map
((
item
,
index
)
=>
{
if
(
lastLessNo
!==
item
.
sn
)
{
currentLessIndex
=
index
+
1
;
}
lastLessNo
=
item
.
sn
;
return
{
...
item
,
idx
:
`无线设备
${
index
+
1
}
`
idx
:
`无线设备
${
currentLessIndex
}
`
}
})
||
[]
this
.
sitTableData
=
[...
wiredList
,
...
wirelessList
]
||
[]
...
...
@@ -507,7 +519,7 @@ export default {
link
.
click
()
})
},
getUrlBase64
(
url
,
kh
)
{
getUrlBase64
(
url
,
kh
)
{
return
new
Promise
(
resolve
=>
{
let
canvas
=
document
.
createElement
(
'canvas'
)
const
ctx
=
canvas
.
getContext
(
'2d'
)
...
...
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