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
b5ae35fd
Commit
b5ae35fd
authored
Feb 04, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化站点详情的设备icon显示
parent
b77c49db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
+15
-1
No files found.
device-manager-ui/admin/src/views/sitestat/mapDetail.vue
View file @
b5ae35fd
...
...
@@ -90,6 +90,7 @@
class=
"addclass"
size=
"mini"
icon=
"el-icon-edit-outline"
@
click=
"editSite"
>
编辑站点
</el-button
>
...
...
@@ -146,7 +147,7 @@
justify=
"space-between"
>
<img
v-if=
"formatDevIcon(v.productId)"
v-if=
"formatDevIcon(v.productId)
&& isImageAvailable(v.productId)
"
:src=
"require(`@/assets/images/$
{formatDevIcon(v.productId)}.png`)"
/>
<img
v-else
src=
"@/assets/images/dn.png"
/>
...
...
@@ -220,6 +221,11 @@ export default {
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
deviceName
:
val
});
this
.
getData
();
},
editSite
()
{
this
.
$confirm
(
"
请在基础设置系统修改站点信息
"
,
"
提示
"
,
{
showCancelButton
:
false
,
//是否显示取消按钮
});
},
addDevice
()
{
let
row
=
{};
row
.
siteId
=
this
.
info
.
siteId
;
...
...
@@ -296,6 +302,14 @@ export default {
let
label
=
productId
[
product
];
return
label
||
""
;
},
isImageAvailable
(
product
)
{
try
{
require
(
`@/assets/images/
${
this
.
formatDevIcon
(
product
)}
.png`
);
return
true
;
}
catch
(
error
)
{
return
false
;
}
},
},
data
()
{
return
{
...
...
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