Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
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-new-platform
Commits
cff7ac23
Commit
cff7ac23
authored
Feb 04, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化站点详情icon显示
parent
b5ae35fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
device-manager-ui/admin/src/components/MapDetail.vue
device-manager-ui/admin/src/components/MapDetail.vue
+17
-11
No files found.
device-manager-ui/admin/src/components/MapDetail.vue
View file @
cff7ac23
...
@@ -157,7 +157,12 @@ export default {
...
@@ -157,7 +157,12 @@ export default {
contentRender
(
h
,
params
)
{
contentRender
(
h
,
params
)
{
//console.log(params.extData.extData.productId)
//console.log(params.extData.extData.productId)
let
value
=
params
.
extData
.
extData
.
productName
;
let
value
=
params
.
extData
.
extData
.
productName
;
return
<
img
src
=
{
require
(
`../assets/images/
${
value
}
.png`
)}
/>
;
try
{
require
(
`../assets/images/
${
value
}
.png`
);
return
<
img
src
=
{
require
(
`../assets/images/
${
value
}
.png`
)}
/>
;
}
catch
(
error
)
{
return
<
img
src
=
{
require
(
`../assets/images/dn.png`
)}
/>
;
}
},
},
getDeviceDetial
()
{
getDeviceDetial
()
{
//获取设备列表
//获取设备列表
...
@@ -165,15 +170,19 @@ export default {
...
@@ -165,15 +170,19 @@ export default {
refresh
(
data
)
{
refresh
(
data
)
{
// this.markersGroupData = data;
// this.markersGroupData = data;
//this.$refs.map.clear();
//this.$refs.map.clear();
let
map
=
this
.
amapManager
.
getMap
();
this
.
$nextTick
(()
=>
{
map
.
clearMap
();
let
map
=
this
.
amapManager
.
getMap
();
if
(
map
)
{
map
.
clearMap
();
}
for
(
let
group
of
data
)
{
for
(
let
group
of
data
)
{
for
(
let
item
of
group
.
deviceList
)
{
for
(
let
item
of
group
.
deviceList
)
{
//console.log("marker", item);
//console.log("marker", item);
this
.
setMarker
(
item
);
this
.
setMarker
(
item
);
}
}
}
}
}
);
},
},
relocate
(
center
)
{
relocate
(
center
)
{
...
@@ -328,6 +337,3 @@ export default {
...
@@ -328,6 +337,3 @@ export default {
}
}
}
}
</
style
>
</
style
>
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