Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gassafety
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
Commits
4697fb41
Commit
4697fb41
authored
Sep 14, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备录入上图页面的样式修改完毕
parent
c2269b3d
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
145 additions
and
85 deletions
+145
-85
flowMeter.vue
gassafety-web/src/components/PopWindow/flowMeter.vue
+6
-1
lineInfoWindow.vue
gassafety-web/src/components/PopWindow/lineInfoWindow.vue
+20
-17
markerInfoWindow.vue
gassafety-web/src/components/PopWindow/markerInfoWindow.vue
+15
-13
pipelineView.vue
gassafety-web/src/components/PopWindow/pipelineView.vue
+0
-1
pressureGage.vue
gassafety-web/src/components/PopWindow/pressureGage.vue
+5
-0
regulatorBox.vue
gassafety-web/src/components/PopWindow/regulatorBox.vue
+5
-0
valveWell.vue
gassafety-web/src/components/PopWindow/valveWell.vue
+5
-0
lineInfoWindow.vue
gassafety-web/src/components/PopWindowGis/lineInfoWindow.vue
+1
-1
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+29
-26
index.vue
gassafety-web/src/views/device/map/index.vue
+53
-21
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+6
-5
No files found.
gassafety-web/src/components/PopWindow/flowMeter.vue
View file @
4697fb41
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
v-model=
"form.pipeId"
v-model=
"form.pipeId"
placeholder=
"请选择所属管道"
placeholder=
"请选择所属管道"
style=
"width: 100%"
style=
"width: 100%"
@
change=
"selectChange"
>
>
<el-option
<el-option
v-for=
"item in pipeList"
v-for=
"item in pipeList"
...
@@ -200,6 +201,10 @@ export default {
...
@@ -200,6 +201,10 @@ export default {
MyFileUpload
,
MyFileUpload
,
},
},
methods
:
{
methods
:
{
selectChange
(
e
){
const
arr
=
this
.
pipeList
.
filter
(
item
=>
item
.
pipeId
==
e
);
this
.
form
.
pipeName
=
arr
[
0
].
pipeName
;
},
show
()
{
show
()
{
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
...
@@ -210,7 +215,7 @@ export default {
...
@@ -210,7 +215,7 @@ export default {
this
.
form
.
iconUrl
=
res
.
url
;
this
.
form
.
iconUrl
=
res
.
url
;
},
},
submitForm
()
{
submitForm
()
{
console
.
log
(
this
.
form
);
// console.log("this.form",
this.form);
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
deviceId
!=
null
)
{
if
(
this
.
form
.
deviceId
!=
null
)
{
...
...
gassafety-web/src/components/PopWindow/lineInfoWindow.vue
View file @
4697fb41
<
template
>
<
template
>
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
<div
class=
"top display-default"
>
<div
class=
"top display-default"
>
<div
class=
"left text"
>
{{
obj
.
pipeName
}}
</div>
<div
class=
"left text
ddd"
:title=
"obj.pipeName
"
>
{{
obj
.
pipeName
}}
</div>
<div
class=
"right text"
>
<div
class=
"right text"
>
<img
@
click=
"close"
src=
"../../assets/images/closeBtn.png"
alt=
""
/>
<img
@
click=
"close"
src=
"../../assets/images/closeBtn.png"
alt=
""
/>
</div>
</div>
...
@@ -132,27 +132,30 @@ export default {
...
@@ -132,27 +132,30 @@ export default {
.
wrapper
{
.
wrapper
{
width
:
406
px
;
width
:
406
px
;
// height: 488px;
// height: 488px;
background
:
#
fff
;
//
background: #fff;
border
-
radius
:
4
px
;
border
-
radius
:
4
px
;
box
-
shadow
:
0
px
3
px
6
px
rgba
(
0
,
0
,
0
,
0.16
);
box
-
shadow
:
0
px
3
px
6
px
rgba
(
0
,
0
,
0
,
0.16
);
background
:
rgba
(
7
,
29
,
51
,
0.9
);
color
:
#
fff
;
// overflow: hidden;
// overflow: hidden;
&
:
before
{
content
:
""
;
position
:
absolute
;
left
:
-
20
px
;
top
:
5
px
;
width
:
0
px
;
height
:
0
px
;
/* border: 20px solid red; */
border
-
top
:
15
px
solid
transparent
;
border
-
bottom
:
15
px
solid
transparent
;
/* border-left: 50px solid greenyellow; */
border
-
right
:
30
px
solid
#
053
b6a
;
}
.
top
{
.
top
{
width
:
100
%
;
width
:
100
%
;
height
:
51
px
;
height
:
51
px
;
background
-
color
:
#
053
b6a
;
// background-color: #053b6a;
background
-
image
:
url
(..
/
..
/
assets
/
images
/
blueTopBg
.
png
);
background
-
size
:
100
%
100
%
;
background
-
position
:
center
;
&
:
before
{
content
:
""
;
position
:
absolute
;
left
:
-
20
px
;
top
:
5
px
;
z
-
index
:
-
1
;
width
:
33
px
;
height
:
33
px
;
background
-
image
:
url
(..
/
..
/
assets
/
images
/
blueLeftTriangle
.
png
);
}
.
text
{
.
text
{
font
-
weight
:
600
;
font
-
weight
:
600
;
font
-
size
:
16
px
;
font
-
size
:
16
px
;
...
@@ -187,7 +190,7 @@ export default {
...
@@ -187,7 +190,7 @@ export default {
.
eq
-
text
{
.
eq
-
text
{
font
-
size
:
14
px
;
font
-
size
:
14
px
;
font
-
weight
:
400
;
font
-
weight
:
400
;
color
:
#
1
d1d1d
;
color
:
#
fff
;
opacity
:
1
;
opacity
:
1
;
&
>
span
{
&
>
span
{
vertical
-
align
:
top
;
vertical
-
align
:
top
;
...
...
gassafety-web/src/components/PopWindow/markerInfoWindow.vue
View file @
4697fb41
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
<span
class=
"dot-left"
></span>
<span
class=
"dot-left"
></span>
<div
class=
"top display-default"
>
<div
class=
"top display-default"
>
<div
class=
"left text"
>
{{
data
.
deviceName
}}
</div>
<div
class=
"left text
ddd"
:title=
"data.deviceName
"
>
{{
data
.
deviceName
}}
</div>
<div
class=
"right text"
>
<div
class=
"right text"
>
<img
<img
src=
"../../assets/images/closeBtn.png"
src=
"../../assets/images/closeBtn.png"
...
@@ -51,8 +51,8 @@
...
@@ -51,8 +51,8 @@
</el-col>
</el-col>
<div>
<div>
<span>
管道
所在地址:
</span>
<span>
设备
所在地址:
</span>
<span>
{{
data
.
pip
eAddr
}}
</span>
<span>
{{
data
.
devic
eAddr
}}
</span>
</div>
</div>
<div>
<div>
<span>
备注信息:
</span>
<span>
备注信息:
</span>
...
@@ -88,26 +88,28 @@ export default {
...
@@ -88,26 +88,28 @@ export default {
.wrapper
{
.wrapper
{
width
:
406px
;
width
:
406px
;
// height: 488px;
// height: 488px;
background
:
#fff
;
border-radius
:
4px
;
border-radius
:
4px
;
box-shadow
:
0px
3px
6px
rgba
(
0
,
0
,
0
,
0
.16
);
box-shadow
:
0px
3px
6px
rgba
(
0
,
0
,
0
,
0
.16
);
// background: #fff;
// overflow: hidden;
// overflow: hidden;
background
:
rgba
(
7
,
29
,
51
,
0
.9
);
color
:
#fff
;
.top
{
.top
{
width
:
100%
;
width
:
100%
;
height
:
51px
;
height
:
51px
;
background-color
:
#053b6a
;
background-image
:
url(../../assets/images/blueTopBg.png)
;
background-size
:
100%
100%
;
background-position
:
center
;
color
:
#fff
;
&
:before
{
&
:before
{
content
:
""
;
content
:
""
;
position
:
absolute
;
position
:
absolute
;
left
:
-20px
;
left
:
-20px
;
top
:
5px
;
top
:
5px
;
width
:
0px
;
z-index
:
-1
;
height
:
0px
;
width
:
33px
;
/* border: 20px solid red; */
height
:
33px
;
border-top
:
15px
solid
transparent
;
background-image
:
url(../../assets/images/blueLeftTriangle.png)
;
border-bottom
:
15px
solid
transparent
;
/* border-left: 50px solid greenyellow; */
border-right
:
30px
solid
#053b6a
;
}
}
.text
{
.text
{
font-weight
:
600
;
font-weight
:
600
;
...
@@ -143,7 +145,7 @@ export default {
...
@@ -143,7 +145,7 @@ export default {
.eq-text
{
.eq-text
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#
1d1d1d
;
color
:
#
fff
;
opacity
:
1
;
opacity
:
1
;
&
>
span
{
&
>
span
{
vertical-align
:
top
;
vertical-align
:
top
;
...
...
gassafety-web/src/components/PopWindow/pipelineView.vue
View file @
4697fb41
...
@@ -349,7 +349,6 @@ export default {
...
@@ -349,7 +349,6 @@ export default {
// 图片列表移除
// 图片列表移除
listRemove
(
e
)
{
listRemove
(
e
)
{
this
.
editForm
.
iconUrl
=
""
;
this
.
editForm
.
iconUrl
=
""
;
this
.
fileArr
=
[];
this
.
fileArr
=
[];
}
,
}
,
}
,
}
,
...
...
gassafety-web/src/components/PopWindow/pressureGage.vue
View file @
4697fb41
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
v-model=
"form.pipeId"
v-model=
"form.pipeId"
placeholder=
"请选择所属管道"
placeholder=
"请选择所属管道"
style=
"width: 100%"
style=
"width: 100%"
@
change=
"selectChange"
>
>
<el-option
<el-option
v-for=
"item in pipeList"
v-for=
"item in pipeList"
...
@@ -201,6 +202,10 @@ export default {
...
@@ -201,6 +202,10 @@ export default {
MyFileUpload
,
MyFileUpload
,
},
},
methods
:
{
methods
:
{
selectChange
(
e
){
const
arr
=
this
.
pipeList
.
filter
(
item
=>
item
.
pipeId
==
e
);
this
.
form
.
pipeName
=
arr
[
0
].
pipeName
;
},
show
()
{
show
()
{
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
...
...
gassafety-web/src/components/PopWindow/regulatorBox.vue
View file @
4697fb41
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
v-model=
"form.pipeId"
v-model=
"form.pipeId"
placeholder=
"请选择所属管道"
placeholder=
"请选择所属管道"
style=
"width: 100%"
style=
"width: 100%"
@
change=
"selectChange"
>
>
<el-option
<el-option
v-for=
"item in pipeList"
v-for=
"item in pipeList"
...
@@ -200,6 +201,10 @@ export default {
...
@@ -200,6 +201,10 @@ export default {
MyFileUpload
,
MyFileUpload
,
},
},
methods
:
{
methods
:
{
selectChange
(
e
){
const
arr
=
this
.
pipeList
.
filter
(
item
=>
item
.
pipeId
==
e
);
this
.
form
.
pipeName
=
arr
[
0
].
pipeName
;
},
show
()
{
show
()
{
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
//this.getPipeInfo();
//this.getPipeInfo();
...
...
gassafety-web/src/components/PopWindow/valveWell.vue
View file @
4697fb41
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
v-model=
"form.pipeId"
v-model=
"form.pipeId"
placeholder=
"请选择所属管道"
placeholder=
"请选择所属管道"
style=
"width: 100%"
style=
"width: 100%"
@
change=
"selectChange"
>
>
<el-option
<el-option
v-for=
"item in pipeList"
v-for=
"item in pipeList"
...
@@ -198,6 +199,10 @@ export default {
...
@@ -198,6 +199,10 @@ export default {
MyFileUpload
,
MyFileUpload
,
},
},
methods
:
{
methods
:
{
selectChange
(
e
){
const
arr
=
this
.
pipeList
.
filter
(
item
=>
item
.
pipeId
==
e
);
this
.
form
.
pipeName
=
arr
[
0
].
pipeName
;
},
show
()
{
show
()
{
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
...
...
gassafety-web/src/components/PopWindowGis/lineInfoWindow.vue
View file @
4697fb41
...
@@ -151,9 +151,9 @@ export default {
...
@@ -151,9 +151,9 @@ export default {
.
wrapper
{
.
wrapper
{
width
:
406
px
;
width
:
406
px
;
max
-
height
:
430
px
;
max
-
height
:
430
px
;
background
:
rgba
(
7
,
29
,
51
,
0.9
);
border
-
radius
:
4
px
;
border
-
radius
:
4
px
;
box
-
shadow
:
0
px
3
px
6
px
rgba
(
0
,
0
,
0
,
0.16
);
box
-
shadow
:
0
px
3
px
6
px
rgba
(
0
,
0
,
0
,
0.16
);
background
:
rgba
(
7
,
29
,
51
,
0.9
);
color
:
#
fff
;
color
:
#
fff
;
// overflow: hidden;
// overflow: hidden;
...
...
gassafety-web/src/utils/gaodeMap.js
View file @
4697fb41
...
@@ -54,6 +54,7 @@ class gaodeMap {
...
@@ -54,6 +54,7 @@ class gaodeMap {
// labelzIndex: 110,
// labelzIndex: 110,
pitch
:
8
,
pitch
:
8
,
zoom
:
9
,
zoom
:
9
,
mapStyle
:
"amap://styles/1c84d2203793b0f622df2cda53db1afd"
// mapStyle: 'amap://styles/darkblue',
// mapStyle: 'amap://styles/darkblue',
// mapStyle: 'amap://styles/3b679a15f448a4740ba2ff7524e1a4ae',
// mapStyle: 'amap://styles/3b679a15f448a4740ba2ff7524e1a4ae',
});
});
...
@@ -77,7 +78,7 @@ class gaodeMap {
...
@@ -77,7 +78,7 @@ class gaodeMap {
this
.
createNewLine
();
this
.
createNewLine
();
console
.
log
(
"map点击事件新建"
);
console
.
log
(
"map点击事件新建"
);
})
})
.
catch
(()
=>
{
});
.
catch
(()
=>
{});
}
}
// console.log("抬起来了");
// console.log("抬起来了");
});
});
...
@@ -116,7 +117,7 @@ class gaodeMap {
...
@@ -116,7 +117,7 @@ class gaodeMap {
let
options
=
this
.
myMap
.
getStatus
();
let
options
=
this
.
myMap
.
getStatus
();
options
.
scrollWheel
=
true
;
options
.
scrollWheel
=
true
;
this
.
myMap
.
setStatus
(
options
);
this
.
myMap
.
setStatus
(
options
);
console
.
log
(
"飞行结束"
)
console
.
log
(
"飞行结束"
)
;
});
});
this
.
districtBoundaries
(
latlng
);
this
.
districtBoundaries
(
latlng
);
...
@@ -157,9 +158,8 @@ class gaodeMap {
...
@@ -157,9 +158,8 @@ class gaodeMap {
level
:
"city"
level
:
"city"
};
};
let
district
=
new
AMap
.
DistrictSearch
(
opts
);
let
district
=
new
AMap
.
DistrictSearch
(
opts
);
district
.
search
(
that
.
center
,
function
(
status
,
result
)
{
district
.
search
(
that
.
center
,
function
(
status
,
result
)
{
if
(
status
==
"complete"
)
{
if
(
status
==
"complete"
)
{
let
defaultCenter
=
[];
let
defaultCenter
=
[];
defaultCenter
.
push
(
result
.
districtList
[
0
].
center
.
lng
);
defaultCenter
.
push
(
result
.
districtList
[
0
].
center
.
lng
);
defaultCenter
.
push
(
result
.
districtList
[
0
].
center
.
lat
);
defaultCenter
.
push
(
result
.
districtList
[
0
].
center
.
lat
);
...
@@ -169,7 +169,7 @@ class gaodeMap {
...
@@ -169,7 +169,7 @@ class gaodeMap {
map
.
setCenter
(
defaultCenter
);
map
.
setCenter
(
defaultCenter
);
}
}
console
.
log
(
"defaultCenter"
,
defaultCenter
)
console
.
log
(
"defaultCenter"
,
defaultCenter
)
;
let
bounds
=
result
.
districtList
[
0
].
boundaries
;
let
bounds
=
result
.
districtList
[
0
].
boundaries
;
for
(
let
i
=
0
;
i
<
bounds
.
length
;
i
+=
1
)
{
for
(
let
i
=
0
;
i
<
bounds
.
length
;
i
+=
1
)
{
...
@@ -199,12 +199,12 @@ class gaodeMap {
...
@@ -199,12 +199,12 @@ class gaodeMap {
offset
:
new
AMap
.
Pixel
(
24
,
-
38
),
offset
:
new
AMap
.
Pixel
(
24
,
-
38
),
anchor
:
"left-top"
anchor
:
"left-top"
});
});
infoWindow
.
on
(
"mouseover"
,
function
()
{
infoWindow
.
on
(
"mouseover"
,
function
()
{
let
options
=
map
.
getStatus
();
let
options
=
map
.
getStatus
();
options
.
scrollWheel
=
false
;
options
.
scrollWheel
=
false
;
map
.
setStatus
(
options
);
map
.
setStatus
(
options
);
});
});
infoWindow
.
on
(
"mouseout"
,
function
()
{
infoWindow
.
on
(
"mouseout"
,
function
()
{
let
options
=
map
.
getStatus
();
let
options
=
map
.
getStatus
();
options
.
scrollWheel
=
true
;
options
.
scrollWheel
=
true
;
map
.
setStatus
(
options
);
map
.
setStatus
(
options
);
...
@@ -234,7 +234,7 @@ class gaodeMap {
...
@@ -234,7 +234,7 @@ class gaodeMap {
editWindow
.
obj
=
marker
;
editWindow
.
obj
=
marker
;
editWindow
.
gaoMap
=
that
;
editWindow
.
gaoMap
=
that
;
editWindow
.
map
=
map
;
editWindow
.
map
=
map
;
marker
.
on
(
"click"
,
function
(
e
)
{
marker
.
on
(
"click"
,
function
(
e
)
{
if
(
"edit"
==
that
.
mapOperateType
)
{
if
(
"edit"
==
that
.
mapOperateType
)
{
editWindow
.
form
=
e
.
target
.
getExtData
();
editWindow
.
form
=
e
.
target
.
getExtData
();
editWindow
.
show
();
editWindow
.
show
();
...
@@ -248,10 +248,10 @@ class gaodeMap {
...
@@ -248,10 +248,10 @@ class gaodeMap {
vue
vue
.
$confirm
(
.
$confirm
(
'是否删除名称为"'
+
'是否删除名称为"'
+
e
.
target
.
getExtData
().
deviceName
+
e
.
target
.
getExtData
().
deviceName
+
'"的'
+
'"的'
+
diviceType
[
markerType
]
+
diviceType
[
markerType
]
+
" ?"
,
" ?"
,
"提示"
,
"提示"
,
{
{
type
:
"warning"
type
:
"warning"
...
@@ -296,19 +296,19 @@ class gaodeMap {
...
@@ -296,19 +296,19 @@ class gaodeMap {
infoWindow.open(map, e.target.getPosition());
infoWindow.open(map, e.target.getPosition());
}*/
}*/
});
});
marker
.
on
(
"dragend"
,
function
(
e
)
{
marker
.
on
(
"dragend"
,
function
(
e
)
{
editWindow
.
form
.
longitude
=
e
.
lnglat
.
lng
;
editWindow
.
form
.
longitude
=
e
.
lnglat
.
lng
;
editWindow
.
form
.
latitude
=
e
.
lnglat
.
lat
;
editWindow
.
form
.
latitude
=
e
.
lnglat
.
lat
;
});
});
}
else
{
}
else
{
marker
.
on
(
"mouseover"
,
function
()
{
marker
.
on
(
"mouseover"
,
function
()
{
marker
.
setLabel
({
marker
.
setLabel
({
offset
:
new
AMap
.
Pixel
(
0
,
-
10
),
//设置文本标注偏移量
offset
:
new
AMap
.
Pixel
(
0
,
-
10
),
//设置文本标注偏移量
content
:
"<div class='info'>"
+
data
.
deviceName
+
"</div>"
,
//设置文本标注内容
content
:
"<div class='info'>"
+
data
.
deviceName
+
"</div>"
,
//设置文本标注内容
direction
:
"top"
//设置文本标注方位
direction
:
"top"
//设置文本标注方位
});
});
});
});
marker
.
on
(
"mouseout"
,
function
()
{
marker
.
on
(
"mouseout"
,
function
()
{
marker
.
setLabel
({
marker
.
setLabel
({
content
:
null
content
:
null
});
});
...
@@ -447,7 +447,7 @@ class gaodeMap {
...
@@ -447,7 +447,7 @@ class gaodeMap {
case
DEVICE_TYPE
.
REGEULATORBOX
:
{
case
DEVICE_TYPE
.
REGEULATORBOX
:
{
let
icon
=
new
AMap
.
Icon
({
let
icon
=
new
AMap
.
Icon
({
//size: new AMap.Size(51, 23),
//size: new AMap.Size(51, 23),
image
:
require
(
"../assets/
oldI
mages/tiaoyaxiang.png"
)
image
:
require
(
"../assets/
i
mages/tiaoyaxiang.png"
)
});
});
marker
.
setIcon
(
icon
);
marker
.
setIcon
(
icon
);
break
;
break
;
...
@@ -455,7 +455,7 @@ class gaodeMap {
...
@@ -455,7 +455,7 @@ class gaodeMap {
case
DEVICE_TYPE
.
VALUEWELL
:
{
case
DEVICE_TYPE
.
VALUEWELL
:
{
let
icon
=
new
AMap
.
Icon
({
let
icon
=
new
AMap
.
Icon
({
//size: new AMap.Size(51, 23),
//size: new AMap.Size(51, 23),
image
:
require
(
"../assets/
oldI
mages/famenjing.png"
)
image
:
require
(
"../assets/
i
mages/famenjing.png"
)
});
});
marker
.
setIcon
(
icon
);
marker
.
setIcon
(
icon
);
break
;
break
;
...
@@ -463,7 +463,7 @@ class gaodeMap {
...
@@ -463,7 +463,7 @@ class gaodeMap {
case
DEVICE_TYPE
.
FLOWMETER
:
{
case
DEVICE_TYPE
.
FLOWMETER
:
{
let
icon
=
new
AMap
.
Icon
({
let
icon
=
new
AMap
.
Icon
({
//size: new AMap.Size(51, 23),
//size: new AMap.Size(51, 23),
image
:
require
(
"../assets/
oldI
mages/liuliangji.png"
)
image
:
require
(
"../assets/
i
mages/liuliangji.png"
)
});
});
marker
.
setIcon
(
icon
);
marker
.
setIcon
(
icon
);
break
;
break
;
...
@@ -487,7 +487,7 @@ class gaodeMap {
...
@@ -487,7 +487,7 @@ class gaodeMap {
case
DEVICE_TYPE
.
PRESSUREGAGE
:
{
case
DEVICE_TYPE
.
PRESSUREGAGE
:
{
let
icon
=
new
AMap
.
Icon
({
let
icon
=
new
AMap
.
Icon
({
//size: new AMap.Size(51, 23),
//size: new AMap.Size(51, 23),
image
:
require
(
"../assets/
oldI
mages/yalibiao.png"
)
image
:
require
(
"../assets/
i
mages/yalibiao.png"
)
});
});
marker
.
setIcon
(
icon
);
marker
.
setIcon
(
icon
);
break
;
break
;
...
@@ -952,14 +952,14 @@ class gaodeMap {
...
@@ -952,14 +952,14 @@ class gaodeMap {
this
.
overlays
=
[];
this
.
overlays
=
[];
let
that
=
this
;
let
that
=
this
;
this
.
markerOverlays
=
[];
this
.
markerOverlays
=
[];
this
.
mouseTool
.
on
(
"draw"
,
function
(
e
)
{
this
.
mouseTool
.
on
(
"draw"
,
function
(
e
)
{
if
(
e
.
obj
.
getExtData
().
type
!=
"newLine"
)
{
if
(
e
.
obj
.
getExtData
().
type
!=
"newLine"
)
{
map
.
remove
(
that
.
markerOverlays
);
map
.
remove
(
that
.
markerOverlays
);
const
device
=
that
.
createInfowindow
(
"新增"
);
const
device
=
that
.
createInfowindow
(
"新增"
);
device
.
map
=
map
;
device
.
map
=
map
;
device
.
obj
=
e
.
obj
;
device
.
obj
=
e
.
obj
;
device
.
gaoMap
=
that
;
device
.
gaoMap
=
that
;
e
.
obj
.
on
(
"click"
,
function
(
aa
)
{
e
.
obj
.
on
(
"click"
,
function
(
aa
)
{
let
postion
=
aa
.
target
.
_position
;
let
postion
=
aa
.
target
.
_position
;
//兼容拖拽后单击事件,拖拽后点击事件返回位置为数组
//兼容拖拽后单击事件,拖拽后点击事件返回位置为数组
if
(
postion
instanceof
Array
)
{
if
(
postion
instanceof
Array
)
{
...
@@ -971,11 +971,11 @@ class gaodeMap {
...
@@ -971,11 +971,11 @@ class gaodeMap {
}
}
device
.
show
();
device
.
show
();
});
});
e
.
obj
.
on
(
"mouseover"
,
function
()
{
e
.
obj
.
on
(
"mouseover"
,
function
()
{
that
.
mouseTool
.
close
();
that
.
mouseTool
.
close
();
});
});
e
.
obj
.
on
(
"mouseout"
,
function
()
{
e
.
obj
.
on
(
"mouseout"
,
function
()
{
that
.
draw
(
that
.
deviceType
);
that
.
draw
(
that
.
deviceType
);
});
});
...
@@ -1086,7 +1086,7 @@ class gaodeMap {
...
@@ -1086,7 +1086,7 @@ class gaodeMap {
"AMap.MapType"
,
"AMap.MapType"
,
"AMap.Geolocation"
"AMap.Geolocation"
],
],
function
()
{
function
()
{
// 在图面添加工具条控件,工具条控件集成了缩放、平移、定位等功能按钮在内的组合控件
// 在图面添加工具条控件,工具条控件集成了缩放、平移、定位等功能按钮在内的组合控件
//map.addControl(new AMap.ToolBar());
//map.addControl(new AMap.ToolBar());
...
@@ -1109,7 +1109,7 @@ class gaodeMap {
...
@@ -1109,7 +1109,7 @@ class gaodeMap {
searchTips
(
inputId
)
{
searchTips
(
inputId
)
{
let
that
=
this
;
let
that
=
this
;
AMap
.
plugin
([
"AMap.AutoComplete"
,
"AMap.PlaceSearch"
],
function
()
{
AMap
.
plugin
([
"AMap.AutoComplete"
,
"AMap.PlaceSearch"
],
function
()
{
//输入提示
//输入提示
// var autoOptions = {
// var autoOptions = {
// input: inputId
// input: inputId
...
@@ -1170,7 +1170,10 @@ class gaodeMap {
...
@@ -1170,7 +1170,10 @@ class gaodeMap {
const
path1
=
eval
(
coordinates
)[
0
];
const
path1
=
eval
(
coordinates
)[
0
];
const
path2
=
eval
(
coordinates
)[
1
];
const
path2
=
eval
(
coordinates
)[
1
];
// map.setFitView();
// map.setFitView();
const
path3
=
[(
Number
(
path1
[
0
])
+
Number
(
path2
[
0
])
)
/
2
,(
Number
(
path1
[
1
])
+
Number
(
path2
[
1
])
)
/
2
];
const
path3
=
[
(
Number
(
path1
[
0
])
+
Number
(
path2
[
0
]))
/
2
,
(
Number
(
path1
[
1
])
+
Number
(
path2
[
1
]))
/
2
];
map
.
setCenter
(
path3
,
false
);
map
.
setCenter
(
path3
,
false
);
// const lntlat = eval(coordinates)[0];
// const lntlat = eval(coordinates)[0];
...
...
gassafety-web/src/views/device/map/index.vue
View file @
4697fb41
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
</template>
</template>
<!-- 无数据 -->
<!-- 无数据 -->
<
template
v-else
>
<
template
v-else
>
<div
style=
"padding-left: 5px"
>
暂无数据
</div>
<div
style=
"padding-left: 5px
; color: #fff
"
>
暂无数据
</div>
</
template
>
</
template
>
</div>
</div>
</el-collapse-transition>
</el-collapse-transition>
...
@@ -307,7 +307,7 @@ export default {
...
@@ -307,7 +307,7 @@ export default {
},
},
methods
:
{
methods
:
{
onResize
()
{
onResize
()
{
this
.
boxHeight
=
document
.
body
.
clientHeight
-
8
1
;
this
.
boxHeight
=
document
.
body
.
clientHeight
-
8
0
;
this
.
boxWidth
=
document
.
body
.
clientWidth
-
100
;
this
.
boxWidth
=
document
.
body
.
clientWidth
-
100
;
},
},
async
initMap
()
{
async
initMap
()
{
...
@@ -1116,7 +1116,9 @@ input[type="radio"] {
...
@@ -1116,7 +1116,9 @@ input[type="radio"] {
left
:
100px
;
left
:
100px
;
width
:
348px
;
width
:
348px
;
transition
:
0
.2s
linear
;
transition
:
0
.2s
linear
;
background
:
#fff
;
// background: #fff;
background
:
rgba
(
6
,
29
,
51
,
0
.8
);
// background: red;
// background: red;
opacity
:
0
;
opacity
:
0
;
&
.opacity
{
&
.opacity
{
...
@@ -1188,7 +1190,9 @@ input[type="radio"] {
...
@@ -1188,7 +1190,9 @@ input[type="radio"] {
// border-right: 1px solid #cccccc;
// border-right: 1px solid #cccccc;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
// padding-left: 5px;
// padding-left: 5px;
color
:
#053b6a
;
// color: #053b6a;
color
:
#fff
;
font-weight
:
600
;
font-weight
:
600
;
}
}
}
}
...
@@ -1200,9 +1204,14 @@ input[type="radio"] {
...
@@ -1200,9 +1204,14 @@ input[type="radio"] {
color
:
#1d1d1d
;
color
:
#1d1d1d
;
&
:hover
{
&
:hover
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#053b6a
;
// border-bottom: 1px solid #053b6a;
color
:
#053b6a
;
border-bottom
:
1px
solid
#7fc0f8
;
// color: #053b6a;
font-weight
:
600
;
font-weight
:
600
;
>
div
{
color
:
#7fc0f8
;
}
}
}
&
.topActive
{
&
.topActive
{
// border-top: 1px solid #cccccc;
// border-top: 1px solid #cccccc;
...
@@ -1219,6 +1228,8 @@ input[type="radio"] {
...
@@ -1219,6 +1228,8 @@ input[type="radio"] {
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
color
:
#fff
;
// border-right: 1px solid #cccccc;
// border-right: 1px solid #cccccc;
}
}
}
}
...
@@ -1242,14 +1253,16 @@ input[type="radio"] {
...
@@ -1242,14 +1253,16 @@ input[type="radio"] {
height
:
48px
;
height
:
48px
;
padding-left
:
20px
;
padding-left
:
20px
;
display
:
flex
;
display
:
flex
;
background-color
:
#ffffff
;
//
background-color: #ffffff;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.
1
);
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.
5
);
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
// box-sizing: border-box;
// box-sizing: border-box;
&
.firstbox
{
&
.firstbox
{
border-top
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.1
);
// border-top: 1px solid rgba(0, 0, 0, 0.1);
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
// box-sizing: border-box;
// box-sizing: border-box;
&
:hover
{
&
:hover
{
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
...
@@ -1257,15 +1270,24 @@ input[type="radio"] {
...
@@ -1257,15 +1270,24 @@ input[type="radio"] {
}
}
&
:hover
{
&
:hover
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background-color
:
rgba
(
5
,
59
,
106
,
0
.1
);
// background-color: rgba(5, 59, 106, 0.1);
background-color
:
#053b6a
;
border-bottom
:
none
!
important
;
border-bottom
:
none
!
important
;
.upPic
{
color
:
#31eaea
;
}
.left
,
.right
{
color
:
#31eaea
!
important
;
}
}
}
.upPic
{
.upPic
{
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
40px
;
margin-left
:
40px
;
line-height
:
48px
;
line-height
:
48px
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#053b6a
;
// color: #053b6a;
color
:
#fff
;
}
}
>
i
.ju
{
>
i
.ju
{
position
:
absolute
;
position
:
absolute
;
...
@@ -1289,6 +1311,7 @@ input[type="radio"] {
...
@@ -1289,6 +1311,7 @@ input[type="radio"] {
color
:
#fff
;
color
:
#fff
;
}
}
>
i
.arrow-right
{
>
i
.arrow-right
{
color
:
#fff
!
important
;
position
:
absolute
;
position
:
absolute
;
right
:
32px
;
right
:
32px
;
top
:
16px
;
top
:
16px
;
...
@@ -1299,16 +1322,21 @@ input[type="radio"] {
...
@@ -1299,16 +1322,21 @@ input[type="radio"] {
}
}
&
.active
{
&
.active
{
// background-color: #053b6a;
// background-color: #053b6a;
.left
,
// .left,
.right
{
// .right {
color
:
#053b6a
;
// color: #053b6a;
}
// }
// > i {
// color: #053b6a;
// }
>
i
{
>
i
{
color
:
#053b6a
;
color
:
#31eaea
;
font-weight
:
600
;
}
}
}
}
.left
{
.left
{
color
:
#053b6a
;
// color: #053b6a;
color
:
#fff
;
line-height
:
48px
;
line-height
:
48px
;
margin-left
:
28px
;
margin-left
:
28px
;
.iconfont
{
.iconfont
{
...
@@ -1316,7 +1344,8 @@ input[type="radio"] {
...
@@ -1316,7 +1344,8 @@ input[type="radio"] {
}
}
}
}
.right
{
.right
{
color
:
#1d1d1d
;
// color: #1d1d1d;
color
:
#fff
;
line-height
:
48px
;
line-height
:
48px
;
font-size
:
16px
;
font-size
:
16px
;
margin-left
:
4px
;
margin-left
:
4px
;
...
@@ -1337,6 +1366,8 @@ input[type="radio"] {
...
@@ -1337,6 +1366,8 @@ input[type="radio"] {
padding-bottom
:
2px
;
padding-bottom
:
2px
;
.btn
{
.btn
{
border-radius
:
50%
;
border-radius
:
50%
;
background
:
none
;
// width: 14px;
// width: 14px;
// height: 14px;
// height: 14px;
padding
:
2px
;
padding
:
2px
;
...
@@ -1345,17 +1376,18 @@ input[type="radio"] {
...
@@ -1345,17 +1376,18 @@ input[type="radio"] {
display
:
inline-block
;
display
:
inline-block
;
font-size
:
14px
;
font-size
:
14px
;
padding
:
0px
5px
;
padding
:
0px
5px
;
color
:
#fff
;
}
}
}
}
}
}
}
}
// 开关
// 开关
.switch
{
.switch
{
position
:
absolute
;
position
:
absolute
;
font-size
:
30px
;
font-size
:
30px
;
right
:
-
27
px
;
right
:
-
30
px
;
top
:
50%
;
top
:
50%
;
margin-top
:
-
30
px
;
margin-top
:
-
123
px
;
width
:
40px
;
width
:
40px
;
border-radius
:
40%
;
border-radius
:
40%
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
4697fb41
...
@@ -448,11 +448,10 @@ export default {
...
@@ -448,11 +448,10 @@ export default {
const
RightBottom
=
pageDomRight
.
offsetTop
+
pageDomRight
.
offsetHeight
;
const
RightBottom
=
pageDomRight
.
offsetTop
+
pageDomRight
.
offsetHeight
;
// 下边的上边
// 下边的上边
const
bottomTop
=
pageDomBottom
.
offsetTop
;
const
bottomTop
=
pageDomBottom
.
offsetTop
;
if
(
RightBottom
>
bottomTop
)
{
if
(
RightBottom
>
bottomTop
)
{
// 重叠了,bottom右移动
// 重叠了,bottom右移动
this
.
bottomMarginRight
=
true
;
this
.
bottomMarginRight
=
true
;
}
}
},
},
initMap
()
{
initMap
()
{
...
@@ -1512,7 +1511,7 @@ export default {
...
@@ -1512,7 +1511,7 @@ export default {
width
:
100%
;
width
:
100%
;
}
}
// 如果right与bottom 重叠,则bottom左移动
// 如果right与bottom 重叠,则bottom左移动
.bottomMarginRight
{
.bottomMarginRight
{
right
:
280px
;
right
:
280px
;
}
}
// .btn-wrapper {
// .btn-wrapper {
...
@@ -1833,7 +1832,9 @@ input[type="radio"] {
...
@@ -1833,7 +1832,9 @@ input[type="radio"] {
position
:
relative
;
position
:
relative
;
// box-sizing: border-box;
// box-sizing: border-box;
&
.firstbox
{
&
.firstbox
{
border-top
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.5
);
// border-top: 1px solid rgba(0, 0, 0, 0.5);
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
// box-sizing: border-box;
// box-sizing: border-box;
&
:hover
{
&
:hover
{
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
border-top
:
1px
solid
rgba
(
5
,
59
,
106
,
0
);
...
...
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