Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
b73df032
Commit
b73df032
authored
Feb 26, 2022
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
右上角列表
parent
0494ff84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
167 additions
and
185 deletions
+167
-185
rightBar.vue
gassafetyprogress-web/src/components/bigWindow/rightBar.vue
+82
-181
config.js
gassafetyprogress-web/src/utils/mapClass/config.js
+0
-2
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+85
-2
No files found.
gassafetyprogress-web/src/components/bigWindow/rightBar.vue
View file @
b73df032
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/utils/mapClass/config.js
View file @
b73df032
...
...
@@ -33,8 +33,6 @@ export const deviceType = {
4
:
"厂站"
,
5
:
"监控"
,
6
:
"用户"
,
};
...
...
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
b73df032
...
...
@@ -12,6 +12,7 @@
<div
id=
"map"
></div>
<Center
:show=
"show"
:centerData=
"centerData"
/>
<PipeColor
/>
<!-- 底部按钮 -->
<div
class=
"home-div"
>
<img
src=
"@/assets/mapinages/bottombanner.png"
...
...
@@ -37,6 +38,15 @@
</div>
</div>
</div>
<!-- 设备按钮 -->
<div
class=
"typelist-div"
>
<div
class=
"list"
v-for=
"(item,index) in arr"
:key=
"index"
:class=
"item.ischeck==true?'active':''"
@
click=
"sel1(index,item)"
>
{{
item
.
name
}}
</div>
</div>
<!-- 弹框 -->
<div
id=
""
...
...
@@ -164,8 +174,36 @@ export default {
name
:
"中燃韵科"
,
},
],
};
},
arr
:[
{
val
:
1
,
ischeck
:
false
,
name
:
"调压箱"
},
{
val
:
2
,
ischeck
:
false
,
name
:
"阀门井"
},
{
val
:
3
,
ischeck
:
false
,
name
:
"场站"
},
{
val
:
4
,
ischeck
:
false
,
name
:
"用户"
},
{
val
:
5
,
ischeck
:
false
,
name
:
"监控"
}
],
selarr1
:[],
};
},
watch
:
{
selarr
(
newValue
)
{
if
(
newValue
.
length
==
3
)
{
...
...
@@ -252,6 +290,25 @@ export default {
}
this
.
map
.
companyFilter
(
this
.
selarr
);
},
sel1
(
index
,
item
){
let
arr
=
[...
this
.
arr
];
let
selarr1
=
[...
this
.
selarr1
];
if
(
arr
[
index
].
ischeck
==
false
){
arr
[
index
].
ischeck
=
true
;
selarr1
.
push
(
item
)
}
else
{
arr
[
index
].
ischeck
=
false
;
var
index11
=
selarr1
.
indexOf
(
index
)
selarr1
.
splice
(
index11
,
1
)
}
this
.
arr
=
arr
;
this
.
selarr1
=
selarr1
;
},
currentTime
()
{
setInterval
(()
=>
{
this
.
formatDate
();
...
...
@@ -418,4 +475,30 @@ export default {
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
.typelist-div
{
width
:
450px
;
height
:
50px
;
z-index
:
9999
;
position
:
fixed
;
bottom
:
20%
;
left
:
40%
;
}
.list
{
z-index
:
9999
;
float
:
left
;
margin-left
:
10px
;
color
:
#fff
;
width
:
80px
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
background
:
linear-gradient
(
86deg
,
#112238
0%
,
#086187
62%
,
#112238
100%
);
box-shadow
:
inset
0px
1px
2px
1px
#125C9B
;
}
.list.active
{
background
:
linear-gradient
(
86deg
,
#112238
0%
,
#32A3D3
62%
,
#112238
100%
);
box-shadow
:
inset
0px
1px
2px
1px
#125C9B
;
color
:
#2ee7e7
;
}
</
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