Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zanhuangyingji
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaqizhang
zanhuangyingji
Commits
482eacd7
Commit
482eacd7
authored
Apr 06, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还有一个问题,选中的意义是什么
parent
cf629e9f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
547 additions
and
437 deletions
+547
-437
app.js
ioc_frontweb/js/app.js
+530
-425
utils.js
ioc_frontweb/js/utils.js
+10
-10
style.css
ioc_frontweb/style/style.css
+7
-2
No files found.
ioc_frontweb/js/app.js
View file @
482eacd7
This diff is collapsed.
Click to expand it.
ioc_frontweb/js/utils.js
View file @
482eacd7
...
...
@@ -627,7 +627,7 @@ function createLegendList() {
tmpLi
+=
'<li data-id="'
+
items
[
i
].
id
+
'" class="legendItem"><div><img class="legendPic" style="padding: 7px 0;" src="./images/legend/'
+
'" class="legendItem"><div
class="first"
><img class="legendPic" style="padding: 7px 0;" src="./images/legend/'
+
items
[
i
].
legendCode
+
'.png" alt=""/><span class="legendTitle">'
+
items
[
i
].
legendName
+
...
...
@@ -645,15 +645,15 @@ function createLegendList() {
var
legendchild
=
document
.
getElementsByClassName
(
"legendchild"
);
for
(
var
i
=
0
;
i
<
legenditem
.
length
;
i
++
){
// legenditem[i].index = i;
legenditem
[
i
].
onclick
=
function
(){
if
(
this
.
lastChild
.
style
.
display
==
"none"
){
this
.
style
.
backgroundImage
=
"url(images/vectorbot.png)"
;
this
.
lastChild
.
style
.
display
=
"block"
;
}
else
{
this
.
style
.
backgroundImage
=
"url(images/re.png)"
;
this
.
lastChild
.
style
.
display
=
"none"
;
}
};
//
legenditem[i].onclick = function(){
//
if(this.lastChild.style.display == "none"){
//
this.style.backgroundImage="url(images/vectorbot.png)";
//
this.lastChild.style.display = "block";
//
}else{
//
this.style.backgroundImage="url(images/re.png)";
//
this.lastChild.style.display = "none";
//
}
//
};
}
// 默认显示视频监控设备
// $('.legendItem').eq(0).click();
...
...
ioc_frontweb/style/style.css
View file @
482eacd7
...
...
@@ -317,7 +317,7 @@ table.layui-table th {
.legendItem
{
margin
:
3px
0
;
overflow
:
hidden
;
cursor
:
pointer
;
/* cursor: pointer; */
float
:
left
;
background
:
url(../images/re.png)
;
background-size
:
100%
100%
;
...
...
@@ -325,11 +325,16 @@ table.layui-table th {
padding
:
0
5px
;
margin-left
:
10px
;
}
.legendItem
.first
{
cursor
:
pointer
;
}
.legendchild
{
display
:
none
;
width
:
auto
;
position
:
fixed
;
bottom
:
85px
;
bottom
:
50px
;
height
:
70px
;
}
/* .legendItem:active + .legendchild{
display: block;
...
...
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