Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pingshan-ranqi
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
pingshan-ranqi
Commits
8515fdcc
Commit
8515fdcc
authored
Nov 01, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
左侧bar样式修改完毕
parent
e0d5ec7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
98 additions
and
21 deletions
+98
-21
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+98
-21
No files found.
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
8515fdcc
...
...
@@ -144,8 +144,21 @@
<el-button
class=
"refresh-but"
@
click=
"refreshMap()"
>
<i
class=
"iconfont icon-reset"
></i>
</el-button>
<div
class=
"leftBar-wrapper"
>
燃气公司
<div
class=
"comp-wrapper"
>
<div
class=
"comp"
:class=
"{ active: compChangeArr.indexOf(item) >= 0 }"
v-for=
"item in comp"
:key=
"item"
@
click=
"compChange(item)"
>
{{ item }}
</div>
</div>
<div
class=
"box-wrapper"
v-for=
"(item, index) in changeBtnData"
...
...
@@ -157,8 +170,10 @@
active: leftBarNum.indexOf(item.value) >= 0,
firstbox: index == 0,
}"
@
click
=
"arrowRight
Change(item)"
@
click
.
stop=
"leftBar
Change(item)"
>
<!-- @click="arrowRightChange(item)" -->
<span
class=
"upPic"
>
上图
</span>
<div
class=
"left"
>
<i
class=
"iconfont"
:class=
"item.icon"
></i>
...
...
@@ -166,14 +181,12 @@
<div
class=
"right"
>
{{ item.label }}
</div>
<i
@
click
.
stop=
"leftBarChange(item)"
class=
"el-icon-check bingo"
></i>
<i
class=
"el-icon-check bingo"
></i>
<i
class=
"ju"
></i>
<i
class=
"arrow-right el-icon-arrow-right"
:class=
"{ active: arrowRightNum.indexOf(item.value) >= 0 }"
@
click
.
stop=
"arrowRightChange(item)"
></i>
</div>
<el-collapse-transition>
...
...
@@ -371,6 +384,11 @@ export default {
iconClass
:
"icon-create"
,
createValue
:
0
,
createLabel
:
"新增"
,
//所有燃气公司
comp
:
[
"公司A"
,
"公司B"
,
"公司C"
],
// 公司被选中状态
compChangeArr
:
[],
changeBtnData
:
[
{
type
:
"0"
,
...
...
@@ -885,7 +903,16 @@ export default {
}
});
},
// 选择公司
compChange
(
item
)
{
const
index
=
this
.
compChangeArr
.
indexOf
(
item
);
if
(
index
<
0
)
{
this
.
compChangeArr
.
push
(
item
);
}
else
{
this
.
compChangeArr
.
splice
(
index
,
1
);
}
console
.
log
(
this
.
compChangeArr
);
},
// 左边的Bar修改值 左边抽屉
leftBarChange
(
item
)
{
// this.leftBarNum= this.leftBarNum != item.value ? item.value:0;
...
...
@@ -1163,6 +1190,8 @@ export default {
this
.
arrowRightNum
.
push
(
item
.
value
);
}
this
.
domAllShow
();
// 原本是卸载抽屉上的方法,由于冒泡,要单独写一次
this
.
drawerClick
();
},
// 管道储存
...
...
@@ -1875,13 +1904,32 @@ input[type="radio"] {
}
}
}
// 燃气公司选项
.comp-wrapper
{
display
:
flex
;
color
:
#fff
;
padding-left
:
35px
;
padding-bottom
:
10px
;
.comp
{
margin-right
:
10px
;
cursor
:
pointer
;
padding
:
2px
4px
;
border-radius
:
5px
;
&
:hover
{
background-color
:
#053b6a
94
;
}
&
.active
{
background-color
:
#053b6a
;
color
:
#31eaea
!
important
;
}
}
}
// 左边的bar
.leftBar-wrapper
{
// position: fixed;
width
:
340px
;
// margin-left: 20px;
margin-top
:
60
px
;
margin-top
:
35
px
;
// box-sizing: border-box;
.box-wrapper
{
width
:
340px
;
...
...
@@ -1991,17 +2039,20 @@ input[type="radio"] {
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
}
}
// box浮动上去的颜色
&
:hover
{
box-sizing
:
border-box
;
// background-color: rgba(5, 59, 106, 0.1);
background-color
:
#053b6a
;
border-bottom
:
none
!
important
;
// background-color: #053b6a;
background-color
:
#053b6a
94
;
// border-bottom: none !important;
.upPic
{
color
:
#31eaea
;
color
:
#31eaea
ab
;
}
.left
,
.right
{
color
:
#31eaea
!
important
;
color
:
#31eaea
ab
!
important
;
}
}
.upPic
{
...
...
@@ -2035,23 +2086,49 @@ input[type="radio"] {
>
i
.arrow-right
{
color
:
#fff
!
important
;
position
:
absolute
;
right
:
32px
;
top
:
16px
;
right
:
0px
;
top
:
0px
;
padding
:
16px
15px
;
transition
:
0
.3s
linear
;
font-weight
:
700
;
&
.active
{
color
:
#fff
!
important
;
font-weight
:
700
;
transform
:
rotate
(
90deg
);
}
}
// 当点击下拉框选项的样式
&
.active
{
// background-color: #053b6a;
// .left,
// .right {
// color: #fff;
// }
>
i
{
// 选中状态
box-sizing
:
border-box
;
background-color
:
#053b6a
;
// border-bottom: none !important;
.upPic
{
color
:
#31eaea
;
}
.left
,
.right
{
color
:
#31eaea
!
important
;
}
>
i
{
// color: #31eaea;
color
:
#053b6a
;
font-weight
:
600
;
}
&
:hover
{
box-sizing
:
border-box
;
background-color
:
#053b6a
94
;
// background-color: #053b6a;
// border-bottom: none !important;
.upPic
{
color
:
#31eaea
ab
;
}
.left
,
.right
{
color
:
#31eaea
ab
!
important
;
}
}
}
.left
{
color
:
#fff
;
...
...
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